Beispiel #1
0
//------------------------------------------------------------------------------
// CP Info
//------------------------------------------------------------------------------
void CpInfo()
{
    TS7CpInfo Info;
    int res=Cli_GetCpInfo(Client, &Info);
    if (Check(res,"Communication processor Info"))
    {
        printf("  Max PDU Length   : %d bytes\n",Info.MaxPduLengt);
        printf("  Max Connections  : %d \n",Info.MaxConnections);
        printf("  Max MPI Rate     : %d bps\n",Info.MaxMpiRate);
        printf("  Max Bus Rate     : %d bps\n",Info.MaxBusRate);
    };
}
Beispiel #2
0
//---------------------------------------------------------------------------
int TS7Client::GetCpInfo(PS7CpInfo pUsrData)
{
    return Cli_GetCpInfo(Client, pUsrData);
}