Rockwell Automation 6001-F2E AB STANDARD DRIVER SFTW User Manual

Page 33

Advertising
background image

Application Program Examples

Appendix A

A-11

PLC_FCT = PLCx_DCR; /* Initialize a PLC function */

/* Call the Standard Driver Appl() function */

status = Appl_StdDrv( PLC_FCT, &DHP_MSG);

/*

status = See 6001–F2E User’s manual appendix D

io_stat[0]: Local & remote I/O status

Hi_byte = DH-485 status

Lo_byte = Local & extended DH-485 status

io_stat[1]: Reply length in bytes (if applicable)

*/

Advertising