DMC-40x0 Command Reference MB • 161
MBh = addr, 3, m, n, array[] where
m is the starting register number
n is the number of registers
array[] will hold the response
MBh = addr, 4, m, n, array[] where
m is the starting register number
n is the number of registers
array[] will hold the response
MBh = addr, 5, m, n where
m is the starting bit number
n is 0 or 1 and represents the coil set to off or on.
MBh = addr, 6, m, n where
m is the register number
n is the 16 bit value
MBh = addr, 7, array[] where
array[] is where the returned data is stored (one byte per element)
MBh = addr, 15, m, n, array[] where
m is the starting bit number
n is the number of bits
array[] contains the data (one byte per element)
MBh = addr, 16, m, n, array[] where
m is the starting register number
n is the number of registers
array[] contains the data (one 16 bit word per element)
MBh = addr, 17, array[] where
array[] is where the returned data is stored
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL CONTROLLERS
Note: Port 502 must be used as the Modbus Ethernet handle. See the IH command for more info on how to
open a handle with a specific port number.