EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 336

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
303
Data Shift Instructions Section 3-8
Description SLD(074) shifts data between St and E by one digit (4 bits) to the left. “0” is
placed in the rightmost digit (bits 3 to 0 of St), and the content of the leftmost
digit (bits 15 to 12 of E) is lost.
Flags
Precautions When St is greater than E, an error will be generated and the Error Flag will
turn ON.
Note 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) is being executed,
causing the shift operation to stop halfway through.
Examples When CIO 0.00 is ON, words CIO 1000 through CIO 1002 will shift by one
digit (4 bits) to the left. A zero will be placed in bits 0 to 3 of word CIO 1000
and the contents of bits 12 to 15 of CIO 1002 will be lost.
3-8-18 ONE DIGIT SHIFT RIGHT: SRD(075)
Purpose Shifts data by one digit (4 bits) to the right.
Ladder Symbol
Variations
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area St E
ESt
0 Hex
Lost
Name Label Operation
Error Flag ER ON when St is greater than E.
OFF in all other cases.
E
0.00
1000
1002
St
Lost
E: CIO 1002 St+1: CIO 1001 St: CIO 1000
SRD(075)
E
St
St: Starting word
E: End word
Variations Executed Each Cycle for ON Condition SRD(075)
Executed Once for Upward Differentiation @SRD(075)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported

Table of Contents

Related product manuals