Reading and Writing of Variables on the PLC
Reading and writing of parameters
Your project contains a symbol configuration with symbols for project variables.
The same state of the project and the boot application exists on the CODESYS Automation Server as on the PLC.
The CODESYS Automation Server is connected to a PLC.
In the CODESYS Automation Server, click .
Select the tile view
and click the
button (Details) for the corresponding PLC.
The PLC Details view opens.
Select the Configuration tab.
In the Synchronization group, select the Synchronize parameters option and click the Save Configuration button.
Note: If this option is not selected, then the write described in the following steps cannot be performed successfully on the PLC.
Select the General tab.
Click the
(Parameters) button.
The Parameters for PLC: <PLC name> dialog opens and shows the project variables that can be read and written. The value after Value notification is the current value of the variable on the PLC.
Click into the input line and type in a new value.
When the first character is typed in, the display is extended and the Old value and New value displays appear.
For Old value, the value is displayed that was used when the variable was written previously.
To write the new value to the PLC, click Confirm.
The CODESYS Automation Server reports whether or not the write operation was successful.