8.4 PLC Program Viewer PLC Program Viewer Presentation The PLC program viewer feature enables you to visualize and monitor UnityPro programs in run mode using a Web Designer. The PLC programs are displayed and animated as they are in UnityPro PLC programs developed in any languages supported by UnityPro can be visualized: Ladder (LD) Instruction List (IL) Function Block Diagram (D) Structured Text () Sequential Function Chart (SFC) Accessing the PLC Program Viewer 1 Double click the PLC (Devices directory) you want to monitor in the Web Designer navigator. 2 Click the PLC Programs tab. 35016143 09/2008 203
Importing PLC Programs The following procedure shows you how to import PLC programs from UnityPro to Web Designer. 1 Click Import on the right side of the PLC Program window. Result: the Open window appears. Open Look in: Recent documents Desktop My documents Desktop My documents My computer Network places Copy of CD_FCHMI V1.1 Doc_FCHMI_fr FMSGML light patch Graphic ftp: Shortcut to Schneider2 TMD server Web Designer My computer Network places File name: Type of files *.xef Open Cancel 204 35016143 09/2008
2 Select the UnityPro file (.XEF) containing PLC Programs data. Click Open. Result: the Import PLC Programs window appears. Import of PLC Programs Program Tasks MA Sections LD Start_process Weighing_Mat_A Weighing_Mat_B D Mixer LD Heating Feeder D Forming D Transportation_Belt SFC Packaging_Robot S FC chartsource s? Init_Robot Left_Rotation Material_packa Arm1 Arm2 Packaging_5_0 Transitions LD Packaging IL Alarming diag_system Watchpoint LD diagnostic Section SR Packaging_10_0 Import of selected PLC Programs s Select All Unselect All Application File C:\UnityPro\Process.stu Clear Browse Import Cancel 3 Select the sections of the PLC program you want to monitor using the checkbox. Click Browse to select the U or.xvm file associated to the.xef for variables animation. Note: if you select a.xvm file, only elementary types of variables are animated. Click Import. Result: the sections of the PLC program selected appear in the navigation tree of the PLC Program tab. 35016143 09/2008 205
Accessing an Animated PLC Program 1 Select a target in a project. 2 Click Target Connect Simulation (Alt + S) to switch to simulation mode or, click Target Connect Target (Alt + C) to switch to run mode. 3 Extend the target directory. 4 Select a device in the Devices directory. 5 Right-click and select Open. Result: an Internet Explorer window in which the PLC program viewer window associated with the selected device appears. 5 Select the PLC program section you want to visualize in the navigation tree. Result: the PLC program appears in the Display window. 206 35016143 09/2008
Representation and Color Convention The following figure shows you the PLC Program Viewer window: FactoryCast Web Server TSX WMY100 Microsoft Internet explorer File Edit View Favorite Tools? Address Previous Monitoring Data Editor Data Editor Lite Graphic Editor Graphic Viewer Operator screens Plc program viewer Custom Pages With password Without password http://85.16.20.100/ Applet Plc Program viewer started Search Start_process Weighing_Material_A Weighing_Material_B Mixer Heating Feeder Forming Transportation_Belt Packaging_Robot S FC chartsource s Init_Robot Left_Rotation Material_packa Arm1 Arm2 Packaging_5_0 Transitions LD Packaging IL Alarming diag_system Watchpoint LD diagnostic Section SR Packaging_10_0 Favorite FactoryCast TM Home Documentation Monitoring PLC PROGRAM VIEWER Device0.plc Tasks MA Sections LD LD SFC ready_to_mix Valve_B_closed TSX WMY100 x OK Links URL Control Diagnostics Maintenance Setup Sec Sec 1 2 3 2 2 2 MixerA MixerB _motor TP done Refill_feeder TM FactoryCast, Copyright c 1998-2008, Schneider Automation SAS. All rights reserved. TP TP TON -done feel_feeder Local intranet 1 2 1 Navigation tree: select the section of the PLC program you want to visualize 2 Display window: this zone display the animated PLC program Variables animation: Boolean are displayed in: green if its value is true red if its value is false Other types display the name or the value of the variable in yellow. Use the tool tip to see more information as the name of the variable, its type, its address and its comment. Links animation: Links connected to boolean variables are displayed in green or red depending on the value of the variable they are connected to (green if true red if false). Other links are displayed in black. 35016143 09/2008 207