2 Instruction Descriptions
2-352
NJ-series Instructions Reference Manual (W502)
AryShiftReg
The AryShiftReg instruction shifts a shift register one bit to the left and inserts the input value to the
least-significant bit. The shift register consists of array elements.
Instruction Name FB/FUN Graphic expression ST expression
AryShiftReg Shift Register FB AryShiftReg_instance(Shift,
Reset, In, InOut, Size);
Variables
Name Meaning I/O Description Valid range Unit Default
Shift Shift
Input
Shifted when signal
changes to TRUE.
Depends on data type.
---
FALSEReset Reset TRUE: Register is reset.
In Input value Value to insert to least-sig-
nificant bit of InOut[].
Size Number of
elements in
array of bit
strings
Number of elements to use
as a shift register in InOut[].
1
InOut[]
(array)
Array of bit
strings
In-out Array of bit strings Depends on data type.
---
---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Shift OK
Reset OK
In OK
Size OK
InOut[]
(array)
OK OK OK OK OK
AryShiftReg
AryShiftReg_instance
Shift ENO
Reset
In
InOut
Size