Shift N-Bit Data Left: Nsfl(578) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Data Shift Instructions
Description
Flags
Precautions
Examples

3-9-19 SHIFT N-BIT DATA LEFT: NSFL(578)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
394
SRD(075) shifts data between St and E by one digit (4 bits) to the right. "0" is
placed in the leftmost digit (bits 15 to 12 of E), and the content of the rightmost
digit (bits 3 to 0 of St) is lost.
Name
Error Flag
ER
When St is greater than E, an error will be generated and the Error Flag will
turn ON.
When SRD(075) is executed, the Equals Flag and Negative Flag will turn
OFF.
Note When large amounts of data are shifted, the instruction execution time is quite
long. Always take care that the power is not cut while SRD(075) is being exe-
cuted, causing the shift operation to stop halfway through.
When CIO 000000 is ON, words CIO 0100 through CIO 0102 will shift by one
digit (4 bits) to the right. A zero will be placed in bits 12 to 15 of CIO 0102 and
the contents of bits 0 to 3 of word CIO 0100 will be lost.
St
E
Shifts the specified number of bits to the left.
NSFL(578)
D
C
N
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
C: 0000 to 000F hex (0 to 15)
N: 0000 to FFFF hex (0 to 65535)
E
S
Label
ON when St is greater than E.
OFF in all other cases.
E: CIO 0102
D: Beginning word for shift
C: Beginning bit
N: Shift data length
Step program areas
OK
Section 3-9
t
Lost
Operation
St+1: CIO 0101
St: CIO 0100
NSFL(578)
@NSFL(578)
Not supported
Subroutines
Interrupt tasks
OK
OK
Lost

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents