Rockwell Automation 9220-TG QUICK START CONTROLNET MESSAGE User Manual

Page 33

Advertising
background image

ControlNet Message/Traffic Generator Tool

33

Publication 9220-10.1 — July 1996

/*****************************************************************\
**

** Name: MG_OpenConnection ( )

**
** Description:
** This function opens an ASA Connection with the target device.
**
** Inputs: UINT *connIndex

– Pointer to connection index that

**

will be filled in by the function.

**

USINT *connName

– Name of connection from.

**

configuration file to be opened.

**

UINT instance

– Instance number of object to

**

connect to.

**
** Outputs: UINT status

– SUCCESS

**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/

/*****************************************************************\
**

** Name: MG_CloseConnection ( )

**
** Description:
** This function closes a previously opened ASA Connection.
**
** Inputs: UINT connIndex

– Connection index that was returned

**

by the MG_OpenConnection function.

**
** Outputs: UINT status

– SUCCESS

**

– BAD_PARAMETER_VALUE

**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/

/*****************************************************************\
**

** Name: MG_SendUnconnected ( )

**
** Description:
** This function sends an unconnected ASA message provided by
** the user.
**
** Inputs:

USINT *message

– Message to be sent.

**

UINT dataSize

– Size, in bytes, of the

**

message to be sent.

**
** Outputs: UINT status

– SUCCESS

**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/

Advertising