08.05.2014 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MODBUS MASTER SUBROUTINES<br />

<strong>22</strong>: Mask Write 4X Registers<br />

<strong>PAC</strong><strong>Modbus</strong>Master<strong>22</strong>_Mask_Write_4X_Register<br />

Name<br />

Setup Parameter<br />

<strong>Modbus</strong> Port<br />

Status Table<br />

Port Status<br />

Put Status In<br />

Description<br />

Integer 32 Table<br />

Index 0 = Slave Address<br />

Index 1 = Reference_Register<br />

Index 2 = Not used<br />

Index 3 = Wait_Time_ms<br />

Index 4 = Comm_Mode (0=RTU, 1=ASCII, 2=TCP)<br />

Index 5 = AND_Mask<br />

Index 6 = OR_Mask<br />

Index 7 = Transaction_Identifier (see note 2 on page 35)<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 />

32<br />

<strong>Modbus</strong> <strong>Integration</strong> <strong>Kit</strong> <strong>for</strong> <strong>PAC</strong> <strong>Control</strong> User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!