5.1 Contact Instructions
5.1.2 Pulse operation start, pulse series connection, pulse parallel connection
5-5
5
SE
Q
U
EN
C
E
INSTRUCTION
S
LDP
, LDF
, A
N
D
P,
A
NDF
, O
R
P,
ORF
LDP, LDF, ANDP, ANDF, ORP, ORF
(2) LDF is the falling pulse operation start instruction, and it is ON only at the falling pulse of the
specified bit device (when it turns from ON to OFF).
If a word device is specified, it is ON only when the specified bit changes from 1 to 0.
ANDP, ANDF
(1) ANDP is a rising pulse series connection instruction, and ANDF is a falling pulse series
connection instruction. They perform AND operations 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 rising pulse parallel connection instruction, and ORF is a falling pulse serial
connection instruction. They perform OR operations 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.
O
p
erat
i
on
E
rror
No operation error occurs in the execution of the LDP, LDF, ANDP, ANDF, ORP, and ORF
instructions.
Program
E
xam
pl
e
In the following program, the MOV instruction is executed at the rising pulse of input X0 or b10
(bit 11) of data register D0.
[Structured ladder]
[ST]
IF (LDP(TRUE,X0)) OR (LDP(TRUE,D0.A)) THEN
MOV(TRUE,0,Var_D0);
END_IF;
Device specified in ANDP or ANDF
ANDP status
ANDF status
Bit device
Bit specification for
word device
OFF to ON
0 to 1
ON
OFF
OFF
0
OFF
ON
1
ON to OFF
1 to 0
ON
Device specified in ORP or ORF
ORP status
ORF status
Bit device
Bit specification for
word device
OFF to ON
0 to 1
ON
OFF
OFF
0
OFF
ON
1
ON to OFF
1 to 0
ON
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......