![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
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...