Está en la página 1de 14

Introduction to communication

Modbus training

Which media? RS485/422, RS232, fiber, etc. End and bias resistances Introduction to serial communication Whats modbus and what can I use it for? Modbus functions (reference book) Function Codes Supported by Controllers PLC addresses versus Modbus addresses and function Modbus RTU and Modbus ascii frames TCP/IP modbus Diagnostic tools

Media type and data serialization

Modbus Functions list

01 Read Coil Status 02 Read Input Status 03 Read Holding Registers 04 Read Input Registers 05 Force Single Coil 06 Preset Single Register 07 Read Exception Status 08 Diagnostics 09 Program 484 10 Poll 484 11 Fetch Communication Event Counter 12 Fetch Communication Event Log 13 Program Controller 14 Poll Controller 15 Force Multiple Coils 16 Preset Multiple Registers

17 Report Slave ID 18 Program 884/M84 19 Reset Comm. Link 20 Read General Reference 21 Write General Reference 22 Mask Write 4X Register 23 Read/Write 4X Registers 24 Read FIFO Queue

Modbus controllers type

Modbus frames

Modbus functions and addresses

Modbus RTU versus Modbus ascii


Modbus RTU frame example: Tx:01 03 0F A1 00 01 D6 FC, Rx:01 03 02 FF CE 78 20 (0FA1hex=4001dec) Modbus Ascii frame example: Tx:3A 30 31 30 33 30 46 41 31 30 30 30 31 34 42 0D 0A Rx:3A 30 31 30 33 30 32 46 46 43 45 32 44 0D 0A 3Ahex = : = start delimiter character, 0A = LF, line feed, end of frame delimiter

TCP/IP Modbus

Diagnostic tools

Extending the display link lenght

M-Vision

Radio modems
AT/S S200=19 S202=0 S204=20 S210=4 S211=8 S212=1 S213=1 S214=003 S215=1 S216=2 S217=003 S218=128 S219=3 S220=06 S230=-56 dBm;0226 S231=3 S232=0 S252=0000 S256=0000 EATS214=240 OAT/S EEAT/S

www.adeunis-rf.com www.bb-elec.com

Communication converters

- Moxa virtual com ports (NPort5630-16) - Modbus RTU to TCP/IP Modbus (Moxa Mgate MB3170I) - Modbus RTU to SNMP (BabelBusterSP) - USB to RS232, RS485/422 (Moxa UPort1150) - USB to CAN (CPC-USB/ARM7-GTI) - USB to TTL (DEIF) - CAN to Fiber (CAN-LWL-Router CG FL) - CAN to Ethernet (CAN-LWL-Router EtherCAN FX) - USB to TCP/IP (D-Link DUB-E100) - TCP/IP on power lines - TCP/IP equipments - RS232 to blutooth (Adeunis, RF62)

También podría gustarte