RevPi RS485 config for use in CodeSys
Posted: 17 Apr 2024, 09:55
Hello RevPi world,
My colleague and I are currently evaluating the Revolution PI Connect 4 as a controller based on CodeSys.
The system image is installed as delivered.
We plan to use the RS485 interface in CodeSys and have tested the original CodeSys sample project for the SysCom library as a template.
Unfortunately, we cannot get a valid handle for the underlying COM port.
Searching the Internet, there were various hints as to what (or what not) to enter in the two files CODESYSControl.cfg and CODESYSControl_User.cfg.....
Unfortunately, we were unsuccessful.
Hence the question:
What should be entered in the CodeSys*.cfg files so that the RS485 interface can be used as COM1, for example? The physical connection is located here under /dev/ttyRS485 sym link /dev/ttyAMA5.
My colleague and I are currently evaluating the Revolution PI Connect 4 as a controller based on CodeSys.
The system image is installed as delivered.
We plan to use the RS485 interface in CodeSys and have tested the original CodeSys sample project for the SysCom library as a template.
Unfortunately, we cannot get a valid handle for the underlying COM port.
Searching the Internet, there were various hints as to what (or what not) to enter in the two files CODESYSControl.cfg and CODESYSControl_User.cfg.....
Unfortunately, we were unsuccessful.
Hence the question:
What should be entered in the CodeSys*.cfg files so that the RS485 interface can be used as COM1, for example? The physical connection is located here under /dev/ttyRS485 sym link /dev/ttyAMA5.