Shift N-Bit Data Right: Nsfr(579) - 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-20 SHIFT N-BIT DATA RIGHT: NSFR(579)

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 3 to the shift data
length (B hex) will be shifted one bit to the left (from the rightmost bit to the
leftmost bit). "0" will be placed into bit 3 of CIO 0100. The contents of the left-
most bit in the shift area (bit 13 of CIO 0100) are copied into the Carry Flag
(CY).
D
C
N
D: CIO 0100
D: CIO 0100
Shifts the specified number of bits to the right.
NSFR(579)
D: Beginning word for shift
D
C: Beginning bit
C
N: Shift data length
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
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.
&3
&11
N: 11 bits
Step program areas
Subroutines
OK
Section 3-9
C: Starting from bit 3
0
NSFR(579)
@NSFR(579)
Not supported
Interrupt tasks
OK
395

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents