Panasonic FP-E Programming Manual page 479

Fp series
Table of Contents

Advertisement

Explanation of example
Divides the 16-bit data of data register DT10 into 4-bit units and the divided data is stored in the lower 4 bits (bit
positions 0 to 3) of data registers DT20 to DT23 when trigger R20 turns on.
Bit position
·
· ·
15
12
DT10
0 1 1
Bit position
·
· ·
15
12
DT20
0 0 0
DT21
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
DT22
0 0 0 0 0 0 0 0 0 0 0 0 0 0
DT23
0 0 0 0 0 0 0 0 0 0 0 0 0
Description
Divides the 16-bit data specified by S into 4-bit units and distributes the divided data into the lower 4 bits (bit
positions 0 to 3) of 16-bit areas starting from D.
n specifies the number of data divisions.(range of n: K0 to K4)
When K0 is specified for n, this instruction is not executed.
Source
Bit position
·
· ·
15
S
Digit 4
Destination
Bit position
·
· ·
15
D
D + 1
D + 2
D + 3
Bit positions 4 to 15 are filled with 0s.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
·
·
·
·
11
8
7
4
1
0 0 1
1
0 0 0
1
·
·
·
·
11
8
7
4
0
0 0 0
0
0 0 0
0
n
·
·
·
·
12 11
8 7
4 3
Digit 3
Digit 2
·
·
·
·
12 11
8 7
4 3
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− The number n is 5 or more.
− Transferring address specified by D to n data, and when area is exceeded.
·
·
3
0
0 0 0
0
·
·
3
0
0 0 0
0
1
1
1
1
1
·
·
0
Digit 1
·
·
0
Digit 1
Digit 2
Digit 3
Digit 4
High−level Instructions
3 − 215

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents