Page 1
Programmable Logic Control XGT OPC UA Module XGT Series XGL-EOPCT...
Page 2
Safety Instruction Before using the product … For your safety and effective operation, please read the safety instructions thoroughly before using the product. Safety Instructions should always be observed in order to prevent accident or risk with the safe and proper use the product.
Page 3
Safety Instruction Safety Instructions for design process Warning Please install a protection circuit on the exterior of PLC so that the whole system may operate safely regardless of failures from external power or PLC. Any abnormal output or operation from PLC may cause serious problems to safety in whole system. Install protection units on the exterior of PLC like an interlock circuit that deals with opposite operations such as emergency stop, protection circuit, and forward/reverse rotation or install an interlock circuit that deals with high/low limit under its position controls.
Safety Instruction Safety Instructions for design process Caution I/O signal or communication line shall be wired at least 100mm away from a high-voltage cable or power line. Fail to follow this instruction may cause malfunctions from noise Safety Instructions on installation process Caution Use PLC only in the environment specified in PLC manual or general standard of data sheet.
Page 5
Safety Instruction Safety Instructions for wiring process Warning Prior to wiring works, make sure that every power is turned off. If not, electric shock or damage on the product may be caused. After wiring process is done, make sure that terminal covers are installed properly before its use.
Page 6
Safety Instruction Safety Instructions for test-operation and maintenance Warning Don’t touch the terminal when powered. Electric shock or abnormal operation may occur. Prior to cleaning or tightening the terminal screws, let all the external power off including PLC power. If not, electric shock or abnormal operation may occur. Don’t let the battery recharged, disassembled, heated, short or soldered.
Page 7
Safety Instruction Safety Instructions for waste disposal Caution Product or battery waste shall be processed as industrial waste. The waste may discharge toxic materials or explode itself.
Revision History Revision History Version Date Remark Page V1.0 2024.02 First Edition...
Page 9
About User’s Manual Thank you for purchasing PLC of LS ELECTRIC Co., Ltd. Before use, make sure to carefully read and understand the User’s Manual about the functions, performances, installation and programming of the product you purchased in order for correct use and importantly, let the end user and maintenance administrator to be provided with the User’s Manual.
Page 10
Table of Content ◎ Contents ◎ CHAPTER 1 OVERVIEW-------------------------------------------------------------------------------------------------------------------------------------------- 1-1 ------------------------------------------------------------------------------------------------------------------------------ 1-1 UIDE TO USE THIS MANUAL ------------------------------------------------------------------------------------------------------------------------------------------ 1-2 HARACTERISTICS 1.2.1 OPC UA (OPC Unified Architecture) ---------------------------------------------------------------------------------------------------------- 1-2 1.2.2 XGL-EOPCT module ------------------------------------------------------------------------------------------------------------------------------ 1-3 1.2.3 Function Items by Version ------------------------------------------------------------------------------------------------------------------------ 1-4 1.2.4 Number of units that can be installed for each CPU --------------------------------------------------------------------------------------- 1-5 ------------------------------------------------------------------------------------------------------------------- 1-6...
Page 12
STANDARDS 8.1.1 EMC Standard -------------------------------------------------------------------------------------------------------------------------------------- 8-1 8.1.2 Panel --------------------------------------------------------------------------------------------------------------------------------------------------- 8-2 8.1.3 Cable -------------------------------------------------------------------------------------------------------------------------------------------------- 8-3 --------------------------------------------------------------------------------------- 8-4 EQUIREMENT TO CONFORM THE VOLTAGE IRECTIVE 8.2.1 Standards applicable to XGT series ----------------------------------------------------------------------------------------------------------- 8-4 8.2.2 Selection of XGT Series PLC-------------------------------------------------------------------------------------------------------------------- 8-4 APPENDIX -------------------------------------------------------------------------------------------------------------------------------------------------------------- A-1...
Page 13
Table of Content A.1 XGT CPU ---------------------------------------------------------------------------------------------------------------------------- A-1 MEMORY DEVICE LIST A.1.1 XGK CPU devices -------------------------------------------------------------------------------------------------------------------------------------- A-1 A.1.2 XGI CPU devices --------------------------------------------------------------------------------------------------------------------------------------- A-2 A.1.3 XGR CPU devices -------------------------------------------------------------------------------------------------------------------------------------- A-2 A.2 D ----------------------------------------------------------------------------------------------------------------------------------------- A-3 ESCRIBES OF TERMS A.3 L --------------------------------------------------------------------------------------------------------------------------------------------------- A-9 IST OF FLAGS A.3.1 XGK CPU flags ------------------------------------------------------------------------------------------------------------------------------------------ A-9 A.3.2 XGI CPU flags ------------------------------------------------------------------------------------------------------------------------------------------ A-17...
Page 14
Chapter 1 Overview Chapter 1 Overview 1.1 Guide to use this manual This user manual provides information on the performance specifications and operation methods of each product required to use the XGL-EOPCT module. Classificat Item Contents This chapter describes the structure of this manual, product features, and features Chapter 1 Overview provided by version.
Chapter 1 Overview 1.2 Characteristics The XGL-EOPCT module is a specialized product that can deliver information collected from field level devices such as sensors/actuators to higher-level applications (HMI, SCADA, MES, ERP, Cloud). 1.2.1 OPC UA (OPC Unified Architecture) OPC Unified Architecture (IEC 62541) is a communication standard specification for industrial automation applications and is a communication standard protocol for the secure and reliable exchange of information between field-level devices and PLC high-level applications.
Page 16
Chapter 1 Overview 1.2.2 XGL-EOPCT module Easy module change using module change switch of CPU and module change wizard of XG5000. Up to 24 Ethernet modules can be installed regardless of the main base and the extension base.(XGR CPU only supports main base) ...
Page 17
Chapter 1 Overview 1.2.3 Function Items by Version The function items provided by each version are as follows. XGL-EOPCT Function P2P service (XGT Enet, Modbus TCP), Server service, Remote service, V1.0 OPCUA Server (1) P2P service The P2P service is the client function in the following client/server model. This function requests the server for reading/writing data.
Page 18
Chapter 1 Overview Supports authentication and authorization through signing, encryption and data integrity, and uses X.509 certificates for authentication. - Service Oriented Architecture 1.2.4 Number of units that can be installed for each CPU Up to 24 XGL-EOPCT modules can be mounted regardless of the main base or extension base. For maximum performance of the communication module, mount it on the main base where possible.
Page 19
Chapter 1 Overview 1.3 Software for using the product Describes programming tools and other CPU software for using the Ethernet module. For use, please refer to the following and apply it to the system. 1.3.1 Software checklist Programming Classification Service/Driver adding XGK CPU XGI CPU XGR CPU...
Page 20
Chapter 1 Overview (2) Check the version via the case label on the product. For each communication module, product information of the module is attached to the outer case. After detaching a module without a connection with a PC, a label is attached to the back of the module and the model name and version information are indicated.
Chapter 2 Product configuration Chapter 2 Product specifications 2.1 General specifications The general specifications of the XGT series are as follows. Related Item Specifications specifications Operating ambient 0 ~ 55 C temperature Storage −25 ~ +70 C temperature Ambient humidity...
Chapter 2 Product configuration Notes (1) IEC (International Electrotechnical Commission): An international nongovernmental organization which promotes international cooperation in the standardization in the fields of electricity and electronics, publishes international standards and operates relevant conformity assessment systems. (2) Pollution degree: An index indicating pollution degree of the operating environment which decides insulation performance of the devices.
Chapter 2 Product configuration 2.2 Performance specifications Please refer to the table below when configuring the system. Specifications Item Communicati Driver Port number Note on method TCP/IP 2004 XGT Enet client UDP/IP 2005 Up to 8 P2P parameters Modbus TCP client TCP/IP Up to 32 channels per parameter P2P service...
Page 25
Chapter 2 Product configuration 2.2.1 OPCUA module Item XGL-EOPCT Transmission speed(Mbps) 10/100/1000 Transmission method Baseband Maximum distance between 100m (Node-Switch) nodes Minimum distance between note1) Recommend 1m or higher Transfer nodes Specifications Electrical: Category 5E or higher STP(Shielded Twisted-pair) cable Send media Maximum protocol size 1,500 Byte...
Page 26
Chapter 2 Product configuration 2.2.2 Load specifications Communication load is divided into the load by media interrupt received per second from Ethernet media and the transmission load transmitted by CPU module to Ethernet module. If the load due to the media interrupt guaranteed by the Ethernet module and the transmission load are exceeded, it may not operate normally.
Chapter 2 Product configuration 2.3 Structure and Characteristics 2.3.1 Names of Part and Function (1) XGL-EOPCT <Name of each part> Name Content LED Display Please refer to the table. Communication It is a connector for electric cable for connecting Ethernet communication with external Connector device.
Page 28
Chapter 2 Product configuration <Names of LED and Function> Names of Indication LED status Functional description contents of LED Normal operation. Display module operation status Do not normal operation. Display P2P P2P service operates normally. service operation High-speed P2P service is canceled. state Operating remote service with remote Ethernet communication device (including Display Smart...
Page 29
Chapter 2 Product configuration Names of Indication LED status Functional description contents of LED LED operation When the communication network is not connected. state Notes (1) Relay function is not supported at 0Mbps, so if Relay option is checked at 10Mbps, Relay LED will be off.
Page 30
Chapter 2 Product configuration 2.4 Specification of cable 2.4.1 Twisted pair cable Cables are classified into two types according to the following standards. Shield or not: 3 categories (UTP, FTP, STP), frequency band used: 7 categories (Cat.1~7) (3) Cable type (Shield) Classification Detail Usage...
Page 31
Chapter 2 Product configuration 10G BASE-Tsupported Category 7a 1000 Shielded (5) Example of category 5 twist pair wire (UTP) (CTP-LAN5) Item Unit Value Ω/km Conductor resistance 93.5 (Max.) MΩ·km Insulation 2500 resistance(Min.) Withstand voltage V/minute AC 500 Ω(1~100MHz) Characteristic 100 ± 15 impedance 10MHz dB/100m...
Chapter 3 Product Installation and Test Operation Chapter 3 Product Installation and trial operation 3.1 Product Installation 3.1.1 Preparation for operating (1) Ethernet module system configuration 1) Check the basic elements necessary for the system configuration and select a proper communication module. 2) Select a cable for the communication module.
Page 33
Chapter 3 Product Installation and Test Operation 3.1.2 Setting sequence for operation Describes the order of installation and operation of the product. When the installation of the product is completed, please install and set up the system in the following order. 1) Mount Ethernet module on base module.
Page 34
Chapter 3 Product Installation and Test Operation 3.2 Installation 3.2.1 XGL-EOPCT module Maximum segment length for electric media is 100 m Cables are classified into two types according to the following standards. Between Switch and Pin No. Signal Ethernet module Cross cable Straight cable 1 —...
Page 35
Chapter 3 Product Installation and Test Operation (2) Cross cable 1. White/Orange 1. White/Orange 2. Orange 2. Orange 3. White/Green 3. White/Green 4. Blue 4. Blue 5. White/Blue 5. White/Blue 6. Green 6. Green 7. White/Brown 7. White/Brown 8. Brown 8.
Page 36
Chapter 3 Product Installation and Test Operation 3.3 Test operation After connecting the communication cable, turn on the power and check the LED for normal operation. If it is normal, download the program to the PLC and execute the program. 3.3.1 Precautions for System Configuration IP addresses, including Ethernet modules, must not overlap each other.
Page 37
Chapter 3 Product Installation and Test Operation (2) Sequence of trial operation The following shows the procedure from the completion of installation on the PLC to the trial run. Start Power ON: 1) Check the input power wiring. 2) Check the communication cable connection. 3) Turn on the power.
Page 38
Chapter 3 Product Installation and Test Operation 3.3.3 The method to remove and replace the module. If you want to replace or remove the module due to hardware error or system change, follow the procedure below. (1) Order of exchanging communication module 1) Turn off the power module of the base where the communication module is installed.
Page 39
Chapter 3 Product Installation and Test Operation 3.4 XG5000 Program XG5000 is a program tool for Ethernet communication network control and management. It provides configuration and management functions related to communication module such as communication parameter, communication service parameter and module and network diagnosis. The functions related to Ethernet module of XG5000 can be classified as follows.
Page 40
Chapter 3 Product Installation and Test Operation 3.4.2 Communication module registration This section describes the communication settings for the Ethernet module to operate. (1) Selection and execution of communication module For standard setting of communication module, base, slot location of communication module should be registered in Undefined Network of XG5000 project tree list.
Page 41
Chapter 3 Product Installation and Test Operation Click the [Add Module] button on the bottom left of the [Select Module] window. In the [Communication Module Settings] window, specify Type, Base and Slot. The screen where Ethernet module is registered in Slot 0 of BASE 0 is as follows. 2) On line registration If communication module is connected to the installed XGT CPU module, all communication modules installed in XGT can be searched automatically and registered in the project window as follows.
Page 42
Chapter 3 Product Installation and Test Operation b) Press the "I/O Sync" button at the bottom left of the [I / O Information] window. 3-11...
Page 43
Chapter 3 Product Installation and Test Operation c) Check the contents of the message window and click “Yes” if there is no problem. d) The screen where Ethernet module is automatic registered in slot 00 of base 00 is as follows. 3-12...
Page 44
Chapter 3 Product Installation and Test Operation 3.4.3 Basic settings This is a screen for setting communication system parameters for Ethernet module to connect to network. It provides basic information such as IP address, Subnet Mask, Gateway address, Receive Time Out Setting, No. of Dedicated Connections, Host Table Settings and Sets EIP Server.
Page 45
Chapter 3 Product Installation and Test Operation 1) TCP/IP setting(XGK/I CPU series) Classification Content Select the communication media you want to use. AUTO (electric): Automatically sets the media settings of the currently installed module. 10M HALF: 10Mbps Half Duplex Electric Media 10M FULL: 10Mbps Full Duplex Electric 100M HALF: 100Mbps Half Duplex Electric...
Page 46
Chapter 3 Product Installation and Test Operation (2) In case of XGR CPU Indicates the default parameters set in the XGR CPU In the case of XGR, the Standard Settings varies depending on whether the One IP Solution function is used or not. 1) ONE IP Solution If ONE IP Solution is used, when master switching occurs due to error, communication disconnection, etc., the IP address of the FEnet module mounted on the master base and the FEnet module mounted on the...
Page 47
Chapter 3 Product Installation and Test Operation 2) TCP/IP setting(XGR CPU series) After setting one of A-side or B-side, use copy button or set station number and IP independently. Classification Content Select the communication media you want to use. AUTO (electric): Automatically sets the media settings of the currently installed module.
Page 48
Chapter 3 Product Installation and Test Operation Notes In the media setting, all items except “AUTO” are Force mode. The link setting may be wrong when connecting between AUTO set device and Force mode set device, so XGL-EFMxB (V8.1 or higher) and XOL-ES4x (V2.1 or higher) products do not support the above link setting.
Page 49
Chapter 3 Product Installation and Test Operation 3.4.4 Security setting Classification Setting Set or not Case availability There are no restrictions on the devices accessed by the module. Enable host table No Setting Only the devices with the IP address registered in the host table is allowed.
Page 50
Chapter 3 Product Installation and Test Operation The number of channels allocated on a user port is different for each OS version, see the table below. Number of channels Number of channels User port number setting (User port number) (Default port number) XGT server: 64 When not setting user port number Modbus server: 64...
Page 51
Chapter 3 Product Installation and Test Operation 3.4.6 Advanced Settings Media: This function limits the maximum connection speed to 100Mbps when media in Basic Settings is set to AUTO. 3.4.7 Download/Upload Standard Settings parameters created using XG5000 can be written (download) or parameters can be read (uploaded). (1) Writing (download) 1) Connect with the CPU of the system equipped with the Ethernet module via [Online] →...
Page 52
Chapter 3 Product Installation and Test Operation 3) After selecting the network parameter to download and pressing “OK” button, writing is completed and PLC reset is executed. Notes 1) XG5000 can be connected to RS-232C port or USB port of CPU module. Refer to the wiring diagram of the relevant CPU module for the available cable types.
Page 53
Chapter 3 Product Installation and Test Operation (2) Reading(Upload) 1) Connect to the CPU module of the system equipped with the Ethernet module and select [Online] → [Read]. 2) After connecting, select [Online]→ [Read] and the following screen will appear. 3) Click the “OK”...
Page 54
Chapter 3 Product Installation and Test Operation 3.4.8 Link enable In order to send / receive high speed link and P2P data downloaded to XG5000, link permission to start communication operation is required. By allowing link enable, communication module initiates sending / receiving service. Each parameter can be individually assigned an action.
Page 55
Chapter 3 Product Installation and Test Operation (2) Link enable through a flag 1) Here is how to enable link via flag. The following version is required to use link enable using flag. Item Version XG5000 V4.77or higher XGR CPU V3.10 or higher XGI-CPUE V4.08 or higher...
Page 56
Chapter 3 Product Installation and Test Operation _P2P_REQ_NUM ARRAY[0..7] OF BOOL Setting P2P enable/disable %FX16528 -XGR CPU module Flag Data type Device Contents _P2P_ENABLE_STATE ARRAY[0..7] OF BOOL %FX19072 P2P enable/disable current status _P2P_REQ ARRAY[0..7] OF BOOL %FX31552 P2P enable/disable request _P2P_REQ_NUM ARRAY[0..7] OF BOOL %FX31568...
Chapter 3 Product Installation and Test Operation 3.5 System diagnosis The system diagnosis function indicates the overall service status and information communication module. It shows detailed online status such as link type, link information and O /S information so that users can diagnose and debug data send/ receive relationship of current communication module.
Page 58
Chapter 3 Product Installation and Test Operation 3.5.2 Types of diagnostic functions On the diagnosis screen, diagnose the status of each module with the pop-up menu. The main functions of each item are as follows. Classification Content Detailed Module It shows basic information, hardware and communication status Information...
Page 59
Chapter 3 Product Installation and Test Operation (2) Status By Service The service status of communication module is divided into Dedicated Service, P2P Service, High Speed Link Service and Smart Extension and shows the detailed information of each communication service. 1) Dedicated service Dedicated service shows communication status with MMI / HMI, the parent client.
Page 60
Chapter 3 Product Installation and Test Operation 2) P2P service When P2P parameter is set and enabled, it indicates whether the service is normal or not. Real-time monitoring is possible by specifying redo and continuous read through menu. (3) Media information Indicates packet information input to the media.
Page 61
Chapter 3 Product Installation and Test Operation (4) Ping Test (5) Auto scan Indicates the link interface status of the network. 3-30...
Page 62
Chapter 3 Product Installation and Test Operation (6) View Communication Module Log It indicates the event and communication history of communication module. Loopback test The loopback test of the local Ethernet module is used to test the hardware for abnormalities. Notes 1) Reset communication module after remote OS download If you do not reset, the communication module will not operate normally.
Page 63
Chapter 3 Product Installation and Test Operation 3-32...
Page 64
Chapter 4 P2P service Chapter 4 P2P service 4.1 Overview Overview of P2P service P2P service is the master operation of communication module. It is the function implemented by function, block (command) by parameter setting. There are seven P2P commands available in the Ethernet module: Read, Write, Write_NC, Send, Send_NC, Receive, and ESend.
Page 65
Chapter 4 P2P service 4.2 Type of P2P service Type of P2P command P2P used by the user for writing a program can be classified into seven commands. The usage of commands varies according to the service method. Apply each command by referring to the following table.
Page 66
Chapter 4 P2P service Type of P2P service (1) XGT Enet client The XGT client service is used for data send and receive of the between Ethernet. With the built -in self protocol, the user sets communication by specifying only standard settings such as channel, data type (BIT, BYTE, WORD, etc.) and memory area.
Page 67
Chapter 4 P2P service 4.3 P2P service setting Ethernet (server) driver (1) Driver setting Ethernet (server) driver is XGT Ethernet built-in server protocol. The built-in protocol includes the XGT server and the Modbus server. Ethernet (server) driver is used to read or write data of Ethernet module from other station using Modbus or XGT protoco l.
Page 68
Chapter 4 P2P service (1) P2P channel setting The Ethernet module can send and receive data in up to 32 channels. The channel consists of the IP address and port number of the communication device. P2P can communicate with simple parameter setting for communication with device using XGT, MODBUS TCP protocol for user's convenience.
Page 69
Chapter 4 P2P service Classification Content User frame A protocol used to communicate with an external device. It definition is a user frame definition protocol (frame definition). This is the XGT dedicated protocol. (The frame is not XGT Enet client driver defined.) Modbus TCP...
Page 70
Chapter 4 P2P service P2P block Select P2P block of the parameter in P2P menu, then P2P parameter setting screen appears. Up to 64 separate blocks can be set. Select any block in XG5000 and set the action of the block as follows. The setting items for each and their meaning are as follows.
Page 71
Chapter 4 P2P service (3) Command Please refer to the table below for the usage of commands used when users write programs. Classification Command Usage This command is used to read / save arbitrary area of destination station Read and it is used the same in XGT / Modbus client driver. Available memory areas: P, M, K, F, T, C, U, Z, L, N, D, R, ZR,% Q,% I,% M, etc.
Page 72
Chapter 4 P2P service 4.4 P2P service operation P2P service operation describes how to read / write data between Ethernet modules as an example. IP: 192.168.1.3 IP: 192.168.1.2 Write / Read data to Ethernet side of IP '192, 168.1.2' to XGT Enet / Modbus TCP client from Ethernet side with IP address 192.168.1.3'.
Page 73
Chapter 4 P2P service (1) P2P service setting(PLC1) Program sequence: Connect to PLC system 1, 2 CPU and set in the following order. At this time, PLC1 sets the IP address as “192.168.1.3”. Setting Setting method process 1) [Project]→Open [New Project] and enter the project name, CPU series, CPU type, programming type, and program name.
Page 74
Chapter 4 P2P service [continue] Setting Setting method process 1) Set the media, IP address, etc. in the [Standard settings] window. Enter own's IP address. Select server mode among XGT server / Modbus server / Smart server. If you use XGT server and Modbus server at the same time, select smart server. PLC1 selects XGT server as server operation of XGT Enet client.
Page 75
Chapter 4 P2P service [continue] Setting Setting method process 1) Click P2P channel item of P2P01 parameter to set channel. - Set channel 0 as XGT Enet client and, channel 1 as Modbus TCP client and input the destination station's IP. paramete r setting 1) Set the setting items for each P2P block channel of P2P 01 parameter as...
Page 76
Chapter 4 P2P service [continue] Sequen Setting Setting method process 1) After selecting [Online]→[Connect] and [Online]→[Write], download the following items. Project downloa 1) Select [On-line]→[Reset/Clear]→ [Reset individual module] 2) Select the relevant module in the reset window of individual module reset and select OK.
Page 77
Chapter 4 P2P service (2) P2P service setting(PLC2) Program sequence: Connect to PLC system 1, 2 CPU and set in the following order. At this time, PLC2 sets the IP address as “192.168.1.2”. Setting Setting method process 1) [Project]→Open [New Project] and enter the project name, CPU series, CPU type, programming type, and program name.
Page 78
Chapter 4 P2P service [continue] Setting Setting method process 1) Set the media, IP address, etc. in the [Standard settings] window. Enter own's IP address. Select server mode among XGT server / Modbus server / Smart server. If you use XGT server and Modbus server at the same time, select smart server. Select Smart Server as the server operation of XGT Enet and Modbus TCP client of PLC1.
Page 79
Chapter 4 P2P service [continue] Setting Setting method process 1) Click P2P channel item of P2P01 parameter to set channel. - Set channel 0 as XGT Enet client and input the destination station's IP. paramete r setting 1) Set the setting items for each P2P block channel of P2P 01 parameter as follows.
Page 80
Chapter 4 P2P service [continue] Sequen Setting Setting method process 1) After selecting [Online]→[Connect] and [Online]→[Write], download the following items. Project downloa 1) Select [On-line]→[Reset/Clear]→ [Reset individual module] 2) Select the relevant module in the reset window of individual module reset and select OK.
Page 81
Chapter 4 P2P service 4.5 User frame definition Overview of a user frame definition When the user needs to send a frame desired by the user or receives a frame among the frames on the network, the frame to be sent or received should be defined. The user frame definition can be used only in the P2P service. All frames consist of Head, Body and Tail, each of which can be omitted.
Page 82
Chapter 4 P2P service 2) Select the name of user frame definition Group name and frame type In the Edit Group window, enter the group name and select the frame type. Group name can be entered arbitrarily. 3) When the group name “SEND” and frame type are selected as sending, the results entered in the project window are shown.
Page 83
Chapter 4 P2P service 1) Adding HEAD of a user frame definition 2) Adding TAIL of a user frame definition 3) Create and add a BODY name of a user frame definition. 4-20...
Page 84
Chapter 4 P2P service (3) Type of segments Frame is composed of a number of segments consisting of Head, Body, Tail, and registered in the frame edit window below. 1) Frame configuration Classifi Command Usage cation Numerical Defines the part of the frame that is fixed as a constant and specifies the constant data value as Hex.
Page 85
Chapter 4 P2P service Swap data in 2,4,8 byte unit. The result of swapping h1234567811223344 according to each method is as follows. Swap -2 Bytes Swap: h3412785622114433 -4 Bytes Swap: h7856341244332211 -8 Bytes Swap: h4433221178563412 2) The specification of transmission and reception frame supported in the user frame definition communication is as follows.
Page 86
Chapter 4 P2P service Operation of a user frame definition Read current value and set temperature value of the temperature controller at intervals of 1 second, save the current value at address M200, and save the temperature set value at address M210. The frame structure of PC Link which is the communication protocol of Han Young temperature controller used in this example is as follows.
Page 87
Chapter 4 P2P service (2) Standard settings Sequen Setting Setting method process 1) [Project]→Open [New Project] and enter the project name, CPU series, CPU type, programming type, and program name. Create project 1) Select [Undefined Network]→[Add item]→ [Communication module]. 2) In the [Select Module] window, click “Add module”. Standard network adding...
Page 88
Chapter 4 P2P service Sequen Setting Setting method process Set TCP / IP Settings, Receive time out Settings, and Driver settings on the [Standard Settings] tab. 1) Set Station No.: 0 and IP address Undefine Network setting Select [Add item]→[P2P communication]. 2) The user frame definition is displayed in P2P 01 of the project window.
Page 89
Chapter 4 P2P service (3) Writing send frame Sequen Setting Setting method process 1) Select User frame definition. 2) Click the right mouse button and select [Add item] →[Add a group]. Create a user frame 1) The group name indicates the name of a frame that will be created by the user. 2) Select send for the frame type since the send frame is created currently.
Page 90
Chapter 4 P2P service Sequen Setting Setting method process 1) Click Add Frame and select the frame type HEAD, TAIL, BODY to create. 2) The name of the frame edit window becomes active only if the type is BODY. 3) A number of BODY's can be created by using a different name. register HEAD, TAIL,...
Page 91
Chapter 4 P2P service (4) Writing receive frame Sequen Setting Setting method process 1) Select User frame definition. 2) Click the right mouse button and select [Add item] →[Add a group]. Create a user frame 1) The group name indicates the name of a frame that will be created by the user. 2) Select Reception for the frame type since the reception frame is created currently Edit group 1) Select the frame name, right-click and select [Add Frame].
Page 92
Chapter 4 P2P service Sequen Setting Setting method process 1) Click Add Frame and select the frame type HEAD, TAIL, BODY to create. 2) The name of the frame edit window becomes active only if the type is BODY. 3) A number of BODY's can be created by using a different name. register HEAD, TAIL,...
Page 93
Chapter 4 P2P service (5) Create P2P send / receive block Sequen Setting Setting method process 1) Double click P2P block in P2P 01. 2) Enter the channel (user frame definition) selected in P2P channel. 3) In the P2P function, select Send as SEND and Receive as RECEIVE. 4) The starting condition will be enabled only when the P2P function is SEND.
Page 94
Chapter 4 P2P service 4.6 Downloading and diagnosis of P2P parameter Downloading a P2P parameter When the P2P parameter setting is completed, you need to download the parameters to the PLC CPU and start To download P2P parameters, select [Online] → [Write] in the XG5000 menu window and the the P2P service.
Page 95
Chapter 4 P2P service P2P service operation In order to download P2P parameters and start P2P service, P2P operation must be performed. To do this, select [Online] → [Communication module setting and Diagnosis] → [Enable Services (high speed link, P2P)] from the menu.
Page 96
Chapter 4 P2P service P2P service diagnosis P2P system diagnosis shows the service status and information of communication program after driver setting of communication module. The user can check whether the P2P service is operating normally with the system diagnosis Please refer to the Chapter 3.4 XG5000 program for details. (1) P2P service Check the status of the user define service in detail.
Page 97
Chapter 4 P2P service 4.7 XGR Redundancy Program Method In case of P2P service, in order to read the data of the redundant system, P2P write should be done on the XGK (I) side without using P2P write on the XGR side and use the flag of P2P service. Save normal service count of P2P service connected to A-Side and B-Side and read STATUS of the block to check if it is 0 After that, it checks that STATUS is 0 and normal service count is increased and read the data on either side.
Page 98
Chapter 4 P2P service If 1 is normal, 1 data is taken. If 1 server is abnormal, 2 data are taken. (2) XGR and XGK (I) are redundant with different IP addresses on other (separate) networks. If you create a ladder in P2P service 1 connected to the master (standby) side, P2P service 2 connected to the standby (master) side and 0 in P2P block 0, you can write as follows.
Page 99
Chapter 4 P2P service If XGR and XGK (I) are redundantly configured with the same IP address in different (separate) networks, duplicated services can be implemented by writing the same ladder program (2) and the basic part is different. . 4-36...
5.1.1 Overview (1) Overview of the protocol XGT dedicated protocol is communication protocol between LS ELECTRIC Ethernet modules. Read / write is available by using command and communication is available by using XGT dedicated protocol from PC and HMI. XGT Dedicated communication can be used in the TCP and UDP communication method.
Page 102
Chapter 5 server service 4) Frame structure of XGT dedicated protocol - Command request frame(External communication device → Ethernet I/F module) Reserved area Header Command Data type Structured data area (2 Byte) - ACK response frame (Ethernet module → external communication device, when data is received normally) Reserved Head Comman...
Page 103
Chapter 5 server service - Expression of data type: Device Type of XGT PLC: Data types for variables such as P, I, Q, M, L, F, K, C, D, T, N, and R are displayed after the variable display character'%' (H25). Data type Example %PX0,%LX0,%FX0...
Page 104
Chapter 5 server service 5.1.2 XGT dedicated protocol commands (1) Read variable individually This is the function to specify the PLC device memory to read according to the memory data type. 16 independent device memories can be read at a time. 1) Request frame Item Size (Byte)
Page 105
Chapter 5 server service Number of Number of variables to read when the error status is normal blocks Data size Byte size of data Data Data size Data to read (Repeat as many as the number of variables/max. 16) Data size Byte size of data Data Data size...
Page 106
Chapter 5 server service (2) Variable continuous read This is a function that directly designates the PLC device memory and continuously reads data as much as the specified amount from the specified address. 1) Request frame Item Size (Byte) Contents Command 0x0054: read request Data type...
Page 107
Chapter 5 server service 3) Response frame(NAK response) Name of Reserved Error code Header Command Data type Error status frame area (Hex 2 Byte) h’FFFF or h’00FF h’0055 h’0014 h’0000 h’0021 Code(ex) (Non-zero value) (3) Write variable individually This is the function to specify the PLC device memory to write according to the memory data type. Data can be written to 16 independent device memories at once.
Page 108
Chapter 5 server service Notes (1) The device data type of each block should be same. If the data type of the first block is Word and the data type of the second block is Double Word, an error occurred. If the data type is Bool, the read data is displayed in HEX as one byte.
Page 109
Chapter 5 server service 2) Response frame(ACK response) Item Size (Byte) Contents Command 0x0059: Write response Data type 0x0014: continuous 0x0000: Don’t Care Reserved area Error status If it is 0, it is normal, if it is not 0, it is an error. Error information In case of error, the lower byte is the error number No.
Page 110
Chapter 5 server service 4) Flag description _CPU_TYPE Bit 15 (0) : XGI , Bit 15(1) : XGK Bit 15(0) : Single, Dual master0) , Bit 15(1) : Dual slave (ex, Single: 0x8000~0xffff, XGK-CPUH :0xA001, XGK-CPUS: 0xA002) _VER_NUM 0xXXYY: xx.yy _SYS_STATE Displays the operation mode and operation status of the system.
Page 111
Chapter 5 server service Variable Position Device Function Description _INIT_RUN Bit24 F00018 Initializing Performing initialization task. Bit25 F00019 Bit26 F0001A Bit27 F0001B _PB1 Bit28 F0001C Program code 1 Program code 1 is being executed _PB2 Bit29 F0001D Program code 2 Program code 2 is being executed _CB1 Bit30...
Page 112
Chapter 5 server service _CNF_WAR Collectively displays warning flag related to continue operation(DWORD, F004~F005) Variable Device Function Description Type _RTC_ER F00040 Abnormal RTC data In case of abnormal data of RTC Cold restart is performed because normal (hot or warm restart) program modification is impossible due to abnormal backup _DBCK_ER F00041 Data back-up error...
Page 113
Chapter 5 server service 5.1.3 Server operation (1) System configuration System where Ethernet module communicates with HMI as XGT server To communicate using server service, you must set server mode before downloading. (If not set, Smart server). The number of XGT server channels is 64. 5-14...
Page 114
Chapter 5 server service (2) Program procedures Connect to PLC and set as below. Setting Sequence Setting method process 1) [Project]→Open [New Project] and enter the project name, CPU series, CPU type, programming type, and program name. Create project 1) Select [Undefined Network]→[Add item]→ [Communication module]. 2) In the [Select Module] window, click “Add module”.
Page 115
Chapter 5 server service Setting Sequence Setting method process Set TCP / IP Settings, Receive time out Settings, and Driver settings on the [Standard Settings] tab. 1) Set Station No.: 0 and IP address Undefined Network setting In the [Online]→[Write] window ,Click ok. Program download 5-16...
Page 116
Chapter 5 server service 5.2 Modbus Server It is used when another device or upper PC (HMI) operates as Modbus master. Overview 5.2.1 The Modbus TCP/IP protocol is the function to read and write data using the function code. The Modbus TCP/IP frame consists of MAC, Header, TCP Header and Modbus ADU for the Ethernet communication.
Page 117
Chapter 5 server service 3) MBAP header structure Classification Size Description Client Server Classification of Transaction identifier MODBUS Reply by copying in 2 Byte Initialize on client (Transaction Identifier) request/response response from server process Copy from request Protocol Identifier 2 Byte 0 = MODBUS protocol Initialize on client frame in response...
Page 118
Chapter 5 server service 5.2.2 Server operation (1) Program procedures Connect to PLC and set as below. Setting Sequence Setting method process 1) [Project]→Open [New Project] and enter the project name, CPU series, CPU type, programming type, and program name. Create project 1) Select [Undefined Network]→[Add item]→...
Page 119
Chapter 5 server service Setting Sequence Setting method process Set TCP / IP Settings, Receive time out Settings, and Driver settings on the [Standard Settings] tab. 1) Set Station No.: 0 and IP address 2) Click Modbus setting and input each device Undefined Network setting...
Page 120
Chapter 5 server service 5.3 OPC UA function OPC Unified Architecture (IEC 62541) is an interoperability standard for secure and reliable information exchange, making it suitable for industrial applications. Based on client-server model, it is a communication protocol applicable from sensor level to cloud and has the following features.
Page 121
Chapter 5 server service 5.3.1 Overview XGL-EOPCT module has the following features. Message encryption feature Authentication via Certificate User security functions Variable read / write function. Variable Monitoring (MonitoredItem) Function through Subscription Alarm / Event function for variables ...
Page 122
Chapter 5 server service (1) The maximum performance specifications of the module may vary depending on the complexity of the user application or system load conditions (communication load, etc.). (2) If the OPC UA server is overloaded, response may be slow or timeouts may occur. In cases like this, the Sampling/Publishing interval must be adjusted to be longer.
Page 123
Chapter 5 server service (1) Standard settings 1) Application name: The name of the OPC UA server displayed when the OPC UA client connects to the server's URL. “it is set by default as 'XG5000 Set PLC Type.OPCUAServer / Set PLC Name” and you can change it. 2) Port number: Enter the number to be used as the OPC UA server port.
Page 124
Chapter 5 server service (2) Secure Channel 1) Server certificate name: displays part of the file name of the certificate to use as the server certificate. 2) Available security policies on the server: Displays the policies available for encryption with the XGT OPC UA server module.
Page 125
Chapter 5 server service (3) User Authentication 1) Allow anonymous access: When connecting without specifying a user ID and password, this function accepts the client's connection for the request. 2) Allow User and Password access: Check the user ID and password to determine if the client is connected. 5-26...
Page 126
Chapter 5 server service 5.3.2.3 Variable registration The OPC UA server registers and uses server variables for use by OPC UA clients. (1) XGK CPU Add OPC UA server variables on [Project]-[Setting EtherNet / IP (OPC UA) Variable] menu. (2) XGI/R CPU Add OPC UA server variables by selecting “EIP / OPC UA”...
Page 127
Chapter 5 server service Separately, we provide information about OPC UA servers and clients who have accessed them as follows. It can be found through the [System Diagnosis] → Right-click Communications Module → [OPCUA Server Information] or System Diagnostics → Right-click Communications Module → [OPCUA Server Media Information]. 5-28...
Page 129
Chapter 5 server service 5.3.4 Expert to OPC UA tag XML file To provide ease of engineering when creating applications by accessing the OPC UA server from SCADA or HMI equipment with built-in OPC UA Client function, the XG5000 program provides OPC UA tag information provided by the OPC UA server in XML file format.
Page 130
Chapter 5 server service 5.3.5 String Node ID Naming Rule OPC UA Node ID is a unique ID given to each node within the server's address space and is used to distinguish each node. The client can access the server using the namespace (ns=x, x=2 for XGT communication module) number and Node ID of the address space where the nodes exist.
Page 131
Chapter 5 server service separator ‘.’, and the structures number] Folder name.Structure name[index tag name named by number].Member variable name the user. Below is an example of verifying the Node ID of an XGT OPC UA server module using a String Node ID Type with Unified Automation's UA Expert Client tool based on naming conventions.
Chapter 6 Additional functions Chapter 6 Additional functions 6.1 Remote communication This function is XG5000 and remote control function such as program writing, user program download, program debugging and monitor in network system where PLC is connected by Ethernet. Especially, when the devices connected to the network are far apart, it is a convenient function to easily access each device from one place without moving the place.
Page 133
Chapter 6 Additional functions 6.2 XG5000 setting and connection All PLCs connected to XGT network can be connected by XG5000 communication service. The remote connection of the XG5000 consists of the 1-stage connection and the 2-stage connection, The following describes how to connect remote stage 1 and stage 2.
Page 134
192.168.91.190 (2) Settings (Details) _USB 1) 1) USB driver: Set to LSIS XGT Series. (3) Settings (Details) _Remode 1 1) Network type: Select Rnet, Fdnet, Cnet, FEnet, FDEnet, etc. according to the network type to which step 1 connection is made. Step 1 connection is selected by Ethernet (FEnet). Also selects an Ethernet connection between the CPU built-in Ethernet / Ethernet module.
Page 135
Chapter 6 Additional functions 3) IP address: Specify the IP address of the Ethernet module mounted in the PLC of the destination station (PLC (2)) to be connected with network 1 in network 1. Connect to the Ethernet module with the IP address 192.168.91.191.
Page 136
Chapter 6 Additional functions (3) Details_Remote 1(Remote 1 setting is same as “8.2.1 Remote 1 connection”.) (4) Details_Remote 2 1) Network type: Select Rnet, Fdnet, Cnet, FEnet, FDEnet, etc. according to the network type to which step 2 connection is made. The network types of the 1st and 2nd connection are not related. It is connected by 1- stage Ethernet to FEnet.
Page 137
Chapter 6 Additional functions 6.2.3 CPU access directly from PC connected to Ethernet If the PC running XG5000 is connected to PLC by network, you can connect to CPU with remote 1 by Ethernet without connecting to PLC CPU by USB or RS-232C PLC(N) PLC(1) PLC(2)
Page 138
Chapter 6 Additional functions 1) Connection method: Select how the connection will be made. Select Ethernet because it connects to Ethernet without using RS- 232C. 2) Connection stage: Decide whether to establish the connection to the PLC in either remote 1-stage or remote 2-stage. Select remote stage 1.
Page 139
Chapter 6 Additional functions 1) Method: Select a local connection method. Remote connection via Ethernet. 2) Step: Remote 1 stage is set same as ”Remote 1 stage connection”. Set remote 2 to set Rnet station 1. 3) Station address: In order to connect to PLC (A), set base and slot number of remote 1 Ethernet and input station number of Rnet 1 station in remote 2 communication module.
Page 140
Chapter 6 Additional functions 6.3 Communication module object data send and receive function This function is to send/receive object data of communication module. For detailed instruction usage, refer to “XGK / XGB instruction user manual” or “XGI/XGR/XEC/XMC instruction user manual”. 6.3.1 SNTP object The structure of the SNTP object (Object ID :1) is as follows.
Page 141
Chapter 6 Additional functions Periodic SNTP diagnostic Information (Read) Since there are a maximum of 4 servers that can be registered, response structure is also 4 Event SNTP diagnostic information (Read) 6-10...
Page 143
Chapter 6 Additional functions : SNTP Event diagnostic count clear command (2) SNTP Event operating for using CP_MSG SNTP Event operation (Write) SNTP Event operation - Write control command to SNTP event operation command offset (0x0100) - Message structure : NTP Server IP Address: IP address of NTP Server for SNTP event operation : NTP Server Port No: Port address of NTP Server for SNTP event operation ==>...
Page 144
Chapter 6 Additional functions Time zone (UTC ± time) convert to minutes (UTC-12:00) International Date Line West -12:00 * 60 = -720 (UTC-11:00) Samoa -11:00 * 60 = -660 (UTC-10:00) Hawaii -10:00 * 60 = -600 (UTC-09:00) Alaska -09:00 * 60 = -540 (UTC-08:00) Baja California -08:00 * 60 = -480 (UTC-08:00) Pacific Time (US &...
Page 146
Chapter 6 Additional functions (UTC+03:30) Tehran 3:30 AM * 60 = 210 (UTC+04:00) Abu Dhabi, Muscat 4:00 AM * 60 = 240 (UTC+04:00) Baku 4:00 AM * 60 = 240 (UTC+04:00) Port Louis 4:00 AM * 60 = 240 (UTC+04:00) Tbilisi 4:00 AM * 60 = 240 (UTC+04:00) Yerevan 4:00 AM * 60 = 240...
Page 147
Chapter 6 Additional functions (UTC+09:30) Adelaide 9:30 AM * 60 = 570 (UTC+09:30) Darwin 9:30 AM * 60 = 570 (UTC+10:00) Brisbane 10:00 AM * 60 = 600 (UTC+10:00) Canberra, Melbourne, Sydney 10:00 AM * 60 = 600 (UTC+10:00) Guam, Port Moresby 10:00 AM * 60 = 600 (UTC+10:00) Hobart 10:00 AM * 60 = 600...
Page 148
Chapter 6 Additional functions Daylight Saving Time: Daylight Saving Time setting for SNTP operation Daylight Saving Time Disable: 0 Daylight Saving Time Enable: 1 Timeout Value: Timeout setting value until retrieval of time information from NTP server Enter a value in ms units (10ms 65535ms) - CP_MSG SNTP Event operating WRITE Request Message Structure - Ladder program writing example 6-17...
Page 149
Chapter 6 Additional functions (3) Read SNTP Event operating status for using CP_MSG SNTP Event operation (Read) SNTP Event operation - Read SNTP event operation command offset (0x0150) - Time information received from the NTP server through the most recent SNTP event operation : Month/Year: month /two digit after year (ex) 2021 -->...
Page 150
Chapter 6 Additional functions - Ladder program writing example 6-19...
Page 151
Chapter 6 Additional functions (4) Read SNTP diagnostics information for using CP_MSG Periodic SNTP diagnostics information (Read) Periodic SNTP diagnostics information Periodic SNTP diagnostics information Periodic SNTP diagnostics information Periodic SNTP diagnostics information - Read Diagnostic information offset (0x0200) for periodic SNTP operation - Message structure : Connection Info: Connection status with NTP server ==>...
Page 153
Chapter 6 Additional functions - Ladder program writing example (5) Read event SNTP diagnostics information for using CP_MSG Event SNTP diagnostics information (Read) Event SNTP diagnostics information - Read Diagnostic information offset (0x0300) for periodic SNTP operation - Message structure : Service Status: Status of the most recently performed SNTP event action ==>...
Page 155
Chapter 6 Additional functions refer to 'List of Error Codes for SNTP Objects' below. Error code Description 0x0150 TIMEZONE setting error when writing SNTP event operation command 0x0151 NTP SERVER register error when writing SNTP event operation command 0x0152 DAYLIGHT SAVING TIME setting error when Write SNTP event operation command 0x0153 TIMEOUT VALUE setting error when writing SNTP event operation command 0x0154...
Page 156
Chapter 6 Additional functions 6.3.2 P2P object The structure of the P2P object (Object ID :3) is as follows. P2P object (Object ID: 3) P2P channel command P2P channel diagnostics (1) P2P client channel commands using CP_MSG (Write Only) - Write control command to P2P object offset (0x0000). - Channel No: TCP channel index number set as client of P2P channel parameter ( 0 ~ 31) - Command: Refer to the following table for supported command items.
Page 157
Chapter 6 Additional functions Code (hex) Name Description 0x0000 DISCONNECTED Connection release (IDLE) 0x0001 CONNECTED Connection complete 0x0002 WAIT_CONNECTING The server is waiting for a connection from the client. 0x0003 CONNECTING Connecting 0x0004 DISCONNECTING Disconnecting (3) P2P object error code Code (hex) Name Description...
Page 158
Chapter 6 Additional functions 6.3.3 Diagnosis object The structure of the Diagnosis object (Object ID :4) is as follows. Diagnostics object (Object ID: 4) (1) Module Information read using CP MSG 6-27...
Page 159
Chapter 6 Additional functions Member name Value 0X00: No Basic parameter Parameter Exist 0X00: normal operation in Basic parameter Link Type 0x01 : FEnet Link Sub Type 0x01: copper x 2port(XGL-EOPCT) Station No. Station Number IP Address IP Address Os Date QS Date MAC Address MAC Address...
Page 160
Chapter 6 Additional functions - Ladder program writing example(XGK) (2) Frame capture control To start frame capture, write 0x0000000E to Frame Capture Control offset (0x3000) using the CP MSG Write function. To start frame capture, write 0x0000000D to Frame Capture Control offset (0x3000) using the CP MSG Write function.
Page 163
Chapter 6 Additional functions • Clear (3) Frame Capture Filter Settings Frame capture filters can be set from 1 to 4. All frames are recorded if no frame capture filter is set. If you want to record by selecting a frame, set the frame filter. 6-32...
Page 164
Chapter 6 Additional functions For each filter, refer to the description in the table below. Member name Value Use 0x0001 for the first frame capture filter item OR(0x0002): It decides whether to receive or not by OR condition with the result of the previous frame capture combination filter item AND(0x0003): It decides whether to receive or not by OR condition with the result of the previous frame capture...
Page 165
Chapter 6 Additional functions Only used when the Custom Area Frame filter is selected. Offset Enter the offset area where the data to be compared is located. (Input range: 0 to 127) Only used when the Custom Area Frame filter is selected. Length Enter the length of data to compare.
Chapter 7 Troubleshooting Chapter 7 Toubleshooting An explanation of how to check the causes of a failure or an error that may occur during system operation and measures. The following procedure can be used to check the status of the Ethernet module. Please follow the troubleshooting procedures to determine the abnormal module status.
Page 167
Chapter 7 Troubleshooting 7.1 LED Error Check To check the fault or status of the module, check the status of the communication module according to the lighting status of the LED. 7.1.1 Abnormal operation indication of XGL-EOPCT Checked by the LED on the front of the Ethernet module. LED Name Error contents Solution...
Page 168
Chapter 7 Troubleshooting LED Name Error contents Solution 1) Check if the IP redundancy setting is on the same network. 2) Check if the media of the standard settings parameter and the product have the Turned on after same media type. power on 3) A packet receiving overload has occurred.
Page 169
Chapter 7 Troubleshooting 7.2 Error checking method by XG5000 connection 7.2.1 Error / Warning check during PLC operation By XG5000 program, you can monitor the communication module abnormally. After connecting to CPU port, check through [Online]-→[Diagnostics →] [PLC History] and [PLC Error / Warning] of XG5000.
Page 170
Chapter 7 Troubleshooting Operation Code Cause of error Action (Restart Mode After Action) LED status Diagnostics point Status If the same error repeats when power is turned Power on Base information error STOP ERR : ON on again, A/S is requested. RUN mode change Backup flash memory Restart after modifying program of backup...
Page 171
Chapter 7 Troubleshooting Code Cause of error Action (Restart Mode After Action) Run status LED status Diagnostics point Check the location of the slot where Normal access of access error occurred with XG5000, special/link module data replace the module and restart STOP ERR : ON (P.S.
Page 172
Chapter 7 Troubleshooting (2) Error / Warning check during XGI CPU module operation Operation Code Cause of error Action (Restart Mode After Action) LED status Diagnostics point Status If the same error repeats when power is turned Blink in full LED Data Bus Error Error Power on...
Page 173
Chapter 7 Troubleshooting Operation Code Cause of error Action (Restart Mode After Action) LED status Diagnostics point Status After checking the position of slot where the fuse Fuse cutoff of fuse built- cutoff occurs by XG5000, change the fuse and STOP ERR : ON module...
Page 174
Chapter 7 Troubleshooting Notes 1) 1) Check the error No. 2 ~ 13 in the “Error code during CPU operation” at the AS center. 2) Error number 22 or less can be confirmed using the error history of XG5000.
Page 175
Chapter 7 Troubleshooting (3) Error / Warning check during XGR CPU module operation Code Cause of error Action (Restart Mode After Action) LED status Diagnostics point status A / S request if repeated on power up Power on Base information error STOP S013 RUN mode change...
Page 176
Chapter 7 Troubleshooting Code Cause of error Action (Restart Mode After Action) LED status Diagnostics point status Scan time of program during operation Check the the scan watchdog time time specified by exceeds the scan In operation the parameter and after restart after modifying the STOP E040 watchdog time...
Page 177
Chapter 7 Troubleshooting Code Cause of error Action (Restart Mode After Action) LED status Diagnostics point status When entering Redundant system When entering redundant operation or between redundant operation synchronous CPUs during operation Occurs when the STOP E300 or between CPUs operation error program and data are out of sync during operation...
Page 178
Chapter 7 Troubleshooting 7.2.2 Error / Warning check during communication module operation By XG5000 program, you can monitor the communication module abnormally. Connect to CPU port and click [Online] → [Communication module setting and diagnosis] → [System diagnosis] of XG5000. Thereafter, you can right-click the Ethernet module in the PLC system and check it through the Block Status tab of [Status by Service] →...
Page 179
Chapter 7 Troubleshooting (1) Error / Warning check during communication module operation(P2P/dedicated service) Error code Error contents Solution 0x0000 Normal operation 1) Modbus registration failed in Modbus communication. If the problem persists, please contact our Customer Centre. P2P-Communication 2) The number of channels in the message in the server service (dedicated 0x0001 Error communication) exceeded 1 Check the P2P block setting.
Page 180
Chapter 7 Troubleshooting Error code Error contents Solution P2P-XGT server 1) Downloading P2P parameter of XGT dedicated communication. 0x0010 communication or 2) There is an error in the data type of the FEnet dedicated communication download error request message. Check the block setting. 1) Data type of Enet dedicated communication request message and direct variable of detail setting do not match Check the block setting.
Page 181
Chapter 7 Troubleshooting Error code Error contents Solution P2P-Received XGT The command Message header of FEnet dedicated communication is set 0x0078 dedicated error reply incorrectly. Check the settings. message There was a problem when allocating an internal buffer for FEnet dedicated 0x00F0 P2P-Buffer Error communication.
Page 182
Chapter 7 Troubleshooting Error code Error contents Solution P2P- Data sending FEnet dedicated communication is unable to process the requested data. Check 0xFFD7 buffer Full the communication connection status. P2P- internal interlock There is a problem with the client internal logic in FEnet dedicated 0xFFEB error communication.
Page 183
Chapter 7 Troubleshooting 7.2.3 View Communication Module Log Communication module history view function of XG5000 program can check whether error occurred and measures. Select [Online] →[Communication module setting] → [System Diagnosis] from XG5000. Right-click on the XGL-EOPCT module you want to diagnose and select [View communication module log]. If you select the error occurrence history in the [Event History] tab and the [Communication History] tab, you can check the details of the error and the corrective action in "Details and Actions"...
Page 184
Chapter 7 Troubleshooting Error code Error details Action 0xD011 Failed Server Certificate Error occurred in server certificate. Please download again. Validation 0xD012 Failed Setting Server Failed setting folder where the server certificate will be stored. Certificate Folder 0xD013 Application Terminated 0xD020 Failed Adding Endpoint Failed setting Endpoint security policy.
Page 185
Chapter 7 Troubleshooting If you press [Frame Capture (C)] in the [Frame History] tab, you can start/stop frame capture, and if you read the history, you can see the communication frame at the start-stop point. If you press [Save File (S)], it is saved as a txt file and can be imported from “wireshark”.
Page 186
Chapter 7 Troubleshooting 7.3 XGT dedicated communication error code 7.3.1 STATUS value that can be checked in communication frame This is an error code that responds when an error occurs for a request for XGT dedicated communication beginning with “LSIS-XGT” or “LGIS-GLOFA”. The error code can be checked in the error code area of the NAK message.
Chapter 7 Troubleshooting 7.4 Troubleshooting by error Trouble shooting method is to check the error history in XG5000 and LED status of Ethernet module and then take measures. 7.4.1 Troubleshooting (1) Turn off the Run LED on the Ethernet module: hardware error H/W error Is the power supply Check the power /...
Page 188
Chapter 7 Troubleshooting (2) I / F LEDs on the Ethernet Module do not flash: Interface error H/W error Is the power supply Check the power / normal? voltage Comply with the general Does the installation standards for the environment meet the surrounding inst allation spec if ications? environment.
Chapter 8 EMC Standard Chapter 8 EMC Standard 8.1 The requirements for compliance with EMC standards The EMC Directive specifies the products must 'be so constructed that they do not cause excessive electromagnetic interference (emissions) 'and 'are not unduly affected by electromagnetic interference (immunity)'. The applicable products are requested to meet these requirements.
Page 191
Chapter 8 EMC Standard 8.1.2 Panel The PLC is an open type device (device installed to another device) and must be installed in a control panel. This is because an accident such as electric shock does not occur when a person comes into contact with the product (XGT PLC), and the noise generated in the PLC has the effect of attenuating the control panel.
Page 192
(3) How to fix the cable in the panel When fixing the extension cable of the XGT series to the metal control panel, keep the extension cable at least 1 cm so that the extension cable does not directly contact the metal plate. The metal plate of the control panel has a shielding effect that blocks noise from radio waves, but it can also be a good antenna if a cable that is a source of noise is connected nearby.
Page 193
The low-voltage directive requires each device that operates with the power supply ranging from 50V to 1000VAC and 75V to 1500VDC to satisfy the safety requirements. Cautions and installation and wiring of the series PLC XGT series to conform to the low-voltage directive are described in this section. However, LSIS will not guarantee that the overall machinery manufactured according to the details conforms to the below-described directives.
Page 194
Appendix Appendix A.1 XGT CPU memory device list For the latest CPU type devices, refer to the CPU manual. Also, for CPU models released after the writing of this manual, please refer to the relevant CPU manual. A.1.1 XGK CPU devices Memory area of the CPU used for local data send / receive.
Page 195
Appendix A.1.2 XGI CPU devices Device Type Size Range Note Symbolic variable 512K byte %AW0~%AW262143 Up to 256K byte retainable area(A) Input variable(I) 16K byte %IW0.0.0 ~ %IW127.15.3 Output 16K byte %QW0.0.0 ~ %QW127.15.3 variable(Q) 256K byte %MW0~%MW131071 Up to 128K byte retainable Direct 64K byte * 2 %RW0~%RW32767...
Page 196
Appendix A.2 Describes of terms Before using this product, explain the general terms of Ethernet module. Please refer to the Ethernet technical book for details. Auto-MDIX(Automatic Medium Dependent Interface Crossover) The type of Ethernet cable is divided into Crossover Cable (TX-RX, RX-TX) and Straight Cable (TX-TX, RX-RX), where the TX / RX is interchanged based on TX / RX.
Page 197
Appendix DNS (Domain Name System) A method used to convert alphabetic Domain Name on the Internet to its identical Internet number (namely, IP address). Dot Address Shows IP address of ‘100.100.100.100’, where each figure is displayed in decimal with 1 byte occupied respectively for 4 bytes in total.
Page 198
Appendix Based on optical cable, provides 100Mbps, Shared Media Network as Dual Ring method, Token Passing is done in two-way. Max 200Km distance for entire network, Max 2Km between Nodes, Max 500 nodes. Generally, this used as Backbone Network. FTP (File Transfer Protocol) An application program used to transfer files between computers among application programs providing TCP/IP protocol.
Page 199
Appendix IP (Internet Protocol) Protocol at the network layer for the Internet IP Address Address of respective computers on the Internet made of figures binary of 32 bits (4 bytes) to distinguish the applicable machine on the Internet. Classified into 2 sections, network distinguishing address and host distinguishing address.
Page 200
Appendix Protocol Contains regulations related with mutual information transmission method between computers connected with each other through the network. The protocol may specify detailed interface between machines in Low level (for example, which bit/byte should go out through the line) or high level of message exchange regulations as files are transferred through the Internet.
Page 201
Appendix Token Ring As short-distance network using Token to connect to network having physical ring structure, one of the Node connection methods at network. If node sending data gets Token, then node gets right to send message packet. Realistically structured examples are IEEE 802.5, ProNet-1080 and FDDI. Terms called Token is used as IEEE 802.5 ...
Page 202
Appendix A.3 List of flags A.3.1 XGK CPU flags A.3.1.1 Special Relay (F) List Device 1 Device 2 Type Variable Function Description F0000 DWORD _SYS_STATE Mode and state Indicates PLC mode and operation status F00000 _RUN RUN status. F00001 _STOP STOP STOP status.
Page 203
Appendix Device 1 Device 2 Type Variable Function Description Indicates the critical error state of the F0002 DWORD _CNF_ER System error system. F00020 _CPU_ER CPU error There is an error in the CPU configuration. F00021 _IO_TYER Module type error The module type does not match. Module F00022 _IO_DEER...
Page 204
Appendix Device 1 Device 2 Type Variable Function Description F0004C _HS_WAR5 High speed link 5 High speed link– parameter 5 or more F0004D _HS_WAR6 High speed link 6 High speed link– parameter 6 or more F0004E _HS_WAR7 High speed link 7 High speed link–...
Page 206
Appendix Device 1 Device 2 Type Variable Function Description PUT/GET done in the extended base F0029 WORD _PUTGET_NDR6 PUT/GET complete 6 level 6 PUT/GET done in the extended base F0030 WORD _PUTGET_NDR7 PUT/GET complete 7 level 7 Indicates information related to the CPU F0044 WORD _CPU_TYPE...
Page 207
Appendix Device 1 Device 2 Type Variable Function Description F0074 DWORD _CA_CNT Block service Increase in module's block data service F0076 DWORD _CA_LIM_CNT Block service LIMIT Increase in block data abnormal service Block service F0078 DWORD _CA_ERR_CNT Increase in block data abnormal service ERROR F0080 DWORD...
Page 208
Appendix Device 1 Device 2 Type Variable Function Description Fuse disconnection Extension base 4-stage fuse F0116 WORD _FUSE_ER4 4 error disconnection error Fuse disconnection Extension base 5-stage fuse F0117 WORD _FUSE_ER5 5 error disconnection error Fuse disconnection Extension base 6-stage fuse F0118 WORD...
Page 209
Appendix Device 1 Device 2 Type Variable Function Description F0154 WORD _BASE_INFO4 Slot information 4 Extension base 4-slot information F0155 WORD _BASE_INFO5 Slot information 5 Extension base 5-slot information F0156 WORD _BASE_INFO6 Slot information 6 Extension base 6-slot information F0157 WORD _BASE_INFO7 Slot information 7...
Page 210
Appendix A.3.2 XGI CPU flags A.3.2.1 Mode and state Flag Name Memory Content Description TYPE Displays the operation mode and operation _SYS_STATE DWORD %FD0 PLC mode and states status of the system. _RUN BOOL %FX0 _STOP BOOL %FX1 STOP Indicates operation state of PLC module. _ERROR BOOL %FX2...
Page 211
Appendix Flag Name Memory Content Description TYPE _BASE_SKIP_IN DWORD %FD478 Base Skip information Display the base skip information. If this flag is set by user’s initial program, it is _INIT_DONE BOOL %FX16400 Initialization task completion. started to execution of scan program after initial program completion.
Appendix Flag Name TYPE Memory Content Description Displayed when the saved program gets _SWDT_ER BOOL %FX46 CPU abnormal ends. damages by an abnormal end of CPU or program cannot work. _BASE_POWER BOOL %FX47 Power error The base power supply is abnormal. Indicates that the program scan time exceeds the _WDT_ER BOOL...
Page 213
Appendix A.3.2.4 User flag Flag Name TYPE Content Description Memory Clock signal used in user program reverses _T20MS BOOL %FX144 20ms cycle clock On/Off per a half cycle Reversal of signal is processed after the scan is completed, so the _T100MS BOOL %FX145...
Page 214
Appendix Flag Name TYPE Memory Content Description Indicates min. scan time during operation. _SCAN_MIN WORD %FW51 Minimum scan time Unit:0.1ms Indicates current scan time during operation. _SCAN_CUR WORD %FW52 Current scan time Unit:0.1ms _RTC_TIME[0] BYTE %FB106 RTC TIME[Year] Indicates PLC Clock data(Year). _RTC_TIME[1] BYTE %FB107...
Page 215
Appendix Flag Name TYPE Memory Content Description _RTC_TIME_USER[3 BYTE %FB2071 Time to set (hour) Change RTC information data(Hour). _RTC_TIME_USER[4 BYTE %FB2072 Time to set (minute) Change RTC information data(minute). _RTC_TIME_USER[5 BYTE %FB2073 Time to set (second) Change RTC information data(second). _RTC_TIME_USER[6 BYTE %FB2074...
Page 216
Appendix A.3.3 Communication relay (L) list (1) Special register for data link High speed link No. 1 ~12 keyword Type Content Description Indicates that all stations operate normally as per the parameter set from the high speed link. It becomes On in the following conditions.
Page 217
Appendix High speed Address in L area Note link number L000500~L00099F L001000~L00149F Compared with HS link 1, the flag address of other HS link station no. Is as L001500~L00199F follows. L002000~L00249F Calculation formula: Address in L area = L000000 + 500 x (high speed link number– L002500~L00299F L003000~L00349F L003500~L00399F...
Page 219
Appendix (2) Link devices (N) list P2P Number: 1 ~ 8 , P2P : 0 ~63 keyword Type Content Description Saves the destination station address on No 00 P2P parameter No. 1 No. block of P2P parameter No. 1. N00000 _P1B00SN WORD 00 block destination...
Page 220
Appendix keyword Type Content Description N00036 ~ Device P2P parameter No. 1 No. 00 Saves device 4 on No. 00 block save area of P2P _P1B00WD4 N00039 structure block save area device 4 parameter No. 1. P2P parameter No. 1 No. 00 Saves size 4 on No.
Page 221
Appendix (3) FEnet Connection information List Variable Type Description _0000_ADDR_LNM WORD FEnet : LNM information(above Ver 6.0) _0000_CH_NFR ARRAY FEnet : New Frame Ready(Ver 8.6 or higher), (XGI CPU) _0000_CH00_NFR ~ FEnet : New Frame Ready(Ver 8.6 or higher), (XGK CPU) _0000_CH31_NFR _0000_LINE_TOPOLOGY FEnet : Line topology state(above Ver 6.0)
Appendix A.4 ASCII Code Table American National Standard Code for Information Interchange ASCII Code ASCII Code ASCII Code ASCII Code Value Value Value Value Decimal Decimal Decimal Decimal € NULL À • Á ‚ Â ƒ Ã „ Ä … Å...
Page 223
Appendix ASCII Code ASCII Code ASCII Code ASCII Code Value Value Value Value Decimal Decimal Decimal Decimal œ Ü • Ý ž Þ Ÿ ß (space) à ¡ á " ¢ â £ ã ¤ ä ¥ å & ¦ æ...
Page 224
Appendix • À ÿ A.5 Ethernet technology compare table Technology Speed (Mbps) Media Max. distance Token Ring 4.16 100m 10BASE-T 100m 10BASE-F(Multi mode) Optical cable Max. 2km Ethernet 10BASE-F(Single mode) Optical cable Max. 2.5km 10BASE-5 Coaxial cable 500m 10BASE-2 Coaxial cable 185m 100BASE-T4 100m...
Page 225
Appendix A.6 Dimension (1) XGL-EOPCT Unit : mm A-32...
Appendix A.7 Function Block A.7.1 SEND_UDATA Function Block Input BOOL requires to execute the function block BASE USINT base number SLOT USINT slot number USINT channel ARRAY[1024] DATA data area to send OF BYTE SIZE UINT data size to send Output DONE BOOL...
Page 227
Appendix (3) CH means the channel number. In case of Cnet, only 1 or 2 should be set, and FEnet should input P2P channel set as user defined. (4) DATA represents an array in which UDATA is stored, and must be declared as ARRAY OF BYTE type. (5) The size of the array declared as SIZE is 1~1024.
Page 228
Appendix A.7.2 RCV_UDATA Function Block Input BOOL requires to execute the function block BASE USINT base number SLOT USINT slot number USINT channel ARRAY[1024] DATA data area to save OF BYTE Output DONE BOOL maintains 1 after operation STAT UINT completion and ERR info SIZE UINT...
Page 229
Appendix (6) If it is executed normally, 1 is outputted to DONE and STAT, and if an error occurs, status information is displayed on STAT. (7) In the case of FEnet module, the upper 1 byte indicates the Ethernet connection status, and the lower 1 byte indicates the status information of the command.
Page 230
Appendix A.7.3 CP_MSG Function Block Input BOOL executes the function in case of 1 BASE USINT base number SLOT USINT slot number ARRAY[1500] REQ_DATA data area to send OF BYTE REQ_SIZE UINT data size to send TIMEOUT UINT timeout setting value ARRAY[1500] RES_DATA data area to receive...
Page 231
Appendix (4) The size of the array declared with REQ_SIZE and RES_SIZE is XGI(1,500) / XEM(1,024). (Unit: Byte) (5) If executed normally, 1 is output to DONE and STAT, and status information is displayed in STAT when an error occurs. A-38...
Page 232
Appendix A.7.4 P2PWR_OFFSET Function Block Input BOOL requires to execute the function block P_NUM USINT P2P number BL_NUM USINT block number VAL_SIZE UINT variable size OFFSET DWORD offset value Output DONE BOOL maintains 1 after the first operation STAT USINT completion and ERR info (1) P2PWR_OFFSET instruction changes the write area’s offset value and write data size of P2P parameter block.
Page 233
Appendix A.7.5 P2PRD_OFFSET Function Block Input BOOL requires to execute the function block P_NUM USINT P2P number BL_NUM USINT block number VAL_SIZE UINT variable size OFFSET DWORD offset value Output DONE BOOL maintains 1 after the first operation STAT USINT completion and ERR info (1) P2PRD_OFFSET instruction changes offset value and data size of the read area of P2P parameter block.
Page 234
Appendix A.7.6 P2PWR Function Block Input BOOL requires to execute the function block P_NUM USINT P2P number BL_NUM USINT block number VAL_NUM USINT variable number VAL_SIZE USINT variable size ANY_BIT device(input only for a direct variable) Output DONE BOOL maintains 1 after the first operation STAT USINT completion and ERR info...
Page 235
Appendix A.7.7 P2PRD Function Block Input BOOL requires to execute the function block P_NUM USINT P2P number BL_NUM USINT block number VAL_NUM USINT variable number VAL_SIZE USINT variable size ANY_BIT device(input only for a direct variable) Output DONE BOOL maintains 1 after the first operation STAT USINT completion and ERR info...
Page 236
Appendix A.7.8 M_SET_IP Function Block Input BOOL Function block execution request BASE USINT base number SLOT USINT slot number ARRAY[4] IP address to set OF WORD ARRAY[4] SUBNET subnet mask to set OF WORD ARRAY[4] GATEWAY gateway to set OF WORD Output DONE BOOL...
Page 238
Appendix A.7.9 M_NET_INFO Function Block Input BOOL Function block execution request BASE USINT base number SLOT USINT slot number VERSION USINT Version of diagnostic information (Version information: Enter 1) Output DONE BOOL Maintain 1 after initial operation STAT UINT Complete and ERR information ARRAY[4] IP address of the module OF WORD...
Page 239
Appendix (1) The M_NET_INFO command allows you to read the IP address, subnet mask, and gateway information of the FENET module. (2) VERSION is scheduled to be added in the future diagnostic information version, but currently only version information 1 can be entered and used. (3) After executing the command, the IP address of the FENET module is displayed as follows.
Page 240
Appendix A.7.10 M_GET_LED Function Block Input BOOL execute the function in case of 1 BASE USINT base number SLOT USINT slot number Output DONE BOOL Output 1 if executed without error STAT USINT Status code DWORD LED information of communication module (1) It is a command to read the LED information of FEnet module.
Page 242
Appendix A.8 Instruction A.8.1 SNDUDATA Instruction Area setting Operand Description Data type Base (x) and slot (y) number with Communication module(Cnet, FEnet): WORD h00xy Channel information WORD Start device number where data to be sent is saved WORD Size of data to be sent (up to 1024 bytes) WORD Temporary device number to be used internally in the command WORD...
Page 243
Appendix (7) D is a device area used as a temporary area for saving command information, and the size is 4 words (D+0 ~ D+3). (8) In the case of FEnet module, the upper 1Byte indicates the Ethernet connection status, and the lower 1Byte indicates the command status information.
Page 244
Appendix A.8.2 RCVUDATA Instruction Area setting Operand Operand Operand Base (x) and slot (y) number with Communication module(Cnet, FEnet): WORD h00xy Channel information WORD Start device number to save the received data WORD Size of received data (up to 1024 bytes) WORD Temporary device number to be used internally in the command WORD...
Page 245
Appendix A.8.3 CPMSG Instruction Area setting Operand Operand Operand Base (x) and slot (y) number where Enet/Cnet module is mounted: h00xy WORD The starting address of the device where the data to be sent is stored WORD Size of DATA to be sent (up to 1500Byte) WORD Timeout setting value (ms) WORD...
Page 246
Appendix D3+4 WORD Reserved Area(Prohibited to use) D3+5 WORD Reserved Area(Prohibited to use) D3+6 WORD Reserved Area(Prohibited to use) D3+7 WORD Reserved Area(Prohibited to use) (10) Status Information Status Status Information Contents Code Initial state before executing the command Completion If the command is executed normally Version compatibility error When the communication module version is less than V6.0...
Page 247
Appendix A.8.4 P2PWWR Instruction Area setting Operand Operand Operand P2P number ( 1 ~ 8 ) WORD Block number ( 0 ~ 63 ) WORD Variable number set when reading/writing individually(1~4) WORD Data size ( 1 ~ 1400 ) WORD Start address of read area WORD (1) This command is used to change the data size of the P2P READ block and the starting address of the area to...
Page 248
Appendix A.8.5 P2PWRD Instruction Area setting Operand Operand Operand P2P number ( 1 ~ 8 ) WORD Block number ( 0 ~ 63 ) WORD Variable number set when reading/writing individually(1~4) WORD Data size ( 1 ~ 2000 ) WORD End bit of BSFT Start address of write area Operation...
Page 249
Appendix A.8.6 MSETIP Instruction Area setting Operand Operand Operand Base number and slot number where the FEnet module is installed WORD Device number to save IP Address. WORD Device number to save subnet mask. WORD Device number to save gateway. WORD Temporary device number to be used internally in the command WORD...
Page 250
Appendix (8) D is the temporary area to save command information, and a value to be saved is as follows. All initial values are 0, and if the user modifies the data value arbitrarily, the command may malfunction. CPU area Data size Stratus type WORD...
Page 251
Appendix A.8.7 MNETINFO Instruction Area setting Operand Operand Operand Base number and slot number where the FEnet module is installed WORD Version of diagnosis information(Version information : 1 input) WORD Device number to save IP, Subnet, Gateway, MAC Address. WORD Temporary device number to be used internally in the command WORD (1) This command can read the IP address, subnet mask, gateway, and MAC settings of the FENET module.
Page 252
Appendix D1 + 16 : 0x00AB D1 + 17 : 0x00CD (6) D2 is the temporary area to save command information, and a value to be saved is as follows. All initial values are 0, and if the user modifies the data value arbitrarily, the command may malfunction. CPU area Data size Stratus type...
Page 253
Appendix A.8. MGETLED Instruction Area setting Operand Operand Operand Base number and slot number where the FEnet module is installed Word Device number to save LED information. DWORD Status code Word (1) This command is to read LED information of the FENET module. (2) S1 enters the base and slot number where the FENET module is installed..
Page 254
Appendix CPU area Data size Stratus type Word Error code D2+1 Word Internal status(WAIT or DONE) D2+2 Word RETRY COUNT A-61...
3. Since the above warranty is limited to the PLC unit only, make sure to use the product only after considering the safety aspects of the system configuration or applications. Environmental Policy LS ELECTRIC observes an environmental policy as below. Environmenta About disposal of the l Management product.
Page 258
Tel: 1-949-333-3140 E-Mail: america@ls-electric.com Disclaimer of Liability LS ELECTRIC has reviewed the information in this publication to ensure consistency with the hardware and software described. However, LS ELECTRIC cannot guarantee full consistency, nor be responsible for any damages or compensation, since variance cannot be precluded entirely.
Need help?
Do you have a question about the XGT Series and is the answer not in the manual?
Questions and answers