I have a Flexy201 with a 2port serial card (FLA3301) in the leftmost slot. I need to use COM1 to communicate with a RS485 serial device. I have the DIP switches 1-4 on, and 5-6 off.
I have the command below in the Init Section:
Open "COM:1,19200,8n1n" For Binary Input As 1
When I run the script, I get an IO Error (33). As far as I can tell, I am not using either port with any IO Servers.
I have tried “As 2” and “As 3”. I have tried different baud rates, but it ultimately it will need to be as shown above to work with the serial device.
I have tried different settings for COM1 in Communication>General>Serial Ports.
If I use “COM:2,19200,8n1n”, I get no errors. I have an RS232/485 adapter that I used to test using this port, and the communications work. It is only COM1 that doesn’t work.
The Flexy has been updated to 14.3s0.