Rockwell Automation 9220-TG QUICK START CONTROLNET MESSAGE User Manual
Page 34

ControlNet Message/Traffic Generator Tool
34
Publication 9220-10.1 — July 1996
/*****************************************************************\
**
** Name: MG_SendUnconnectedMsg ( )
**
** Description:
** This function sends an unconnected ASA message from the
** configuration file.
**
** Inputs: USINT *message
– Message to be sent.
**
** Outputs: UINT status
– SUCCESS
**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/
/*****************************************************************\
**
** Name: MG_ReceiveUnconnected ( )
**
** Description:
** This function receives an unconnected ASA message from the UCMM.
**
** Inputs:
USINT *message
– Pointer to where to put the
**
received message.
**
UINT *dataSize
– Size, in bytes, of the
**
message received.
**
** Outputs:
UINT status
– SUCCESS if message received
**
– FAILURE if no message received
**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/
/*****************************************************************\
**
** Name: MG_SendConnected ( )
**
** Description:
** This function sends a user provided message on a Connection
** previously opened with a call to MG_OpenConnection.
**
** Inputs
UINT connIndex – Connection index that was returned
**
by the MG_OpenConnection function.
**
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
**
\*****************************************************************/