EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-359
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Shift Instructions
2
ArySHL and ArySHR
If InOut[] is BOOL data, the results will be the same as shifting a bit string of Size bits by Num bits.
The shift operation is not performed if the value of Num is 0.
If the value of Num is larger than Size, all values from InOut[0] to InOut[Size1] are initialized.
Return value Out is not used when the instruction is used in ST.
An error occurs in the following case. ENO will be FALSE, and InOut[] will not change.
The value of Size exceeds the array area of InOut[].
Additional Information
Precautions for Correct Use
Discarded.
Zeros inserted.
InOut[5]
=abc[6]
Size=UINT#6
9 8 7 3 2 1
7 3 2 1 0 0
InOut[4]
=abc[5]
InOut[3]
=abc[4]
InOut[2]
=abc[3]
InOut[1]
=abc[2]
InOut[0]
=abc[1]
InOut[5]
=abc[6]
InOut[4]
=abc[5]
InOut[3]
=abc[4]
InOut[2]
=abc[3]
InOut[1]
=abc[2]
InOut[0]
=abc[1]

Table of Contents

Related product manuals