Online Mode
Note
Perform the following steps identically for both projects.
Right-click
Application.iecappand select the Log In command.Enter your credentials if necessary.
A Login successful notification will be displayed in the bottom-right corner of the CODESYS 4 window and the display in the top-right corner will change as follows:

Open the PLC_PRG program in the editor.
Click the
button to start the active application (see the top-right corner in the CODESYS 4 window).
The values of the variables defined in the previous steps will now be visible via inline monitoring.
Add variables or function blocks as needed, for example also the variables of the Modbus nodes of the WATCHLIST of CODESYS 4.
The projects will now be online, and Modbus communication should be running successfully.