
|
| Appendix D How to Use PLC Function | |
Mnemonic |
| Function | |
|
|
| |
CNT |
| ||
|
|
| |
Operand | C0~C7, K0~K32,767 | ||
|
| ||
C0~C7, D0~D29 | |||
| |||
|
|
|
Explanations:
1.When the CNT command is executed from OFFÆON, which means that the counter coil is driven, and 1 should thus be added to the counter’s value; when the counter achieved specific set value (value of counter = the setting value), motion of the contact is as follows:
NO(Normally Open) contact | Continuity |
|
|
NC(Normally Closed) contact | |
|
|
2.If there is counting pulse input after counting is attained, the contacts and the counting values will be unchanged. To
Program Example: |
|
|
|
|
| ||||
Ladder diagram: |
|
| Command code: | Operation: | |||||
| X0 |
|
| LD | X0 | Load contact A of X0 C2 counter | |||
|
|
|
| CNT | C2 | 0 | K100 |
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
| CNT | C2 K100 | Setting is K100 |
Mnemonic
MC / MCR
Operand
Function
Master control Start/Reset
N0~N7
Explanations:
1.MC is the
Timer
Accumulative timer
Subroutine timer
Revision June 2008, 04EE, |