The "TargetVisualization" object (
) unlocks the PLC HMI. You add it to the object "Visualization Manager" in the PLC project tree via the context menu command Add> TargetVisualization add (see also documentation PLC: Create visualization> visualization object). TASK" in the project folder. A reference to this task created in the SPS project. With the help of the reference the visualization code is called up. After adding the object, you must therefore reactivate the configuration.
Deletion of a TargetVisualization object
If you delete a TargetVisualization object and have not added an additional WebVisualization object, you have to enter a new TargetVisualization object in the TwinCAT project tree under System> Tasks delete the "VISU_TASK" task. This task is not needed in integrated visualization. (See also Editor of the object WebVisualization and Integrated Visualization)
Step 2: Configure PLC HMI Client
Perform step 2 only if you have a build
To establish the connection between the client and the device on which the corresponding visualization code is executed, you must Tc3PlcHmi.Adapt ini-file.
The .Ini file is for builds =4022.0 in the folder C:\TwinCAT\3.1\Boot\Plc.
Example .Ini file:
Amsnetid of the device on which the visualization code will be executed.
Default setting: 127.0.0.1.1.1
Amsport of the PLC project to which the visualization belongs.
Name of the visualization object to be opened as start page.
Memory size in bytes that the visualization allocates for this PLC HMI client and uses for communication.
Memory size in bytes, which the visualization allocates for this PLC HMI client and uses for drawing actions.
Refresh rate in milliseconds at which the client's data is resampled.
Setting via which the cursor can be hidden.
Setting to activate input via hardware keyboard. If this setting is not active, a software keyboard is used automatically.
Setting that enables input via touch.
Step 3: Set PLC HMI as startup application
Execute step 3 only if you have a Build
If the PLC HMI should start automatically with the boot project when the computer is booted, there must be a shortcut to the Tc3PlcHmi in the StartUp folder.Exe application is located.
To do this, carry out the following steps:
1. Open the directory C:\TwinCAT\3.1\Target\StartUp.
2. Use the context menu command New add a new link.
3. Enter C:\TwinCAT\3 as storage location.1\Components\Plc\Tc3PlcHmi\Tc3PlcHmi.Exe on. 4. Confirm this. The following dialog. Confirm this. Start the following dialog.
For Beckhoff CE devices perform the following steps:
1. Start the Beckhoff Startup Manager under Start> StartMan.
2. Add a new item via the button New add. 3. Give the item the name "Tc3PlcHmi". Select the type "ShellCommand. Give the item the name "Tc3PlcHmi". Select the type "ShellCommand.
4. Confirm the dialog.
5. Select one of the Startup Options "Autostart" and enter Delay set a time to open the client only when the PLC project has already been started.
6. Switch to the tab Shell Command.
7. Type the following in the field Enter Shell command "\Hard Disk\TwinCAT\3.1\Components\Plc\Tc3PlcHmi\X.Exe" on. The "X" must be replaced by the name of the client exe, which is stored under the named path. This can differ for example from ARM to ATOM devices.
8. Confirm the dialog.
Step 4: Start PLC HMI Client
Carry out step 4 only if you have a build
You start a PLC HMI client using the Tc3PlcHmi.Exe application. This is located in the C:\TwinCAT\3 directory.1\Components\Plc\Tc3PlcHmi, but can be linked to any location. If you are in the directory C:\TwinCAT\3.1\Target\StartMenuAdmin\Tools to create a shortcut, you can start the application via the TwinCAT icon in the context menu under Tools to start.
If the development computer is connected, the visualization can be displayed additionally in the development environment. However, it is not equivalent to the integrated visualization, but is also based on a PLC HMI client.
For Beckhoff CE devices you have to activate a setting in the visualization manager before starting the client, which enables an automatic conversion of all image files in svg format to bmp format. This step is necessary, because under CE only image files in bmp format are supported in the PLC HMI client. Nevertheless both formats of the image file will be loaded to the target system, because a PLC HMI Web Client still uses the svg format. The PLC HMI Client for CE is located in the \Hard Disk\TwinCAT\3 directory.1\Components\Plc\Tc3PlcHmi to be found.