
6.3 MAC_CreateTCPConnection
This function enables the user to initiate TCP/IP communication with the Multi-axes
supervisor.
Syntax:
COMMUNICATION_HANDLE MAC_CreateTCPConnection (LPCTSTR cszIP,
DWORD
dwTimeout/*=5000*/,
WORD wPort/*=23*/ );
Input Parameters:
LPCTSTR cszIP IP Address of supervisor
DWORD dwTimeout Max time for communications to be established
WORD wPort Communication port
Return Value:
COMMUNICATION_HANDLE Multi-axes supervisor communication handle, if
connection failed - NULL.
Sample:
COMMUNICATION_HANDLE hCon = MAC_CreateTCPConnection
( _T("10.10.10.112"), 5000, 23 );
Maestro Software Manual The Maestro API
MAN-MASSW (Ver. Q)
6-3
Comentarios a estos manuales