Mitsubishi MELSEC-Q/L Programming Manual page 369

Table of Contents

Advertisement

Program Example
(1) The following program dissociates data of 4, 3, and 6 bits respectively from the lower bits of D0, and stores them from
D10 to D12.
[Ladder Mode]
[Operation]
b12
b7
b6
1 1 0 1 0 1 1 0 0 0 1 1 1 1 0 0
The data in these
bits is ignored.
(2) The following program links the lower 4 bits of data from D10, the lower 3 bits of data from D11, and the lower 6 bits of
data from D12, and stores at D0.
[Ladder Mode]
[List Mode]
Step
b4b3
b0
D0
4 bits
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
Filled with 0s.
3 bits
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
Filled with 0s.
6 bits
0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0
Filled with 0s.
[List Mode]
Step
NDIS, NDISP, NUNI, NUNIP
Instruction
Device
b3
b0
D10
b2 b0
D11
b5
b0
D12
Instruction
Device
1
2
3
4
4
6
7
8
367

Advertisement

Table of Contents
loading

Table of Contents