Example - Ladder Diagram
HSC
The HSC instruction counts up the pulses from the terminal of the channel, Ch, and accumulates the number of pulses in the assigned DWORD data register D.
Ladder Diagram Example
When the contact, M0.0, is powered ON (1), the HSC instruction counts up, saving the current count in the data register, D0.