Hi,
Which variable indicate that the profibus init is ready and the cyclic data exange can be read :?:
I have the problem, when i disconnect and connect the profibus plug, that the first read of the values is zero.
At first i control the following Bits and results:
if ((ptPck->tStateChangedInd.tData.ulState==RCX_COMM_STATE_OPERATE) &&
(TLR_GETEXCHGED_TRIBUFF(ptRsc->tLoc.tMscy1s.hOutputTriB, (TLR_UINT8 **)&pbData)
==0))
{
//Copy outputdata from Master in Vars
}
Br,
Rainer
Andreas Jacob
Hilscher Gesellschaft fuer Systemautomation mbH
Hi Rainer,
:? It looks like you are right. Your code snippet is ok. It seems that the information is sent to early. from my point of view, the problem comes from the stack it self and must be fixed by Hilscher.