LearnSCADABOOKS

Understanding Modbus

Controller Modbus bus 01 03 00 2A Meter Drive Sensor
1979
Modicon · PLC to I/O over a serial line
Published openly
No license fee · no permission needed
Factory floors
Water treatment
Building automation
Solar inverters
Energy meters
Sensors & gateways
Understanding Modbus by Charles Vance
Coils1 bit · read and write
Discrete inputs1 bit · read only
Input registers16 bits · read only
Holding registers16 bits · read and write
the addressing trap: 40001 is address 0
Responsethe server answers
Exceptionthe server says no
Silencethe hardest case
01
server
address
03
read holding
registers
00 2A
starting address
42

RTU

RS-485 serial line
framed by silence
CRC check

ASCII

the same bytes
written as text
LRC check

TCP

over Ethernet
MBAP header
no checksum needed

Raspberry Pi Python · pymodbus USB to RS-485 Real device meter · drive · sensor
1A Modbus client
2Your own server
3Signed integers and floats
4The word-order trap
5A monitoring and control project
Troubleshootinga repeatable method
Pollingstrategies that scale
Securityfor a protocol born without it
newer protocols, layered above
SCADA
PLCs · gateways
Modbus devices
214pages, illustrated
19chapters with exercises
5reference appendices
Small enough to hold in your head. Old enough to be stable.
Part I · Foundationsdata model · request and response
Part II · The protocolframe · function codes · RTU, ASCII, TCP
Part III · Hands-onRaspberry Pi · Python · pymodbus
Part IV · Doing it welltroubleshooting · performance · security
Charles Vance
Understanding Modbus
Paperback and Audible on Amazon · PDF
learnscada.com
Click or Space to start · R restart · C captions · V vertical/horizontal · F fullscreen