So I have code that sends UDP packets towards a UDP receiver and it receives it. the problem comes in when i try to send data back towards the PLC. Here is the fucntion that gives the problem:
result := port.Receive(pbyData:=ADR(rcvData), diDataSize:=SIZEOF(rcvData));
Function throws this error: Errors.ERR_NO_OBJECT
What does this actually mean and any idea on how I can try and fix it would be useful...
I am using codesysV3.5 sp12. I the CAA Net Base Services Library, those UDP_PEER functions and what not, does not work on my PLC so I have to use the UDP library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I have code that sends UDP packets towards a UDP receiver and it receives it. the problem comes in when i try to send data back towards the PLC. Here is the fucntion that gives the problem:
result := port.Receive(pbyData:=ADR(rcvData), diDataSize:=SIZEOF(rcvData));
Function throws this error: Errors.ERR_NO_OBJECT
What does this actually mean and any idea on how I can try and fix it would be useful...
I am using codesysV3.5 sp12. I the CAA Net Base Services Library, those UDP_PEER functions and what not, does not work on my PLC so I have to use the UDP library.