Mitsubishi Electric MELSEC-Q/L Programming Manual page 139

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

■ANDPI, ANDFI
• ANDPI is a rising edge pulse NOT series connection, and ANDFI is a falling pulse NOT series connection. ANDPI and
ANDFI execute an AND operation with the previous operation result, and take the resulting value as the operation result.
The on or off data used by ANDPI and ANDFI are indicated in the table below.
Device specified in ANDPI or ANDFI
Bit device
OFF to ON
OFF
ON
ON to OFF
■ORPI, ORFI
• ORPI is a rising edge pulse NOT parallel connection, and ORFI is a falling pulse NOT parallel connection. ORPI and ORFI
execute an OR operation with the previous operation result, and take the resulting value as the operation result. The on or
off data used by ORPI and ORFI are indicated in the table below.
Device specified in ORPI or ORFI
Bit device
OFF to ON
OFF
ON
ON to OFF
Operation error
• There is no operation error in the LDPI, LDFI, ANDPI, ANDFI, ORPI, or ORFI instruction.
Program example
• The following program stores 0 into D0 when X0 is on, off, or turns from on to off, or M0 is on, off, or turns from off to on.
[Ladder Mode]
• The following program stores 0 into D0 when X0 is on and b10 (bit 11) of D0 is on, off, or turns from on to off.
[Ladder Mode]
Word device bit designation
0 to 1
0
1
1 to 0
Word device bit designation
0 to 1
0
1
1 to 0
LDPI state
OFF
ON
ON
ON
ORPI state
OFF
ON
ON
ON
[List Mode]
Step
Instruction
[List Mode]
Step
Instruction
5 SEQUENCE INSTRUCTIONS
LDFI state
ON
ON
ON
OFF
ORFI state
ON
ON
ON
OFF
Device
Device
5.1 Contact Instructions
5
137

Advertisement

Table of Contents
loading

Table of Contents