PFC300, RS485 and WagoAppCom on serial port

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

This is the call to write on the port.

(could only attach one screenshot at a time because of forum rules)

Hey @mikael there is no RS232 in PFC300 communication port like it was in PFC100/200 before, thats why its not working.

Edit:
I miss that you want to migrate to RS485 :smiley:
It’s better to put function blocks outside any IFs. If you execute input, just add IF after with xDone. Btw you can try easy way with FbSerialInterface_cpt: