Data Shift Instruction; Sft - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

Data Shift Instruction

SFT

Instruction
SHIFT REGISTER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
* OK as long as words in the CIO Area, Work Area, or Holding Area are specified in the function block instance allocation
areas.
Operands
Operand
St
Starting word
E
End word
Operand Specifications
Word addresses
Area
CIO
WR
HR
St
OK
OK
OK
E
Flags
Name
Error Flag
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.
E
Lost
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SFT
---
Data input
Shift input
Reset input
Block program areas
Step program areas
Not allowed
OK
Description
AR
T
C
DM
EM
---
---
---
---
---
Label
ER
• ON if the indirect IR address for St and E is not in the CIO, WR or HR data areas.
• OFF in all other cases.
St+1, St+2, ...
Function
code
010
Operates a shift register.
SFT
SFT(010)
St
St: Starting word
E
E: End word
Subroutines
OK
Data type
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
---
---
Operation
3. Instructions
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
St
Status of data input
for each shift input
3
TR
bits
---
---
305

Advertisement

Table of Contents
loading

Table of Contents