Mitsubishi Electric M800VW Series Programming Manual page 292

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.6 Logical Operation Instructions
 Operation errors
 There are no arithmetic errors associated with the WOR(P) or DOR(P) instructions.
 Program example
 The following program performs a logical sum operation on the data at D10 and D20 when XA goes ON, and stores the
results at D10.
XA
0
5
1 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0
D10
0 0 0 0 1 0 1 1 1 0 0 1 0 0 0 1
D20
D10
1 1 0 0 1 1 1 1 1 1 1 1 0 1 0 1
 The following program performs a logical sum operation on the data from X10 to X1B, and the data at D33, and outputs the
result to D100 when XA is ON.
XA
0
5
0 0 0 0 1 0 0 1 0 0 1 1 0 0 1 1
X1B〜X10
Seen as "0"
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
D33
D100
0 0 0 1
 The following program performs a logical sum operation on the 32-bit data from X0 to X1F, and on the hexadecimal value
FF00FF00H when XB goes ON, and stores the results at D66 and D67.
XB
0
8
[Ladder mode]
WOR
D20
D10
END
OR
[Ladder mode]
WOR K3X10 D33 D100
END
X1B
X18X17
X14X13
OR
1
0
1 1
0 0
1 1
[Ladder mode]
DMOVP H0FF00FF00 D66
DORP K8X0 D66
END
Steps
0
1
4
Steps
0
1
5
X10
0 1
1 1
Steps
0
1
5
8
271
[List mode]
Inst.
Device
LD
X0A
WOR
D20
D10
END
[List mode]
Inst.
Device
LD
XA
WOR
K3X10
D33
D100
END
[List mode]
Inst.
Device
LD
X8
DMOVP
H0FF00FF00
D66
DORP
K8X0
D66
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents