I am trying to get RS485 working on the PFC300 onboard serial port, but I am missing something as I could not get messages out of it yet.
When I set it up, it seems to be done correctly as xError is False and xDone becomes True.
However, when I further down the line try to send something on the port, nothing happens (checked between leads with oscilloscope to rule out receiver side errors). Termination resistor is enabled, bias resistors are not enabled.
When I force “response” (see screenshot below) to some word and step through the code I notice that I never see xBusy toggle to True, but xDone becomes True right after passing by the com1write() line. I do not get an error set either. com1write.xExecute is set back to False at the end of the cycle.
So it seems I am still missing something, or misunderstood something, ou doing my steps out of sequence?
I used the same program before on an PFC200 with RS232 and CAA SerialCom, and then it worked. So even though I migrated the calls perhaps they also need some rearranging?
Any help appreciated,
Thanks,
/M


