Program description
When you start the operator panel, the plant picture "Screen 01" (Start screen) is called first.
Opening of the "Screen 01" screen causes the script "WinCE_Read_data" to be executed.
If there is no connection data stored in the archive, the operator panel first attempts to set up the connection defined and stored in the configuration.
If the correct connection data is stored, the "WinCE_Read_data" script reads out the connection data and sets up the connection to the relevant PLC via the "Change connection" system function.
You can specify and change the connection data via the plant screen "Screen 02".
Below is plant screen 02 "Change PLC connection data".
  Fig. 02
Point 1: Permanent window
You can call "Screen 01" and "Screen 02" via the permanent window. You can also change the language and stop Runtime via the permanent window.
Points 2 - 4: Overview of "Plant Screen 02"
Point 2
Via the IO fields, you specify the connection data of the PLC via which the operator panel is to communicate.
Point 3
The "Save PLC data" is for executing the "WinCE_Write_data" script. The previously entered connection data is stored in an archive. If you enter new connection data, pressing the button overwrites the "old" data.
The "Change Connection" button is for executing the "Change connection" system function. The connection data is transferred from the IO fields from "Point 2" to the system function.
For test purposes, therefore, you can check in Runtime whether your connection data functions.
Point 4
Via the IO fields you can specify and read out tag values for test purposes in order to ensure that you are connected with the "right" PLC. |