ProcUnit::GetIoModuleIdent
Gets I/O module ident name
TCHAR *GetIoModuleIdent(
int ioModuleNo
)
Parameters
ioModuleNo
|
I/O module number
|
Return Value
Returns the ident name of the specified I/O module number.
Description
Gets I/O module ident name.
I/O module number is as follows:
0:Communication related to Parallel (ParallelIo)
1:Communication related to Serial (SerialNormal/SerialNormal2/SerialPlcLink)
2:Communication related Ethernet (UdpNormal/UdpNormal2/UdpPlcLink)
Example
bool Sample::IsPLCLink(ProcUnit *ptrProcUnit)
{
bool isPLCLink = false;
// Gets I/O module ident name
TCHAR *ptrIoModuleIdent = ptrProcUnit->GetIoModuleIdent(IOMODULE_UDP_NO);
if (_tcscmp(*ptrIoModuleIdent, _T(IOMODULE_UDP_PLCLINK)) == 0) isPLCLink = true;
return(isPLCLink);
}