5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-126
API Mnemonic
Operands
Function
215~
217
D LD#
Contact Logical Operation LD#
Controllers
20PM
10PM
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T
C
D
V
Z
S
1
*
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
*
LD#: 5 steps
DLD#: 7 steps
Operands:
S
1
: Data source device 1
S
2
: Data source device 2
Explanations:
1. See the specifications of DVP-PM for its range of use.
2. #: &, |, ^
3. LD# instruction compares the content in
S
1
and
S
2
. If the result is not “0”, the instruction will be ON. If the result
is “0”, instruction will be OFF.
4. LD# can be connected directly with bus.
API No.
16-bit
instruction
32-bit
instruction
“ON” condition
“OFF” condition
215 LD&
D
LD&
S
1
&
S
2
≠
0
S
1
&
S
2
=
0
216 LD|
D
LD|
S
1
|
S
2
≠
0
S
1
|
S
2
=
0
217 LD^
D
LD^
S
1
^
S
2
≠
0
S
1
^
S
2
=
0
5. &: Logical ‘AND’ operation
6. |: Logical ‘OR’ operatioin
7. ^: Logical ‘XOR’ operation
8. When 32-bit counters (C200 ~ C255) are used in this instruction for operation, please adopt 32-bit instruction
(DLD#). If 16-bit instruction (LD#) is adopted, “program error” will occur, and the ERROR LED indicator on the
panel of DVP-PM will flash.
Program Example:
1. When the result of logical AND operation of C0 and C10
≠
0, Y10 will be ON.
2. When the result of logical OR operation of D200 and D300
≠
0 and X1 = ON, Y11 will be ON and held.
3. When the result of logical XOR operation of C201 and C200
≠
0 or M2 = ON, M50 will be ON.
M3
DLD
C201
C200
M50
LD
C0
C10
LD
D200
D300
SET
X1
&
^
I
Y11
Y10
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...