SPLat Logo

ModBus: Slave configuration

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

ModBus: Slave configuration

Configuring a SPLat as a ModBus slave is very simple. You simply need to set up a Communications Control Block (CCB) with the required parameters and invoke it with a ComSetCCB instruction.

The CCB contains the address of the slave, and is frozen at design time. If you need the address to be set dynamically, say from user input, you can use the ComDevAddr instruction. The ComDevAddr instruction must be executed after the ComSetCCB instruction.