EasyManua.ls Logo

Panasonic FP-E - Page 535

Panasonic FP-E
1334 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...
High−level Instructions
3 − 271
Explanation of example
Left shift operation
Bit position
Data
15
..
1211
..
87
..
43
..
0
00010001 00010001
15
..
12 11
..
87
..
43
..
0
1000 1000 10001100
Bit position
Data
15
..
12 11
..
87
..
43
..
0
0010 00100010 0010
15
..
12 11
..
87
..
43
..
0
0001000100011000
Shifted-out bit is transferred
to R9009 (carry flag).
R0: on
R2: off → on
DT9 DT0
DT9 DT0
When data input R1 turns on, “1” is shifted into bit position 0.
When data input R1 turns off, “0” is shifted into bit position 0.
Right shift operation
Bit position
Data
15
..
12 11
..
87
..
43
..
0
0001 0001 0001 0001
15
..
12 11
..
87
..
43
..
0
1000 1000 1000 1100
Bit position
Data
15
..
12 11
..
87
..
43
..
0
1000 1000 1000 1000
15
..
12 11
..
87
..
43
..
0
0100 0100 0100 0110
Shifted-out bit is
transferred to
R9009 (carry flag).
R0: off
R2: off → on
DT9 DT0
DT9 DT0
When data input R1 turns on, “1” is shifted
into bit position 15.
When data input R1 turns off, “0” is shifted
into bit position 15.
Description
・This shift register changes direction, either left (direction of MSB) or right (direction of LSB), in which a
shift of one bit is made, based on the on/off status of the relay specified by the left/right shift input.
・The shift operation is made to the left when the left/right shift input is on, and to the right when off.
Specify D1 and D2 so they are in the same type data area and be sure to set the data area addresses so
that D1
D2.
When the shift input changes from off to on (the reset input is off), the contents of the area specified by
D1 and D2 are shifted one bit to the left or right.
When the data is shifted, 1 will be set in the empty bit left by the shift (the uppermost or lowermost bit) if
the data input is on, and 0 if the data input is off. Also, the bit extracted by the shift (the uppermost bit
for a shift to the left, and the lowermost bit for a shift to the right) will be set in the special internal relay
R9009 (carry flag).
If the reset input is on, the contents of the specified area are cleared to 0.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com