What is Modbus?
=> Modbus is a serial communication protocol developed by Modicon
published by Modicon (now Schneider Electric) in 1979 for use with its
programmable logic controllers (PLCs). In simple terms, it is a method used for
transmitting information over serial lines between electronic devices. Modbus
has Master device and Slave devices.
What is Master & Slave Device?
=> The device requesting the information is called the Modbus Master
and the devices supplying information are Modbus Slaves. In a standard
Modbus network, there is one Master and up to 256 Slaves, each with a
unique Slave Address from 0 to 255. The Master can also write information
to the Slaves. We have to define every device as a master or slaves as per its
work.
=> Slave devices can supply information to only one Master device at
a time. One slave can't response to more then one master device.
Communication protocol used in Modbus =
=> RS485 is mostly used communication protocol in industry and
instruments thereafter RS232, RS422 and TCP/IP (Ethernet) used in Modbus.
What is Slave ID?
=> Each slave in a network is assigned a unique unit address from 0
to 255. When the master requests data, the first byte it sends is the
Slave address. This way each slave knows after the first byte whether or
not to ignore the message.
=> Slave Id also known as Device ID or Node Address
What is Function Code?
=> The second byte sent by the Master is the Function code. This
number tells the slave which table to access and whether to read from or
write to the table. Most common function code details are given bellow.
1) Function Code 01 - We can read Input Register (0xxxxx)
2) Function Code 03 - We can read Holding Registers (4xxxxx)
3) Function Code 05 - We can write Input Register (0xxxxx)
4) Function Code 06 - We can write Single Holding Register (4xxxxx)
5) Function Code 16 - We can write Multiple Holding Register (4xxxxx)
Data Stored in Modbus? (Addressing)
=> Status are single Bit address where Digital bit can stored
1] Coil Status - (00001) to (09999)
2] Input Status - (10001) TO (19999)
=> Register are 16 Bit address where Analog Value can stored
4] Input Register - (30001) To (39999)
Software used for Modbus -
=> 'Modbus Data Scanner' is unique software for read/write addresses from
computer where your computer will work as Master devices and your PLC or any
other device will work as a slave.
No comments:
Post a Comment