Shift N-Bits Left: Nasl(580) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Data Shift Instructions
Flags
Precautions
Examples

3-9-21 SHIFT N-BITS LEFT: NASL(580)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Name
Label
Error Flag
ER
Carry Flag
CY
When the shift data length (N) is 0, the contents of the beginning bit will be
copied to the Carry Flag (CY), and its contents will not be changed.
Only the bits shifted into rightmost word in the shift area (i.e. leftmost word
data) will be changed.
When CIO 000000 is ON, all bits from the beginning bit 2 to end of the shift
data length 11 bits (B hex), will be shifted one bit to the right, (from the left-
most bit to the rightmost bit). "0" is shifted into bit 12 of CIO 0100. The con-
tents of the rightmost bit in the shift area (bit 2 of CIO 0100) are copied into
the Carry Flag (CY).
0
Shifts the specified 16 bits of word data to the left by the specified number of
bits.
NASL(580)
D: Shift word
D
C: Control word
C
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
OK
Operation
ON when C data is not between 0000 and 000F hex.
OFF in all other cases.
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
&2
&11
C: Starting from bit 2
N: 11 bits
Step program areas
Subroutines
OK
Section 3-9
NASL(580)
@NASL(580)
Not supported
Interrupt tasks
OK
397

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents