3. Instructions
328
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Precautions
Example Programming
z SLD
When CIO 0.00 is ON, words CIO 100 through CIO 102 will shift by one digit (4 bits) to the left. A zero
will be placed in bits 0 to 3 of word CIO 100 and the contents of bits 12 to 15 of CIO 102 will be lost.
z SRD
When CIO 0.00 is ON, words CIO 100 through CIO 102 will shift by one digit (4 bits) to the right. A zero
will be placed in bits 12 to 15 of CIO 102 and the contents of bits 0 to 3 of word CIO 100 will be lost.
• St and E must be in the same data area.
• When large amounts of data are shifted, the
instruction execution time is quite long. Be sure that
the power is not cut while SLD(074) and SRD(075)
is being executed, causing the shift operation to
stop halfway through.
SLD
SRD
ESt
Lost
E
St
Lost
E: CIO 102 St+1: CIO 101 St: CIO 100
0.00
E
0.00
Lost
St
St: CIO 100St+1: CIO 101E: CIO 102