3-25
3
3.6
MODbUS COMMANDS
The following commands are used to control Modbus slave devices. These
Modbus Commands should not be mixed or concatenated with IEEE-488.2 or
SCPI commands.
TAbLE 3-5 MODbUS COMMANDS
Syntax
Meaning
C addr
Modbus Address Command. Sets Modbus slave device
address for subsequent commands. Value for addr is 0 to
255. Default setting is 1.
RC[?] reg, ncoil
Read Coil Status Command (code 0x01). Reads the status
of coils in a remote device. User specifies starting coil
address in register reg and number of coils to be read
ncoil. The [?] is an optional symbol for smart programs.
(4)
Values for reg are 0 to 65535. Values for ncoil are 1 to
2000. Responses are returned as a packed binary value
with 1 bit per coil. 1 = ON.
RI[?] reg, ninp
Read Discrete Inputs Command (code 0x02). Reads
discrete inputs. User specifies starting address in register
reg and number of inputs to be read ninp. The [?] is an
optional symbol for smart programs.
(4)
Values for reg are
0 to 65535. Values for ninp are 1 to 2000. Responses are
returned as a packed binary value with 8 inputs per byte.
1 = ON.
R[?] reg, num
Read Register Command (code 0x03). Reads one or multiple
Modbus device registers. User specifies starting register
reg and number of registers to be read num. The [?] is an
optional symbol for smart programs.
(4)
Values for reg are
0 to 65535. Values for num are 1 to 64. Responses are
returned as signed 16-bit decimal or HEX values , +32767
to -32767, separated by commas. Output format selected
with the Format command. i.e.
R? 0,1 reads Watlow Model Number. Response is 5270
for Watlow Model F4
R? 0,3 reads three successive registers. Response is 5270,
0, 123 for the Watlow F4 Controller.
RR[?] reg, num
Read Input Register Command (code 0x04). Reads one or
multiple Modbus device registers. User specifies starting
register reg and number of registers to be read num. The [?]
is an optional symbol for smart programs.
(4)
Values for reg
Содержание 9099
Страница 20: ...1 16 1 Figure 1 1 9009 Outline Dimensions ...
Страница 24: ...1 20 1 Figure 1 3 9099 Certificate of Compliance ...
Страница 54: ...3 8 3 Figure 3 1 Status Reporting Structure Flash Configuration Reset ...
Страница 94: ...3 48 3 This page left intentionally blank ...
Страница 100: ...4 4 6 This page is left intentionally blank ...
Страница 161: ...A 49 A4 Refer to the ErrorLogger utility for the error value definitions Error Meaning 0 No error ...