Panasonic FP-E Programming Manual page 544

Fp series
Table of Contents

Advertisement

High−level Instructions
F123
(RCL)
P123
(PRCL)
Outline
Rotates a specified number of bits in the specified 16-bit data to the left
together with carry flag data.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P123 (PRCL)" is not available.
Program example
Trigger
R0
10
F123 RCL , DT 0 , K 4
D
n
Operands
Relay
Operand
Operand
WX WY WR
D
N/A
A
n
A
A
(*1) This cannot be used with the FP0 and FP−e.
(*2) This cannot be used with the FP0, FP−e, FP0R, FPΣ, FP−X.
(*3) With the FP0R, FPΣ, FP−X, FP2, FP2SH, and FP10SH, this is I0 to IC.
(*4) With the FP0R, FPΣ, FP−X, FP2, FP2SH, and FP10SH, this is ID.
Explanation of example
Rotates 4 bits in data register DT0 together with carry flag data "1" to the left when trigger R0 turns on.
Bit position
15
· · ·
0 0 0
DT0
Bit position
15
· ·
DT0
0
0 1
Special internal relay
R9009 (carry flag)
Data in bit position 12
3 − 280
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
16-bit data left rotation with carry flag data
Ladder Diagram
Ladder Diagram
D
16-bit area
16-bit equivalent constant or 16-bit area to specify number of bits to be rotated
Timer/Counter
WL
SV
EV
DT
(*1)
A
A
A
A
A
A
A
A
12
11
8
7
4
3
·
·
· ·
1
0 0 1
0
0 0 1
1
0 1 0
12
11
8
7
4
3
·
·
· ·
0
0
0 1
1
0
1 0
0
1
Carry flag data "1"
1
n
Index
Register
register
LD
FL
IX
IY
(*1)
(*2)
(*3)
(*4)
A
A
A
A
A
A
A
A
A
A
0
· ·
0
R0: on
0
· ·
0 0
0
Boolean
Address
Instruction
10
ST
R
11
F123
(RCL)
DT
K
Constant
Index
Index
modifier
K
H
N/A
N/A
A
A
A
A
A:
Available
N/A: Not Available
0
0
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents