6F3B0253
262 T1-16S 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 written into the set value register (SW18).
While R010 is ON, the soft-gate (S240) and the interrupt enable flag (S241) are set to
ON to enable the counter operation.
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