Serial communications, Rs‐485 communications, Modbus rtu communications – Beijer Electronics BFI-P2 V1.21 User Manual

Page 46

Advertising
background image

User Guide Revision 1.12 

 

www.beijerelectronics.com 

46

 
9. Serial communications 

9.1. RS‐485 communications 

An RJ45 connector located on the drive allows the user to connect the drive to a Modbus RTU network or CANBus via a wired connection. 
 
The electrical signal arrangement of the RJ45 connector is shown as follows: 
 

CAN‐ 
CAN+ 
0 Volt 
Remote Keypad / PC Connection ‐ 
Remote Keypad / PC Connection + 
+24 Volt Remote Keypad Power Supply 
RS 485‐ Modbus RTU 
RS 485+ Modbus RTU 
 

 

9.2. Modbus RTU Communications 

9.2.1. Modbus Telegram Structure 

The Drive supports Master / Slave Modbus RTU communications, using the 03 Read Holding Registers and 06 Write Single Holding Register 
commands. Many Master devices treat the first Register address as Register 0; therefore it may be necessary to convert the Register Numbers 
detail in section 9.2.2 subtracting 1 to obtain the correct Register address. The telegram structure is as follows:‐ 
 

Command 03 – Read Holding Registers 

Master Telegram 

Length 

 

Slave Response 

Length 

Slave Address 

Byte 

 

Slave Address 

Byte 

Function Code (03) 

Byte 

 

Function Code (03) 

Byte 

1

st

 Register Address 

Bytes 

 

Byte Count 

Byte 

No. Of Registers 

Bytes 

 

1

st

 Register Value 

Bytes 

CRC Checksum 

Bytes 

 

2

nd

 Register Value 

Bytes 

 

 

 

 

Etc... 

 

 

 

 

 

 

CRC Checksum 

Bytes 

 

Command 06 – Write Single Holding Register 

Master Telegram 

Length 

 

Slave Response 

Length 

Slave Address 

Byte 

 

Slave Address 

Byte 

Function Code (06) 

Byte 

 

Function Code (06) 

Byte 

Register Address 

Bytes 

 

Register Address 

Bytes 

Value 

Bytes 

 

Register Value 

Bytes 

CRC Checksum 

Bytes 

 

CRC Checksum 

Bytes 

Advertising