Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2-127
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Data Shift Instructions
2
SFT
Data Shift Instructions
SFT
Applicable Program Areas
Operands
Operand Specifications
Flags
Function
When the execution condition on the shift input changes from OFF to ON, all the data from St to E is
shifted to the left by one bit (from the rightmost bit to the leftmost bit), and the ON/OFF status of the
data input is placed in the rightmost bit.
Instruction Mnemonic Variations
Function
code
Function
SHIFT REGISTER SFT --- 010 Operates a shift register.
Symbol
SFT
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
St Starting word UINT Variable
EEnd word UINT Variable
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
St,E OK OK OK --- --- --- --- --- --- --- --- --- ---
Name Label Operation
Error Flag P_ER OFF
SFT(010)
St
E
Data input
Shift input
Reset input
St: Starting word
E: End word
E
Status of data input
for each shift input
Lost
St+1, St+2, ... St