3 Basic Instructions
DVP-PLC Application Manual
3-9
Program Example:
Ladder diagram:
Instruction code:
Operation:
LD
X0
Loading in contact A of X0 T5 timer
X0
T5
TMR
K1000
TMR
T5 K1000
Set value in timer T5 as K1,000
Remarks:
See the specification of each model for the range of operand T.
Mnemonic Function Program
steps
CNT
16-bit counter
1
Controllers
ES
EX
SS
SA
SX
SC
EH
SV
C-K
C0 ~ C199, K0~K32,767
Operand
C-D
C0 ~ C199, D0 ~ D9999
Explanations:
1.
When the CNT instruction goes from Off to On, the designated counter coil will be driven, and the present value
in the counter will plus 1. When the counting reaches the set value (present value = set value), the contact will
be:
NO (Normally Open) contact
Open collector
NC (Normally Closed) contact
Close collector
2.
If there are other counting pulse input after the counting reaches its target, the contact and present value will
stay intact. Use RST instruction to restart or reset the counting.
Program Example:
Ladder diagram:
Instruction code:
Operation:
LD
X0
Loading in contact A of X0
X0
C20
CNT
K100
CNT
C20 K100
Set value in counter C20 as K100
Mnemonic Function Program
steps
DCNT
32-bit counter
1
Controllers
ES
EX
SS
SA
SX
SC
EH
SV
C-K
C200 ~ C255, K-2,147,483,648 ~ K2,147,483,647
Operand
C-D
C200 ~ C255, D0 ~ D9999
Explanations:
1.
DCNT is the instruction for enabling the 32-bit high-speed counters C200 ~ C255.
2.
For general purpose addition/subtraction counters C200 ~ C234, when DCNT goes from Off to On, the present
value in the counter will pulse 1 (counting up) or minus 1 (counting down) according to the modes set in special
M1200 ~ M1235.
3.
For high-speed addition/subtraction counters C235 ~ C255, when the high-speed counting pulse input goes
from Off to On, the counting will start its execution. For the input terminals (X0 ~ X17) and counting methods
Содержание DVP-PLC
Страница 1: ...PLC PLC...
Страница 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Страница 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Страница 250: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 38 X0 DIV D0 D10 D20 D0 D10 K4Y0 DIV...
Страница 270: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 58 RST M0 X0 RST T0 RST Y0 FMOV K0 D10 K5...
Страница 337: ...7 Application Instructions API 50 99 DVP PLC APPLICATION MANUAL 7 53 X10 STMR T10 K50 Y0 Y3 X10 Y1 Y2 5 sec 5 sec...
Страница 458: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 56 or relay itself See 2 3 for more information...
Страница 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Страница 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...