MODBUS meter-switch supports the following commands:
Requests device firmware and board version.
Performs device restart.
Communication check with device.
Changes polling interval permanently (persists after start).
Request: 03003C
03 - Command003C - time in seconds (60 sec)Response (example):
01f412011b000000000000000000000000000000000000001b0000002a0010000000000000000000000000000000050000093101f4220000006400000000Response: 11f411000000060000008c0000011800000001000000010000005f000000020000000a000000620000004b0000007800000005
Setpoint packet decoding:
11) – packet type ("setpoints")f4) – polled device type11) – current data packet number01 - read 16-bit setpoint (up to 12 per request)02 - write 16-bit setpoint (up to 12 per request)03 - write to control register (uses modbus control function)04 - read 32-bit setpoint (up to 8 per request)05 - write 32-bit setpoint (up to 8 per request)Examples:
Read setpoint 4a41:
044a41
Response: 2104044a410000008c (setpoint value 0x4a41 = 0x0000008c)
Read two setpoints 4a41 and 4a4b:
044a414a4b
Response: 2104044a410000008c4a4b00000118
Write values to setpoints:
054a410000008c4a4b00000118
Response: 2104054a41004a4b00 (status 0x00 = success)
Request pulse input settings with mandatory input number specification [1,2,3].
Example: 4101 - request first input settings
Response: 210141010001006401010001000100
Decoding:
210141 - header01 - input number00 - operation result (0 - success)01 - operating mode0064 - debounce time (100ms)01 - state transmission enabled in main packet01 - main counter enabled in main packet00 - total counter transmission disabled in main packet01 - main counter transmission enabled in alert packet00 - total counter transmission disabled in alert packet01 - reset enabled after main counter value transmission in main packet00 - [reserved]Set pulse input settings with mandatory input number specification [1,2,3].
Example: 420101006401010001000100
Request decoding:
42 - request code01 - input number01 - operating mode0064 - debounce time (100ms)01 - state transmission enabled in main packet01 - main counter enabled in main packet00 - total counter transmission disabled in main packet01 - main counter transmission enabled in alert packet00 - total counter transmission disabled in alert packet01 - reset enabled after main counter value transmission in main packet00 - [reserved]Response: 21014200
210142 - header00 - successful write and settings application (01 - error)Request counter values for one or more inputs with mandatory input number specification [1,2,3]. When sending 0 as input number, response will contain values for all inputs.
Example 1: 4300 - request values for all inputs
Response: 2101430000010c0000000A000000000000000A020c000000050000000000000005030c000000000000000000000000
Decoding:
210143 - header00 - input number from request00 - result (0 - success, 1 - error)01 - input number for which data follows0c - number of bytes following0000000A - current main counter value000000000000000A - current total counter value02 - input number for which data follows0c - number of bytes following00000005 - current main counter value0000000000000005 - current total counter value03 - input number for which data follows0c - number of bytes following00000000 - current main counter value0000000000000000 - current total counter valueExample 2: 4301 - request values for first input
Response: 2101430100010c0000000A000000000000000A
210143 - header01 - input number from request00 - result (0 - success, 1 - error)01 - input number for which data follows0c - number of bytes following0000000A - current main counter value000000000000000A - current total counter valueRequest counter and other current values for one input with mandatory input number specification [1,2,3].
Example: 4401
Response: 2101440100011601010000000a000000000000000a000000000000000b
Decoding:
210144 - header01 - input number from request00 - result (0 - success, 1 - error)01 - input number for which values are provided16 - number of bytes following01 - operating mode01 - current input state0000000a - current main counter value000000000000000a - current total counter value000000000000000b - current total counter value without debounceReset main and total counter values for one input with mandatory input number specification [1,2,3].
Example: 4501
Response: 21014500
210145 - header00 - result (0 - success, 1 - error)Packet sends specified values from input parameters. If transmission of all parameters for an input is disabled, the input is not present in packet (e.g., in example there's no 3rd input). State or counter may also be absent (e.g., input 2 without counter). Number of inputs is ALWAYS present in packet. Therefore, if transmission of all data for all inputs is disabled, the input count byte will be 0.
Example: 01f1020106010000000000020201000101020203030404050506060707080809090a0a0b0b0c0c
Decoding:
01f1 - packet type and active profile02 - number of pulse inputs following01 - input number06 - number of bytes following01 - current input state (sent when 1 in corresponding parameter)00 - alarm presence (sent when 1 in corresponding parameter)00000000 - current counter value (sent when 1 in corresponding parameter)02 - input number02 - number of bytes following01 - current input state (sent when 1 in corresponding parameter)00 - alarm presence (sent when 1 in corresponding parameter)0101020203030404050506060707080809090a0a0b0b0c0c - profile 485 dataPacket always sends state for all inputs. But other parameters like counters may also be present.
Example: aa00010106010000000000020106010000000000030406010000000002
Decoding:
aa - packet type, alert00 - reserved01 - input number01 - operating mode06 - number of bytes following01 - current state00 - active alert presence00000000 - main counter value (sent when 1 in corresponding parameter)02 - input number01 - operating mode06 - number of bytes following01 - current state00 - active alert presence00000000 - main counter value (sent when 1 in corresponding parameter)03 - input number04 - operating mode06 - number of bytes following01 - current state00 - active alert presence00000002 - main counter value (sent when 1 in corresponding parameter)Meter-switch is supplied with built-in firmware that ensures meter-switch operation with characteristics specified in this document.
Meter-switch configuration is performed using control commands sent to the meter-switch via wireless network.
Full command documentation available in ROSSMA Configurator.