Sld/Srd - Omron CJ - INSTRUCTIONS Reference Manual

Table of Contents

Advertisement

SLD/SRD

Instruction
ONE DIGIT SHIFT LEFT
ONE DIGIT SHIFT RIGHT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
St
Starting Word
E
End Word
Operand Specifications
Area
CIO
WR
HR
St
OK
OK
OK
E
Flags
Name
Error Flag
Function
SLD
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.
SRD
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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SLD
@SLD
SRD
@SRD
SLD
SLD(074)
St
St: Starting Word
E
E: End word
Block program areas
Step program areas
OK
OK
Description
Word addresses
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON when St is greater than E.
• OFF in all other cases.
Function
code
074
Shifts data by one digit (4 bits) to the left.
075
Shifts data by one digit (4 bits) to the right.
Subroutines
OK
Data type
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
---
---
Operation
3. Instructions
Function
SRD
SRD(075)
St
St: Starting Word
E
E: End word
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
3
TR
bits
---
327

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents