High
−
level Instructions
3
−
286
Outline
Rotates a specified number of bits in the specified 32-bit data to the right
together with carry flag data.
For the FP0R/FP
Σ
/FP
−
X/FP0/FP
−
e, the P type high
−
level instruction
“P127 (PDRCR)” is not available.
Program example
Ladder Diagram
Boolean
Ladder Diagram
Address
Instruction
F127 DRCR, DT10,
K4
10
R0
n
D
Trigger
10
11
ST
R
0
F127
(DRCR)
DT
10
K
4
D
Lower 16-bit area of 32-bit data
n
16-bit equivalent constant or 16-bit area to specify number of bits to be rotated
Range of n: K0 to K255 (H0 to HFF)
Operands
Operand
Relay
Timer/Counter
Register
Index
register
Constant
Index
Integer
Operand
WX WY WR WL
SV
EV
DT LD
FL
(
*
1)
I
K
H
f
Index
modifier
Integer
device
D
N/A
A
A
A
A
A
A
A
A
A
N/A N/A N/A
A
N/A
n
A
A
A
A
A
A
A
A
A
A
A
A
N/A
A
N/A
(
*
1) This cannot be used with the FP0R, FP
Σ
and FP
−
X.
Explanation of example
Rotates 4 bits in data registers DT11 and DT10 together with carry flag data to the right when trigger R0 turns
on.
The data in bit position 3 is transferred to the carry flag (special internal relay R9009).
The data of the carry flag (special internal relay R9009) is transferred to the bit position 28.
1 0 1 0
1 1 0 0
0 1 1
31
0
0 1 1 1
1 0 1 0
1 1 0 0
Carry flag
28 27
8 7
4 3
· · ·
Carry flag
1
0
0
@
@
[DT11, DT10]
[DT11, DT10]
R0: on
F127
P127
(PDRCR)
(DRCR)
32-bit data right rotation with carry flag data
A: Available
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...