Wsft - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

WSFT

Instruction
WORD SHIFT
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
S
Control word
St
Starting word
E
End word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
St,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.
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
WSFT
@WSFT
Description
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
• ON when St is greater than E.
• OFF in all other cases.
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 addresses
Constants
@DM
*DM
OK
OK
Operation
E
15
0
15
Lost
2 Instructions
Function
Interrupt tasks
OK
Size
1
Variable
Variable
CF
Pulse bits
OK
---
---
---
St
15
S
0
15
0
2
TR bits
---
0
2-131

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents