274 T1/T1S User’s Manual
8. Special I/O Functions
Operation
Count input
Reset input
Soft-gate
Count value
Interrupt
Sample program
(H1003)
In this example, 4099 ( H1003) is set in SW16. As a result, the single phase up-counter
(channel 1 only) is selected.
When R010 comes ON, the data 2000 is writt en int o t he set value register (SW18).
While R010 is O N, the soft - gate (S240) and t he int er r upt enable flag ( S241) ar e set to
ON to enable the count er oper ation.
The counter works as a ring counter with the set value 2000. The count value is stored in
SW22.
When R010 is OFF and R011 comes ON, the count value is preset to the data of D0100.
Set value
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net