Skip to content

Script file top-level fields ​

json
{
  "firmware": "reference",
  "on_error": "skip",
  "loop": 1,
  "loop_infinite": false,
  "same_line": false,
  "channel_a": { "enabled": true, "transport": "tcp", "ip": "127.0.0.1", "port": 502,
                 "role": "master", "slave_id": 1, "timeout_ms": 1000, "retry": 1 },
  "channel_b": { "enabled": false, "transport": "tcp", "ip": "127.0.0.1", "port": 502,
                 "role": "master", "slave_id": 1, "timeout_ms": 1000, "retry": 1 },
  "cases": [ { "test": "Case name", "steps": [ ... ] } ],
  "subroutines": [ ... ]
}
FieldMeaning
firmwareFirmware version text on the report (Firmware, bottom left of the screen)
on_errorOn a communication failure: skip (default, skip the rest of this case) or continue. See Concepts › 4.
loopNumber of rounds. 0 means no limit
loop_infinitetrue means no limit (∞ on screen)
same_lineWhen true, channel B shares channel A's line (the same serial port or TCP connection) and only uses its own Slave ID
channel_a / channel_bChannel settings, fields in the next table
casesList of cases. Each has test (the name, up to 63 characters) and steps
subroutinesList of subroutines, see Subroutine

Channel settings:

FieldMeaning
enabledWhether the channel is used
transporttcp or rtu
ip, portTCP address and port
device, baud, parity, data_bits, stop_bitsRTU serial settings. parity is N, E or O
rolemaster (sends requests) or slave (answers requests)
slave_idUnit ID
timeout_ms, retryResponse timeout and number of retries

Roach Modbus Tool by Mr.Roach