The Codesys IDE communicates to hardware devices through the Gateway server as defined in the gateway.cfg file. This file must be modified to match the type of RS232 adapter you are using. The location of this file will vary depending on which versions of Codesys you have installed. The .cfg file may also have an instruction to use a config file in a different location.
To simplify the process of setting up the gateway.cfg file use the Gateway Setup Utility which will automatically identify your RS232 adapter, modify the correct gateway.cfg file and stop/restart the gateway server.
Download the Utility Here
Unzip the file into the desired folder then launch the .exe file, the window below will appear.
Utility Compatibility
- Version 3.5.5.4
- Version 3.5.19.x
Instructions
Plug the RS232 Adapter into the computer USB port
Launch the utility
The current gateway file will be displayed in the left window
Scan Ports to find the adapters
Select the option for the highest version Of Codesys installed
Select Update and Restart Gateway
Updates to the gateway.cfg file will be be highlighted in yellow and status in the right window.
Codesys is now ready to connect to the uControl controllers or the S50/S70 displays.
Cfg File Locations
Gateway.cfg file location - Single version installed
Gateway.cfg file location - Multiple versions installed
Running uControl and OpenView Displays Simultaneously
The connection to the OpenView display is a direct connection through the USB port so no special directives are needed in the Gateway configuration file to make this connection. This allows you to connect to a MCx controller as well as a OpenView display at the same time if ever needed during code development.
Comments
0 comments
Please sign in to leave a comment.