Omron SYSMAC CS Series Instruction & Reference Manual page 263

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

WSFT
Instruction
WORD SHIFT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Control word
St
Starting word
E
End word
 Operand Specifications
Word addresses
Area
CIO
WR
HR
S
St
OK
OK
OK
E
Flags
Name
Error Flag
Function
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.
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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
WSFT
@WSFT
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON when St is greater than E.
• OFF in all other cases.
Lost
Function
code
016
Shifts data between St and E in word units.
WSFT
WSFT(016)
S
S: Source word
St
St: Starting word
E
E: End word
Subroutines
OK
Data type
WORD
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
Operation
E
3. Instructions
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
1
Variable
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
St
3
TR
bits
---
---
229

Advertisement

Table of Contents
loading

Table of Contents