General information
Fast counters and pulse outputs are available in the THINGET XC for motion control. Individual transistor inputs and transistor outputs are designed as high-speed counters or pulse outputs.
High-speed counters
The THINGET XC series has 4 to 6 high-speed counter inputs, which are intended for signals from rotary encoders and can be read out in different ways using the high-speed counter functions.
Single-phase incremental counter
All 4 to 6 high-speed counter inputs can be read out as simple single-phase incremental counters. The first input, in the case of the XC3-32 or XC5-60 even the first two inputs, counts at up to 80 kHz, the other 3 to 4 at 10 kHz. The XC3-14 only supports 10 kHz.
The single-phase high-speed counters are located in the memory in the counter range C600 to C619. Attention, high-speed counters are always 32-bit counters, so only even counters should be addressed.
Incremental counters with direction detection
The high-speed counters can also be read out as counters with a pulse and a direction input. In this case, the first input also supports 80 kHz, the others 10 kHz.
The high-speed counters with direction input are located in the memory at C620 to C629 and are also 32-bit counters.
AB phase counter
The inputs can also be used as two-phase AB phase counters. The first two inputs again support 80 kHz, but the others only support 5 kHz in this mode.
The two-phase AB counters are read out via the counter memory C630 to C639 and are also 32-bit counters.
A detailed specification of the input assignment for high-speed counters can be found in chapter 5 of the manual.
High-speed counter commands
The contacts of the high-speed counters are simply set via a coil(OUT). OUT C600 K1000000, for example, sets output C600 as soon as the high-speed counter reaches 1 million. High-speed counters are reset as normal via RST (Reset), RST C600 resets counter C600.
High-speed counter readings are read via the HSCR (High Speed Counter Read) command. HSCR requires two parameters, a counter to be read and a start register in which the value (32 bits) is to be entered. HSCR C630 D10, for example, writes the current value from the AB counter 630 to registers D10 and D11. HSCW (High Speed Counter Write) writes the counter values accordingly.
Interrupts of high-speed counters
Each high-speed counter can trigger 24-segment interrupts. Details can be found in chapter 5 of the manual.
Pulse outputs
The XC PLC has pulse outputs for motion control. Details on the pulse commands can be found in chapter 6 of the manual.