![](/images/shim.gif) |
![](/images/shim.gif) |
Sample of Up/Down Counter Settings |
![](/images/shim.gif) |
Set the preset value on the screen, and create the counter to pass power when the current value gets the preset value or gets "0" by counting up/down the value of Pulse Input.
1. |
Place the Up/Down Counter on Logic Program
|
|
A.
|
Set the specified variable (e.g.; Up and Down Counter) on the placed Up/Down Counter.
|
B.
|
Place "Coil Output" which will be ON when the current value of the counter gets the setting value or "0", and set the specified variable (e.g.; Output).
|
C.
|
Place "Positive Transition" to provide Pulse, and set the specified variable (e.g.; Input).
|
D.
|
Place Normally Open to reset the current value of the counter, and the specified variable (e.g.; Reset Switch).
Also place the coil which has been allocated Counter Reset Bit (Up/Down Counter. R) ahead of Normally Open.
|
|
|
|
2. |
Add the instruction to turn ON/OFF the Counter Up Specifying Bit Variable "Up (e.g.; Up and Down Counter.UP).
*1 |
With Up/Down Counter, you can set Up Counter by turning ON the Up Operation Bit Variable "UP (e.g.; Up and Down Counter.UP)", or Down Counter by turning it OFF.
|
*2
|
In case of Up Counter, when the current value "CV" gets the preset value "PV", Output Bit "Q" and "QU" will be ON.
In case of Down Counter, when the current value "CV" gets "0", Output Bit "Q" and "QD" will be ON.
|
|
|
・
|
In case that you place "SET (Set Output)" ahead of Normally Open which has been allocated QD (e.g.; Up and Down Counter.QD) and allocate the Counter Up Instruction Bit Variable"UP (e.g.; Up and Down Counter.UP)", when "CV" gets the setting value by counting up, it will change to Down Counter and start counting down. In the same way, in case that you place "RST (Reset Output)" ahead of Normally Open which has been allocated QU (e.g.; Up and Down Counter.QU) and allocate the Counter Up Instruction Bit Variable"UP (e.g.; Up and Down Counter.UP)", when "CV" gets "0" by counting down, it will change to Up Counter and start counting up.
|
(
|
|
|
3. |
Place Data Display on the screen, and allocate the variable "PV (e.g,; Up and Down Counter. PV)", which you have set on "CTUD", to Monitor Word Address.
|
|
|
4.
|
Place the Bit Switch on the screen, and allocate the variable (e.g.; Reset Switch), which you have set on "NO (Normally Open)", to Bit Address.
|
|
|
|
Settings completed.
|
|
|
|