Mitsubishi Electric M800VW Series Programming Manual page 150

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

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
7 Basic Instructions
7.2 Connection Instructions
ANDP,ANDF
 ANDP is a rising edge pulse series connection instruction, and ANDF is a falling edge pulse series connection instruction.
They perform an AND operation with the operation result to that point, and take the resulting value as the operation result.
The ON/OFF data used by ANDP and ANDF are indicated in the table below:
Devices designated by ANDP
Bit designation of
Bit device
word device
OFF -> ON
0 -> 1
OFF
0
ON
1
ON -> OFF
1 -> 0
ORP,ORF
 ORP is a rising edge pulse parallel connection instruction, and ORF is a falling edge pulse parallel connection instruction.
They perform an OR operation with the operation result to that point and take the resulting value as the operation result.
Devices designated by ORP
Bit designation of
Bit device
word device
OFF -> ON
0 -> 1
OFF
0
ON
1
ON -> OFF
1 -> 0
 Arithmetic errors
 There are no arithmetic errors with LDP, LDF, ANDP, ANDF, ORP, or ORF instructions.
 Program example
 The following program executes the MOV instruction at input X0, or at the rising edge of b10 (bit10) of data register D0.
X0
0
D0. A *
6
[Remark]
 Designate the bit of the word devices in hexadecimal. Bit b10 of D0 would be D0.A.
Devices designated by ANDF
ANDP state
Bit device
ON
OFF -> ON
OFF
OFF
ON
ON -> OFF
Devices designated by ORF
ORP state
Bit device
ON
OFF -> ON
OFF
OFF
ON
ON -> OFF
[Ladder mode]
MOV
K0
D0
END
129
ANDF state
Bit designation of
word device
0 -> 1
OFF
0
1
1 -> 0
ON
ORF state
Bit designation of
word device
0 -> 1
OFF
0
1
1 -> 0
ON
[List mode]
Steps
Inst.
0
LDP
2
ORP
4
MOV
6
END
Device
X0
D0. A
K0
D0
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents