Hello I am using Profinet M40 Module with M40 starter Kit.
I have SDK version 3.06.01 and i am trying to read IP address set through SDK code. SDK code terminates with below error.
Severity : ABCC_SEV_WARNING
Error code: ABCC_EC_RESP_MSG_E_BIT_SET (ErrNo: 8)
Add info : (UINT32)( (psMsg )->abData[ 0 ] ) (0x4)
File : C:\Projects\ABCC_Starter_Kit_3.06.01\Projects\Windows\AnybusProfiNet.c (Line:43)
RSP MSG_GET_IP_ADDR: 4.20.243.200
IP address set was 10.20.243.200 and below is the code snippet
static ABCC_CmdSeqCmdStatusType GetIPCmd(ABP_MsgType* psMsg)
{
ABCC_GetAttribute(psMsg, ABP_OBJ_NUM_NW, 3,
6, ABCC_GetNewSourceId());
return(ABCC_SEND_COMMAND);
}
static ABCC_CmdSeqRespStatusType GetIPResp(ABP_MsgType* psMsg)
{
UINT8 abcc_IP1;
UINT8 abcc_IP2;
UINT8 abcc_IP3;
UINT8 abcc_IP4;
ABCC_ASSERT_ERR(ABCC_VerifyMessage(psMsg) == ABCC_EC_NO_ERROR,
ABCC_SEV_WARNING, ABCC_EC_RESP_MSG_E_BIT_SET,
(UINT32)ABCC_GetErrorCode(psMsg));
ABCC_GetMsgData8(psMsg, &abcc_IP1, 0);
ABCC_GetMsgData8(psMsg, &abcc_IP2, 1);
ABCC_GetMsgData8(psMsg, &abcc_IP3, 2);
ABCC_GetMsgData8(psMsg, &abcc_IP4, 3);
printf("RSP MSG_GET_IP_ADDR: %d.%d.%d.%d\n", abcc_IP1, abcc_IP2, abcc_IP3, abcc_IP4);
return(ABCC_EXEC_NEXT_COMMAND);
}
static const ABCC_CmdSeqType anb_NW_IPSeq[] =
{
ABCC_CMD_SEQ(GetIPCmd, GetIPResp),
ABCC_CMD_SEQ_END()
};
void GetIPAddr(char* str)
{
ABCC_AddCmdSeq(anb_NW_IPSeq, NULL);
}