Using send_stddrv() – Rockwell Automation 6001-F2E AB STANDARD DRIVER SFTW User Manual

Page 17

Advertising
background image

Writing Your Own Application Program

Chapter 4

4-4

be interpretted by the SLC-500 as a logical offset (in words) into Data
File 9. See the SLC-500 Advanced Programming Software Manual,
chapter A3, for more information on the SLC-500 memory organization.

If you do not wish to use the commands supported by the Application
Library, use the Send_StdDrv() function to send user-formatted messages.
The Send_StdDrv() function call transmits data over the DH-485 network
to a DH-485 station. Depending on your application, you can use the
Send_StdDrv() function call two ways. You can:

communicate with token-passing DH-485 devices (such as the

SLC-500)

communicate with slave-only DH-485 devices

(See appendix B for more information on message packet formats for the
Send_StdDrv() function call.)

Any transmission that does not complete normally is aborted by a timeout
or local error code indicating the problem. See appendix D for a list of
error codes. Use the following format and parameters:

Format for Send_StdDrv()

The Send_StdDrv() function call is shown below:

status = Send_StdDrv(device,

&io_stat[0],

&cmd_buff[0],

pass_thru,

&reply_buff[0],

timeout,

0,0)

Use the Send_StdDrv() function call to send user-formatted messages.

Using Send_StdDrv()

Advertising