311
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Shift Instruction
3
ASFT
ASFT
Applicable Program Areas
Operands
C: Control Word
Note St and E must be in the same data area.
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
ASYNCHRONOUS SHIFT
REGISTER
ASFT @ASFT 017
Shifts all non-zero word data within the specified
word range either towards St or toward E,
replacing 0000Hex word data.
Symbol
ASFT
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
C Control word UINT 1
St Starting word UINT Variable
EEnd word UINT Variable
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
C
OK OK OK OK OK OK OK OK OK OK ---
OK
--- OK --- --- --- ---St
---
E
Name Label Operation
Error Flag ER • ON when St is greater than E.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
ASFT(017)
C
St
E
C: Control word
St: Starting word
E: End word
15 14 13 12
Shift direction
0: Non-zero data shifted toward E
1: Non-zero data shifted toward St
Shift Enable Bit
0: Shift disabled
1: Shift enabled
Clear Bit
0: Data not reset
1: All data from St to E is reset