SPLat Logo

PresetMultRegs - 16, SlaveAddr, RegAddr16, ItemCount, SPAddr16, SPMode

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

PresetMultRegs - 16, SlaveAddr, RegAddr16, ItemCount, SPAddr16, SPMode

A ModBus Master script command

When processed this command will result in the SPLat master sending out a ModBus function 6 query (Force multiple holding registers), then wait for the response.

Parameters are:

ItemBit LengthDescription
SlaveAddr 8 An 8-bit slave address
RegAddr16 16 The 16-bit, 0-based address of a holding register (4xxxx reference) in the slave.
ItemCount 8 An 8-bit count of how many 16-bit registers are to be written in the slave. The minimum is 1. The maximum is determined by available communications buffer size (documented elsewhere). ItemCount contiguous items will be written.
SPAddr16

16

A 16-bit RAM address within the SPLat master's RAM.

NumberFormat 8 Specifies the number format sent from the slave, either byte (8 bits), word (16 bits, standard) or float together with the endianness of the value.