PL7 Installation and Startup Guide Contents A Section Page 1 General 1/1 1.1 Document Structure 1/1 1.2 Presentation of PL7 Software 1/2 1.3 Developments 1/4 2 Software Setup 2/1 2.1 Configuring the Terminal 2/1 2.1-1 Minimum Configuration 2/1 2.1-2 Typical Configuration 2/1 2.2 PL7 Software Installation 2/2 2.2-1 Preliminary Operations 2/2 2.2-2 The Software Packages and Their Contents 2/3 2.2-3 Installation Procedure 2/4 2.2-4 PL7 Directories and Files 2/5 2.3 Installing Updates and Upgrades 2/6 2.4 Installing Drivers 2/7 2.5 Execution 2/10 2.6 Uninstalling PL7 2/10 2.7 Errors 2/11 1
A PL7 Installation and Startup Guide Contents Section Page 2.8 Automatic Installation 2/12 2.8-1 Call Syntax 2/12 2.8-2 Syntax of Command File Fields (*.INI) 2/12 2.8-3 Error Handling 2/14 3 Hardware Setup 3/1 3.1 Connections 3/1 3.1-1 PC <-> PLC connection 3/1 3.1-2 FT <-> PLC connection 3/2 2
1.1 Document Structure Section 1 General 1 1 General A This manual describes PL7 Micro, Junior, Pro and Pro Dyn software on a PC with one of the following operating systems : i Windows 95, Windows 98 i Windows NT 4.0 Part A deals with hardware and software setup. Part describes the functions and uses of the software. Throughout this document, the term PL7 software is used to refer to PL7 Micro, Junior, Pro or Pro Dyn without differentiation. For further information please consult other manuals with the reference TLX DOC PL7 33 E : i Reference Manual (describes the languages and instructions) i TSX37 Application-Specific Functions Manual (describes the software setup for TSX37 application-specific functions) i TSX57 Application-Specific Functions Manual (describes the software setup for TSX57 application-specific functions) i TSX37-TSX57 Communication Manual (describes communication) i PL7-2 Converter Manual (describes the conversion of a PL7-2 application to PL7 Micro, Junior or Pro) i PL7-3 Converter Manual (describes the conversion of a PL7-3 application to PL7 Junior or Pro) i ORPHEE Converter Manual (describes the conversion of an ORPHEE application to PL7 Junior or Pro) i Runtime Screens Manual (describes the installation of the runtime screens) 1/1
A 1.2 Presentation of PL7 Software PL7 Micro, Junior and Pro software packages are programming and debugging tools for TSX Micro and TSX Premium PLCs. PL7 Pro Dyn software is an operating tool (supervision, diagnostics and maintenance) for TSX Micro and TSX Premium PLCs. It cannot be used to create or modify an application. The software is available in three different packages : i software package : used to install PL7 V3.3 software i software update package : used to update an older version to a new version (for example : PL7 Micro V1.0 to PL7 Micro V3.3) i software upgrade package : used to upgrade an older version to a new version with higher-level functions (for example : PL7 Micro V1.0 to PL7 Junior V3.3) PL7 software package references TLX CD PL7M P 33 M and EF : PL7 Micro TLX CD PL7J P 33 M and EF : PL7 Junior TLX CD PL7P P 33 M and EF : PL7 Pro TLX CD PL7PD P 33 M and EF : PL7 Pro Dyn TLX RCD PL7M P 33 M and EF : Update for PL7 Micro to PL7 Micro, new version TLX RCD PL7J P 33 M and EF : Update for PL7 Junior to PL7 Junior, new version TLX RCD PL7P P 33 M and EF : Update for PL7 Pro to PL7 Pro, new version TLX RCD PL7PD P 33 M and EF : Update for PL7 ProDyn V3.x to PL7 ProDyn, new version TLX UCD PL7J P 33 M and EF : Upgrade for PL7 Micro or Junior V*.* to PL7 Junior, new version TLX UCD PL7P P 33 M and EF : Upgrade for PL7 Junior V*.* to PL7 Pro, new version A PL7 software package comprises : i a PL7 software installation CD-ROM i a CD-ROM containing the different versions of operating systems for TSX 37 and TSX 57 i a TSX 07/37/57 PC UNI-TE terminal port cable (reference TSX PCU 1030, not supplied with updates and upgrades) i a PL7 installation and startup guide (this manual) i a product identification number : this number should not be discarded, as it is required whenever PL7 Micro, Junior, Pro or ProDyn software is being installed, updated or upgraded i a CD-ROM containing French/English documentation 1/2
General 1 A Note : The floppy disks for installing PL7 software can be ordered separately. Functions of PL7 software PL7 Micro PL7 Junior PL7 Pro PL7 Pro Dyn Programming TSX Micro TSX Micro and TSX Micro and no TSX Premium TSX Premium Language G7 CHART yes yes yes MACROS no TSX Premium TSX Premium LD yes yes yes IL yes yes yes ST no yes yes Sections yes yes yes Function no no yes modules Debugging yes yes yes no Adjustment yes yes yes yes Diagnostics no yes yes yes display Runtime no no creation/use creation/use screens DF types no use creation/use no Diagnostic no no TSX/PCX/PMX 57 display DF Storage of TSX Premium TSX Premium TSX Premium symbols in the PLC Application yes yes yes yes doc. file 1/3
A 1.3 Developments PL7 software can be used to access applications at all levels. PL7 Micro, Junior and Pro software can be used to create, read and modify applications without changing the version or to convert them to version V3 by simply reconfiguring the processor (select the V3 processor during hardware configuration). PL7 Pro Dyn software can be used to access an application in read-only mode, but cannot be used to convert an application to version V3. Comment : Conversion cannot be reversed. The application, once converted to be executed by a V3.0 processor, can no longer be executed by a processor of an earlier version. PL7 software Applications Processors PCMCIA memory V1.0, V1.5 and V2.0 level versions YES NO YES YES NO V3.0 or V3.3 level versions YES YES Note : V1.0/V1.5/V2.0 PLC processors cannot execute V3 applications. 1/4
General 1 A Main developments in PL7 V3.3 software The new functions provided by PL7 Micro, PL7 Junior, PL7 Pro and PL7 ProDyn products in these new versions are the following : - functional view and function modules - partial protection of an application (access rights for the sections) - storage of the symbols database in the PLC - PL7 used in server mode (Automation OLE) - development of the variables editor and LD editor - import/export NIOF - FIPIO developments and other configuration developments (1/2 racks, new modules, etc) - user function blocks (Derived Function lock) written in LD - functions for the Diagnostics offer (Diag DF) - display of the documentation file on screen - Runtime screens : diagnostics viewer, setting screen parameters, etc. PL7 PL7 PL7 PL7 TSX TSX Micro Junior Pro ProDyn Micro Premium Partial protection of sections x x x x x Function modules x x x DF creation in LD x x DF use in LD x x x x Import/Export NIOF x x x Storage of symbols in PLC x x x x PL7 in server mode x x Half racks x x x x Data editor developments x x x x Fipio developments x x x x Import/Export Grafcet section x x x Documentation file display x x x x LD editor developments x x x x Runtime Screens developments x x Diagnostic functions x x x 1/5
A 1/6
2.1 Configuring the Terminal 2.1-1 Minimum Configuration Section 2 Software Setup 2 2 Software Setup A Processor 486 DX5 133 MHz System Windows 95 RAM 32 Mb Drives Hard disk 50 Mb for the software 25 Mb for the temporary directories Floppy disk Ports COM serial port available for connection to the PLC (COM1 to COM4) Parallel printer port (LPT1 to LPT4) Monitor VGA 2.1-2 Typical Configuration Processor Pentium 166 Systems Windows 95 / 98 Windows NT 4.0 RAM 32 Mb 48 Mb Drives Hard disk 50 Mb for the software 25 Mb for the temporary directories CD-ROM Floppy disk Ports Monitor COM serial port available for connection to the PLC (COM1 to COM4) Parallel printer port (LPT1 to LPT4) At least VGA (SVGA with color management on 24 bits is recommended) Note : The characteristics described concern configuration for the installation of PL7 software only. If PL7 is used simultaneously with other software packages a more powerful configuration may be required. 2/1
A 2.2 PL7 Software Installation 2.2-1 Preliminary Operations efore installing PL7 software on disk, read the license and guarantee certificates concerning the restrictions which apply to copying and installing the software. PL7 can be installed from the CD-ROM. The floppy disks for installing PL7 software can be ordered separately. If the latter are used, make copies of them and use these backup copies to work with, so as to avoid accidental damage to the originals. Automatic Installation This special PL7 installation mode can be used to perform fully automatic installation, which does not require any action on the part of the user even in the event of an error as it takes the necessary data from a parameter file as it sends a report in the form of a file Refer to section 2.8 for details of automatic installation. 2/2
Software Setup 2 A 2.2-2 The Software Packages and Their Contents It is possible to select the content of the PL7 software to be installed. Standard installation is simpler, but customized installation enables the space occupied by the software to be optimized. Standard installation Software PL7 Micro PL7 Junior PL7 Micro PL7 Pro Dyn Contents Kernel, Function library, UNI-TELWAY driver Servers (security management) Demonstration application FIP driver PL7-2 converter Kernel, Function library, UNI-TELWAY driver Servers (security management) Demonstration application FIP driver PL7-2 converter PL7-3 converter S1000 converter Kernel, Function library, UNI-TELWAY driver Servers (security management) Demonstration application FIP driver Import/Export NIOF function PL7-2 converter PL7-3 converter S1000 converter Kernel, Function library, UNI-TELWAY driver Servers (security management) Demonstration application FIP driver 2/3
A 2.2-3 Installation Procedure The software can be installed either from a CD-ROM or from floppy disks. In the latter case, the user must install the floppy disks one by one. Insert the CD-ROM Insert the first floppy disk Launch the Setup.exe file Confirm the Welcome screen with Next Select the software language and confirm with Next Enter the product identification number and confirm with Next (maximum of 3 entry attempts) Enter the user settings and confirm with Next Select the type of installation Standard Custom common to all installations Select the elements to be installed and confirm with Next Entries can be modified by clicking on Previous Define an installation path and confirm with Next Define the various installation paths and confirm with Next Confirm with Next Confirm with Next Press Return to Windows to exit the installation 2/4
Software Setup 2 A 2.2-4 PL7 Directories and Files On C: \PL7user\ : directory containing the demonstration and client applications \Pl7temp\ : directory used as temporary space \Config.sys : modified file incorporating the UNITELWAY and FIPWAY drivers \Config.001 : old configuration file On the path defined by the user (for example : D:\programs\) \Oflib32\ : directory containing the functions \Pl7micro33\ : directory containing the PL7 Micro executables and module descriptions \Pl7junior33\ : directory containing the PL7 Junior executables and module descriptions \Pl7pro33\ : directory containing the PL7 Pro executables and module descriptions \Pl7prodyn33\ : directory containing the PL7 Prodyn executables and module descriptions \Pl7sys\ : directory containing files common to all PL7 programs D:\Xwaydrv\ : directory containing the COM drivers On C:\Windows \Pl7sys\ : directory containing the log \Pl7sys\histo.ref : file containing the installation log \Pl7sys.ini : initialization file On C:\Windows\Start Menu\Programs \Modicon Telemecanique\ : directory containing the launch icons 2/5
A 2.3 Installing Updates and Upgrades! To update / upgrade a version V3.0 or later PL7 software package, the user must check that the software is present on the terminal or operating system. If it is not present, it must be reinstalled. Insert the CD-ROM Insert the first floppy disk Launch the Setup.exe file Confirm the Welcome screen with Next Select the language and confirm with Next Enter the product identification number and confirm with Next Change the operating system? Yes No Old version present on the terminal? Yes No No Reinstall the software Version <3.0 CD-ROM Yes Insert the first floppy disk of the older version and confirm with Next Installation of the update / upgrade from Floppy disks Reinsert the floppy disk of the new version and confirm with Next Continue the installation procedure (see section 2.2-3, text with gray background) 2/6
Software Setup 2 A 2.4 Installing Drivers oth Pl7 FIPFPC10 and UNITELWAY communication drivers have their own installation methods which differ from those of PL7. When PL7 is installed from a set of floppy disks, installing the two drivers is the responsibility of the user. The user must simply execute the setup.exe program in each set of floppy disks for the drivers. However, when the installation is from a CDROM, the driver installations are activated automatically after PL7 has been installed. When installing the drivers from floppy disks 1 From the Start menu, select Programs. 2 Select the Modicon Telemecanique group. 3 Select XWAY Driver Manager. X-WAY tab This tab enables the user : to consult the list of installed drivers to install or update drivers to delete drivers To install a driver 1. Click on the Install/Update button. 2. Select the directory which contains the driver using the rowse button. 3. Open the directory and select the setup.exe file then click Open. 4. Confirm starting the installation with OK. 2/7
A FIP tab This tab is used to configure the FIPWAY driver. For information on adjusting the driver parameters, refer to section 3.2-2 of part. UNITELWAY tab This tab is used to configure the UNITELWAY driver. For information on adjusting the driver parameters, refer to section 3.2-1 of part. XWAY Test tab This tab is used to test the basic driver operation of an XWAY driver by means of connection and transmission of requests. 1 2 3 2/8
Software Setup 2 A (1) Driver group Name : Name of the driver to be tested (UNITELWAY, FPC10, etc). Driver number : Instance number of the driver to be tested (usually 1). Remote address : XWAY address of the remote station in the format network.station.port. Address 0.254.0 is the default address (for example, terminal port). For a network connection (for example, FIPWAY), the user must fill in this field as follows: 3.5.0 to address station 5 of network 3, for example. Port 0 corresponds to the system server port for the relevant station. Local address : Internal address used locally by the driver. This field is filled in automatically, for information purposes, by the driver when the connection has been made. (2) Request group Request : Name of the driver to be tested (UNITELWAY, FPC10, XIP, etc). Type : Type of request. Different sizes of mirror requests are suggested, as well as reading system bit %S6 of the PLC. Wait time : Wait time in ms for the response to the transmitted request (time out). Status : Status of the connection, disconnected, connecting or connected. (3) Command buttons Connect : Opens an internal communication channel on the selected driver. Start : Starts transmitting requests to the station defined in the Remote address field of the Driver group. This button is only active when online. Details : Displays system information about the driver. This button is only active when online. About : Displays the Xway Manager version and copyright. 2/9
A 2.5 Execution From the Start menu : 1 Select the Programs group from the Start menu. 2 Select the Modicon Telemecanique group. 3 Select the software icon. Notes : The UNI-TELWAY and FIPWAY icons are used to access the parameter settings for the terminal / UNI-TELWAY or terminal / FIPWAY links. Readme contains additional information about the software and documentation. Access security management is used to access the PL7 access security management function. To launch PL7 ProDyn, a user profile must first be defined (see part, section 3.1). 2.6 Uninstalling PL7 The uninstall function is accessed via the Add/Remove Programs dialog box in the Control Panel : 1 Select the Install/Uninstall tab. 2 Select PL7 *** V3.*. 3 Select Add/Remove. 4 Select the elements to be removed (kernel and/or common components). 5 Select OK. 6 Confirm with Yes. 7 Confirm the information screen with OK. Comments : The uninstall function removes programs one at a time. To remove all programs, repeat the procedure. Uninstalling has no effect on elements shared by other programs (Pl7sys.ini, Config.sys, Pl7user, Pl7temp, etc). 2/10
Software Setup 2 A 2.7 Errors This section deals with errors which may occur when installing PL7 software. Error Read error Installation freezes Installation taking too long Recommended action Check the contents of the floppy disk using the Scandisk command. Check that the terminal does not have a virus. Deactivate the anti-virus program while installation is in progress. Defragment the disk onto which the software is being installed. 2/11
A 2.8 Automatic Installation This special mode can be used to perform fully automatic installation, which does not require any action on the part of the user. 2.8-1 Call Syntax The "SETUP.EXE file" command must be executed, where file is the full path for an.ini file (for example, C:\INSTALLAUTO.INI) containing all of the answers to the questions which may be asked by the installation. If the file is not given a path, the software will try to find this file in the Setup start directory. If the file does not exist, the installation will quit with an error. 2.8-2 Syntax of Command File Fields (*.INI) Automatic installation does not offer all of the options given in normal installation. It is inevitably in customized mode, and the core is always installed by default. Key for the heading Possible values Use Required [CONFIGURE] LANGUAGE 1,2,3,4,5 Definition of the installation Yes language 1 FRENCH 2 ITALIAN 3 GERMAN 4 ENGLISH 5 SPANISH MAIN_PATH Target path for main product Yes USERNAME User name Yes COMPANYNAME Company name Yes IDCODE Product identification code Yes KEEP_OLD_PATH TRUE or FALSE Keep paths to existing products Yes on the disk or not KEEP_MORERECENT_OF TRUE or FALSE Keep most recent OFs on the Yes station or not CONVPL72 = TRUE or FALSE Installation of converter No CONVPL73 = TRUE or FALSE Installation of converter No CONV1000= TRUE or FALSE Installation of converter No FIPDRV = TRUE or FALSE Installation of FIP driver No IMPORT_EXPORT_FNE TRUE or FALSE Installation of IMPORT No EXPORT FNE tool 2/12
Software Setup 2 A Example1 Install core and two converters in French in E:\PL7\TEST\SU1 [CONFIGURATION] MAIN_PATH=E:\PL7\TEST\SU1 USERNAME=DS COMPANYNAME=schneider ; 1= installation in French LANGUAGE=1 ; enter user identification code IDCODE=xxxxxxxxxx KEEP_OLD_PATH=TRUE KEEP_OF_MORERECENT=TRUE CONVPL72 = TRUE CONVPL73=TRUE CONV1000=FALSE FIPDRV=FALSE IMPORT_EXPORT_FNE=FALSE ; Example2 Install core and a series 1000 converter in French in E:\PL7\TEST [CONFIGURE] MAIN_PATH=E:\PL7\TEST USERNAME=USER COMPANYNAME=COMPANY ; 1= FRENCH LANGUAGE=1 ; enter user identification code IDCODE=xxxxxxxxxxxxx KEEP_OLD_PATH=TRUE KEEP_OF_MORERECENT=TRUE CONVPL72 = FALSE CONVPL73=FALSE CONV1000=TRUE FIPDRV=FALSE IMPORT_EXPORT_FNE=FALSE ; 2/13
A Example3 Install all of the elements in German in E:\program files\test [CONFIGURE] MAIN_PATH=E:\program files\test USERNAME=DS COMPANYNAME=schneider LANGUAGE=3 ; enter user identification code IDCODE=xxxxxxxxxxxxx KEEP_OLD_PATH=TRUE KEEP_OF_MORERECENT=TRUE CONVPL72 = TRUE CONVPL73= TRUE CONV1000= TRUE FIPDRV= TRUE IMPORT_EXPORT_FNE= TRUE 2.8-3 Error Handling The return code for the installation is indicated in the INSTALL.LOG file which is in the WINDOWS\PL7SYS directory. The contents are in the following form line 1 : result code following lines : character strings indicating the meaning of the return Possible values for RESULT Value associated Solution with the INFO key 0 = OK 1 : OF installation warnings Uninstall the OFs 2 : Not enough space on the disk Clean the target disk 3 : INSTALL.INI file missing or incorrect Key name Provide correct is incorrect information for INSTALL.INI 4 : Memory space warning REOOT the PC 5 : File protected by Windows. File name is REOOT the PC Cannot overwrite file. protected 6 : Files not found in the installation. File names are Reconstruct the The installable form is incorrect. missing installable form 7 : Installable form incorrect. _setup.lib invalid 8 : DLLs cannot be loaded DLL names 2/14
3.1 Connections Section 3 Hardware Setup 3 3 Hardware Setup A Connections specific to the terminal (monitor, keyboard, mouse, printer, AC supply) are described in the manufacturer's documentation. This section describes the connections from the terminal to the PLC. 3.1-1 PC <-> PLC connection This connection requires a 2.5 m TSX PCU 1030 cable, supplied with new software packages (not supplied with update and upgrade packages). TSX 57 TSX 37 PC AC supply AC supply TSX PCU 1030 AC supply Serial link connector TSX PCU 1030 3/1
A 3.1-2 FT <-> PLC connection Connecting an FTX 517 terminal requires a 2 m T FTX CF 020 cable. Connecting an FT 2000 terminal requires a 2.5 m TSX PCU 1030 cable, supplied with versions of the new software packages (not supplied with update and upgrade versions). TSX 57 TSX 37 FT 2000 Serial link connector FTX 517 Mains Mains TSX PCU 1030 TSX PCU 1030 Mains T FTX CF 020 3/2
PL7 Installation and Startup Guide Contents Section Page 1 General 1/1 1.1 Introduction 1/1 1.2 General Layout of the Software 1/1 1.2-1 General 1/1 1.2-2 Standard Elements 1/2 1.2-3 The Toolbar 1/3 1.2-4 The Status ar 1/4 1.3 Using Online Help 1/5 1.3-1 Contextual Help 1/5 1.3-2 Help Topics 1/5 2 Presentation of PL7 2/1 2.1 Developing an Application 2/1 2.2 Offline Mode 2/2 2.3 Creating an Application 2/2 2.4 Structure of an Application 2/3 2.5 Editing the Configuration 2/6 2.6 Program Structure 2/7 2.7 Editing DF Types 2/8 2.8 Editing Variables 2/9 2.9 Runtime Screens 2/10 1
PL7 Installation and Startup Guide Contents Section Page 2.10 Programming 2/11 2.10-1 Ladder Language 2/11 2.10-2 Instruction List Language 2/12 2.10-3 Structured Text Language 2/13 2.10-4Grafcet Language 2/13 2.10-5 Accessing Online Language Help 2/15 2.10-6Process Diagnostic DFs 2/16 2.11 Online Mode 2/18 2.12 Transfers 2/19 2.12-1 Terminal / PLC Program Transfer 2/19 2.12-2 File / PLC Data Transfer 2/19 2.13 Animation Tables 2/20 2.14 Debugging 2/21 2.14-1Debug Tools 2/21 2.14-2CPU Debug Screen 2/21 2.14-3 Grafcet Debug Screen 2/22 2.14-4 Debugging Function Modules 2/22 2.15 Diagnostics 2/23 2.16 Structure of the Documentation File 2/24 2.17 Utilities 2/25 2.17-1 Converters 2/25 2.17-2 Import/Export 2/25 2.17-3Cross References 2/27 2.17-4 Replacing Variables 2/28 2.17-5 Application Protection 2/28 2
PL7 Installation and Startup Guide Contents Section Page 3 Tools Appendix 3/1 3.1 PL7 Access Security Management 3/1 3.2 Connections 3/2 3.2-1 UNI-TELWAY Link 3/2 3.2-2 FIPWAY Link 3/3 3.2-3 Connection Problems 3/4 3.3 OS-LOADER 3/4 3
PL7 Installation and Startup Guide Contents Section Page 4
Section 1 General 1 1.1 Introduction 1 General This part gives a brief description of the different elements used in the installation of a PL7 application. PL7 Micro, Junior and Pro software packages are programming and debugging tools for TSX Micro and TSX Premium PLCs. PL7 Pro Dyn software is an operating tool (supervision, diagnostics and maintenance) for TSX Micro and TSX Premium PLCs. It cannot be used to create or modify an application. The user should refer to the online Help for more detailed information. 1.2 General Layout of the Software 1.2-1 General PL7 software uses all the standard Windows features : i mouse or keyboard i dropdown menus i browsers i toolbars and palettes with icons i several tools in parallel i online Help and information balloons 1/1
1.2-2 Standard Elements PL7 software uses the Windows interface and looks like this : 1 2 3 4 5 6 7 1 Menu bar accesses all the software functions 2 Toolbar provides fast access via the mouse to all the standard functions 3 Help 4 What's This? (functions in the same way as contextual Help) 5 Comments field 6 Palette of graphic elements 7 Working context 1/2
General 1 1.2-3 The Toolbar The toolbar provides fast access to the basic software functions using the mouse : New application Opens an application Saves the application Prints all or part of the application Undoes the last modifications Confirms the modifications Go to Application browser Cross references Function library PLC <-> Terminal transfer Offline mode Online mode Switches the PLC to RUN Switches the PLC to STOP Runs / stops the animation Cascades the windows Tiles the windows horizontally Tiles the windows vertically Help What's This? Note : These functions can also be accessed from the menu. 1/3
1.2-4 The Status ar The status bar, located at the bottom of the screen, gives a variety of information linked to the operation of the software : Mini online Help Operating mode PLC status Network address GRAFCET mode Current modification Animation indicator Keypad functions 1/4
General 1 1.3 Using Online Help Online Help, which can be accessed as soon as PL7 is launched, describes the installation of the various software editors in sequence. It also provides detailed information on : i users i PL7 in general i PL7 language instructions i using PL7 i TSX Micro and Premium applications There are two ways of accessing the online Help : i via the contextual help function What's This? i via the Help Topics browser 1.3-1 Contextual Help Contextual help can be used to directly display the help topic for an element by selecting that element. The procedure is as follows : 1 Select the icon. 2 Select the element to be identified (a menu, a screen, a toolbar, etc) Contextual help can also be displayed by pressing F1. 1.3-2 Help Topics Online Help appears in the form of a Help Topics browser. The user can access this browser via : i the Index command from the? menu i the icon 1/5
It comprises : i Help contents i Index : search for a topic using a keyword i Find : general search using a keyword Search from the contents 1 Select and open the directory. 2 Select and display the topic. 3 Select the keyword. Search from the Index / Find 1 Select the Find tab. 2 Enter the search term. 3 Select and display the topic from the dropdown menu. Return to the contents or index From the description page, select Contents or Index. 1/6
2.1 Developing an Application Section 2 Presentation of PL7 2 2 Presentation of PL7 Offline mode Creating an application Editing the configuration Setting parameters for applications, software, Grafcet Editing DF types Setting parameters or use Editing the runtime screens Setting parameters or use Program structure Single task, multitask, fast task, events, sections, function modules Editing variables Symbolization of bits, words, etc Programming Online mode Transfer Runtime screens Animation tables Debugging the application Runtime screens Creating the application documentation file Saving the application Creating the runtime screens documentation file 2/1
2.2 Offline Mode Offline mode (not connected to the PLC) is used to create / modify an application on the terminal. The application being edited is found in the working directory on the hard disk. 2.3 Creating an Application In this operation, the user configures the basis of the application. The following can be selected when creating an application : i the type of PLC i the type of processor i the type of memory card For processor versions earlier than V3.0, the user must select the Grafcet option in order to develop his application in Grafcet. For V3.3 processors, a Grafcet application is developed by defining a Grafcet section in the master task. Accessing the Help function via the browser contents : Using the Software / Application Management / Creating an Application Note : If the application already exists, the corresponding file can be opened. 2/2
Presentation of PL7 2 2.4 Structure of an Application The creation of an application with PL7 software is based on editors and tools which can be accessed from the Application rowser screen. This screen displays the application contents in a tree structure. It is possible to move around the tree, and to access various functions directly, depending on the rights of the software used. Configuration editor Program editor DF editor Variables editor Animation table editor Documentation editor Runtime screens editor Each editor is accessed by clicking with the right mouse button and then selecting Open from the menu, or by double-clicking with the left mouse button on the icon, or using the arrow keys and the Enter key on the keyboard. Accessing the Help function via the browser contents : Using the Software / Application rowser Note : The symbol + in front of a directory indicates that it contains several files or subdirectories. The directories can be opened/closed by double-clicking or using the arrow keys. 2/3
Structuring as function modules A function module groups together the different program components (sections, subroutines, macro-steps, animation tables etc) used to perform a control system function. A function module is defined by a number of attributes (name, comment, programming, associated animation tables etc). A function module contains a program directory (made up of one or more code modules) and an animation table directory. A function module contains a program and animation tables A function module can itself be broken down into lower level function modules which perform one or more subfunctions of the main control system function. Module Feedbox1 has a submodule Stop1 Only PL7 PRO can be used to install function modules on TSX/PMX/PCX57 PLCs. PL7 ProDyn software can be used to display function modules. A function module cannot contain runtime screens. 2/4
Presentation of PL7 2 Representation of a function module in PL7 PRO The software is used to display : i The structural view of the application : This is the standard view in the Application rowser corresponding to the order of execution by the PLC. i The functional view of the application : This is the view of the application divided into function modules corresponding to the control system functions. The Application rowser offers 4 possible displays : i The standard and functional view side by side i The standard and functional view one after the other i The standard view only i The functional view only 2/5
2.5 Editing the Configuration Hardware configuration The configuration editor can be used intuitively and graphically to declare and configure the various components of the PLC : i rack i power supply i processor i application-specific modules Software configuration The configuration editor is also used to set the software parameters for the application, by entering the number of function blocks and registers and the size of the global variable zones. Grafcet object configuration For programming in Grafcet language, the configuration editor can be used to define Grafcet objects (steps, macro steps, etc) and execution parameters (number of active transitions and steps). Comment : In online mode, the configuration editor is also used for debugging, adjustment and diagnostic functions. Accessing the Help function via the browser contents : Using the Software / Configuring the Application 2/6
Presentation of PL7 2 2.6 Program Structure PL7 software enables two types of program structure : i single task structure : the default structure, containing the master task i multitask structure : containing the master task, the fast task and the event tasks PL7 program tasks are made up of several parts, known as sections, and subroutines. Each of these sections can be programmed in a language appropriate to the type of processing. This division into sections makes it possible to create a structured program, and to generate or insert program modules easily. Accessing the Help function via the browser contents : General Information about PL7 / Software Structure 2/7
2.7 Editing DF Types The DF editor can be used to program function blocks specific to the user, which correspond to particular features of individual applications. The DF blocks are used whenever a program sequence is repeated in an application, or to freeze a standard programming operation. They can be exported to all other PL7 applications. PL7 Pro software must be used to create DFs. They can be used with PL7 Junior and Pro software on TSX 57 V3.0 and PCX/PMX 57 PLCs. The parameters and variables are purely symbolic (no addressing in address form) and programming is in Structured Text (ST) and Ladder (LD) language. Accessing the Help function via the browser contents : Using the Software / DFs 2/8
Presentation of PL7 2 2.8 Editing Variables The variables editor can be used to : i symbolize the various objects in the application (bits, words, function blocks, application-specific modules, etc) i set parameters for predefined function blocks (timers, counters, etc) i enter values for constants and select the display base (decimal, binary, hexadecimal, floating point, message) i set parameters for user DFs Accessing the variables is made easier via : i classification by family and type i sort functions (sorting by symbol or address) i the possibility of displaying all the objects associated with a variable (for example, all the bits of a word, all the objects associated with a predefined function block) i the possibility of presymbolizing objects associated with certain application-specific functions i the possibility of running a search with a wildcard on symbols or comments i the possibility of filtering I/O (allows the display, for a given module, of only those input or output variables actually acting on the process) i the Copy / Paste by block of variables function i the possibility of removing Presymbolization i the possibility of displaying the variables used in the program in bold Accessing the Help function via the browser contents : Using the Software / Editing Variables 2/9
2.9 Runtime Screens The Runtime Screens editor is a tool integrated in PL7 Pro and PL7 Pro Dyn software, version V3.0 or later. It is designed to simplify the operation of an automated process. PL7 ProDyn is used to create, modify and save the runtime screens. It is made up of various items of information (explanatory text, realtime values, views, etc), and enables simple and fast action (realtime modification and monitoring of the PLC variables). The editor can be used to design these screens with the aid of the following tools : Screen i Creates runtime screens, families of screens i Manages the Import/Export function for screens and families of screens i Manages the link between the screen number and the screen browse object i Lists all the variables used in a screen i Sets the screen parameters : size, scroll bars, full screen, mouse position, object coordinates and size i Copies and pastes one or more objects i Diagnostics viewer : displays the faults in the application detected by the diagnostic DFs instantiated in the PLC program Message i Creates the messages used in the screens Objects i Creates a graphic object library Runtime screens Diagnostic DF viewer Accessing the Help function via the browser contents : Runtime Screens /... 2/10
Presentation of PL7 2 2.10 Programming The program editor is used to program the functions and application-specific functions to be implemented by the application. It offers the following types of programming language : i Ladder language (LD) i Instruction List language (IL) i Structured Text language (ST) i Grafcet language (G7) Online symbolization Online symbolization is used, when entering LD, IL or ST programs, to immediately associate (without opening the data editor) : - an address with a new symbol - a symbol with a non-symbolized address 2.10-1 Ladder Language The Ladder language editor offers an extensive set of tools to simplify the construction of rungs : i A palette of graphic elements for direct access to the various graphic symbols of the language via the mouse or the keyboard : contacts, oolean logic, coils, operation blocks, predefined function blocks, DF types, etc. i A rung can be drawn without having to fill in each element. i The language objects can be entered and displayed in either symbol format, address format, or both. i A rung is constructed simply by selecting the symbol from the graphic palette and placing it in the correct position in the grid on screen. i A collapsed view. 2/11
It is possible to call assisted entry functions directly from the Ladder language editor : i access to function libraries i access to the variables editor to enter symbols and set parameters for function blocks The rungs are displayed in collapsed form. This means that several rungs can be displayed in the same window, and can be accessed using the scroll bar or their label. Several program modules can be displayed simultaneously. A subroutine can be accessed directly from a call program. New functions : - automatic link line - information box - increased ease of use when entering function blocks - signaling via a no-entry sign if the user tries to move unauthorized objects 2.10-2Instruction List Language The Instruction List language editor is used to enter language instructions and operands via the keyboard. Formatting (alignment of instructions and operands) is performed automatically by the editor. Operands can be entered and displayed in either symbol or address format. The key words of the language and the comments are displayed in color to make the program easier to read. The Instruction List language editor provides help with entering : i instructions on function blocks (eg : %TMi, %Ci, etc) i functions by the function library 2/12
Presentation of PL7 2 2.10-3 Structured Text Language The Structured Text language editor is used to enter program lines via the keyboard, using alphanumeric characters. Operands can be entered and displayed in either symbol or address format. The Structured Text language editor provides help with entering functions by the function library. The key words of the language and the comments are displayed in color to make the program easier to read. 2.10-4 Grafcet Language The Grafcet language editor has an extensive set of tools to simplify construction of the chart : i a palette of graphic objects which can be accessed directly via the mouse or the keyboard (steps, transitions, links, connectors, macro steps, etc) i direct access to the programming of actions or transition conditions i automatic numbering of steps i display for each Grafcet page with lines of steps and transitions i simplified entry of comments i a collapsed view 2/13
A chart is constructed simply by selecting the object required from the graphic palette and placing it in the Grafcet page. The graphics in the palette are updated according to the graphic object which had been programmed immediately before it (fine lines). The Grafcet editor works within an edit zone which can be moved within the complete module comprising a maximum of 8 pages. 2/14
Presentation of PL7 2 2.10-5Accessing Online Language Help Two types of information are available to the user : i information concerning language instructions i information concerning programming in the various languages Language instructions This Help topic describes the structure of the programming instructions. The following information is given for each instruction : i its functions i its syntax i the operands (parameters) Accessing the Help function via the browser contents : Language Instructions /... Language programming This Help topic describes the programming structure. The following information is given for each type of language : i the programming editors i usage rules, order of priority, etc i program composition Accessing the Help function via the browser contents : Using the Software / Programming in (LD, IL, ST, G7) Language 2/15
2.10-6 Process Diagnostic DFs Diagnostic DFs can be used with PL7 PRO or PL7 Junior and comprise : application diagnostic DFs which are used to monitor the process via the application program : - monitor a PL7 equation - monitor the reaction time of the process to a command - monitor the safety conditions - monitor the I/O and the ASI bus application control and diagnostic DFs which are used to control and monitor the application components (EPO) : - check sensor data - check control requests to an actuator - monitor the duration of a movement - store the minimum and maximum durations of a movement - learn the duration of a movement - control an actuator Compatibility : TSX57/PCX57/PMX57 The library is made up of the following DFs : EV_DIA MV_DIA NEPO_DIA TEPO_DIA IO_DIA ASI_DIA ALRM_DIA Monitors the state of 2 bits without taking a time factor into account Monitors the state of 2 bits without taking a time factor into account with the possibility of monitoring the progress of a movement (changes of state of a bit within a defined time limit) Monitors, controls and diagnoses an application component Diagnoses all I/O modules Diagnoses an Asi I/O module Interface with a diagnostic buffer (stores errors) Error message Each DF has its own error message which may be standard or customizable depending on the DF type. 2/16
Presentation of PL7 2 Displaying error messages 1. The Viewer integrated in the PL7 Pro and PL7 ProDyn workshops is used to : - display diagnostic messages clearly (see Runtime Screens documentation) - diagnose the fault using direct access to the program and configuration Direct access to the configuration Direct access to the program editor to display the diagnostic DF 2. A diagnostics Viewer is also available with CCX17 V2.5 (see CCX 17 operator panel documentation). * ACTIVE ALARMS : 011 * 002 03/04/97 11:07:54...NEPO...ACK Failure left motor N 3 <ALT>+<P> -> Status < > -> Return 2/17
2.11 Online Mode Online mode Online mode (connected to the PLC) is used to modify an application in the PLC. The following functions can be executed : i creation / modification of the program in LD, IL or ST i modification of the task period i modification of the predefined function block parameters (except the size of registers) i modification of module parameters and data i import, export an application, PLC in Stop i addition of predefined function blocks i debugging, adjustment i creation / modification of runtime screens i modification of the Grafcet structure in STOP The following functions cannot be executed : i creation of an application i addition or removal of an application-specific module i modification of the I/O channel <-> application-specific function association i modification of the size of a register i modification of the number of internal constants, words and bits i modification of the Grafcet structure in RUN (but steps and transitions can be modified) Comments When online, if any modifications are made, the application is updated in the PLC and in the working directory on the hard disk : i saving in the PLC is automatic i saving on disk must be performed by the user Any modifications made to a runtime screen will not affect the application. When switching to online mode, if the applications on disk in the working directory and on the PLC are different or absent, the software will offer an update option. Symbols and comments stored in the TSX Premium PLC Symbols and comments can be stored in TSX Premium PLCs (PMX 57202, 57302, 57402, 57452 V3.3) fitted with the following memory cards : - 128 kword memory card : TSXMRP 2128P - 256 kword memory card : TSXMRP 3256P 2/18
Presentation of PL7 2 2.12 Transfers 2.12-1 Terminal / PLC Program Transfer Two transfer directions are possible : i terminal to PLC i PLC to terminal Program transfer is used to exchange the application in its entirety, with the exception of the runtime screens. If a memory card used to store symbols and comments is declared in the configuration, the user can choose to transfer the symbols immediately or delay their transfer to a later transfer phase. 2.12-2 File / PLC Data Transfer Two transfer directions are possible : i file to PLC i PLC to file Data transfer is used to exchange application variables only. Accessing the Help function via the browser contents : Using the Software / Application Management / Transfer... 2/19
2.13 Animation Tables Tables containing the variables of the application to be monitored or modified can be created by manual entry or automatically initialized from the rung, statement or sequence selected, or the animated objects in a runtime screen. The variables can then be : i modified i forced to 0 or 1 for bit objects For each numeric variable, it is possible to select the display base (decimal, binary, floating point, ASCII message). Accessing the Help function via the browser contents : Using the Software / Debugging / Animating and Modifying Variables 2/20
Presentation of PL7 2 2.14 Debugging 2.14-1 Debug Tools All PL7 software, except PL7 Pro Dyn, offers a complete set of tools for debugging applications. A tools palette provides direct access to the main functions : i inserting breakpoints i step-by-step program execution i independent execution of the MAST and FAST tasks, etc 2.14-2CPU Debug Screen This screen offers the following functions : i information on the application status i program execution command i access to program and application-specific module diagnostics i access to updating and displaying the realtime clock Diagnostic tools 2/21
2.14-3 Grafcet Debug Screen This screen gives a hierarchical view of the chart with nesting of the CHART module and the macro steps. This view is animated in online mode. The animation is represented by the presence or absence of indicators. Grafcet debug bar The debug bar is used to display the chart status, modify the chart status and provide information on the status of the master task. Accessing the Help function via the browser contents : Using the Software / Debugging /... 2.14-4 Debugging Function Modules The organization of a function module and the distribution of sections, events and Grafcet modules into different modules has no effect on program execution. The program is executed in the order shown in the structural view. To debug a function module, the user has the standard debug functions and additional functions which can be used to debug the application incrementally, function module by function module. Deactivation of all the sections attached to a function module Activation of all the sections attached to a function module Canceling the forcing of all sections attached to a function module 2/22
Presentation of PL7 2 2.15 Diagnostics Diagnostic tool The software provides different diagnostic tools. The diagnostic tools can only be accessed in online mode. i Diagnostics of the last PLC stop i Module diagnostics i Program diagnostics i Order in which modules are called Diagnostic DFs Diagnostic DFs compatible with TSX57/PCX57/PMX57 can be used in PL7 PRO or PL7 Junior (see section 2.10-6). Accessing the Help function via the browser contents : Using the Software / Diagnostics 2/23
2.16 Structure of the Documentation File The documentation editor is linked to the Documentation browser which displays the structure of the documentation file in the form of a tree. It can be used to print all or part of the application documentation file on any graphic printer which can be accessed under Windows using True Type technology (scalable fonts). The print formats supported are : A4 or US letter (portrait). The documentation editor is used to define : i a title page, including the name of the designer and project i general information pages i a footer The documentation editor automatically generates : i the contents i the application documentation file : program, hardware and software configurations i the list of variables, sorted by address or symbol i the cross references, sorted by address or symbol The editor can also be used to display the pages of the documentation file before printing. Function modules When the documentation tool is launched, it detects whether the application is running and whether there is at least one function module containing references to either nonempty program modules (sections, evt, Grafcet modules, Srs) or animation tables. If this is the case, an additional node, Functional view, is added to the tree. Accessing the Help function via the browser contents : Using the Software / Documentation Note : The runtime screens documentation file is edited in offline mode. It can be accessed from the Runtime Screens editor. 2/24
Presentation of PL7 2 2.17 Utilities 2.17-1 Converters The application converters available are : i PL7-2 to PL7 i PL7-3 to PL7 i ORPHEE to PL7 i SMC to PL7 This means that applications which already exist can be ported easily and effectively to TSX Micro and TSX Premium PLCs. The converter is accessed using the Convert command from the File menu. A destination application must be created before commencing. The SMC converter is an optional converter for PL7 Junior or PL7 Pro (reference TLX LC SMC PL7 30M). 2.17-2 Import/Export PL7 software offers different import/export functions : Import/Export source files i Import an LD, IL, ST, Grafcet source file i Export an LD, IL, ST, Grafcet source file i Import variables i Export variables i Import an application i Export an application Import/Export DFs i Import a DF type i Export a DF type i Import a DF type in binary format i Export a DF type in binary format i Import an application containing DF types i Export an application containing DF types Function modules i Export a function module i Import a function module i Import a function module with reassignment of addresses and symbols 2/25
Sections i Import an LD, IL, ST section i Import a Grafcet section i Export an LD, IL, ST, Grafcet section, an SR or an event Application in NIOF format i Import an application in NIOF format i Export an application in NIOF format Example : Import/Export a source file This function is used in TSX 37 and TSX 57 PLC applications to : i save / restore an application i insert or copy all or part of a program module (IL, LD, ST, G7, DF type, symbols source) i insert an IL, LD, ST or G7 section in a MAST or FAST task i insert a program module in an event task i add a DF type to the DF list Comment : Importing and exporting an application involves : i redefining the I/O i searching for and replacing modified objects i initializing the station with the new application This function cannot import/export runtime screens. The Runtime Screens editor has its own import/export function. Accessing the Help function via the browser contents : Using the Software / Programming in (LD, IL, ST, G7) Language / Import/Export a Source File 2/26
Presentation of PL7 2 2.17-3 Cross References The Cross References function is used to : i locate all tasks, sections and program lines where a variable or DF type is used (in address or symbol format) i directly access affected lines i display the search and browser log The Cross References are mainly used when an application is being debugged, to identify the cause of a faulty variable. The Cross References screen appears as shown below : Cross references apply to the application and not to the runtime screens. Accessing the Help function via the browser contents : Using the Software/ Programming in (LD, IL, ST) Language / Cross References 2/27
2.17-4 Replacing Variables The Replace Variables function is used to locate a variable used in an application and replace it with another. The user locates the search zone by defining the program selection. The Search screen appears as shown below : Selections can also be made from the functional view. The Replace function does not affect the runtime screens. Accessing the Help function via the browser contents : Using the Software / Programming in (LD, IL, ST, G7) Language / Replacing a Variable in an Application 2.17-5 Application Protection The Application Protection function is accessible from the Properties screen of the application in offline mode. This function is used for : Global protection of the application This function is used to protect the application in read and write mode after it has been transferred to the PLC. Only the Run, Stop and Init functions accessible to a PLC are authorized on a protected PLC application. Partial protection of sections The type of protection for each section can be defined when it is created (or from the Properties shortcut menu for the section) : no protection, write protection or read/write protection. Defining the type of protection The type of protection can be defined : - for each section - globally for all the sections in the program/task/sections directory 2/28
Section 3 Tools Appendix 3 3.1 PL7 Access Security Management 3 Tools Appendix PL7 access security management, administrated by the super user, limits and controls access to the various PL7 functions. It cannot be accessed from PL7. It can be executed by selecting the PL7 Access Security Management function from the Modicon Telemecanique menu. It affects only the terminal on which the PL7 software is installed, and not the application. y default, it is inactive (this can be modified under Option). Five user profiles are supported by PL7 software: i Read Only (can be accessed by all PL7 software) i Operate (can be accessed by all PL7 software) i Adjust (can be accessed by all PL7 software) i Debug (cannot be accessed by PL7 Pro Dyn software) i Program (cannot be accessed by PL7 Pro Dyn software) Only the super user has the necessary privileges for managing user rights. The access name given to the super user is Supervisor (no password associated on installation). Access the online Help using the following commands : Using the Software / Application Management / PL7 Access Security Management 3/1
3.2 Connections 3.2-1 UNI-TELWAY Link The UNI-TELWAY tool is used to configure the operating parameters for the UNI-TELWAY terminal driver. The terminal / PLC link can be achieved via : i cables i UNI-TELWAY bus (a terminal can access the PLCs connected to the bus) i a modem (used to connect a terminal to a PLC via the telephone network) The tool is launched using the XWAY Driver Manager command from the Modicon Telemecanique menu. The following configuration window appears when the UNITELWAY Driver tab is selected and the configuration button is pressed (see section 2.4) : The user can configure : i the communication port i the transmission speed i the UNI-TELWAY address Access the online Help using the following commands : TSX Micro (or Premium) Application-Specific Functions / Communication / UNI-TELWAY Fieldbus 3/2
Tools Appendix 3 3.2-2 FIPWAY Link The FIPWAY tool is used to configure the operating parameters for the FIPWAY terminal driver. The terminal / PLC link can be achieved via : i a module for the terminal i a PCMCIA card for the PLC The tool is launched using the XWAY Driver Manager command from the Modicon Telemecanique menu. The following configuration window appears when the FPC10 Driver tab is selected and the configuration button is pressed (see section 2.4) : The user can configure : i the FIPWAY operating mode and address i the driver instance i the FIPIO operating mode and connection point Access the online Help using the following commands : TSX Micro (or Premium) Application-Specific Functions / Communication / FIPWAY Network 3/3
3.2-3 Connection Problems This section provides solutions for PLC connection / disconnection problems. Carry out the actions in the specified order and only proceed to the next action if the problem has not been solved. On a portable terminal : i Deactivate the energy management functions. On any type of PC : i Replace the video and mouse drivers with Microsoft drivers. i Set Rx Tx to 0 in the driver parameters. i Deactivate the anti-virus program (if an anti-virus program is installed). i In the [DRIVERS] header add : RetryNumber=2 in the C:\WINDOWS\PL7SYS.INI. 3.3 OS-LOADER This tool is used to update the TSX Micro and TSX Premium PLC operating systems (OS), by loading via the terminal port. It is used to : i display the PLC OS version i load the operating system in a PLC system memory Comment : The load operation includes a delicate phase during which any power breaks on the PLC may render it inoperable. 3/4