mbusm cond n b t [sid1, r1, dt1, md1, Md1] [sid2, r2, dt2, md2, Md2] [mt]

*This is command is used when CTM200 is being used as a MODBUS Master*

Set the condition that will trigger a MODBUS Master report. The conditional operator is used to indicate how all of the following parameters will be used to determine if a report is triggered.

n = 1 to 8MODBUS Master trigger condition number
b = 0Conditional operator for all parameters: Off (default)
b = 1Conditional operator for all parameters: AND
b = 2Conditional operator for all parameters: OR
t = 0Timeout disabled (default)
t = 1 to 65535Timeout in seconds
sid1 = 0Disable comparing register r1 of sid1 (default)
sid1 = 1 to 4MODBUS Slave device ID
r1 = 0Disable comparing register r1 of sid1 (default)
r1 = 1 to 65536Register address in sid1
dt1 = 0Data type: Single bit, discrete output (default)
dt1 = 1Data type: Single bit, discrete input
dt1 = 2Data type: 2 bytes, 16-bit register input
dt1 = 3Data type: 4 bytes, 32-bit integer input
dt1 = 4Data type: 4 bytes, 32-bit float input
dt1 = 5Data type: 2 bytes, 16-bit register output
dt1 = 6Data type: 4 bytes, 32-bit integer output
dt1 = 7Data type: 4 bytes, 32-bit float output
md1Low data value of r1. Data type is defined by dt1 (0 is default)
Md1High data value of r1. Data type is defined by dt1 (0 is default)
sid2 = 0Disable comparing register r2 of sid2 (default)
sid2 = 1 to 4MODBUS Slave device ID
r2 = 0Disable comparing register r2 of sid2 (default)
r2 = 1 to 65536Register address in sid2
dt2The same as dt1
md2Low data value of r2. Data type is defined by dt2 (0 is default)
Md2High data value of r2. Data type is defined by dt2 (0 is default)
mt = 0 to 65535Maximum reporting rate in seconds (minimum time between reports) (0 is default)

Notes:


Examples:

  1. Send MODBUS Master report 1 every 60 seconds :
    cmd mbusm cond 1 1 60
  1. Send MODBUS Master report 2 every 60 seconds AND if register 2 of MODBUS Slave 1 is between 10 and 20 :
    cmd mbusm cond 2 1 60 1 2 5 10 20
  1. Send MODBUS Master report 3 every 60 seconds OR if register 2 of MODBUS Slave 1 is between 10 and 20, OR if register 3 of MODBUS Slave 4 is between 100 and 200, with a maximum report rate of one report every 10 seconds :
    cmd mbusm cond 3 2 60 1 2 5 10 20 4 3 5 100 200 10
  1. Query the conditions used to trigger all MODBUS Master reports :
    cmd mbusm cond
  1. Query the conditions used to trigger MODBUS Master report 2 :
    cmd mbusm cond 2

See also: MODBUS


Firmware revision 2.0.4.2702

Last modified 7 years ago Last modified on 12-12-21 10:47:08 AM