Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
81 views

Mnemonic Function Program Steps Controllers: X0 C20 CNT K100

1. The document describes counters and counting instructions for different series of MPU controllers. 2. Counters can be 16-bit or 32-bit and count up or down, with contacts turning on when the count reaches the set value. 3. The CNT instruction is used for 16-bit counting and DCNT for 32-bit counting, with the contact for the corresponding counter turning on at the target value.

Uploaded by

Christenes Alves
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Mnemonic Function Program Steps Controllers: X0 C20 CNT K100

1. The document describes counters and counting instructions for different series of MPU controllers. 2. Counters can be 16-bit or 32-bit and count up or down, with contacts turning on when the count reaches the set value. 3. The CNT instruction is used for 16-bit counting and DCNT for 32-bit counting, with the contact for the corresponding counter turning on at the target value.

Uploaded by

Christenes Alves
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Mnemonic Function Program steps

Controllers
CNT 16-bit counter 1 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:
X0 LD X0 Loading in contact A of X0
CNT C20 K100
CNT C20 Set value in counter C20 as K100
K100

Mnemonic Function Program steps


Controllers
DCNT 32-bit counter 1 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 (counting up/down) of the high-speed counter, see Chapter 2.7
Numbering and Function of Counter [C] for more details.
4. When DCNT is Off, the counting will stop, but the existing present value in the counter will not be
cleared. To clear the present value and the contact, you have to use the instruction RST C2XX.
Use externally designated input points to clear the present values and contacts of high-speed
addition/subtraction counters C235 ~ C255.
Program Example:
Ladder diagram: Instruction code: Operation:
M0 LD M0 Loading in contact A of M0
DCNT C254 K1000
DCNT C254 Set value of counter C254 as
K1000 K1,000
ES/EX/SS series MPU:
16-bit counting up
C0 ~ C111, 112 points Total
(general purpose)
128 points
16-bit counting up (latched*) C112 ~ C127, 16 points Counter indicated by CNT
32-bit C235 ~ C238, C241, C242, (DCNT) instruction. If
1-phase 1 input
C Counter counting C244, 7 points counting reaches its
up/down 1-phase 2 inputs C246, C247, C249, 3 points Total target, the C contact of
high-speed 13 points the same No. will be On.
counter 2-phase 2 inputs C251, C252, C254, 3 points
(latched*)

When the counting


C0 ~ C127, 16-bit counter, 128 points reaches the target, the
C Present value of counter
C235 ~ C254, 32-bit counter, 13 points contact of the counter will
be On.

SA/SX/SC series MPU:


C0 ~ C95, 96 points (*1)
16-bit counting up Total
C96 ~ C199, 104 points (*3)
235
C200 ~ C215, 16 points (*1)
32-bit counting up/down points
C216 ~ C234, 19 points (*3)
C235 ~ C244, 1-phase 1 input, 9
points (*3)
Total Counter indicated by
For SA/SX, 32-bit high- C246 ~ C249, 1-phase 2 inputs, 3
16 CNT (DCNT) instruction.
speed counter points (*3)
C Counter points If counting reaches its
C251 ~ C254, 2-phase 2 inputs, 4
target, the C contact of
points (*3)
the same No. will be On.
C235 ~ C245, 1-phase 1 input, 11
points (*3)
Total
For SC, 32-bit high-speed C246 ~ C250, 1-phase 2 inputs, 4
19
counter points (*3)
points
C251 ~ C255, 2-phase 2 inputs, 4
points (*3)

When the counting


C0 ~ C199, 16-bit counter, 200 points
reaches the target, the
C Present value of counter C200 ~ C254, 32-bit counter, 50 points (SC: 53
contact of the counter will
points)
be On.

Latched settings for all devices in SA/SX/SC series MPU:


32-bit high-speed counting
16-bit counting up 32-bit counting up/down
up/down
C0 ~ C95 C96 ~ C199 C200 ~ C215 C216 ~ C234 C235 ~ C255
C
(Counter) Default: latched It is fixed to Default: latched Default: latched
It is fixed to be
be non-
non-latched Start: D1208 (K96) Start: D1210 (K216) Start: D1212 (K235)
latched
End: D1209 (K199) End: D1211 (K234) End: D1213 (K255)

EH/EH2/SV series MPU:


C0 ~ C99, 100 points (*2)
16-bit counting up
C100 ~ C199, 100 points (*3) Counter indicated by
32-bit counting C200 ~ C219, 20 points (*2) Total CNT (DCNT) instruction.
C Counter up/down C220 ~ C234, 15 points (*3) 253 If counting reaches its
C235 ~ C244, 1-phase 1 input, 10 points (*3) points target, the C contact of
32-bit high-speed
C246 ~ C249, 1-phase 2 inputs, 4 points(*3) the same No. will be On.
counter
C251 ~ C254, 2-phases 2 inputs, 4 points (*3)
Latched settings for all devices in EH/EH2/SV series MPU:
16-bit counting up 32-bit counting up/down 32-bit high-speed counting up/down
C0 ~ C99 C100 ~ C199 C200 ~ C219 C220 ~ C234 C235 ~ C245 C246 ~ C255
C Default: non- Default: non-
(Counter) Default: latched Default: latched Default: latched
latched latched
Start: D1208 (K100) Start: D1210 (K220) Start: D1212 (K235)
End: D1209 (K199) End: D1211 (K234) End: D1213 (K255)

You might also like