Documente Academic
Documente Profesional
Documente Cultură
TCP
Client/Server communications protocol designed
by Modicon in 1979 for use with its PLCs
Openly published and free of royalties or licensing
fees
The most common industrial communications
protocol in the US
Used widely for Building Management Systems
Passes raw words of bits without processing them
Originally a serial protocol very similar to RS-485,
it now has a TCP variant
Also available as Modbus Plus, which is
proprietary to Modicon and requires specialized
hardware
Modbus and Modbus
TCP
Basic Modbus protocol does not support floating
point or ASCII
A MODBUS Request is the message sent on
the network by the Client to initiate a transaction
A MODBUS Indication is the Request message
received on the Server side
A MODBUS Response is the Response
message sent by the Server
A MODBUS Confirmation is the Response
Message received on the Client side
Modbus TCP
Modbus TCP
Basic Requirements
1 IP future IP future Server IP0 Server IP1 Server IP2 Server IP3
2 Future Spare Future Spare
4- Repeat above for Sockets 1-3 Repeat above for Sockets 1-3
0xB
0xC TBD TBD Period Timer Period Timer 3 Period Timer Period Timer 1
(8 bits) (8 bits) 4 (8 bits) 2 (8 bits)
(8 bits) (8 bits)
0x8 Start of 16 bit Client/Server Modbus Buffer Start of 16 bit Client/Server Modbus Buffer
0
The PMAC Modbus/TCP-IP
configuration
& buffer memory format
The Socket Modes ( upper 4 of 8 bits):
0 - Socket NOT ACTIVE
1 - Server TCP, PMAC ASCII protocol.
IP Address = 0.0.0.0
2 - Server TCP, PMACtoClient Interrupt ASCII string.
IP Address = 0.0.0.0 Only available on
Turbo UMACs.
3 - Server Modbus/TCP-IP. IP Address not used.
4 - Client Modbus/TCP-IP. IP Address of Server.
$370000040020,$000004040024
$37 = Timer 1, FC 23
$0000 = Modbus Reference Number = 0
First Word = Read Data
$04 = Length = 4
$0020 = PMAC Reference Number = $20
Wago1Proxy:ht=1:ha=0030DE00B6DF:ip=192.168.0.52:T3=0A.01.FE
.01:
M1660
(base+
read frequency command $80) FC3 2330 1 1
set frequency command -
NOTE - divide by 10 to
get freq - so 500 = 50.0 m1661 FC16 2330 2 1