Modbus Integration Kit for PAC Control User's Guide - Opto 22
Modbus Integration Kit for PAC Control User's Guide - Opto 22
Modbus Integration Kit for PAC Control User's Guide - Opto 22
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
MODBUS MASTER SUBROUTINES<br />
03: Read Holding Registers<br />
<strong>PAC</strong><strong>Modbus</strong>Master03_Read_Holding_Registers<br />
Name<br />
Data Table<br />
Setup Parameter<br />
Description<br />
Pointer Table<br />
Index 0 = Holding_Register_4X_Integer table<br />
Index 1 = Holding_Register_4X_Float Table<br />
Integer 32 Table<br />
Index 0 = Slave Address<br />
Index 1 = Start_Register<br />
Index 2 = Quantity_Of_Registers (see note 14 on page 39)<br />
Index 3 = Wait_Time_ms<br />
Index 4 = Comm_Mode (0=RTU, 1=ASCII, 2=TCP)<br />
Index 5 = Master_Register_Mode (see note 4 on page 35)<br />
Index 6 = Master_RegisterOffset (see note 1 on page 35)<br />
Index 7 = Transaction_Identifier (see note 2 on page 35)<br />
Data Type Integer 32 Table (see note 5 on page 35)<br />
<strong>Modbus</strong> Port<br />
Status Table<br />
Port Status<br />
Put Status In<br />
Communication Handle<br />
String Table<br />
Index 0 = TX String (RTU and TCP use Hexadecimal to view)<br />
Index 1 = Status (see note 3 on page 35)<br />
Index 2 = RX String (RTU and TCP use Hexadecimal to view)<br />
Integer 32 Table<br />
Index 0 = OK Count<br />
Index 1 = Port Status (0=OK or Error Code)<br />
Index 2 = Fail Count<br />
Integer 32 Variable<br />
0 = Success<br />
-67 = Out of memory<br />
-69 = Null object error<br />
24<br />
<strong>Modbus</strong> <strong>Integration</strong> <strong>Kit</strong> <strong>for</strong> <strong>PAC</strong> <strong>Control</strong> User’s <strong>Guide</strong>