Mitsubishi MELSEC Q Series Programming Manual page 148

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

LDP,LDF,ANDP,ANDF,ORP,ORF
(2) LDF is the trailing edge pulse operation start instruction, and is ON only at the trailing edge
of the designated bit device (when it goes from ON to OFF).
If a word device has been designated, it is ON only when the designated bit changes from 1
to 0.
ANDP, ANDF
(1) ANDP is a leading edge pulse series connection instruction, and ANDF is a trailing 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:
ORP, ORF
(2) ORP is a leading edge pulse parallel connection instruction, and ORF is a trailing edge pulse
serial connection instruction. They perform an OR operation with the operation result to that
point, and take the resulting value as the operation result.
The ON/OFF data used by ORP and ORF are indicated in the table below:
Operation Error
(1) There are no operation errors with LDP, LDF, ANDP, ANDF, ORP, or ORF instruction.
Program Example
(1) The following program executes the MOV instruction at input X0, or at the leading edge of
b10 (bit 11) of data register D0.
[Ladder Mode]
*1: Word device bit designation is performed in hexadecimal. Bit b10 of D0 will be D0.A.
5-6
Device Specified in ANDP or ANDF
Bit Designated for
Bit Device
Word Device
OFF
to
ON
0 to 1
OFF
ON
ON to OFF
1 to 0
Device Specified in ORP or ORF
Bit Designated for
Bit Device
Word Device
OFF to ON
0 to 1
OFF
ON
ON to OFF
1 to 0
*1
ANDP State
ON
0
1
OFF
ORP State
ON
0
1
OFF
[List Mode]
Instruction
Step
ANDF State
OFF
ON
ORF State
OFF
ON
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents