I've got a barcode scanner, which is running well with a Node-RED application based on ctrlX CORE. Here the setting of the serial node:
-> /dev/ttyACM0 is used and this works fine
I tried to access the USB device within the plc application, but with no success. I tried with the following example from this thread: https://developer.community.boschrexroth.com/t5/ctrlX-PLC/USB-RS232-adapter/m-p/54609
Could someone help?
Solved! Go to Solution.
Which version of thy stem and PLC apps are you using as the other topic indicates a minimum 1.16?
Did you change settings to your application?
settings.sPort := SYS_COMPORT1; settings.ulBaudrate := SYS_BR_57600; settings.byParity := SYS_NOPARITY; settings.byStopBits := SYS_ONESTOPBIT;
EDIT: To be able to use the ports they need to be added to the PLC system configuration via the function CmpSettings.SettgSetStringValue. See this thread.