Installing the CODESYS Bridge
Step-by-step guide to install and configure the PLC Assist Bridge script in CODESYS
Installing the CODESYS Bridge
The PLC Assist Bridge is a Python script that runs inside CODESYS, enabling real-time communication between your local CODESYS project and PLC Assist. Once running, PLC Assist can read your project tree, edit code, compile, and deploy -- all from the browser.
Requirements
PLC Environment
| Requirement | Minimum | Recommended |
|---|---|---|
| CODESYS Version | V3.5 SP17 | V3.5 SP19 or later |
| Script Engine | Enabled | Enabled |
| Bridge Port | 8555 | 8555 |
System
| Requirement | Details |
|---|---|
| Operating System | Windows 10 or later (64-bit) |
| Browser | Chrome 90+, Edge 90+, or Firefox 90+ |
| Internet | Required for AI features and authentication |
| RAM | 8 GB minimum, 16 GB recommended |
You also need a PLC Assist account.
Step 1: Download the Bridge Scripts
You'll need two scripts: one to start the bridge and one to stop it.
This downloads two files:
plc-assist-bridge-start.py-- starts the bridgeplc-assist-bridge-stop.py-- stops the bridge
Step 2: Copy to CODESYS Scripts Folder
Copy both .py files to the CODESYS scripting directory. The location depends on your CODESYS version:
Standard (per-user):
C:\Users\<YourUsername>\AppData\Local\CODESYS\ScriptDir\Standard (system-wide):
C:\Program Files\CODESYS 3.5.xx.xx\CODESYS\ScriptDir\If the ScriptDir folder doesn't exist, create it manually. CODESYS will pick it up on restart.
Step 3: Add Toolbar Shortcuts (Recommended)
Instead of navigating menus every time, add the bridge scripts as toolbar buttons for one-click access:
- In CODESYS, go to Tools > Customize
- Select the Toolbars tab
- Click New to create a toolbar (e.g. "PLC Assist")
- Switch to the Commands tab
- In the Categories list, select ScriptEngine Commands
- Find
plc-assist-bridge-startandplc-assist-bridge-stopin the commands list - Drag them onto your new toolbar
You now have dedicated Start/Stop buttons in your CODESYS toolbar. No more digging through menus.
If the scripts don't appear in ScriptEngine Commands, make sure the files are in the correct ScriptDir folder and restart CODESYS.
Step 4: Start the Bridge
With a CODESYS project open:
Option A -- Toolbar button (recommended): Click the plc-assist-bridge-start button in your toolbar.
Option B -- Menu:
Go to Tools > Scripting > Execute Script File, then select plc-assist-bridge-start.py.
When the bridge starts successfully, the CODESYS window title will show [Bridge Active].
Step 5: Connect from PLC Assist
- Open PLC Assist in your browser
- Click Connect
- PLC Assist will automatically detect the bridge on
localhost:8555
Stopping the Bridge
Option A -- Toolbar button: Click the plc-assist-bridge-stop button.
Option B -- From PLC Assist: Click the Connected button in PLC Assist and select Stop Bridge.
Option C -- Menu:
Go to Tools > Scripting > Execute Script File, then select plc-assist-bridge-stop.py.
Updating the Bridge
When a new version is available:
- Download the new scripts from PLC Assist
- Replace the existing files in your
ScriptDirfolder - Restart the bridge
The toolbar shortcuts will automatically use the updated scripts.
Troubleshooting
Scripts Not Appearing in ScriptEngine Commands
- Verify both
.pyfiles are in the correctScriptDirfolder - Check that the file extension is
.py(not.py.txt) - Restart CODESYS after adding the files
Bridge Won't Start
- Make sure a CODESYS project is open before starting the bridge
- Check the CODESYS message log for error details
- Ensure no other application is using port
8555
PLC Assist Can't Connect
- Verify the CODESYS window title shows [Bridge Active]
- Check that your firewall allows connections on
localhost:8555 - Try stopping and restarting the bridge
Bridge Disconnects During Use
If PLC Assist shows "Disconnected", the bridge may have stopped. Restart it using the toolbar button or menu, then click Connect again in PLC Assist.
For more help, see the troubleshooting guide.