DLL function returns -1 for TRUE
Currently, my customer is using C# to communicate with Trio Flex 6-Nano
ethercat controller.
Attached is the picture showing the highlighted yellow command that they use
to read the InPosition return value.
When motor is moving, it does return a Zero.
When motor IDLE, it should return 1, but it return -1 instead.
Is this correct?
Any possible reason why it return -1?
Thanks.
Regards
Jason Tan