Knowledge Base

The following table lists the ModBus functions supported in SPLat, with a brief description of the function. This is not meant as a detailed treatment of ModBus; you should refer to the published specifications online at places like modbus.org. The hotlinks in the M/S column take you to the corresponding ModBus master script command (described later).

FunctionNameM/SModicon refDescription
1Read Coil(s)M S0xxxxReads out one or more contiguous coils (external outputs or internal 1-bit variables, i.e. semaphores)
2Read inputsM S1xxxxReads one or more contiguous inputs. In a slave SPLat accesses the debounced inputs.
3Read holding registersM S4xxxxReads one or more contiguous Modicon type 16-bit holding registers. In a SPLat slave the addresses are mapped to RAM (data memory).
4Read input registersM3xxxxReads one or more contiguous Modicon type 16-bit input registers. Some 3rd party products map internal values to these registers. Not supported in SPLat slave.
5Force single coilM S0xxxxForces a single coil (Modicon: external output or internal 1-bit variable, i.e. semaphore). Force external outputs with caution! SPLat slave allows selective write protection.
6Preset single holding register.M S4xxxxForces a value into a single Modicon type 16-bit holding register. In a SPLat slave the addresses are mapped to RAM (data memory).
15Force multiple coilsM S0xxxxForces one or more contiguous coils (external outputs or internal 1-bit variables, i.e. semaphores). Force external outputs with caution!
16Preset multiple holding registers.M S4xxxxForces data values into one or more Modicon type 16-bit contiguous holding registers. In a SPLat slave the addresses are mapped to RAM (data memory).