tsc
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Posts posted by tsc
-
-
We are using the PCommServer Pro2 Library for our .NET HMI to talk to our turbo clipper PMAC over USB. We are using a dedicated thread to continuously query the PMAC using GetResponseEx(). We have an event handler set up to deal with unsolicited responses.
Everything works well until an unsolicited response (such as a SENDP in a motion file) comes in at the same time as a reply to a GetResponseEx() query. When that happens, the unsolicited reply gets lost or gets merged into the response for the GetResponseEx().
How do we get unsolicited responses to work reliably?
Pcomm Server Pro2 Library - Unsollicited responses getting lost
in Turbo PMAC
Posted · Edited by tsc
Thanks for your reply.
We are not using GetResponseEx() to receive unsolicited messages. We are using an event handler (as per the manual) to receive unsolicited messages. We are using GetResponseEx() to continuously query the PMAC for other information (such as P and Q variables).
GetResponseEx() works fine and the event handler for unsolicited messages works fine independently.
The issue occurs when an unsolicited message comes in at the same time a reply to one of the GetResponseEx() queries comes in.
I64 is set to 1 as per the manual but this does not resolve the issue.
Note that when the issue occurs, the unsolicited reply also does not show up in pewin32pro, indicating a bug at the pcommserver level.
Any advice is highly appreciated.