QUICK START CONTROLNET MESSAGE Manual
ControlNet Message/Traffic Generator Tool 35
Publication
9220-10.1 — July 1996
/*****************************************************************\
**
** Name: MG_ReceiveConnected ( )
**
** Description:
** This function receives a 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 – Pointer to buffer for message.
** UINT *dataSize – Size, in bytes, of the message
** received.
**
** Outputs: UINT status – SUCCESS if message was received.
** – FAILURE if no message was received.
**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/
/*****************************************************************\
**
** Name: MG_SendConnectedMsg ( )
**
** Description:
** This function sends a message from the configuration file 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.
**
** Outputs: UINT status – SUCCESS
**
** Copyright (c) 1995, ‘96 Allen–Bradley Company
**
\*****************************************************************/