9
Manual TC3 PLC HMI TwinCAT 3 1.1 2016-09-12 TF1800 Version: Date: Order No.:

Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

Embed Size (px)

Citation preview

Page 1: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

Manual

TC3 PLC HMI

TwinCAT 3

1.12016-09-12TF1800

Version:Date:Order No.:

Page 2: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the
Page 3: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

Table of contents

Table of contents1 Foreword .................................................................................................................................................... 4

1.1 Notes on the documentation.............................................................................................................  41.2 Safety instructions ............................................................................................................................  5

2 PLC HMI...................................................................................................................................................... 6

TC3 PLC HMI 3Version: 1.1

Page 4: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

Foreword

1 Foreword

1.1 Notes on the documentationThis description is only intended for the use of trained specialists in control and automation engineering whoare familiar with the applicable national standards.It is essential that the following notes and explanations are followed when installing and commissioningthese components.

The responsible staff must ensure that the application or use of the products described satisfy all therequirements for safety, including all the relevant laws, regulations, guidelines and standards.

DisclaimerThe documentation has been prepared with care. The products described are, however, constantly underdevelopment.For that reason the documentation is not in every case checked for consistency with performance data,standards or other characteristics.In the event that it contains technical or editorial errors, we retain the right to make alterations at any timeand without warning.No claims for the modification of products that have already been supplied may be made on the basis of thedata, diagrams and descriptions in this documentation.

TrademarksBeckhoff®, TwinCAT®, EtherCAT®, Safety over EtherCAT®, TwinSAFE®, XFC®and XTS® are registeredtrademarks of and licensed by Beckhoff Automation GmbH.Other designations used in this publication may be trademarks whose use by third parties for their ownpurposes could violate the rights of the owners.

Patent PendingThe EtherCAT Technology is covered, including but not limited to the following patent applications andpatents:EP1590927, EP1789857, DE102004044764, DE102007017835with corresponding applications or registrations in various other countries.

The TwinCAT Technology is covered, including but not limited to the following patent applications andpatents:EP0851348, US6167425 with corresponding applications or registrations in various other countries.

EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH,Germany

Copyright© Beckhoff Automation GmbH & Co. KG, Germany.The reproduction, distribution and utilization of this document as well as the communication of its contents toothers without express authorization are prohibited.Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of apatent, utility model or design.

TC3 PLC HMI4 Version: 1.1

Page 5: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

Foreword

1.2 Safety instructions

Safety regulationsPlease note the following safety instructions and explanations!Product-specific safety instructions can be found on following pages or in the areas mounting, wiring,commissioning etc.

Exclusion of liabilityAll the components are supplied in particular hardware and software configurations appropriate for theapplication. Modifications to hardware or software configurations other than those described in thedocumentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG.

Personnel qualificationThis description is only intended for trained specialists in control, automation and drive engineering who arefamiliar with the applicable national standards.

Description of symbolsIn this documentation the following symbols are used with an accompanying safety instruction or note. Thesafety instructions must be read carefully and followed without fail!

DANGER

Serious risk of injury!Failure to follow the safety instructions associated with this symbol directly endangers thelife and health of persons.

WARNING

Risk of injury!Failure to follow the safety instructions associated with this symbol endangers the life andhealth of persons.

CAUTION

Personal injuries!Failure to follow the safety instructions associated with this symbol can lead to injuries topersons.

Attention

Damage to the environment or devicesFailure to follow the instructions associated with this symbol can lead to damage to the en-vironment or equipment.

Note

Tip or pointerThis symbol indicates information that contributes to better understanding.

TC3 PLC HMI 5Version: 1.1

Page 6: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

PLC HMI

2 PLC HMIThe PLC HMI is an extension of the runtime system and enables the visualization to be executed on thecontrol computer or a third computer [} 8] without a development environment. The visualization code iscreated based on the existing visualization objects and downloaded to the control computer. Avoiding theuse of the development environment results in significant memory savings. This can be useful for smallcomputers.

Commissioning the PLC HMIStep 1: Adding the target visualization object

The object ‘TargetVisualization’ enables the PLC HMI. It can be added to the visualization managerobject by right-clicking under ‘Add’. The object ‘TargetVisualization’ automatically creates a visualization task‘VISU_TASK’ in the solution and a reference to this task in the project. The reference is used to call thevisualization code.

Note

After adding a ‘TargetVisualization’ object, the configurations have to be reactivated, sincea new task called ‘VISU_TASK’ is added automatically.

Note

Once the ‘TargetVisualization’ object has been deleted, the task 'VISU_TASK' must bedeleted manually under System → Tasks, if no additional ‘WebVisualization’ object wasadded. The reason is that the integrated visualization is not compiled in IEC61131-3 pro-gram code, and therefore the program call ‘VisuElems.Visu_Prg’ via the referenced task isno longer valid.

Step 2: Adaptation of the Tc3PlcHmi.ini file

In order to make the connection between the client and the device, on which the corresponding visualizationcode is executed, the file Tc3PlcHmi.ini may have to be modified. The .ini file can be found in the folderTc3PlcHmi in directory C:\TwinCAT\3.1\Components\PLC\Tc3PlcHmi and looks as follows:

TC3 PLC HMI6 Version: 1.1

Page 7: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

PLC HMI

AmsNetID AmsNetID of the device, on which the visualization code is executed.Default: 127.0.0.1.1.1

AmsPort AmsPort of PLC project, to which the visualization belongs.Default: 851

StartVisualization Name of the visualization object to be opened as start page.Default: Visualization

CommBufferSize Memory size in bytes, which the visualization allocates for each displayoption and uses for the communication.Default: 50000

PaintBufferSize Memory size in bytes, which the visualization allocates for each displayoption and uses for drawing actions.Default: 50000

UpdateRate(ms) Update rate in milliseconds, at which the client data are queried again.Default: 200

HideCursor Otherwise only simple assignments are possible.Default: false

KeyboardActivate Setting through which input via a hardware keyboard is enabled. If thissetting is not active, a software keyboard is used automatically.Default: false

TouchActivate Setting through which touch-based input is enabled.Default: true

Step 3: Setting as startup application

If the PLC HMI is to start automatically with the boot project when the computer starts up, a link toTc3PlcHmi.exe must be added in the StartUp folder. The following steps are required to do this:

1. Open the directory C:\TwinCAT\3.1\Target\StartUp2. Use the 'New' option in the context menu (right-click) to add a new link3. Enter C:\TwinCAT\3.1\Components\Plc\Tc3PlcHmi\Tc3PlcHmi.exe as storage location4. Confirm this dialog and the following dialog

For Beckhoff CE devices the procedure is different. Here, the following settings are required:

1. Start the Beckhoff startup manager under ‘Start’ → ‘StartMan’.2. Add a new item via the ‘New’ button.3. Name the item ‘Tc3PlcHmi’ and select the type ‘ShellCommand’.4. Confirm the dialog.5. Select ‘Autostart’ under the ‘Startup Options’ and enter a time under ‘Delay’ in order to delay opening

the client until the PLC project was started.6. Change to the ‘Shell Command’ tab.7. Under ‘Enter Shell command’ enter ‘\Hard Disk\TwinCAT\3.1\Components\Plc\Tc3PlcHmi\X.exe’.

Replace the ‘X’ with the name of the client exe file that is stored under the specified path. This maydiffer between ARM and ATOM devices, for example.

8. Confirm the dialog.

Step 4: Starting the client

A PLC HMI client can be started via the Tc3PlcHmi.exe application. It is located in directory ‘C:\TwinCAT\3.1\Components\Plc\Tc3PlcHmi’. It is possible to create a link to application at any location. A link indirectory ‘C:\TwinCAT\3.1\Target\StartMenuAdmin\Tools’ enables the application to be started via theTwinCAT icon in the context menu under “Tools”.

TC3 PLC HMI 7Version: 1.1

Page 8: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

PLC HMI

If the development PC is connected, the visualization can also be displayed in the development environment.However, it is not equivalent to an integrated visualization, but is also based on a PLC HMI client.

For Beckhoff CE devices, a setting in the Visualization Manager must be enabled before the client is started.This setting enables automatic conversion of all image files from svg format to bmp format. This step isrequired, because under CE only image files in svg format are supported in the PLC HMI client. Both imagefile formats are nevertheless loaded on the target system, since a PLC HMI Web client continues to use thesvg format. The PLC HMI client for CE can be found in directory ‘\Hard Disk\TwinCAT\3.1\Components\Plc\Tc3PlcHmi’.

Remote operation of a PLC HMI clientA PLC HMI client can also be operated remotely on a third computer, which is neither the developmentcomputer nor the control computer. To do this, the following requirements must be met:

• A TwinCAT 3 Build 4018.0 ADS or later is installed on the system.• An ADS communication with the control computer, on which the visualization code also runs, is

established (TwinCAT icon → ‘Router’ → ‘Edit routes’ → ‘Add…’).• The Tc3PlcHmi.ini file was adjusted on the system, on which the client is to run.

Editor for the ‘TargetVisualization’ object

The object ‘TargetVisualization’, which can be added under the Visualization Manager object, enablesthe PLC HMI and contains its settings. They can be edited in the Editor window, which opens by double-clicking on the object.

TC3 PLC HMI8 Version: 1.1

Page 9: Manual TC3 PLC HMI - Beckhoffftp.beckhoff.com/.../automation/twincat3/TF1800_TC3_PLC_HMI_EN.pdf · PLC HMI2PLC HMI The PLC HMI is an extension of the runtime system and enables the

PLC HMI

Start visualization Here you have to specify the name of the visualization object that is to beopened as the first page when the target visualization client starts up. Avisualization object is already entered here by default. The input assistantcan be used to select a different visualization object. If the PLC projectcontains only one visualization object, this is automatically used as startvisualization.

Update rate (ms) The update rate in milliseconds, with which the data in the PLC HMI isupdated.

Show used Visualizations Button for opening the standard dialog of the Visualization Manager: Hereyou can select the visualizations to be used for the PLC HMI.

Scaling options

Fixed The size of the visualization is retained, irrespective of the screen size.Isotropic The size of the visualization depends on the size of the screen. The

visualization retains its proportions.Anisotropic The size of the visualization depends on the size of the screen. The

visualization does not retain its proportions.Use automatic detected clientsize

The PLC HMI fills the client screen.

Use specified client size The PLC HMI fills the screen area determined by the following dimensions.• Client height: height in pixels• Client width: width in pixels

Presentation options

“Antialiased” drawing Activate this option, if antialiasing is to be used when the visualizations aredrawn in the visualization editor window of the programming system.(Offline or online)

Default text input

Touch screen Select this option if the target device is operated with a touchscreen bydefault.

Keyboard Select this option if the target device is operated with a keyboard bydefault.

Note: This setting is only then active if the input type “Standard” is selected in the input configuration of thevisualization element. In this case, the default text entries defined in the Visualization Manager are used.

Note

The settings in the ’TargetVisualization’ object have currently no effect. The settings mustbe made directly in the existing entries in the .ini file.

TC3 PLC HMI 9Version: 1.1