Serial Port Monitor Protocol Analyzer Data Logger - Com Port Monitoring and Analyzing Software for Windows
Send the Report SlaveID response. This response is device-specific, it has 2 variable length fields: SlaveID field and AdditionalData field.
The function throws an exception if you specify incorrect values for the requests parameter. The function also throws an exception if there is too many or too little values, as well as if the total length of the packet exceeds 255 bytes.
// send 1 byte (255 in this example) as SlaveId field data // and 2 bytes (255,100 in this example) as AdditionalData field data // RunIndicatorStatus field is 0 modbus_session.reportSlaveIDResp(0, [ 255 ], [ 255, 100 ]);