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


 
2-131
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Data Shift Instructions
2
WSFT
WSFT
Applicable Program Areas
Operands
Operand Specifications
Flags
Function
Precautions
St and E must be in the same data area.
When large amounts of data are shifted, the instruction execution time is quite long. Be sure that the
power is not cut while WSFT(016) is being executed, causing the shift operation to stop halfway
through.
Instruction Mnemonic Variations
Function
code
Function
WORD SHIFT WSFT @WSFT 016 Shifts data between St and E in word units.
Symbol
WSFT
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
S Control word WORD 1
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
S
OK OK OK OK OK OK OK OK OK
OK
--- --- ---
St,E ---
Name Label Operation
Error Flag P_ER ON when St is greater than E.
OFF in all other cases.
WSFT(016) shifts data from St to
E in word units and the data from
the source word S is places into
St. The contents of E is lost.
WSFT(016)
S
St
E
S: Source word
St: Starting word
E: End word
015 015 015
015
S
ESt
Lost