
In practical industrial field applications, the inherent communication speed limitations of the Modbus TCP protocol often make it difficult to meet the real-time requirements for high-speed pulse counting of equipment. To address this, this article details a solution based on Solidot's Remote I/O XB6S High-Speed Counter Module XB6S-PC80, enabling reliable and efficient high-speed pulse counting functionality within a Modbus TCP network environment.

In this example, a pulse generator (NPN type) is used. Therefore, the physical wiring involves connecting the pulse output to A0 and the 24V supply to A9 (i.e., COM).
1. Connecting the Coupler
Use Modbus Poll software as the master station to connect to the coupler.

2. Monitoring and Reading PC80 Data Addresses
Access the web interface to confirm the read addresses are 0-31 with Function Code 03; the write address is 0 with Function Code 16.

The read data consists of the count values and speeds for eight channels. The write data controls the enable and count clear switches for the eight channels.


3. Modbus Poll Software Configuration
Read Settings

Write Settings

The count value and speed for each channel are 4 bytes each and should be viewed as 'Long (32-bit)'. The enable and clear data are 1-bit and should be viewed as 'Binary'.

Using a pulse generator to send pulses at 500Hz, enable counting for Channel 1, and monitor the data.

Use the clear count switch to reset the count value.

When the clear switch is activated, the count value resets to zero. If the enable switch remains ON, counting restarts immediately, as shown in the figure above.
The above details the application of Solidot's Remote I/O XB6S High-Speed Counter Module XB6S-PC80 under the Modbus TCP protocol. Thank you for watching.