Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Function
The AryShiftRegLR instruction shifts Size array elements of array of bit strings InOut[] to the left when
ShiftL changes to TRUE. The shift operation starts from InOut[0]. Input value In is inserted to the least-
significant bit. The most-significant bit of the array of bit strings is output to the Carry (CY) Flag (P_CY).
P_CY
When ShiftR changes to TRUE, the bits are shifted one bit to the right and In is inserted to the most-sig-
nificant bit. The least-significant bit of the array of bit strings is output to the Carry (CY) Flag (P_CY).
In
When Reset is TRUE, P_CY and all of the bits in Size elements starting from InOut[0] are set to FALSE.
The following example is for when InOut is BYTE data, Size is UINT#2 and ShiftL changes to TRUE.
LD
A
B
abc
def
ghi[1]
UINT#2
InOut[1]=ghi[2]
1 0 1 0 1 0 0 0
P_CY InOut[1]=ghi[2]
1
0 1 0 1 0 0 0 1

NY-series Instructions Reference Manual (W560)

Size elements
Size elements
AryShiftRegLR_instance
AryShiftRegLR
ShiftL
ENO
ShiftR
Reset
In
InOut
ghi[1]
Size
Size=UINT#2
InOut[0]=ghi[1]
In=def
1 1 0 1 0 0 1 1
InOut[0]=ghi[1]
1 0 1 0 0 1 1 1
InOut[1]
InOut[0]
P_CY
InOut[1]
InOut[0]
ST
AryShiftRegLR_instance(A, B, abc, def, ghi[1], UINT#2);
1
2 Instruction Descriptions
In
2
2-391

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents