Connections
CODESYS Username & Password
These fields are used to authenticate the WebSocket connection once it is established with the PLC.
Purpose
The CODESYS Username and Password must match the credentials expected by the CODESYS WebSocket server.
Default Credentials
Provided by the CODESYS backend library:
- Username:
Administrator - Password:
Administrator
If authentication fails:
- The HMI will not be able to access PLC variables
- No data updates will be received
Important
To enable WebSocket communication on the PLC, you must instantiate the WebSocket server interface in your CODESYS code.
Add the following line (typically in PLC_PRG or a global initialization block):
wsINST : PLCVisu.wsInitFB; // Important instance, required to run the WebSocket server
wsINST : PLCVisu.wsInitFB; // Important instance, required to run the WebSocket server
PLC_PRG
Administrator
Administrator