Home

Magelis XBTGT, XBTGK HMI Controller - Programming Guide

image

Contents

1. Effects of the USB memory key Download Command There are no effects until the next reboot At the next reboot the effects are the same as a reboot with an invalid context Refer to Reboot see page 78 E100000000638 04 2014 55 Controller States and Behaviors Error Detection Types and Management Detected Error Management The controller manages 3 types of detected errors e external detected errors e application detected errors e system detected errors The following table describes the types of errors that may be detected Type of Description Resulting Error Controller Detected State External External errors are detected by the system while RUNNING or RUNNING Error STOPPED but do not affect the ongoing controller state An with External Detected external error is detected in the following cases Error e A connected device reports an error to the controller Detected e The controller detects an error with an external device Or whether or not it reports an error for example when the STOPPED external device is communicating but not properly with External configured for use with the controller Error e The controller detects an error with the state of an output Detected e The controller detects a loss of communication with a device e The controller is configured for a module that is not present or not detected e The boot application in Fash memory is not the same as the one in RAM Examples e outpu
2. MX7 0 MB7 MW3 X15 MW3 X8 In order to have a match between the XBT GT GK HMI Controller memory area and the controller memory area the ratio between double words of XBT GT GK HMI Controller memory and the double words of controller memory is 2 EIO0000000638 04 2014 25 Memory Examples The following gives examples of memory match for the double words e MD2 memory area of the XBT GT GK HMI Controller corresponds to MD1 memory area of the controller e MD20 memory area of the XBT GT GK HMI Controller corresponds to MD10 memory area of the controller The following gives examples of memory match for the bits e MWO X9 memory area of the XBT GT GK HMI Controller corresponds to M1 1 memory area of the controller because the simple words are split in 2 distinct bytes in the controller memory 26 E100000000638 04 2014 Chapter 5 Tasks Introduction The Task Configuration node in the Applications tree allows you to define one or several tasks to control the execution of your application program The task types available are e Cyclic e Freewheeling e Event This chapter begins with an explanation of these task types and provides information regarding the maximum number of tasks the default task configuration and task prioritization In addition this chapter introduces the system and task watchdog functions and explains their relationship to task execution What Is in T
3. 88 EIO0000000638 04 2014 Troubleshooting and FAQ How do I manually update the SoMachine controller name with my HMI application controller name Copy the controller name from the HMI Vijeo Designer application to the SoMachine application controller name Step Action 1 Display the Vijeo Frame 2 Copy the Vijeo Designer controller name from the Property Inspector 5Name field Property Inspector wx Target A Name XBTGT6340 with Control Description Type XBTGT6000 Series TargetColor 64K Colors Model XBTGT6340 800x600 InitialPanellD 1 Panel1 Display the SoMachine Logic Builder Double click the controller in the Devices tree Result The device editor window opens Select the Controller selection tab Result The Controller selection tab opens 3 MyController x Wg Applications Controller selection PLC settings Task deployment Status Information KO DR C Controller ProjectName IP Address TimeSinceBoot NodeName ProjectAuthor FW_Version Pc Mconesvs Com WXFRH1220D V3 5 3 40 V3 5 3 40 Right click the controller Result The controller contextual menu opens Process communication settings gt lt Remove selected controller fronm list Del 3 amp Remove all controller from list 2 Refresh this controller IF Refresh list F5 NCY Copy to clipboard Ctre Favorites gt icy Change devic
4. ONOoaRhWHND For details on variables refer to Remanent Variables see page 58 Reset Cold Effect Resets all variables except for the retain persistent type of remanent variables to their initialization values Places the controller into the STOPPED state Starting Conditions e RUNNING STOPPED or HALT states e ControllerLockout 0 Methods for Issuing a Reset Cold Command e SoMachine Online Menu Select the Reset cold command e By an internal call by the application or an HMI command using the PLC_W q wPLCControl and PLC_W q_uiOpenPLCControl system variables of the XBT PLCSystem library see Magelis XBTGC XBTGT XBTGK HMI Controller System Functions and Variables XBT PLCSystem Library Guide Effects of the Reset Cold Command 1 The application stops 2 Forcing is erased 3 Diagnostic indications for detected errors are reset 4 The values of the retain variables are reset to their initialization value 5 The values of the retain persistent variables are maintained 52 EIO0000000638 04 2014 Controller States and Behaviors 6 All non located and non remanent variables are reset to their initialization values 7 All fieldbus communications are stopped and then restarted after the reset is complete 8 All I O are briefly reset to their initialization values and then to their user configured default values For details on variables refer to Remanent Variables see page 58 Reset
5. PLCCommunication Library Guide EIO0000000742 FRE EIO0000000743 GER EIO0000000744 SPA EIO0000000745 ITA EIO0000000746 CHS You can download these technical publications and other technical information from our website at www schneider electric com Product Related Information 4k WARNING LOSS OF CONTROL e The designer of any control scheme must consider the potential failure modes of control paths and for certain critical control functions provide a means to achieve a safe state during and after a path failure Examples of critical control functions are emergency stop and overtravel stop power outage and restart e Separate or redundant control paths must be provided for critical control functions e System control paths may include communication links Consideration must be given to the implications of unanticipated transmission delays or failures of the link e Observe all accident prevention regulations and local safety guidelines e Each implementation of this equipment must be individually and thoroughly tested for proper operation before being placed into service 1 Failure to follow these instructions can result in death serious injury or equipment damage 1 For additional information refer to NEMA ICS 1 1 latest edition Safety Guidelines for the Application Installation and Maintenance of Solid State Control and to NEMA ICS 7 1 latest edition Safety Standards for Co
6. Reboot 53 Remanent variables 58 Reset cold 52 Reset origin 53 Reset warm 52 Run command 51 S Save Application 78 Firmware 78 USB 78 Serial Line Configuration 69 70 Configuration Window 70 Modbus Manager 73 Network Manager 71 Serial Link SoMachine Network Manager 72 SoMachine Network Manager 72 State diagram 40 Stop command 51 Structure Data Exchange 21 Supported Standard Data Types Supported Variables 19 Supported Variables Types 20 T Task Controller tasks 27 Cyclic task 32 Event task 33 Freewheeling task 33 Types 32 Watchdogs 34 100 EIO0000000638 04 2014 Index Troubleshooting 82 Application Transfer 82 Boot Application 85 CANopen Heartbeat 85 Communication 82 Device Name 85 Out of Memory 85 POU Monitoring 85 RUN State 84 U USB Connection 76 Save 78 V Variables Exchange 22 X XBT GT GK Controller creating projects 11 E100000000638 04 2014 101 Index 102 E100000000638 04 2014
7. Guide for additional information on the project management XBT GT GK HMI Controller Main Characteristics This table lists the main characteristics for the XBT GT GK HMI Controller Controller Display Type Ethernet Serial USB CF Card Interface Interface Interface Interface XBTGT2110 QVGA STN No Yes 1 Yes No Monochrome XBTGT2120 QVGA STN No Yes 1 Yes Yes Monochrome XBTGT2130 QVGA STN Yes Yes 1 Yes Yes Monochrome XBTGT2220 QVGA STN Color No Yes 1 Yes Yes XBTGT2330 QVGAITFT Color Yes Yes 1 Yes Yes XBTGT4230 VGA STN Color Yes Yes 1 Yes Yes XBTGT4330 VGAITFT Color Yes Yes 1 Yes Yes XBTGT4340 VGAITFT Color Yes Yes 1 Yes Yes XBTGT5230 VGA STN Color Yes Yes 1 Yes Yes XBTGT5330 VGAITFT Color Yes Yes 1 Yes Yes XBTGT5340 VGAITFT Color Yes Yes 1 Yes Yes XBTGT6330 SVGAITFT Color Yes Yes 1 Yes Yes XBTGT6340 SVGAITFT Color Yes Yes 1 Yes Yes XBTGT7340 XGA TFT Color Yes Yes 1 Yes Yes XBTGK2120 QVGA STN No Yes 1 Yes Yes Monochrome XBTGK2330 QVGAITFT Color Yes Yes 1 Yes Yes XBTGK330 VGA TFT Color Yes Yes 1 Yes Yes 1 RS232 RS422 RS485 serial interface SUB D 9 pin connector NOTE Refer to the Controller specifications see Magelis XBT GT XBT GK XBT GH Hardware Guide for additional information EIO0000000638 04 2014 11 New Project Creating a New Project To create a new project you must add a controller to the project
8. Managed by Application Program Keep Current Values Set All Outputs to Default Output Forcing ControllerLockout Feature The ControllerLockout feature locks or unlocks the controller stop mode A locked controller cannot be restarted until the controller is unlocked Attempts to restart a locked controller are ignored and a message appears You can only initiate lockout once the controller is in STOPPED state If the controller is in RUNNING state and you attempt to lockout the attempt is ignored and a message appears The ControllerLockout is not managed through SoMachine it is an internal boolean variable ControllerLockout of the HMI in Vijeo Designer For more information on managing this variable refer to the Vijeo Designer Online Help Managed by Application Program Your application program manages outputs normally This applies in the RUNNING and RUNNING with External Error states Keep Current Values Select this option by choosing Keep current values in the Behaviour for outputs in Stop dropdown menu of the PLC Settings subtab of the Controller Editor To access the Controller Editor double click the name of the controller in the Devices tree and select PLC settings tab This output behavior applies in the STOPPED and HALT controller states Outputs are set to and maintained in their current state although the details of the output behavior vary greatly depending on the setting of the Update IO while in stop option a
9. devices connected to it EIO0000000638 04 2014 71 Serial Line Configuration SoMachine Network Manager Adding a SoMachine Network Manager To add a SoMachine Network Manager to your project select the SoMachine Network Manager in the Hardware Catalog drag it to the Devices tree and drop it on one of the highlighted nodes For more information on adding a device to your project refer to e Using the Drag and drop Method see SoMachine Programming Guide e Using the Contextual Menu or Plus Button see SoMachine Programming Guide NOTE The Serial Line link does not support both Modbus and SoMachine protocols at the same time 72 EIO0000000638 04 2014 Serial Line Configuration Modbus Manager Adding a Modbus Manager To add a Modbus Manager to your project select Modbus Manager in the Hardware Catalog drag it to the Devices tree and drop it on one of the highlighted nodes For more information on adding a device to your project refer to e Using the Drag and drop Method see SoMachine Programming Guide e Using the Contextual Menu or Plus Button see SoMachine Programming Guide NOTE The Serial Line link does not support both Modbus and SoMachine protocols at the same time Modbus Manager Configuration Window Double click Modbus Manager in the Devices tree to access the Modbus manager Configuration tab aa errr Configuration Status Information Modbus Addressing Time
10. LREAL long real A floating point number encoded in a 64 bit format LWORD long word A data type encoded in a 64 bit format MAC address media access control address A unique 48 bit number associated with a specific piece of hardware The MAC address is programmed into each network card or device when it is manufactured MAST A processor task that is run through its programming software The MAST task has 2 sections e IN Inputs are copied to the IN section before execution of the MAST task e OUT Outputs are copied to the OUT section after execution ofthe MAST task 94 E100000000638 04 2014 Glossary master slave The single direction of control in a network that implements the master slave mode Modbus The protocol that allows communications between many devices connected to the same network millisecond N network A system of interconnected devices that share a common data path and protocol for communications NMT network management CANopen protocols that provide services for network initialization detected error control and device status control O Os operating system A collection of software that manages computer hardware resources and provides common services for computer programs P PDO process data object An unconfirmed broadcast message or sent from a producer device to a consumer device in a CAN based network The transmit PDO from the producer device has a specific identifier that corres
11. Software Requirements 64 Configuration Baudrate Configuration for CANopen 65 CANopen 63 CANopen Hardware Configuration 64 CANopen Interface 64 CANopen Software Requirements 64 Ethernet 67 67 IP Address Configuration 67 Optimized Manager 66 Serial Line 69 Controller Adding 15 Connecting the controller 75 Creating Projects 10 Libraries 17 Memory 23 24 Tasks 27 Controller Configuration Controller 59 Creating Projects 10 D Data Exchange Array 21 Structure 27 Device Editor Controller Device Editor 59 Tabs 59 Devices Adding 14 Tree 13 Download Application 78 USB 75 Download application 55 E Editor Controller Device Editor 59 Ethernet Configuration 67 67 Exchange Variables 22 Expansion Modules CANopen 64 67 EIO0000000638 04 2014 99 Index F FAQ 86 Network Communication 86 Communication is interrupted 87 Connecting Multiple Controller through USB Ports 87 Controller and HMI Communication 87 Controller Name Update 87 89 PC and Controller Connection 86 Source Download Function 87 Start all application checkbox 86 Supported Programming Languages 86 Supported Variables 86 Task Mode 86 Task Monitor 90 Firmware Downgrade 78 Save 78 Update 75 IP Address Configuration 67 Default 62 L Libraries Controller 17 M Memory Controller 23 Mapping 24 Modbus Manager 73 N Network Manager CANopen 65 Serial Line 71 R
12. and the libraries What Is in This Chapter This chapter contains the following topics Topic Page Memory Mapping 24 Controllers and HMI Address Mapping Differences 25 E100000000638 04 2014 23 Memory Memory Mapping Introduction This section provides the RAM Random Access Memory size for each area of the XBT GT GK HMI Controller XBT GT GK HMI Controller Memory This table shows different types of areas and their corresponding size for the XBT GT GK HMI Controller memory allocated to CoDeSys control engine Area Element Size bytes System Area System area reserved memory 131072 System and diagnostic variables Reserved input addresses l 256 Reserved output addresses Q 256 Retain variables 16360 Persistent retain variables 2044 Application Area Compiled control application 1024000 User Areal Symbols Variables Libraries Dynamic allocation of 1228800 1 Not all of the 16360 bytes are available for the user application because some libraries may use retain variables 2 Retain variable data is held in SRAM requiring a battery backup 3 The symbols area size is not checked at build time It is compiled with global data with the limit of 1228800 bytes 24 EIO0000000638 04 2014 Memory Controllers and HMI Address Mapping Differences Introduction These paragraphs provide instructions for double words a
13. between Frames ms 10 Serial Line Settings 38400 Baud rate Parity Data Bits Stop Bits None Physical Medium RS485 This table provides the description of Modbus parameters Element Description Modbus Addressing Specify the device type e Master Address 1 247 Modbus address of the device if device type is set to Slave For HMI Controllers this field is not used Time between Frames ms Time required to avoid bus collision Set this parameter identical for each Modbus device on the link EIO0000000638 04 2014 73 Serial Line Configuration Element Description Serial Line Settings Baud Rate Transmission speed Parity Used for error detection Data Bits Number of bits for transmitting data Stop Bits Number of stop bits Physical Medium Medium currently used it can be either e RS485 or e RS232 74 EIO0000000638 04 2014 Chapter 11 Managing Online Applications Connecting the Controller to a PC Application Transfer To transfer and run applications connect your XBT GT GK HMI Controller to a PC with a properly installed version of SoMachine To transfer an application with an XBT GT GK HMI Controller use Ethernet serial link USB cables USB memory key or CF card NOTICE Possible electrical damage to controller components Connect the communication cable to
14. e Before acting on a controller always positively confirm the controller state by verifying the presence of output forcing and reviewing the controller status information via SoMachine 1 Failure to follow these instructions can result in death serious injury or equipment damage 1 Note The controller states can be read in the PLC_R i_wStatus system variable of the XBT PLCSystem library see Magelis XBTGC XBTGT XBTGK HMI Controller System Functions and Variables XBT PLCSystem Library Guide Controller States Table This table describes the controller states Controller State Description BOOTING The controller executes the boot firmware and its own internal self tests It then verifies the checksum of the firmware and user applications It does not execute the application nor does it communicate INVALID_OS There is not a valid firmware file present in the Flash memory The controller does not execute the application Communication is only possible through the USB host port and then only for uploading a valid OS EMPTY There is no application in memory or the application is invalid RUNNING The controller is executing a valid application 44 E100000000638 04 2014 Controller States and Behaviors Controller State Description RUNNING with This state is the same as the RUNNING state with the exception that the task processing Breakpoint portion of the program does not res
15. exception e Sensitivity The sensitivity field defines the number of task watchdog exceptions that must occur before the controller detects an application error To access the configuration of a task watchdog double click the Task in the Applications tree NOTE For more information on watchdogs refer to the SoMachine Programming Guide 34 E100000000638 04 2014 Tasks Task Priorities Introduction You can configure the priority of each task between O and 31 0 is the highest priority 31 is the lowest Each task must have a unique priority 4k WARNING UNINTENDED EQUIPMENT OPERATION Do not assign the same priority to different tasks Failure to follow these instructions can result in death serious injury or equipment damage Task Priority Recommendations e Priority O to 24 Controller tasks Assign these priorities to tasks with a high real time requirement e Priority 25 to 31 Background tasks Assign these priorities to tasks with a low real time requirement E100000000638 04 2014 35 Tasks Task Preemption Due to Task Priorities When a task cycle starts it can interrupt any task with lower priority task preemption The interrupted task will resume when the higher priority task cycle is finished N Priority N 1 Priority Inputs Outputs Outputs 100 ki NOTE If the same input is used in different tasks the input image may change during the task cycle of the lowe
16. functions timer and trigger Util Analog monitors BCD Conversions Bit Byte functions controller datatypes function manipulators mathematical functions and signals PLCCommunication Enables communication and it is common to all controller XBT PLCSystem Refer to XBT PLCSystem Library NOTE The XBT GT GK HMI Controller Libraries can be accessed from the Devices window only if you choose a XBT GT GK HMI Controller with control E100000000638 04 2014 17 Libraries 18 E100000000638 04 2014 Chapter 3 Supported Standard Data Types Introduction This chapter provides the supported variables and explains how to exchange data between SoMachine controller part and Vijeo Designer HMI part What Is in This Chapter This chapter contains the following topics Topic Page Supported Variables 20 Variables Exchange 22 EIO0000000638 04 2014 Variables Supported Variables Supported Variables Types This table provides the XBT GT GK HMI Controller supported variables types Controller Lower Limit Upper Limit Information Bidirectional Data Type Content Variable SoMachine Vije o Designer BOOL False True 1 Bit Yes BYTE 0 255 8 Bit Yes WORD 0 65 535 16 Bit Yes DWORD 0 4 294 967 295 32 Bit Yes LWORD 0 2644 64 Bit No SINT 128 127 8 Bit Yes USINT 0 255 8 Bit Yes INT 32 768 32 767 16 Bit Yes UINT 0 6
17. information about this function see the optional SysTask library of the system SysLibs category of libraries NOTE Do not delete or change the Name of the MAST task If you do so SoMachine detects an error when you attempt to build the application and you will not be able to download it to the controller 38 EIO0000000638 04 2014 Chapter 6 Controller States and Behaviors Introduction This chapter provides you with information on controller states state transitions and behaviors in response to system events It begins with a detailed controller state diagram and a description of each state It then defines the relationship of output states to controller states before explaining the commands and events that result in state transitions It concludes with information about Remanent variables and the effect of SoMachine task programming options on the behavior of your system What Is in This Chapter This chapter contains the following sections Section Topic Page 6 1 Controller State Diagram 40 6 2 Controller States Description 44 6 3 State Transitions and System Events 47 E100000000638 04 2014 39 Controller States and Behaviors Section 6 1 Controller State Diagram Controller State Diagram Controller State Diagram The following diagram describes the controller operating mode See Note 1 PowerON a BOOTING See Note 2 vy NO INVALID OS Valid OS See Note 3 YES
18. overwritten by the existing Boot application at the next reboot If you wish your changes to persist through a reboot manually update the Boot application by selecting Create boot application in the Online menu e Multiple Download SoMachine has a feature that allows you to perform a full application download to multiple targets on your network or fieldbus One of the default options when you select the Multiple Download command is the Start all applications after download or online change option which restarts all download targets in the RUNNING state irrespective of their last controller state before the multiple download was initiated Deselect this option if you do not want all targeted controllers to restart in the RUNNING state In addition before using the Multiple Download option test the changes to your application program in a virtual or non production environment and confirm that the targeted controllers and attached equipment assume their expected conditions in the RUNNING state A WARNING UNINTENDED EQUIPMENT OPERATION Always verify that your application program will operate as expected for all targeted controllers and equipment before issuing the Multiple Download command with the Start all applications after download or online change option selected Failure to follow these instructions can result in death serious injury or equipment damage Note 8 The SoMachine software platform allows man
19. physical hardware configuration Failure to follow these instructions can result in death serious injury or equipment damage To add a CANopen expansion module to your project select the XBTZGCCAN expansion module in the Hardware Catalog drag it to the Devices tree and drop it on one of the highlighted nodes For more information on adding a device to your project refer to e Using the Drag and drop Method see SoMachine Programming Guide e Using the Contextual Menu or Plus Button see SoMachine Programming Guide 64 E100000000638 04 2014 CANopen Configuration Baudrate Configuration This table provides the procedure for accessing the CANopen baudrate configuration screen Step Action 1 Double click the CANbus 5CAN in the Devices tree Result The CANbus configuration screen appears CANbus Baudrate bits s 250000 w ANopen Net Online Bus Access m Block SDO and NMT access while application is running Select the CANbus tab Configure the baudrate using the Baudrate bits s menu list By default the value is set to 250 000 bit s 4 Configure the net using the Net menu list By default the value is set to 0 Configure the online bus access by clicking Block SDO and NMT access while application is running By default the online bus access is activated CANopen Network Manager Configure the CANopen Network_Manager when using CANopen El
20. the PC before connecting it to the controller Failure to follow these instructions can result in equipment damage NOTE Only one XBT GT GK HMI Controller can be connected to a computer at a time except when using Ethernet Firmware Update When transferring an application via Ethernet USB cables USB memory key or CF card the firmware update is done automatically As a matter of good practice always have a backup of your application firmware combination on a USB memory key see page 78 Archive your application properly with the versions of SoMachine it was created and maintained under USB Cables Requirements To connect the controller to your PC specific USB cables are required as shown in this table Product Name Reference Description USB Transfer Cable XBTZG935 Download project data created with the window Editor via the USB interface from the XBT GT GK HMI Controller unit USB Front Cable XBTZGUSB Extension cable attaching USB port to front panel USB Front Cable XBTZGUSBB Extension cable attaching USB port to front panel USB Programming Cable TCSXCNAMUMSP Extension cable attaching USB port to front panel E100000000638 04 2014 75 Managing Online Applications NOTE When mounted on a front panel use the following cables combinations e XBTZG935 and XBTZGUSB e TCSXCNAMUM3P and XBTZGUSBB Connecting with USB Cable To connect the USB cable to your XBT GT GK HMI Co
21. valid The values of the retain persistent variables are restored if saved context is valid All non located and non remanent variables are reset to their initialization values All fieldbus communications are stopped and restarted after the boot application is loaded successfully All I O are reset to their initialization values and then to their user configured default values if the controller assumes a STOPPED state after the reboot NO oR ND For details on variables refer to Remanent Variables see page 58 NOTE The Check context test concludes that the context is valid when the application and the remanent variables are the same as defined in the Boot application NOTE If you make an online change to your application program while your controller is in the RUNNING or STOPPED state but do not manually update your Boot application the controller will detect a difference in context at the next reboot the remanent variables will be reset as per a Reset cold command and the controller will enter the STOPPED state 54 E100000000638 04 2014 Controller States and Behaviors Download Application Effect Loads your application executable into the RAM memory Optionally creates a Boot application in the Flash memory Starting Conditions e RUNNING STOPPED HALT and EMPTY states e ControllerLockout 0 Methods for Issuing the Download Application Command e SoMachine Two options exist for downlo
22. 0000638 04 2014 53 Controller States and Behaviors Effects of the Reboot 1 The state of the controller depends on a number of conditions a The controller state will be RUNNING if The Reboot was provoked by a power cycle and The Reboot was provoked by a power cycle and the HMI application had been downloaded using a Multiple Download command with option Start all application after download or online change selected The Reboot was provoked by an HMI application download using a Multiple Download command with option Start all application after download or online change selected b The controller state will be STOPPED if Controller state was STOPPED before a power cycle or The Reboot was provoked by a power cycle and the HMI application had been downloaded using a Multiple Download command with option Start all application after download or online change not selected The Reboot was provoked by an HMI application download using a Multiple Download command with option Start all application after download or online change not selected c The controller state will be EMPTY if there is no boot application or the boot application is invalid d The controller state will be INVALID OS if there is no valid OS Forcing is maintained if the boot application is loaded successfully If not forcing is erased Diagnostic indications for detected errors are reset The values of the retain variables are restored if saved context is
23. 1 or COM2 in the Devices tree to access the serial line configuration window Configuration Status Serial line Baud rate Parity Data bits Stop bits Physical Medium RS 485 Rs 232 115200 None 8 1 This table provides the description of each parameter Parameter Initial Values Range Description Baud rate 115 2 Kbauds 1 2 115 2 Kbauds Transmission speed Parity None e None Used for invalid events detection e Odd e Even Data bits 8 e 7 Number of bits for transmitting data e 8 Stop bits 1 e 1 Number of stop bits e 2 Physical Medium RS 485 e RS485 Specify the medium to use e RS232 70 EIO0000000638 04 2014 Serial Line Configuration Network Manager The SoMachine Network Manager is automatically added to your project configuration You can configure 2 types of Network Manager with the serial line Element Description SoMachine Network Manager Used when a XBT GT GK HMI Controller device is used or when the Serial Line is also used for PLC programming m Modbus_Manager Used for Modbus RTU or ASCII protocol in master or slave mode 2 1 Refer to SoMachine Network_Manager see page 72 for additional information on the configuration 2 Refer to Modbus Manager see page 73 for additional information on the configuration NOTE When using the SoMachine Network_Manager you can dowload your application to any
24. 3 SoMachine Network Manager cf Devices tree Fe Applications tree pad Tools tree This table describes the items in the Devices tree Item Description COM1 COM2 Embedded communication functions for Serial Line see page 69 communication Ethernet Embedded communication functions for Ethernet see page 61 communication USB Embedded communication functions for USB communication Applications Tree The Applications tree allows you to manage project specific applications as well as global applications POUs and tasks Tools Tree The Tools tree allows you to configure the HMI part of your project and to manage libraries E100000000638 04 2014 13 New Project Section 1 2 Adding Devices to the Project Introduction This section shows you how to add devices to your project What Is in This Section This section contains the following topics Topic Page Adding an XBT GT GK HMI Controller 15 Adding a CANopen Expansion Module 16 14 EIO0000000638 04 2014 New Project Adding an XBT GT GK HMI Controller Introduction The following paragraphs explain how to add the XBT GT GK HMI Controller to a SoMachine project Adding the XBT GT GK HMI Controller to the Devices Tree To add the XBT GT GK HMI Controller to your project select a controller from XBTGT Series or XBTGK Series in the Hardware Catalog drag it to the Devices tree and drop it on one of t
25. 5 535 16 Bit Yes DINT 2 147 483 648 2 147 483 647 32 Bit Yes UDINT 0 4 294 967 295 32 Bit Yes LINT 263 26314 64 Bit No ULINT 0 2644 64 Bit No REAL 1 175494351e 38 3 402823466e 38 32 Bit Yes LREAL 2 2250738585072014e 308 1 7976931348623158e 308 64 Bit No STRING 1 character 255 characters 1 character Yes 1 byte WSTRING 1 character 255 characters 1 character 1 Yes word TIME 32 Bit No For more information on LTIME DATE TIME DATE AND TIME and TIME OF DAY refer to the SoMachine Programming Guide Refer to Single Variable Definition for additional information on SoMachine HMI data exchange 20 E100000000638 04 2014 Variables Using Array and Structure Elements for Data Exchange You can use array and structure elements for data exchange between the controller side SoMachine and the HMI side Vijeo Designer However you cannot exchange whole arrays and structures at once For example e IfA is an array you can exchange an element of the array A 0 A 1 A i butnotthe entire array e The same rule applies to structure element you can exchange an element of the structure StructureName ElementName but not the entire structure E100000000638 04 2014 21 Variables Variables Exchange Introduction You can exchange variables with the XBT GT GK HMI Controller range between SoMachine and Vijeo Designer by publishing them Controller and HMI Data Exchange For var
26. Devices tree Refer to Devices Tree Description see page 13 to see the hardware structure of your project and refer to Adding an XBT GT GK HMI Controller see page 15 to add a controller to your project Active Application The active application is displayed in bold print in the Devices tree When working on a project that contains several applications verify that the application you are currently working on is activated Certain commands for example the Build command are by default executed on the active application To activate an application right click its entry in the Devices window and select Set Active Application from the context menu NOTE Using Set Active Application during multiple application controls not HMI applications changes the description of several commands in the Build menu in order to refer to the new active application 12 E100000000638 04 2014 New Project Trees Description Devices Tree The Devices tree shows a structured view of the current hardware configuration When you add a controller to your project a number of nodes are automatically added to the Devices tree depending on the functions the controller provides B MyController XBTGK5330 5 3 COM a SoMachine_Network_Manager SoMachine Network Manager E S COM2 KG SoMachine Network Manager1 SoMachine Network Manager FB Ethernet Ke SoMachine Network Manager2 SoMachine Network Manager USB ft SoMachine_Network_Manager
27. EIO0000000638 06 Magelis XBTGT XBTGK HMI Controller Programming Guide 04 2014 Schneider Electric www schneider electric com The information provided in this documentation contains general descriptions and or technical characteristics of the performance of the products contained herein This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications It is the duty of any such user or integrator to perform the appropriate and complete risk analysis evaluation and testing of the products with respect to the relevant specific application or use thereof Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein If you have any suggestions for improvements or amendments or have found errors in this publication please notify us No part of this document may be reproduced in any form or by any means electronic or mechanical including photocopying without express written permission of Schneider Electric All pertinent state regional and local safety regulations must be observed when installing and using this product For reasons of safety and to help ensure compliance with documented system data only the manufacturer should perform repairs to components When devices are used for applications with technical safety requirements the relevan
28. Glossary BOOL boolean A basic data type in computing A BOOL variable can have one of these values 0 FALSE 1 TRUE A bit that is extracted from a word is of type BOOL for example 3MW10 4isa fifth bit of memory word number 10 Boot application boot application The binary file that contains the application Usually it is stored in the PLC and allows PLC to boot on the application that the user has generated C CAN controller area network A protocol ISO 11898 for serial bus networks designed for the intercon nection of smart devices from multiple manufacturers in smart systems and for real time industrial applications Originally developed for use in automobiles CAN is now usedin a variety of industrial automation control environments CANopen An open industry standard communication protocol and device profile specification EN 50325 4 CFC continuous function chart A graphical programming language an extension of the IEC 61131 3 standard based on the function block diagram language that works like a flowchart However no networks are used and free positioning of graphic elements is possible which allows feedback loops For each block the inputs are on the left and the outputs on the right You can link the block outputs to the inputs of other blocks to create complex expressions controller Automates industrial processes also known as programmable logic controller or programmable controller cycli
29. Machine and the following message appears Online change in execution The interruption is proportional to the number of online changes you made When use a new Modicon M238 Logic ControllerModicon M238 Logic Controller with a previous HMI application cannot communicate anymore This is because the new controller name in the HMI application Vijeo Designer is not updated The HMI application is configured with the previous controller name To update the controller name you can do 1 of the following e Update manually see page 87 the controller name in the HMI application to be consistent with the controller name used in SoMachine e Update manually see page 89 the controller name in SoMachine to be consistent with the controller name used in the HMI application Vijeo Designer How do manually update my HMI application controller name with the SoMachine controller name Copy the controller name from SoMachine application to the HMI Vijeo Designer application controller name Step Action 1 Display the SoMachine Logic Builder 2 Double click the controller in the Devices tree Result The device editor window opens 3 Select the Controller selection tab Result The Controller selection tab opens E MyController x Applications Controller selection PLC settings Task deployment Status Information DD Ky st Controller ProjectName IP_Address TimeSinceBoot NodeName ProjectAuthor FW_V
30. Origin Effect Resets all variables including the remanent variables to their initialization values Erases all user files on the controller Places the controller into the EMPTY state Starting Conditions e RUNNING STOPPED or HALT states e ControllerLockout 0 Methods for Issuing a Reset Origin Command e SoMachine Online Menu Select the Reset origin command Effects of the Reset Origin Command The application stops Forcing is erased All user files Boot application data logging are erased Diagnostic indications for detected errors are reset The values of the retain variables are reset The values of the retain persistent variables are reset All non located and non remanent variables are reset All fieldbus communications are stopped All I O are reset to their initialization values sonoupum For details on variables refer to Remanent Variables see page 58 Reboot Effect Commands a reboot of the controller Starting Conditions e Any state e ControllerLockout 0 Methods for Issuing the Reboot Command e Power cycle e REBOOT by USB system download The application download from a USB memory key will issue a REBOOT as its final command The controller will be rebooted into the STOPPED state provided the other conditions of the boot sequence allow this to occur Refer to Saving your Application and Firmware on a USB Memory Key see page 78 for further details E10000
31. PDOs and sent once before stopping the CAN Master 46 EIO0000000638 04 2014 Controller States and Behaviors Section 6 3 State Transitions and System Events Overview This section begins with an explanation of the output states possible for the controller It then presents the system commands used to transition between controller states and the system events that can also affect these states It concludes with an explanation of the Remanent variables and the circumstances under which different variables and data types are retained through state transitions What Is in This Section This section contains the following topics Topic Page Controller States and Output Behavior 48 Commanding State Transitions 51 Error Detection Types and Management 56 Remanent Variables 58 EIO0000000638 04 2014 47 Controller States and Behaviors Controller States and Output Behavior Introduction The XBT GT GK HMI Controller defines output behavior in response to commands and system events in a way that allows for greater flexibility An understanding of this behavior is necessary before discussing the commands and events that affect controller states For example typical controllers define only two options for output behavior in stop fallback to default value or keep current value The possible output behaviors and the controller states to which they apply are e ControllerLockout Feature
32. SoMachine when output forcing has been defined you are presented with the option to retain output forcing settings If you select this option the output forcing continues to control the state of the selected outputs until you download an application or use one of the Reset commands When the option Update IO while in stop if supported by your controller is checked default state the forced outputs keep the forcing value even when the logic controller is in STOP Output Forcing Considerations The output you wish to force must be contained in a task that is currently being executed by the controller Forcing outputs in unexecuted tasks or in tasks whose execution is delayed either by priorities or events will have no effect on the output However once the task that had been delayed is executed the forcing will take effect at that time Depending on task execution the forcing could impact your application in ways that may not be obvious to you For example an event task could turn on an output Later you may attempt to turn off that output but the event is not being triggered at the time This would have the effect of the forcing apparently being ignored Further at a later time the event could trigger the task at which point the forcing would take effect E100000000638 04 2014 49 Controller States and Behaviors A WARNING UNINTENDED EQUIPMENT OPERATION e You must have a thorough understanding of how forcing will
33. When should I use Freewheeling or Cyclic Mode e Freewheeling use this mode if you accept a variable cycle time The next cycle starts after a waiting duration that equals 30 of the last cycle execution time e Cyclic use this mode if you want to control the frequency cycle What does the Start all applications after download or online change checkbox do e Case 1 Standalone HMI application download or HMI and Control applications download The BOOT state of the Control application is updated based on the checkbox setting e Case 2 Control application download only e The setting of the checkbox takes effect after the download online change e The RUN of the control application at BOOT time is not affected Can connect the PC SoMachine and the controller through Ethernet and TwidoPort No because TwidoPort only supports the Modbus protocol 86 E100000000638 04 2014 Troubleshooting and FAQ Can connect several XBT GT GK HMI Controller through several USB ports of my PC No this is not supported Why does Source Download lead to Communication Interruptions Because this function is not supported by XBT GT GK HMI Controller To connect to an XBT GT GK HMI Controller you must have the source of the controller application on the PC with SoMachine Why does the communication between the HMI and SoMachine get interrupted Making online changes to an XBTGT application interrupts the communication between the HMI and So
34. ading a full application e Download command e Multiple Download command For important information on the application download commands refer to Controller State Diagram see page 40 e USB memory key Load Boot application file with the Download via File System method from Vijeo Designer using a USB memory key connected to the controller USB port The updated file is applied if the user accepts to install the new project when the Vijeo Designer Runtime prompts the user on the HMI screen Refer to Saving your Application and Firmware on a USB Memory Key see page 78 for further details Effects of the SoMachine Download Command The existing application stops and then is erased If valid the new application is loaded and the controller assumes a STOPPED state Forcing is erased Diagnostic indications for detected errors are reset The values of the retain variables are reset to their initialization values The values of any existing retain persistent variables are maintained All non located and non remanent variables are reset to their initialization values All fieldbus communications are stopped and then any configured fieldbus of the new application is started after the download is complete All I O are reset to their initialization values and then set to the new user configured default values after the download is complete onoupoun For details on variables refer to Remanent Variables see page 58
35. affect the outputs relative to the tasks being executed e Do not attempt to force I O that is containted in tasks that you are not certain will be executed in a timely manner unless your intent is for the forcing to take affect at the next execution of the task whenever that may be e If you force an output and there is no apparent affect on the physical output do not exit SoMachine without removing the forcing Failure to follow these instructions can result in death serious injury or equipment damage 50 EIO0000000638 04 2014 Controller States and Behaviors Commanding State Transitions Run Command Effect Commands a transition to the RUNNING controller state Starting Conditions BOOTING or STOPPED state Methods for Issuing a Run Command SoMachine Online Menu Select the Start command By an HMI command using the PLC W q wPLC Control and PLC W q_uiOpenPLCControl system variables of the XBT PLCSystem library see Magelis XBTGC XBTGT XBTGK HMI Controller System Functions and Variables XBT PLCSystem Library Guide Login with online change option An online change partial download initiated while the controller is in the RUNNING state returns the controller to the RUNNING state if successful Multiple Download Command sets the controllers into the RUNNING state if the Start all applications after download or online change option is selected irrespective of whether the targeted controllers were initial
36. after verification of a valid Boot application Note 5 The state of the controller will be RUNNING after a reboot if the reboot was provoked by a Power Cycle and the HMI application had been downloaded using a Multiple Download command with option Start all applications after download or online change selected Note 6 During a successful application download the following events occur e The application is loaded directly into RAM e By default the Boot application is created and saved into the Flash memory Note 7 However there are two important considerations in this regard e Online Change An online change partial download initiated while the controller is in the RUNNING state returns the controller to the RUNNING state if successful Before using the Login with online change option test the changes to your application program in a virtual or non production environment and confirm that the controller and attached equipment assume their expected conditions in the RUNNING state E100000000638 04 2014 41 Controller States and Behaviors A WARNING UNINTENDED EQUIPMENT OPERATION Always verify that online changes to a RUNNING application program operate as expected before downloading them to controllers Failure to follow these instructions can result in death serious injury or equipment damage NOTE Online changes to your program are not automatically written to the Boot application and will be
37. ask at a time can be running The priority determines when the task will run e a higher priority task will preempt a lower priority task e tasks with same priority will run in turn 2 ms time slice NOTE Do not assign tasks with the same priority If there are yet other tasks that attempt to preempt tasks with the same priority the result could be indeterminate and unpredictable For more information Task Priorities see page 35 Type 4 types of task are available e Cyclic see page 32 e Freewheeling see page 33 e Event see page 33 Watchdog To configure the watchdog define 2 parameters see page 34 e Time enter the timeout before watchdog execution e Sensitivity define here the number of expirations of the watchdog timer before the Controller stops in Exception mode POUs The list of POUs Programming Organization Units controlled by the task is defined see SoMachine Programming Guide in the task configuration window To add a POU linked to the task use the command Add Call and select the POU in the Input Assistant editor To remove a POU from the list use the command Remove Call e To replace the currently selected POU of the list by another one use the command Change Call e POUs are executed in the order shown in the list To move the POUs in the list select a POU and use the command Move Up or Move Down NOTE You can create as many POUs as you want An application with several small POUs as oppos
38. ations are executed 2 Task Processing The user code POU and so on defined in the task is processed The Q output memory variable is updated according to your application program instructions but not written to the physical outputs during this operation 3 Write Outputs The Q output memory variable is modified with any output forcing that has been defined however the writing of the physical outputs depends upon the type of output and instructions used For more information on defining the bus cycle task refer to the SoMachine Programming Guide For more information on I O behavior refer to Controller States Detailed Description see page 45 4 Remaining Interval time The controller OS carries out system processing and any other lower priority tasks NOTE If you define an insufficient period for a cyclic task it will repeat immediately after the write of the outputs without executing other lower priority tasks or any system processing This will affect the execution of all tasks and cause the controller to exceed the task watchdog limits if set by a user generating a task watchdog exception For the XBT GT GK HMI Controller system watchdog limits are not enforced NOTE You can get and set the interval of a Cyclic Task by application using the GetCurrent TaskCycle and SetCurrentTaskCycle function 32 EIO0000000638 04 2014 Tasks Freewheeling Task A Freewheeling task does not have a fixed duration Each Freewh
39. aviour for outputs in Stop field is set to Keep current values the TPDOs continue to be issued with the last actual values If the Behaviour for outputs in Stop field is Set all outputs to default the last actual values are updated to the default values and subsequent TPDOs are issued with these default values Task and I O Behavior When Update IO While In Stop Is Not Selected When the Update IO while in stop setting is not selected the controller sets the I O to either the Keep current values or Set all outputs to default condition as adjusted for output forcing if used After this the following becomes true The Read Inputs operation ceases The l input memory variable is frozen at its last values The Task Processing operation is not executed The Write Outputs operation ceases The Q output memory variables can be updated via the Ethernet Serial and USB connections However the physical outputs are unaffected and retain the state specified by the configuration options CAN Behavior When Update IO While In Stop Is Not Selected The following is true for the CAN buses when the Update IO while in stop setting is not selected The CAN Master ceases communications Devices on the CAN bus assume their configured fallback states TPDO and RPDO exchanges cease Optional SDO if configured exchanges cease The Heartbeat and Node Guarding functions if configured stop The current or default values as appropriate are written to the T
40. c task The cyclic scan time has a fixed duration interval specified by the user If the current scan time is shorter than the cyclic scan time the controller waits until the cyclic scan time has elapsed before starting a new scan D DHCP dynamic host configuration protocol An advanced extension of BOOTP DHCP is more advanced but both DHCP and BOOTP are common DHCP can handle BOOTP client requests DINT double integer type Encoded in 32 bit format 92 E100000000638 04 2014 Glossary DNS domain name system The naming system for computers and devices connected to a LAN or the Internet DWORD double word Encoded in 32 bit format E EDS electronic data sheet A file for fieldbus device description that contains for example the properties of a device such as parameters and settings element The short name of the ARRAY element encoder A device for length or angular measurement linear or rotary encoders Ethernet A physical and data link layer technology for LANs also known as IEE 802 3 F FBD function block diagram One of 5 languages for logic or control supported by the standard IEC 61131 3 for control systems Function block diagram is a graphically oriented programming language It works with a list of networks where each network contains a graphical structure of boxes and connection lines which represents either a logical or arithmetic expression the call of a function block a jump or a return inst
41. cable for a USB connection e XBTZG935 and XBTZGUSB or TCSXCNAMUM3P and XBTZGUSBB connection when the controller is mounted on a front panel E100000000638 04 2014 83 Troubleshooting and FAQ Check Action 2 Verify that the XBT GT GK HMI Controller has been detected by your PC 1 Click Start Control Panel System then select the Hardware tab and click Device Manager 2 Verify that the XBT GT GK HMI Controller node appears in the list as shown below CJ Device Manager us File Action View Help OO E S RE sagad ee Universal Series Bus controllers ef XBTZG90SUSB UNTL Device 3 If the XBT GT GK HMI Controller node does not appear or if there is an icon in front of the node disconnect and reconnect the cable on the controller side Verify that the active path is correct 1 Double click the controller node in the device view 2 Verify that the XBT GT GK HMI Controller node appears in bold not in italic If not a Stop the CoDeSys Gateway right click the icon in the task bar and select Stop Gateway b Disconnect and reconnect the cable on the controller side c Start the CoDeSys Gateway right click the icon in the task bar and select Start Gateway d Select the gateway in the controller window of SoMachine and click Scan network Select the XBT GT GK HMI Controller node and click Set active path NOTE If your PC is connected to an Ethernet network its address
42. e name EIO0000000638 04 2014 89 Troubleshooting and FAQ Step Action 7 Select Change device name Result The Change device name dialog opens Change device name The device name must be unique in the current network Otherwise it won t be listed correctly and connecting can lead to unexpected behaviour Device name Current USER 5E6ESSEDE9 New USER 5E6E59EDE9 8 Paste the controller name into the New field Change device name N The device name must be unique in the current network Otherwise it won t be listed correctly and connecting can lead to unexpected behaviour Device name Current USER 5E6E59EDE9 New BCLAUDE 6E9ABE2 9 Click OK to apply the change to the controller name How do I create a Project Archive file Create a project archive file by selecting File Project Archive sSave Send Archive from the SoMachine menu Why does the Task Monitor always show zero ms for the Average and Minimum Task Times The XBT GT GK only supports reporting back of cycle times to a 1 ms resolution and requires a minimum of 2 ms for one HMI with a Control Process cycle The CPU is scheduled to give HMI and Control each 1 ms per 2 ms If a task requires less than 2 ms 2000 ps to run the Task Monitor will show 0 us 90 E100000000638 04 2014 Glossary Yol 0 9 According to the IEC standard is a prefix that iden
43. e version on a USB memory key NOTICE LOSS OF DATA Always save your application and firmware version on a USB memory key Failure to follow these instructions can result in equipment damage To download an application and change the firmware of your controller follow the steps in this table Step Action 1 Turn off the power supply of your controller prior connecting the USB memory key 2 Connect the USB memory key containing the application and firmware into the USB port of your controller Turn on your controller Result The application and the firmware version from the USB memory key are downloaded NOTE If you plug a USB memory key containing the application and firmware while the controller is on a screen is displayed asking you whether you want to install the application from the USB memory key Saving your Application and Firmware on a USB Memory Key You can save your application and firmware on a FAT32 USB memory key by following these steps Step Action 1 Insert a USB memory key into the USB port of your computer 2 Double click HMI Application in the Tools tree tab of your project Result The project switches for the HMI and the main Vijeo Designer window appears Right click on the controller node in the Navigator window and select Properties Result The Property Inspector window appears 78 EIO0000000638 04 2014 Managi
44. ed to one large POU can improve the refresh time of the variables in online mode 30 EIO0000000638 04 2014 Tasks XBT GT GK HMI Controller Cycle Time Management The XBT GT GK HMI Controller cycle time management is set with this configuration e 50 for the control e 50 for the HMI application You should use a cycle time superior or equal to 20 ms The period for the entire cycle must be a multiple of 4 ms 20 24 28 32 36 ms and so on This diagram shows an example of cycle time management between the control and HMI parts In this example the cycle time is set to 20 ms Cycle n Cycle n 1 1 0 le a SEE gt 8 zan Mal s z 8 2 v 15121 5 21512 51 17 N 5 2 517 o o d 1 o o o o 7 o o J i t ms _ _ 4 _ _ _ _ _ _ _ S _ 4 gt 0 4 16 20 24 36 40 E100000000638 04 2014 31 Tasks Task Types Introduction The following section describes the various task types available for your program along with a description of the task type characteristics Cyclic Task A Cyclic task is assigned at a fixed cycle time using the Interval setting in the Type section of Configuration sub tab for that task Each Cyclic task type executes as follows lt Fixed User Defined Task Interval Task duration 1 Read Inputs The input states are written to the l input memory variable and other system oper
45. eeling task type executes as follows Variable Duration Based on Duration of Each Operation Task duration Y pas Read Inputs The input states are written to the 96 input memory variable and other system operations are executed 2 Task Processing The user code POU and so on defined in the task is processed The Q output memory variable is updated according to your application program instructions but not written to the physical outputs during this operation 3 Write Outputs The Q output memory variable is modified with any output forcing that has been defined however the writing of the physical outputs depends upon the type of output and instructions used For more information on defining the bus cycle task refer to the SoMachine Programming Guide For more information on I O behavior refer to Controller States Detailed Description see page 45 4 System Processing The controller OS carries out system processing and any other lower priority tasks The length of the system processing period is set to 30 of the total duration of the 3 previous operations 4 30 x 1 2 3 In any case the system processing period will not be lower than 3 ms Event Task This type of task is event driven and is initiated by a program variable It starts at the rising edge of the boolean variable associated to the trigger event unless preempted by a higher priority task In that case the Event task will start as dic
46. eider Electric website Adding a Remote Device to the Controller To add a remote device to your controller select it in the Hardware Catalog drag it to the Devices tree and drop it on one of the highlighted nodes For more information on adding a device to your project refer to e Using the Drag and drop Method see SoMachine Programming Guide e Using the Contextual Menu or Plus Button see SoMachine Programming Guide CANopen Remote Device Configuration Screen Access the remote device configuration screen by double clicking the device from the Devices tree Refer to CANopen remote device part from the CoDeSys Online Help for more information E100000000638 04 2014 67 CANopen Configuration 68 E100000000638 04 2014 Chapter 10 Serial Line Configuration Introduction This chapter describes how to configure the serial line communication of the XBT GT GK HMI Controller What Is in This Chapter This chapter contains the following topics Topic Page Serial Line Configuration 70 SoMachine Network Manager 72 Modbus Manager T3 EIO0000000638 04 2014 69 Serial Line Configuration Serial Line Configuration Introduction The serial line configuration window allows configuration of the serial line parameters baud rate parity and so on You can configure up to 2 serial ports with the XBT GT GK HMI Controller Serial Line Configuration Window Double click COM
47. ement Description CANopen_Optimized Used to support the CANbus configuration by internal functions 1 Network Manager 1 Refer to CANopen Optimized Manager see page 66 for additional information on the configuration EIO0000000638 04 2014 65 CANopen Configuration CANopen Optimized Manager CANopen Optimized Manager Configuration Screen You can access the CANopen_Optimized manager configuration screen by double clicking the CANopen_Optimized node from the Device tree For more information on CANopen managers refer to Adding Communication Managers 66 E100000000638 04 2014 CANopen Configuration CANopen Remote Devices Remote Devices Available with CANopen This list shows the remote devices available with CANopen and supported by SoMachine Variable speed drives such as Altivar Servo drives such as Lexium Integrated drives such as ILA1F ILE1F or the ILS1F Opto electronic encoders such as the Osicoder Configurable safety controllers such as the Preventa Stepper motor drives Motor management and protection systems such as TeSysT Starter controllers such as TeSysU Distributed I Os such as TVD OTB NOTE Other CANopen devices can be added using their electronic data sheet EDS files Refer to Supported Devices see SoMachine Introduction for additional information For additional information on these remote devices refer to external devices documentation available on Schn
48. ersion ve BCLAUDE BESAGE2 353 40 jem ERJCoDEsvs Contr WXFRH12200 V3 5 3 40 E100000000638 04 2014 87 Troubleshooting and FAQ Step Action 4 Right click the controller Result The controller contextual menu opens N ia 7 Process communication settings gt Remove selected controller fronm list Del x Remove all controller from list S 2 Refresh this controller l Refresh list F5 ui Copy to clipboard Ctrl C lt Favorites gt H Change device name Select Change device name Result The Change device name dialog opens Change device name N The device name must be unique in the current network Otherwise it won t be listed correctly and connecting can lead to unexpected behaviour Device name Current BCLAUDE_6E9A6E2 New BCLAUDE_6E9AGE2 Verify that the device name meets the Vijeo Designer controller name requirements maximum length 32 characters A Z a z 0 9 unicode characters and and starts with a letter Copy the value contained in the New field Click OK Display the Vijeo Frame Paste the Vijeo Designer controller name in the Property Inspector Name field Target A Name XBTGT6340_with_Control Description Type XBTGT6000 Series TargetColor 64K Colors Model XBTGT6340 800x600 InitialPanellD 1 Panel1 11 Press Enter to apply the change to the controller name
49. es and Output Behavior Commanding State Transitions Error Detection Types and Management Remanent Variables EIO0000000638 04 2014 Chapter 7 Controller Configuration 59 Device Editor 23 erres Rade MARA KAKA KANE Re eR age 59 Chapter 8 Ethernet Configuration 000s eens 61 IP Address Configuration 00 0 c eee eee eee 61 Chapter 9 CANopen Configuration 63 CANopen Interface Configuration 0 0 0 eee eee 64 CANopen Optimized Manager eee eee 66 CANopen Remote Devices 000 e eee eee eee 67 Chapter 10 Serial Line Configuration 000 ees 69 Serial Line Configuration 00000 c eee eee 70 SoMachine Network Manager eee ee eaee 72 Modbus Manager 000 ccc eee e rennen nn 73 Chapter 11 Managing Online Applications 75 Connecting the Controller toaPC 0 cee eee 75 Chapter 12 Troubleshooting and FAQ 81 Troubleshooting 0000 cece ete tenes 82 Frequently Asked Questions 2222er een ee eee 86 Glossary Ru hier DN DAY AKA KAKA enone ae 91 dex os So or sec Sie esr ae ree Se ae ee Se ee 99 EIO0000000638 04 2014 Safety Information G Important Information NOTICE Read these instructions carefully and look at the equipment to become famil
50. es in CAN based networks SDO types include service SDOs SSDOs and client SDOs CSDOs sequential function chart A language that is composed of steps with associated actions transitions with associated logic condition and directed links between steps and transitions The SFC standard is defined in IEC 848 It is IEC 61131 3 compliant signed integer A 15 bit value plus sign structured text A language that includes complex statements and nested instructions such as iteration loops conditional executions or functions ST is compliant with IEC 61131 3 super twisted nematic A display technology type of monochrome passive matrix liquid crystal display A variable that is a series of ASCII characters symbol A string of a maximum of 32 alphanumeric characters of which the first character is alphabetic It allows you to personalize a controller object to facilitate the maintainability of the application system variable A variable that provides controller data and diagnostic information and allows sending commands to the controller 96 EIO0000000638 04 2014 Glossary T task A group of sections and subroutines executed cyclically or periodically for the master task or periodically for the periodic task A task possesses a priority level and is linked to the I Os of the logic controller These I Os are refreshed in consequence A logic controller can have several tasks TFT thin film transmiss
51. ferring the Application is not Possible Possible causes PC cannot communicate with the controller SoMachine not configured for the current connection Is your application valid Is the CoDeSys gateway running Is the CoDeSys SP win running Resolution e Refer to Communication between SoMachine and the XBT GT GK HMI Controller see page 82 e Your application program must be valid Refer to the debugging section for more information e The CoDeSys gateway must be running a click the CoDeSys Gateway icon in the task bar b select Start Gateway Communication Between SoMachine and the XBT GT GK HMI Controller is not Possible Possible causes SoMachine not configured for the current connection e Incorrect cable usage e Controller not detected by the PC e Communication settings are not correct e The controller has detected an error or its firmware is invalid 82 E100000000638 04 2014 Troubleshooting and FAQ Resolution Follow the flowchart below for troubleshooting purposes and then refer to the next table Check 1 Cable OK f Yes Controller gt Ka detected LA gt p Check 2 gt Check 3 Call Schneider Electric Support Check Action 1 Verify that e The cable is correctly linked to the controller and to the PC and is not damaged e You used the specific cable or adapter depending on the connection type e Ethernet and Serial link connection e XBTZG935
52. has an hexadecimal format and an IP address has a decimal format Convert the MAC address into decimal format Example If the MAC address is 00 80 F4 01 80 F2 the default IP address is 10 10 128 242 62 E100000000638 04 2014 Chapter 9 CANopen Configuration Introduction This chapter describes how to configure the CANopen network interface of the XBT GT GK HMI Controller What Is in This Chapter This chapter contains the following topics Topic Page CANopen Interface Configuration 64 CANopen Optimized Manager 66 CANopen Remote Devices 67 EIO0000000638 04 2014 63 CANopen Configuration CANopen Interface Configuration XBT GT GK HMI Controller Maximum Hardware Configuration The maximum CANopen remote devices connected to the CANopen Master Unit is 10 XBT GT GK HMI Controller Software Requirements The maximum number of Received PDO RPDO is 20 The maximum number of Transmitted PDO TPDO is 20 Adding the CANopen Expansion Modules When adding the TM2 Expert I O Module or XBTZGCANM to the XBT GT GK HMI Controller in the Devices Tree the CANbus node and its child the CAN node will appear CANopen Optimized network manager node and CANopen remote devices can be added under the CAN node A WARNING UNINTENDED EQUIPMENT OPERATION e Only use software approved by Schneider Electric for use with this equipment e Update your application program every time you change the
53. he highlighted nodes For more information on adding a device to your project refer to e Using the Drag and drop Method see SoMachine Programming Guide e Using the Contextual Menu or Plus Button see SoMachine Programming Guide E100000000638 04 2014 15 New Project Adding a CANopen Expansion Module Introduction You can add a XBTZGCANM CANopen expansion module with the XBT GT GK HMI Controller The CANbus node is automatically created You can then add and configure further CANopen devices to the manager Adding a CANopen expansion is explained in CANopen Interface Configuration see page 64 16 E100000000638 04 2014 Chapter 2 Libraries Libraries Introduction The libraries of the controller provide functions such as function blocks data types and global variables that can be used to develop your project The default extension for a library is library The Library Manager of SoMachine provides information about the libraries included in your project You can also use the Library Manager to install new libraries Refer to Library Management for additional information about the Library Manager XBT GT GK HMI Controller Libraries When you select an XBT GT GK HMI Controller for your application SoMachine automatically loads the following libraries loStandard CmploMgr configures types access parameters and help functions Standard Bistable function blocks counter miscellaneous string
54. his Chapter This chapter contains the following topics Topic Page Maximum Number of Tasks 28 Task Configuration Screen 29 Task Types 32 System and Task Watchdogs 34 Task Priorities 35 Default Task Configuration 38 EIO0000000638 04 2014 27 Tasks Maximum Number of Tasks Maximum Number of Tasks The maximum number of tasks you can define for the XBT GT GK HMI Controller are Total number of tasks 3 Cyclic tasks 3 Freewheeling tasks 1 Event tasks 2 28 E100000000638 04 2014 Tasks Task Configuration Screen Screen Description This screen allows you to configure the tasks Double click the task that you want to configure in the Applications tree tab to access this screen Each configuration task has its own parameters which are independent of the other tasks The task configuration window is composed of 4 parts SAS MAST x Configuration Priority 0 31 Type 1 Cyclic Watchdog Enable Time e g t 200ms Sensitivity db Add Call gt lt Interval e g t 200ms t 20ms POU Comment EIO0000000638 04 2014 29 Tasks This table describes the fields of the Task Configuration screen Field Name Definition Priority Configure the priority of each task with a number between 0 and 31 0 is the highest priority 31 is the lowest Only one t
55. iable exchange between the controller and HMI parts perform the following steps e Create variables in the controller part e Publish the variables by defining them as Symbols in the controller part They are now available in the HMI part as SoMachine variables Refer to SoMachine Single Variable Definition see SoMachine Programming Guide for additional information on how to publish variables Once symbols have been transferred toVijeo Designer the HMI part of your application it is usually not necessary to make the transfer every time you call Vijeo Designer If you later add or modify symbols in your SoMachine application after having initially transfered the symbols you must again transfer symbols to Vijeo Designer A WARNING UNINTENDED EQUIPMENT OPERATION After adding or modifying symbols shared between the XBT GT GK HMI Controller and other controllers you must e Update the Vijeo Designer application e Download the updated application into the XBT GT GK HMI Controller Failure to follow these instructions can result in death serious injury or equipment damage Refer to HMI Data Exchange see SoMachine Programming Guide for additional information on how to exchange variables 22 E100000000638 04 2014 Chapter 4 Controller Memory Mapping Introduction This chapter provides the maximum size of an application for a XBT GT GK HMI Controller the size of the RAM the located variables area
56. iar with the device before trying to install operate or maintain it The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure The addition of this symbol to a Danger safety label indicates that an electrical hazard exists which will result in personal injury if the instructions are not followed hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury N This is the safety alert symbol It is used to alert you to potential personal injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided can result in death or serious injury 4A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided can result in minor or moderate injury NOTICE NOTICE is used to address practices not related to physical injury EIO0000000638 04 2014 5 PLEASE NOTE Electrical equipment should be installed operated serviced and maintained only by qualified personnel No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material A qualified person is one who has skills and knowledge related to the construction and operat
57. ion A technology used in many HMI display devices also known as active matrix TPDO transmit process data object An unconfirmed broadcast message or sent from a producer device to a consumer device in a CAN based network The transmit PDO from the producer device has a specific identifier that corresponds to the receive PDO of the consumer devices U UDINT unsigned double integer Encoded in 32 bits UINT unsigned integer Encoded in 16 bits V variable A memory unit that is addressed and modified by a program W watchdog A watchdog is a special timer used to ensure that programs do not overrun their allocated scan time The watchdog timer is usually set to a higher value than the scan time and reset to O at the end of each scan cycle If the watchdog timer reaches the preset value for example because the program is caught in an endless loop a fault is declared and the program stopped WORD A type encoded in a 16 bit format E100000000638 04 2014 97 Glossary 98 E100000000638 04 2014 Index A Adding CANopen Module 16 Controller 15 Devices 14 Addressing Modes differences 25 Application Save 78 Array Data Exchange 21 C CANopen Adding Module 16 16 Baudrate Configuration 65 Expansion Modules 67 Hardware Configuration 64 Interface Configuration 64 Master Unit 64 Network Manager 65 Optimized Manager 66 Remote Devices 67 67 Remote Devices Configuration Screen 67
58. ion of electrical equipment and its installation and has received safety training to recognize and avoid the hazards involved 6 EIO0000000638 04 2014 About the Book At a Glance Document Scope The purpose of this document is to e show you how to program and operate your XBT GT GK HMI Controller e help you to understand how to program your XBT GT GK HMI Controller functions e help you to become familiar with the XBT GT GK HMI Controller functions Read and understand this document and all related documents before installing operating or maintaining your XBT GT GK HMI Controller Validity Note This document has been updated with the release of SoMachine V4 1 Related Documents Title of Documentation Reference Number SoMachine Programming Guide EIO0000000067 ENG EIO0000000069 FRE EIO0000000068 GER EIO0000000071 SPA EIO0000000070 ITA EIO0000000072 CHS Magelis XBTGT XBTGK XBTGH Hardware Guide 35010372 ENG 35010373 FRE 35010374 GER 35010375 SPA 35010798 ITA 35010376 CHS aon Magelis XBT Gx HMI Controller System Functions and Variables XBT PLCSystem Library Guide EIO0000000626 ENG EIO0000000627 FRE EIO0000000628 GER EIO0000000629 SPA EIO0000000630 ITA EIO0000000631 CHS EIO0000000638 04 2014 Title of Documentation Reference Number SoMachine Modbus and ASCII Read Write Functions EIO0000000361 ENG
59. isabled NOTE The Ethernet configuration parameters are applied after a download of the HMI application E100000000638 04 2014 61 Ethernet Configuration The following table briefly explains the different parameters needed for setting up an Ethernet configuration Element Description Download Choose the project download method you want in the drop down menu list When configuring ethernet connection select Ethernet The project download methods are e Ethernet e File System e USB e SoMachine IP Address IP address of the controller DHCP When DHCP is e Enable The controller automatically retrieves an IP address from a DHCP server e Disabled The controller uses a static IP address SubnetMask When using a static IP setting provide the subnet mask of your network DefaultGateway When using a static IP setting provide the default gateway of your network DNS Enable DNS to use domain names instead of IP addresses DNS IP Address When using DNS provide the IP address for the DNS server NOTE For more information on how to configure the Ethernet connection between your computer and the HMI controller refer to Vijeo Designer online help Default IP Address The default IP address is based on MAC address of the device The first two bytes are 10 and 10 The last two bytes are the last two bytes of the device s MAC address The default subnet mask is 255 0 0 0 NOTE A MAC address
60. ly in the RUNNING STOPPED HALT or EMPTY state The controller is restarted into the RUNNING state automatically under certain conditions Refer to Controller State Diagram see page 40 for further details Stop Command Effect Commands a transition to the STOPPED controller state Starting Conditions BOOTING EMPTY or RUNNING state Methods for Issuing a Run Command SoMachine Online Menu Select the Stop command By an internal call by the application or an HMI command using the PLC W q wPLC Control and PLC W q_uiOpenPLCControl system variables of the XBT PLCSystem library see Magelis XBTGC XBTGT XBTGK HMI Controller System Functions and Variables XBT PLCSystem Library Guide Login with online change option An online change partial download initiated while the controller is in the STOPPED state returns the controller to the STOPPED state if successful Download Command implicitly sets the controller into the STOPPED state Multiple Download Command sets the controllers into the STOPPED state if the Start all applications after download or online change option is not selected irrespective of whether the targeted controllers were initially in the RUNNING STOPPED HALT or EMPTY state REBOOT by Script The application downloaded from a USB memory key will issue a REBOOT as its final command The controller will be rebooted into the STOPPED state provided the other conditions of the boot sequence allow this to occur Refer t
61. might have changed In this case the currently set active path is no longer correct and the XBT GT GK HMI Controller node appears in italics Select the XBT GT GK HMI Controller node and click Resolve Name If the node no longer appears in italics click Set Active Path to correct this Application Does Not Go to RUN State Possible causes e No POU declared in the task e ControllerLockout activated Resolution As POUs are managed by tasks add a POU to a task 1 Double click a task in the Applications tree 2 Click the Add Call button in the task window 3 Select the POU you want to execute in the Input Assistant window and click OK 4 Unlock ControllerLockout in Vijeo Designer 84 EIO0000000638 04 2014 Troubleshooting and FAQ Creating the Boot Application is not Possible Possible cause Operation not possible while the controller is in RUN state Resolution e Select Stop Application e Select Create Boot Project Changing Device Name does not work Possible cause Application is running Resolution e Select Stop Application e Change device name CANopen Heartbeat is not sent on a regular basis Possible cause Heartbeat value is not correct Resolution The Heartbeat of the CANopen master must be reset e Calculate the Heartbeat consumer time Heartbeat Consumer Time Producer Time 1 5 e Update the Heartbeat value Monitoring of the POU is slow Possible cause e Task interval is to
62. nd bits addressing between controller and the XBT GT GK HMI Controller If you do not program your application to recognize the differences in address mapping between the controller and HMI parts the controller and the HMI will not communicate correctly and it will be possible for incorrect values to be written to memory areas responsible for output operations 4k WARNING UNINTENDED EQUIPMENT OPERATION Program your application to translate between the memory mapping used by the controller part damage and that used by the HMI part Failure to follow these instructions can result in death serious injury or equipment Memory Data Exchange When the controller and the XBT GT GK HMI Controller are connected the data exchange uses simple word requests There is an overlap on simple words of the XBT GT GK HMI Controller memory while using double words but not for the controller memory Controller Addressing HMI Addressing MX0 7 MX0 0 MBO MWO MDO The double MDO MWO MWO X7 MWO X0 MX1 7 MX1 0 MB1 a MWO X15 MWO X8 MX2 7 MX2 0 MB2 MW1 words MD1 MW1 MW1 X7 MW1 X0 MX3 7 MX3 0 MB3 MW1 X15 MW1 X8 MX4 7 MX4 0 MB4 MW2 MD1 MD2 MW2 MW2 X7 MW2 X0 MX5 7 MX5 0 MB5 MW2 X15 MW2 X8 MX6 7 MX6 0 MBE MW3 asensncnsnnenennnnenes gt MW3 MW3 X7 MW3 X0 MIX7 7
63. nd the actions commanded via configured fieldbusses Refer to Controller States Description see page 44 for more details on these variations 48 EIO0000000638 04 2014 Controller States and Behaviors Set All Outputs to Default Select this option by choosing Set all outputs to default in the Behaviour for outputs in Stop dropdown menu of the PLC Settings subtab of the Controller Editor To access the Controller Editor double click the name of the controller in the Devices tree and select PLC settings tab This output behavior applies when the application is going from RUN state to STOPPED state or if the application is going from RUN state to HALT state Outputs are set to their user defined default values although the details of the output behavior vary greatly depending on the setting of the Update IO while in stop option and the actions commanded via configured fieldbusses Refer to Controller States Description see page 44 for more details on these variations Output Forcing The controller allows you to force the state of selected outputs to a defined value for the purposes of system testing commissioning and maintenance You are only able to force the value of an output while your controller is connected to SoMachine To do so use the Force Values command in the Debug Watch menu Output forcing overrides all other commands to an output irrespective of the task programming that is being executed When you logout of
64. ng Online Applications Step Action Select File System from the Download menu as shown in the following figure Property Inspector Target File System IPAddress Ethernet DHCP te o mm SubnetMask SoMachine DefaultGatewa 0 0 0 0 DNS Disabled Format User Application and Runtime Install Options Single Install User Application Main Drive Set the directory from the Path menu to the USB memory key NOTE Select the root level of your USB memory key Click the OK button Result The directory is now set to the USB memory key Click Build Download All from the Vijeo Designer main menu bar Result The application is saved onto the USB memory key NOTE Use an FAT32 memory key to save your application and firmware EIO0000000638 04 2014 79 Managing Online Applications 80 E100000000638 04 2014 Chapter 12 Troubleshooting and FAQ Introduction This chapter contains common troubleshooting procedures and frequently asked questions for the XBT GT GK HMI Controller What Is in This Chapter This chapter contains the following topics Topic Page Troubleshooting 82 Frequently Asked Questions 86 E100000000638 04 2014 81 Troubleshooting and FAQ Troubleshooting Introduction This section lists the possible troubleshooting solutions with the XBT GT GK HMI Controller and procedures for troubleshooting them Trans
65. nstruction and Guide for Selection Installation and Operation of Adjustable Speed Drive Systems or their equivalent governing your particular location A WARNING UNINTENDED EQUIPMENT OPERATION e Only use software approved by Schneider Electric for use with this equipment e Update your application program every time you change the physical hardware configuration Failure to follow these instructions can result in death serious injury or equipment damage 8 EIO0000000638 04 2014 Chapter 1 Starting with a New Project Introduction This chapter describes how to create a project with the XBT GT GK HMI Controller and how to add devices What Is in This Chapter This chapter contains the following sections Section Topic Page 1 1 New Project 10 1 2 Adding Devices to the Project 14 EIO0000000638 04 2014 9 New Project Section 1 1 New Project Introduction This section will guide you through creating a new XBT GT GK HMI Controller project What Is in This Section This section contains the following topics Topic Page Creating a New Project 11 Trees Description 13 10 EIO0000000638 04 2014 New Project Creating a New Project Introduction This section describes the general characteristics of the XBT GT GK HMI Controller and how to create a new SoMachine project Refer to Manage your project see SoMachine Central User
66. ntroller follow the steps in this table Step Action 1 Connect the USB cable to the XBT GT GK HMI Controller verify that the USB holder see Magelis XBTGC HMI Controller Hardware Guide is in the correct position Connect your USB cable using the front panel connections Connect the USB cable to the PC This diagram shows how to connect the XBT GT GK HMI Controller directly to a PC Legend 1 USB data transfer cable XBTZG935 2 USB connection refer to the XBT GT GK HMI Controller User Manual see Magelis XBTGC HMI Controller Hardware Guide for more information on the USB holder 76 EIO0000000638 04 2014 Managing Online Applications This diagram shows how to connect the XBT GT GK HMI Controller to a PC when mounted on a front panel Legend 1 USB data transfer cable XBTZGUSBB 2 USB Min B to USB data transfer cable TCSXCNAMUMSP or XBTZG935 NOTE An alternative download method consists of connecting your PC to any controllers via USB cable Then connect your XBT GT GK HMI Controller to the first one via serial link However transfer speed is slow E100000000638 04 2014 77 Managing Online Applications Application Download with Firmware Change The XBT GT GK HMI Controller can download an application and change either upgrade or downgrade the firmware from a USB memory key First save the application and the appropriate firmwar
67. o Saving your Application and Firmware on a USB Memory Key see page 78 The controller is restarted into the STOPPED state automatically under certain conditions Refer to Controller State Diagram see page 40 for further details E100000000638 04 2014 51 Controller States and Behaviors Reset Warm Effect Resets all variables except for the remanent variables to their default values Places the controller into the STOPPED state Starting Conditions e RUNNING STOPPED or HALT states e ControllerLockout 0 Methods for Issuing a Reset Warm Command e SoMachine Online Menu Select the Reset warm command e By an internal call by the application or an HMI command using the PLC_W q wPLCControl and PLC W q_uiOpenPLCControl system variables of the XBT PLCSystem library see Magelis XBTGC XBTGT XBTGK HMI Controller System Functions and Variables XBT PLCSystem Library Guide Effects of the Reset Warm Command The application stops Forcing is erased Diagnostic indications for detected errors are reset The values of the retain variables are maintained The values of the retain persistent variables are maintained All non located and non remanent variables are reset to their initialization values All fieldbus communications are stopped and then restarted after the reset is complete All I O are briefly reset to their initialization values and then to their user configured default values
68. o small or POU is too big e Connection speed low between controller and device over serial connection Resolution e Increase the configured task interval e Split the application into smaller POUs Out of Memory appears on the HMI screen Possible cause e The number of variables and symbols shared between the controller and the HMI is too high Resolution e Decrease the number of variables and symbols shared between the controller and the HMI e Power cycle the HMI E100000000638 04 2014 85 Troubleshooting and FAQ Frequently Asked Questions What Programming Languages are supported by a XBT GT GK HMI Controller These languages are supported Continuous Function Chart CFC Function Block Diagram FBD Instruction List IL Ladder Logic Diagram LLD Sequential Function Chart SFC Structured Text ST What Variable Types are supported by an XBT GT GK HMI Controller Controller Refer to the Supported Variables section see page 20 Can I Use SoMachine Network to Communicate with an Equipment Connected to the Serial Line of my XBT GT GK HMI Controller It is possible with an XBT GT GK HMI Controller only if the serial line is configured with the SoMachine Network Protocol see page 69 Limitations e Slow access to the remote equipment e You cannot cascade to other equipment For more information refer to SoMachine Network Combo Vijeo Designer part available in the appendix of XBTGC online help
69. ponds to the receive PDO of the consumer devices POU program organization unit A variable declaration in source code and a corresponding instruction set POUs facilitate the modular re use of software programs functions and function blocks Once declared POUs are available to one another program The component of an application that consists of compiled source code capable of being installed in the memory of a logic controller protocol A convention or standard definition that controls or enables the connection communication and data transfer between 2 computing system and devices E100000000638 04 2014 95 Glossary REAL RPDO RTU SDO SFC SINT ST STN string R A data type that is defined as a floating point number encoded in a 32 bit format receive process data object An unconfirmed broadcast message or sent from a producer device to a consumer device in a CAN based network The transmit PDO from the producer device has a specific identifier that corresponds to the receive PDO of the consumer devices remote terminal unit A device that interfaces with objects in the physical world to a distributed control system or SCADA system by transmitting telemetry data to the system and or altering the state of connected objects based on control messages received from the system S service data object A message used by the field bus master to access read write the object directories of network nod
70. r priority task To improve the likelihood of proper output behavior during multitasking an error is detected if outputs in the same byte are used in different tasks 36 E100000000638 04 2014 Tasks A WARNING UNINTENDED EQUIPMENT OPERATION Map your inputs so that tasks do not alter the input images in an unexpected manner Failure to follow these instructions can result in death serious injury or equipment damage E100000000638 04 2014 37 Tasks Default Task Configuration Default Task Configuration of the XBT GT GK HMI Controller The MAST task can be configured in Freewheeling or Cyclic mode The MAST task is automatically created by default in Cyclic mode Its preset priority is medium 15 its preset interval is 20 ms and its task watchdog service is activated with a time of 100 ms and a sensitivity of 1 Refer to Task Priorities see page 35 for more information on priority settings Refer to System and Task Watchdogs see page 34 for more information on watchdogs Designing an efficient application program is important in systems approaching the maximum number of tasks In such an application it can be difficult to keep the resource utilization below the system watchdog threshold If priority reassignments alone are not sufficient to remain below the threshold some lower priority tasks can be made to use fewer system resources if the SysTaskWaitSleep function is added to those tasks For more
71. rrently running on the controller and allows removing applications from the controller not available for expansion modules Controller Allows configuring the parameters for the communication between the controller and selection the programming system PLC Settings Allows configuring the fallback of the outputs Task deployment Shows a table with inputs outputs and their assignment to the defined tasks Status Displays device specific status and diagnostic messages Information Displays general information about the device name description provider version image EIO0000000638 04 2014 59 Controller Configuration 60 E100000000638 04 2014 Chapter 8 Ethernet Configuration IP Address Configuration Introduction Setting up an Ethernet connection and IP address configuration with the HMI controllers is accomplished with Vijeo Designer There are two ways to assign the IP address of the controller with Vijeo Designer e DHCP server e Fixed IP address NOTE If the above addressing modes are not operational the PLC starts with a default IP address see page 62 derived from its MAC address Ethernet Configuration For the HMI controller the Ethernet configuration is done via the Vijeo Designer Property Inspector window Property Inspector v m x ma g Ethernet IPAddress 10 10 128 232 DHCP Disabled SubnetMask 255 0 0 0 DefaultGateway 0 0 0 0 a DNS D
72. ruction flash memory A non volatile memory that can be overwritten It is stored on a special EEPROM that can be erased and reprogrammed freewheeling When a logic controller is in freewheeling scan mode a new task scan starts as soon as the previous scan has been completed Contrast with periodic scan mode function A programming unit that has 1 input and returns 1 immediate result However unlike FBs it is directly called with its name as opposed to through an instance has no persistent state from one call to the next and can be used as an operand in other programming expressions Examples boolean AND operators calculations conversions BYTE_TO_INT E100000000638 04 2014 93 Glossary H HMI human machine interface An operator interface usually graphical for human control over industrial equipment IL instruction list A program written in the language that is composed of a series of text based instructions executed sequentially by the controller Each instruction includes a line number an instruction code and an operand refer to IEC 61131 3 INT integer A whole number encoded in 16 bits IP Internet protocol Part ofthe TCP IP protocol family that tracks the Internet addresses of devices routes outgoing messages and recognizes incoming messages L LINT long integer A whole number encoded in a 64 bit format 4 times INT or 2 times DINT located variable Refer to unlocated variable
73. s NOTE There are no local or remote I O on XBTGT and XBTGK HMI Controllers l input memory variables and Q output memory variables are attached to CANopen data if configured Task and I O Behavior When Update IO While In Stop Is Selected When the Update IO while in stop setting is selected e The Read Inputs operation continues normally The physical inputs are read and then written to the l input memory variable e The Task Processing operation is not executed e The Write Outputs operation continues The Q output memory variable is updated to reflect either the Keep current values configuration or the Set all outputs to default configuration adjusted for any output forcing and then written to the physical outputs NOTE Commands received by Ethernet Serial USB and CAN communications can continue to write to the memory variables Changes to the Q output memory variables are written to the physical outputs E100000000638 04 2014 45 Controller States and Behaviors CAN Behavior When Update IO While In Stop Is Selected The following is true for the CAN buses when the Update IO while in stop setting is selected The CAN bus remains fully operational Devices on the CAN bus continue to perceive the presence of a functional CAN Master TPDO and RPDO continue to be exchanged The optional SDO if configured continue to be exchanged The Heartbeat and Node Guarding functions if configured continue to operate If the Beh
74. t instructions must be followed Failure to use Schneider Electric software or approved software with our hardware products may result in injury harm or improper operating results Failure to observe this information can result in injury or equipment damage 2014 Schneider Electric All rights reserved EIO0000000638 04 2014 Table of Contents Safety Information About the Book Chapter1 Starting with a New Project 1 1 New Project 2 2 2 22 20 Creating a New Project Trees Description 1 2 Adding Devices to the Project Adding an XBT GT GK HMI Controller 2 22 2222 een Adding a CANopen Expansion Module 2000 00 Chapter 2 Libraries Et 9 lt Chapter 3 Supported Standard Data Types Supported Variables Variables Exchange Chapter 4 Controller Memory Mapping Memory Mapping Chapter 5 Tasks Task Configuration Screen Task Types 00 System and Task Watchdogs Task Priorities Default Task Configuration Chapter 6 Controller States and Behaviors 6 1 Controller State Diagram Controller State Diagram 6 2 Controller States Description Controller States Description 6 3 State Transitions and System Events Controller Stat
75. t short circuit e missing expansion module e communication lost eo etc Application An application error is detected when improper programming is HALT Error encountered or when a task watchdog threshold is exceeded Detected Examples e task software watchdog exception e execution of an unknown function eo etc 56 EIO0000000638 04 2014 Controller States and Behaviors Type of Description Resulting Error Controller Detected State System A system error is detected when the controller enters a BOOTING Error condition that cannot be managed during runtime Most such 5EMPTY Detected conditions result from firmware or hardware exceptions but there are some cases when incorrect programming can result in the detection of a system error for example when attempting to write to memory that was reserved during runtime Examples exceeding the defined size of an array eo etc NOTE Refer to the XBT PLCSystem library see Magelis XBTGC XBTGT XBTGK HMI Controller System Functions and Variables XBT PLCSystem Library Guide for more detailed information on diagnostics NOTE For XBT GT GK HMI Controller System hardware watchdog overflow detection is not supported E100000000638 04 2014 57 Controller States and Behaviors Remanent Variables Remanent Variables Remanent variables can retain their values in the event of power outages reboots resets and application program do
76. tated by the task priority assignments For example if you have defined a variable called my_Var and would like to assign it to an Event select the Event type on the Configuration subtab and click the Input Assistant button E to the right of the Event name field This will cause the Input Assistant dialog box to appear In the Input Assistant dialog box you navigate the tree to find and assign the my Var variable E100000000638 04 2014 33 Tasks System and Task Watchdogs Introduction 2 types of watchdog functionality are implemented for the XBT GT GK HMI Controller e Task Watchdogs Optional watchdogs that can be defined for each task They are managed by your application program and are configurable in SoMachine e Hardware Watchdog This watchdog is managed by the HMI controller main CPU It is not configurable by the user Task Watchdogs SoMachine allows you to configure an optional task watchdog for every task defined in your application program Task watchdogs are sometimes also referred to as software watchdogs or control timers in the SoMachine online help When one of your defined task watchdogs reaches its threshold condition an application error is detected and the controller enters the HALT state When defining a task watchdog the following options are available e Time This defines the allowable maximum execution time for a task When a task takes longer than this the controller will report a task watchdog
77. tifies internal memory addresses in the logic controller to store the value of program variables constants I O and so on According to the IEC standard l represents an input bit for example a language object of type digital IN MW According to the IEC standard MW represents a memory word register for example a language object of type memory word Q According to the IEC standard Q represents an output bit for example a language object of type digital OUT A application A program including configuration data symbols and documentation ARRAY The systematic arrangement of data objects of a single type in the form of a table defined in logic controller memory The syntax is as follows ARRAY lt dimension gt OF lt Type gt Example 1 ARRAY 1 2 OF BOOLis a 1 dimensional table with 2 elements of type BOOL Example 2 ARRAY 1 10 1 20 OF INT isa 2 dimensional table with 10 x 20 elements of type INT ASCII American standard code for Information Interchange A protocol for representing alphanumeric characters letters numbers certain graphics and control characters B BCD binary coded decimal The format that represents decimal numbers between 0 and 9 with a set of 4 bits a nybble nibble also titled as half byte In this format the 4 bits used to encode decimal numbers have an unused range of combinations For example the number 2 450 is encoded as 0010 0100 0101 0000 E100000000638 04 2014 91
78. ume until the breakpoint is cleared For more information refer to breakpoints management RUNNING with This state is the same as the normal RUNNING state detection of an External Error STOPPED The controller has a valid application that is stopped See Details of the STOPPED State see page 45 for an explanation of the behavior of outputs and field buses in this state STOPPED with This state is the same as the normal STOPPED state detection of an External Error HALT The controller stops executing the application because it has detected an Application or a System Error This description is the same as for the STOPPED state with the exception that the task responsible for the Application Error always behaves as if the Update IO while in stop option was not selected All other tasks follow the actual setting Details of the STOPPED State The following statements are always true for the STOPPED state e Ethernet Serial Modbus ASCII and so on and USB communication services remain operational and commands written by these services can continue to affect the application the controller state and the memory variables e All outputs initially assume their configured state Keep current values or Set all outputs to default or the state dictated by output forcing if used The subsequent state of the outputs depends on the value of the Update IO while in stop setting and on commands received from remote device
79. v NO EMPTY Valid Boot Application See Note 4 Application YES Download Download See Note 7 Successfull Reboot due to Power Cycle AND last HMI application es See Note 6 NO download via Multiple Reset Origin Download command with See Note 5 option Start All Application selected Power Interruption YES Online Change Online Change Reset Cold a g Run 2 See Note 8 Stop See Note 10 Reset Warm RR External Application or System External Error Detected Error Detected Error Detected HALT See Notes 8 9 OPERATIONAL STATES 40 E100000000638 04 2014 Controller States and Behaviors Legend e Controller states are indicated in ALL CAPS BOLD e User and application commands are indicated in Bold e System events are indicated in Italics e Decisions decision results and general information are indicated in normal text 1 For details on STOPPED to RUNNING state transition refer to Run Command see page 51 2 For details on RUNNING to STOPPED state transition refer to Stop Command see page 51 Note 1 The Power Cycle Power Interruption followed by a Power ON deletes all output forcing settings Refer to Controller State and Output Behavior see page 48 for further details Note 2 The outputs will assume their initialization states Note 3 HMI download screen is displayed prompting the user to download the firmware HMI and Control application Note 4 The application is loaded into RAM
80. wnloads There are multiple types of remanent variables declared individually as retain or persistent or in combination as retain persistent NOTE For this controller variables declared as persistent have the same behavior as variables declared as retain persistent The following table describes the behavior of remanent variables in each case Action VAR VAR RETAIN VAR PERSISTENT and RETAIN PERSISTENT Online change to application x x program Stop x x Power cycle x x Reset warm x x Reset cold x Reset origin Download of application x program X The value is maintained The value is reinitialized 58 EIO0000000638 04 2014 Chapter 7 Controller Configuration Device Editor Introduction Configure and monitor your XBT GT GK HMI Controller using the Device Editor This screenshot shows the Information tab of the device editor window Applications Controller selection PLC settings Task deployment Status Information General Name XBTGT4330 with Control Vendor Schneider Electric Categories PLCs XBTGT4000 Series With Control Type 4101 ID 101A 128D Version 3 5 3 15 Order Number XBTGT4330 with Control Description XBTGT4330 640x480 Image Tabs Description This table provides a description of the tabs available from the device editor window Tab Description Applications Shows the applications cu
81. y powerful options for managing task execution and output conditions while the controller is in the STOPPED or HALT states Refer to Controller State and Output Behavior see page 47 for further details Note 9 To exit the HALT state it is necessary to issue one of the Reset commands Reset Warm Reset Cold Reset Origin download an application or cycle power 42 E100000000638 04 2014 Controller States and Behaviors Note 10 The RUNNING state has two exceptional conditions that will be indicated in run state or error messages on HMI screen e RUNNING with External Error You may exit this exceptional condition by clearing the external error No controller commands are required e RUNNING with Breakpoint Refer to Controller State Description see page 44 for further details on this exceptional condition E100000000638 04 2014 43 Controller States and Behaviors Section 6 2 Controller States Description Controller States Description Introduction This section provides a detailed description of the controller states A WARNING UNINTENDED EQUIPMENT OPERATION e Never assume that your controller is in a certain controller state before commanding a change of state configuring your controller options uploading a program or modifying the physical configuration of the controller and its connected equipment e Before performing any of these operations consider the effect on all connected equipment

Download Pdf Manuals

image

Related Search

Related Contents

Motorola PCS telephone User's Manual  Manuale d`uso  South Shore Furniture 8050007K Instructions / Assembly  Handbuch multiMAUS -Internetversion-  Operating instructions  CONTENTS - Ubisoft  CS-60 LED    Lincoln Electric PRO100 IM784 User's Manual  NUK VAPO RAPID Dampf-Vaporisator NUK VAPO RAPID Steam  

Copyright © All rights reserved.
Failed to retrieve file