![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030433.webp)
393
Data Shift Instructions
Section 3-9
Description
SRD(075) shifts data between St and E by one digit (4 bits) to the right. “0” is
placed in the leftmost digit (bits 15 to 12 of E), and the content of the rightmost
digit (bits 3 to 0 of St) is lost.
Flags
Precautions
When St is greater than E, an error will be generated and the Error Flag will
turn ON.
When SRD(075) is executed, the Equals Flag and Negative Flag will turn
OFF.
Note When large amounts of data are shifted, the instruction execution time is quite
long. Always take care that the power is not cut while SRD(075) is being exe-
cuted, causing the shift operation to stop halfway through.
Examples
When CIO 000000 is ON, words CIO 0100 through CIO 0102 will shift by one
digit (4 bits) to the right. A zero will be placed in bits 12 to 15 of CIO 0102 and
the contents of bits 0 to 3 of word CIO 0100 will be lost.
3-9-19 SHIFT N-BIT DATA LEFT: NSFL(578)
Purpose
Shifts the specified number of bits to the left.
Ladder Symbol
Variations
Applicable Program Areas
Operands
C: 0000 to 000F hex (0 to 15)
N: 0000 to FFFF hex (0 to 65535)
E
S
Lost
t
Name
Label
Operation
Error Flag
ER
ON when St is greater than E.
OFF in all other cases.
E
Lost
St
St: CIO 0100
St+1: CIO 0101
E: CIO 0102
NSFL(578)
D
C
N
D
: Beginning word for shift
C
: Beginning bit
N
: Shift data length
Variations
Executed Each Cycle for ON Condition
NSFL(578)
Executed Once for Upward Differentiation
@NSFL(578)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...