Data transfer via communication ports
776
Part III FP Instructions
085 7
111
Hex
16#10118507
WY0
1
16#0000
CRC16 (H)
CRC16 (L)
11
01
00
17
00
01
DC
59
1
2
3
4
5
6
7
8
s1_ControlData
-
-
-
Higher word
Lower word
0 fixed
COM port
(16#1 or 16#2)
Unit No.
(16#00 to 16#63)
(0 to 99)
Bit unit
transmission
Bit No. of Master
(16#0 to 16#F)
Bit No. of Slave
(16#0 to 16#F)
To generate function code 01, bit unit transmission (16#8) must be specified.
s1_ControlData:
s2_SlaveStartAddrType:
s2_SlaveStartAddrOffs:
d_MasterStartAddr:
Modbus command
Command
conversion
Slave address
Function code (16#01)
Starting No. (H)
Starting No. (L)
No. of coils to read (H)
No. of coils to read (L)
Starting No. is the first coil to read in the
slave (here: Y17)
The No. of coils to read must be 1
The compiler calculates the higher word from Port and SlaveAddress. The
higher word is set implicitely.
The lower word is specified by NumberOfWords_BitsInWords.
For Relay T/C Register Constant
Port WX WY WR WL
DT LD FL -
Slave Address WX WY WR WL - - DT LD FL dec or hex
SlaveWord Address
Type
WX WY WR WL - - DT LD FL -
SlaveWord
AddressOffs
WX WY WR WL - - DT LD FL dec or hex
NumberOfWords_
BitsInWords
WX WY WR WL - - DT LD FL dec or hex
Master WordData WX WY WR WL - - DT LD FL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 permanently
port 0 (global transmission) gets no
response from COM1 or COM2.
slave data or master data exceeds the
available address range
SlaveWordAddressType: Offset 0
the communication mode (see page 712)
is not set to ME
WTOCOL-C
OM
Master/Slave or Modbus RTU
Master/Slave.
the selected COM port requires a
communication cassette that has not
been installed.
Operands
Error flags