1. Place a UP/DOWN Counter on the Logic Program. |
|
A. |
Place a switch to reset when the current value of the counter has reached the preset value. Also, place the Coil that the counter reset bit is allocated to, ahead of the switch. |
B. |
Place the Output that turns ON when the current value has reached the preset value. |
C. |
When the counter up instruction bit.UP is ON, it will be a UP Counter. When the counter up instruction bit.UP is OFF, it will be a DOWN Counter. |
|
|
2.Add the instruction that turns ON/OFF the counter up instruction bit.UP. |
|
The bit of Q and QD turn ON when it has reached the preset count number at the time of the DOWN Counter.
If you allocate the counter up instruction bit.UP on a Set Coil ahead of the Normally Open that QD has been allocated to, it changes to a UP Counter after the preset count numbers has passed, and then start counting again.
Similarly, the bit of Q and QU turn ON when it has reached the preset count number at the time of the UP Counter. If you allocate the counter up instruction bit.UP on a Reset Coil ahead of the Normally Open that QU has been allocated to, it changes to DOWN Counter.
|
|
3.Place the Keypad Display that input the preset value of the counter on the screen. |
|
From the pull-down menu beside the Word Address, select the “variable name.PT” that has been allocated in the counter. |
|
4.Place the reset switch on the screen. |
|
From the pull-down menu beside the Bit Address, select the variable that is same as the one allocated on the Normally Open. (This Normally Open has been placed in front of the Coil that the counter reset bit has been allocated to.) |