| | |
| | | unsigned short nByteAddr=0; |
| | | unsigned short nBitAddr=0; |
| | | unsigned short DataLen=0; //p1->LoadLen; |
| | | #if (ENABLE_PLC) |
| | | unsigned short nValue=0; |
| | | #endif |
| | | //int nSrcAddr=p1->SrcAddr; |
| | | |
| | | nKLStatus.nSEQ = ((pKLStat)(&(p1->Stat)))->nSEQ;; |
| | |
| | | nByteAddr=p1->Params[0] + (p1->Params[1]<<8); |
| | | //pData=(UCHAR *)(&storedKMSysCfg.theKMSysCfg)+nByteAddr; |
| | | pData = KMem.pPorts[nDataType]; |
| | | DataLen = sizeof(stPortDef); |
| | | DataLen = (uint32_t)&(((pstPortDef)(0))->pInstance); |
| | | PacketLen=KLMakeRplyPacket(p2,nDstHost,nKLStatus.StatByte,p1->nCMD,DataLen,pData); |
| | | SendPacket(nChn, p2, PacketLen); |
| | | break; |