Hi all,
We are using Industrial communication SDK 09.02.00.08 for ethernet Ip adapter discrete io device profile demo program to communicate via PLC.
In the process we're having challenges as we are not able to control led from PLC.
We tried to debug example program and observed that it is going from ready state to idle state and looping in idle state and not going to run state.
if (dataReceived == EI_APP_DIO_DEVICE_receiveData_s && command == EI_APP_DOP_receiveReadyToRun)
{
nextState = EI_APP_DOP_SM_getStateFuncs(EI_APP_DOP_SM_RUN);
}
Moving further we observed that EI_APP_DIO_DEVICE_receiveData_s is zero and it is assigned in EI_APP_DIO_DEVICE_cmgrCbcondition
if(EI_APP_DIO_DEVICE_IO_CONNECTION == cmgrInfo.forwardOpenInfo.typeTrigger
&& EI_APP_DIO_DEVICE_ASSEMBLY_CONSUMING == cmgrInfo.forwardOpenInfo.conPath[5])
{
EI_APP_DIO_DEVICE_receiveData_s = EI_APP_DIO_DEVICE_DATA_RECEIVED;
EI_APP_DIO_DEVICE_connectionState_s = EI_APP_DIO_DEVICE_ConnectionEstablished;
}
as cmgrInfo.forwardOpenInfo.conPath[5] value is zero it's not entering inside the if statement.
we wanted to know from where it is taking cmgrInfo.forwardOpenInfo.conPath[5] value and how can we control Led from PLC.
Thanks & regards
Sonu