Summary of Contents for LS Industrial Systems XGT Series
Page 1
Right choice for ultimate yield LSIS strives to maximize customers' profit in gratitude of choosing us for your partner. Programmable Logic Controller XGT Analog Input Module XGT Series User’s Manual XGF-AD16A Read this manual carefully before installing, wiring, operating, servicing or inspecting this equipment.
Page 2
Safety Instructions 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 Instructions 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.
Page 4
Safety Instructions 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 Instructions 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. 2. After wiring process is done, make sure that terminal covers are installed properly before its use.
Page 6
Safety Instructions 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.
Page 7
Safety Instructions 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.
Page 8
2-6, 8~13, 16, 21, 22 5-2~4, 7, 13 6-1, 6, 9 7-2, 4 8-1, 6, 9 ※ The number of User’s manual is indicated right part of the back cover. Copyright ⓒ 2008 LS Industrial Systems Co., Ltd All Rights Reserved.
Page 9
About User’s Manual Thank you for purchasing PLC of LS Industrial System 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.
Contents ◎ Contents ◎ Chapter 1 Introduction ……………………………………………………………………… 1-1 ~ 1-4 1 . 1 C h a r a c t e r i s t i c s … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … 1 - 1 1 .
Page 11
Contents 3.2.2 Wiring examples ……………………………………………………………………………………… 3-2 Chapter 4 Operation Setting ……………………………………………………………… 4-1 ~ 4-20 4 . 1 O p e r a t i o n P r o c e d u r e s … … … … … … … … … … … … … … … … … … … … … … … … … … … … … 4 - 1 4 .
Page 12
Contents 5.3.7 Hold last value …………………………….………………………………………………………………………… 5-13 Chapter 6 Programming (For XGK) ……………………………………………………… 6-1 ~ 6-9 6 . 1 B a s i c P r o g r a m … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … 6 - 1 6.1.1 Pr ogram example us ing [I/O Par ameter ] s etting ……………………………………………...
Page 13
Contents Chapter 9 Troubleshooting ……………………………………………………………… 9-1 ~ 9-5 9 . 1 E r r o r C o d e s … … … … … … … … … … … … … … … … … … … … … … … … … … . … … … … … … … … … … 9 - 1 9.2 Troubles hooting ……………………………………………………………….……………………………...
Chapter 1. Introduction Chapter 1 Introduction This user’s manual is to describe XGF-AD16A analog input module used as associated with XGT PLC series of CPU module about their specifications, treatment and programming, which will be hereinafter referred to as A/D conversion module. Analog input module is used to convert analog signal (voltage or current input) from PLC’s external device to signed 14-bit binary data of digital value.
Chapter 1 Introduction 1.2 Terminology 온 perat 도 Voltage: -10~+10V Temperature Transducer A/D conversion 0~1000℃ Input on module 시간 Time [Fig. 1.1] Analog Quantity [Fig. 1.2] Example of Transducer 1.2.1 Analog Quantity - A What is displayed in numerical value with continuous physical quantity is called Analog Quantity. Since the size of analog changes continuously, any middle value can be taken from it in which general physical quantities such as voltage, current, temperature, speed, pressure and flow are included.
Chapter 1. Introduction 1.2.3 Characteristics of analog/digital conversion (1) Voltage Input 16000 8004 8003 8002 8001 8000 8000 Input Voltage -10V Analog Input Voltage [Fig. 1.5] Characteristics of A/D conversion (Voltage Input) Analog input module is used to convert analog electric signal input from the external device to digital quantity. Analog input signal converted to digital quantity can be calculated in PLC CPU.
Chapter 1 Introduction 1.3. New Functions The new functions of A/D conversion module are as follows. Module CPU OS Item Description version Ref. version Hold last When input signal exceeds effective range, holds last V1.02 value effective input value. related V3.2 Alarm When input signal exceeds effective range, relevant...
Chapter 2 Specifications Chapter 2 Specifications 2.1 General Specifications General specifications of XGT series are as specified in Table 2.1. [Table 2.1] General Specifications Item Specifications Related standards Operating temp. ℃∼ ℃ Storage temp. ℃∼ ℃ Operating 5 95%RH ∼...
Chapter 2 Specifications 2.2 Performance Specifications Performance specifications of Analog input modules are as specified in Table 2.2. [Table 2.2] Performance Specifications Specifications Item Voltage Current DC 1 ∼ DC 0 DC 4 20 m ∼ ∼ Analog input DC 0 ∼...
Page 20
Chapter 2 Specifications Notes (1) When analog input module is released from the factory, Offset/Gain value is as adjusted for respective analog input ranges, which is unavailable for user to change. (2) When analog input module is released from the factory, voltage/current selection switch is selected as current. (3) Offset Value: Analog input value where digital output value is 0 when digital output format is set to Unsigned Value.
Chapter 2 Specifications 2.3 Respective Designations and Functions Respective designations of the parts are as described below. 2.3.1 Analog input module ① ③ ② Description RUN LED ① ▶ Displays the operation status of analog input module (voltage, current) On: Operation normal Flickering: Error occurs (Refer to 9.1 for more details) Off: DC 5V disconnected, analog input module error Terminal...
Chapter 2 Specifications 2.4 Characteristics of I/O Conversion Characteristics of I/O conversion are the inclination connected in a straight line between Offset and Gain values when converting analog signal (voltage or current input) from PLC’s external device to digital value. I/O conversion characteristics of analog input modules are as described below.
Chapter 2 Specifications 2.4.1 I/O characteristics of analog input module Analog input module is having 16 channels for analog input, where Offset/Gain can not be adjusted by user. Voltage/current input range can be set through user program or [I/O parameter] of XG5000 for respective channels. Output formats of digital data are as specified below;...
Page 24
Chapter 2 Specifications (b) Digital output value for current input characteristics is as specified below. (Resolution (based on 1/16000): 1 μA) (mA) Analog input current Digital Output range 3.808 20.191 Unsigned value -192 4000 8000 12000 16000 16191 (-192 ~ 16191) Signed value -8192 -8000...
Page 25
Chapter 2 Specifications (2) If the range is DC 0 ~ 20 mA (a) On the XG5000 menu [I/O Parameters Setting], set [Input range] to “0 ~ 20 ㎃”.
Page 26
Chapter 2 Specifications (b) Digital output value for current input characteristics is as specified below. (Resolution (based on 1/16000): 1.25 μA) Analog input current (mA) Digital Output range -0.24 20.23 Unsigned value -192 4000 8000 12000 16000 16191 (-192 ~ 16191) Signed value -8192 -8000...
Page 27
Chapter 2 Specifications (b) Digital output value for voltage input characteristics is as specified below. (Resolution (based on 1/16000): 0.25 mV) Analog input voltage Digital Output range 0.952 5.047 Unsigned value -192 4000 8000 12000 16000 16191 (-192 ~ 16191) Signed value -8192 -8000...
Page 28
Chapter 2 Specifications 10119 5059 8191 16191 10000 5000 8000 16000 7500 3750 4000 12000 5000 2500 8000 2500 1250 -4000 4000 -8000 -120 -8192 -192 1.25 V 2.5 V 3.75 V Analog input value (voltage) (b) Digital output value for voltage input characteristics is as specified below. (Resolution (based on 1/16000): 0.3125 mV) Analog input voltage (V) Digital...
Page 29
Chapter 2 Specifications (5) If the range is DC 0 ~ 10 V (a) On the XG5000 menu [I/O Parameters Setting], set [Input range] to“0 ~ 10 V”. 2-12...
Page 30
Chapter 2 Specifications (b) Digital output value for voltage input characteristics is as specified below. (Resolution (based on 1/16000): 0.625 mV) Analog input voltage (V) Digital Output range -0.12 10.11 Unsigned value -192 4000 8000 12000 16000 16191 (-192 ~ 16191) Signed value -8192 -8000...
Page 31
Chapter 2 Specifications (b) Digital output value for voltage input characteristics is as specified below. (Resolution (based on 1/16000): 1.25 mV) Analog input voltage (V) Digital Output range -10.24 10.23 Unsigned value -192 4000 8000 12000 16000 16191 (-192 ~ 16191) Signed value -8192 -8000...
Chapter 2 Specifications 2.4.2 Accuracy Accuracy of digital output value does not change even if input range is changed. Fig. 2.1 shows the change range of the accuracy at ambient temperature of 25 ± 5 ℃ with analog input range of -10 ~ 10 V selected and digital output type of Unsigned value selected. ±0.2% of error tolerance is acceptable at ambient temperature of 25±5 °C, and ±0.3% at ambient temperature of 0~55°C.
Chapter 2 Specifications 2.5 Functions of Analog Input Module Functions of Analog input module are as described below in Table 2.3. [Table 2.3] List of Functions Function Item Details Specify Run/Stop of the channel to execute A/D conversion. Channel Run/Stop setting If the unused channel is set to Stop, whole Run time can be reduced.
Chapter 2 Specifications 2.5.2 Average processing This process is used to execute A/D conversion of the channel designated for specified frequency or for specified time and save the average of the accumulated sum on memory. Average processing option and time/frequency value can be defined through user program or I/O parameters setting for respective channels (1) What is the average processing used for This process is used for A/D conversion of abnormal analog input sign such as noise to a value near to normal analog input...
Page 35
Chapter 2 Specifications (b) Count average process 1) Setting range: 2 ~ 64000 (times) 2) The time required for average value to be saved on memory when frequency average used depends on the number of channels used. Process time = setting frequency X number of channels used X conversion speed *1: If setting value of count average is not specified within 2 ~ 64000, RUN LED blinks at an interval of 1 second.
Chapter 2 Specifications 3) In the case of current input a) Analog input current range: DC 0 ~ 20 ㎃, Digital output range: 0 ~ 16000. b) If analog input value changes 0 ㎃ → 10 ㎃ (0 → 8000), weighted average output value based on αvalue is as specified below.
Chapter 2 Specifications 2.5.4 Hold last value (Dedicated for current input) When input signal exceeds the effective range, last input value is held. This function can be set for each channel by I/O parameter setting or user program. (1) Input range to be used This function can be used when you use input signal range of 4~20mA, 0~20mA.
Page 39
Chapter 2 Specifications (2) Alarm indication for each channel Alarm detection signal is saved at UXY.20 and UXY.21. If input signal returns to the within of effective range, alarm detection signal also returns to the normal status automatically. (X: base number, Y: slot number) UXY.20: upper limit Initial value Allocation...
Chapter 3 Installation and Wiring Chapter 3 Installation and Wiring 3.1 Installation 3.1.1 Installation environment This product is of high reliance regardless of installation environment. However, for the sake of reliance and stability of the system, please pay attention to those precautions described below. 1) Environmental conditions - To be installed on the control panel waterproof and dustproof.
Chapter 2 Chapter 3 Installation and Wiring 3.2 Wiring 3.2.1 Precautions for wiring 1) Don’t let AC power line near to Analog input module’s external input sign line. With an enough distance kept away between, it will be free from surge or inductive noise. Cable shall be selected in due consideration of ambient temperature and allowable current, whose size is not less than the max.
Page 42
Chapter 3 Installation and Wiring 3) Wiring example of 2-wire sensor/transmitter (current input) -. Run the channel to be used only. -. Analog input module does not provide power for the input device. Use an external power supplier. 4) Wiring example of 4- wire sensor/transmitter (voltage/current input) 4-Wire transmitter 4-Wire...
Page 43
Chapter 2 Chapter 3 Installation and Wiring 5) Relationship between voltage input accuracy and wiring length In voltage input, the wiring (cable) length between transmitter or sensor and module has an effect on digital-converted values of the module as specified below; Analog Input (voltage) Load Where,...
Chapter 4 Operation Setting Chapter 4 Operation Setting 4.1 Operation Procedures The processing for the operation is as shown in Fig. 4.1. [Fig. 4. 1] Procedures for the operation...
Chapter 4 Operation Setting 4.2 Operation Parameters Setting Analog input module’s operation parameters can be specified through XG5000’s [I/O parameters]. 4.2.1 Settings For the user’s convenience of Analog input module, XG5000 provides GUI (Graphical User Interface) for parameters setting of Analog input module.
Page 46
Chapter 4 Operation Setting (3) On the ‘I/O parameters setting’ screen, find and click the slot of the base Analog input module is installed on. 16-channel voltage type of Analog input module is installed on Base No.0, Slot No.4 in this description. (4) Click the arrow button on the screen above to display the screen where an applicable module can be selected.
Page 47
Chapter 4 Operation Setting (6) A screen will be displayed for you to specify parameters for respective channels as shown below. Click a desired item to display parameters to set for respective items. (a) Channel status: Select Disable or Enable...
Page 48
Chapter 4 Operation Setting (b) Input range: Select the range of analog input voltage or current as desired. Analog input module provides 4 voltage input ranges and 2 current input ranges. (c) Output type: Select the type of output data. 4 formats are available in total.
Page 49
Chapter 4 Operation Setting (d) Average processing: Set the average processing type. 4 methods are available. (e) Average value: This field is activated when Average processing field is set as Time-Avr, Count-Avr, Weighted-Avr except Sampling. If you double-click Average value field, you can input value. 16~16000 range for Time-Avr, 2~64000 range for Count-Avr and 0~99 range for Weighted-Avr.
Page 50
Chapter 4 Operation Setting How to select the whole channels to change parameters: Click and check the radio button in the parameters item in order to change the whole channels to identical setting value. And then change the parameters of an optional channel to parameters of the whole channels at a time change the .
Chapter 4 Operation Setting 4.3 Special Module Monitoring Functions Functions of Special Module Monitoring are as described below in table 4.3. [Table 4.3] Functions of Special Module Monitoring Item Details Remark [Special Module (1) Monitor/Test Monitoring] Through applicable XG5000 menu of [Monitor] -> [Special Module Monitoring], A/D converted value can be monitored and the operation of Analog input module can be tested.
Chapter 4 Operation Setting 4.4 Precautions (1) The parameters specified for the test of Analog input module on the “Monitor Special Module” screen of [Monitor Special Module] will be deleted the moment the “Monitor Special Module” screen is closed. In other words, the parameters of Analog input module specified on the “Monitor Special Module”...
Chapter 4 Operation Setting 4.5 Special Module Monitoring 4.5.1 Start of [Special Module Monitoring] Go through [Online] -> [Connect] and [Monitor] -> [Special Module Monitoring] to start. If the status is not [Online], [Special Module Monitoring] menu will not be active. 4.5.2 How to use [Special Module Monitoring] (1) With XG5000 connected to PLC CPU (on-line status), click [Monitor] ->...
Page 54
Chapter 4 Operation Setting (2) Select Special Module in Fig. 5.1 and click [Module Information] to display the information as in Fig. 5.2. [Fig. 5. 2] Screen of [Special Module Information] (3) Click [Monitor] on the “Special Module” screen in Fig. 5.1 to display [Special Module Monitoring] screen as in Fig. 5.3, where 4 options are available such as [Reset max./min.
Page 55
Chapter 4 Operation Setting [Fig. 5. 4] Execution screen of [Start Monitoring] (b) [Test]: [Test] is used to change the presently specified parameters of Analog input module. Click the setting value at the bottom field of the screen to change parameters. Fig. 5.5 will be displayed after [Test] is executed with channel 0’s input voltage range changed to 1 ~ 5 V in the state of input not wired.
Page 56
Chapter 4 Operation Setting (c) [Reset Max./Min. value]: The max./min. value field at the upper screen shows the max. value and the min. value of A/D converted value. Click [Reset max./min. value] to initialize the max./min. value. Fig.5.6 is after [Reset max./min. value] button is clicked in the Fig.
Chapter 4 Operation Setting 4.6 Register U Devices This section describes the automatic registration function of the U device in the XG5000. 4.6.1 Register U devices Register the variables for each module referring to the special module information that is set in the I/O parameter. The user can modify the variables and comments.
Chapter 4 Operation Setting (5) As shown below, the variables are registered. 4.6.2 Save variables (1) The contents of ‘View Variable’ can be saved as a text file. (2) Select [Edit] -> [Export to File]. (3) The contents of ‘View variable’ are saved as a text file. 4-16...
Page 60
Chapter 4 Operation Setting 4.6.3 View variables (1) The example program of XG5000 is as shown in below. (2) Select [View] -> [Variables]. The devices are changed into variables. 4-17...
Page 61
Chapter 4 Operation Setting (3) Select [View] -> [Devices/Variables]. Devices and variables are both displayed. 4-18...
Page 62
Chapter 4 Operation Setting (4) Select [View] -> [Device/Comments]. Devices and comments are both displayed. 4-19...
Chapter 5 Configuration and Function of Internal Memory (For XGK) Chapter 5 Configuration and Function of Internal Memory (For XGK) Analog input module has the internal memory to transmit/receive data to/from PLC CPU. 5.1 Internal Memory Configuration Configuration of internal memory is as described below. 5.1.1 I/O area of A/D converted data I/O area of A/D converted data is as displayed in Table 5.1.
Page 65
Chapter 5 Configuration and Function of Internal Memory (For XGK) Device assigned Details Ref. UXY.18.0 Flag to detect CH0 disconnection (1 ~ 5 V or 4 ~ 20 mA) UXY.18.1 Flag to detect CH1 disconnection (1 ~ 5 V or 4 ~ 20 mA) UXY.18.2 Flag to detect CH2 disconnection (1 ~ 5 V or 4 ~ 20 mA) UXY.18.3...
Chapter 5 Configuration and Function of Internal Memory (For XGK) 5.1.2 Operation parameters setting area Notes Operation parameter of analog input module can be set through [I/O Parameter] of XG5000. For convenience, setting parameter of analog input module is provided GUI(Graphical User Interface) method at XG5000.
Chapter 5 Configuration and Function of Internal Memory (For XGK) 5.2 A/D Converted Data I/O Area 5.2.1 Module READY/ERROR flag (UXY.00, X: Base No., Y: Slot No.) 1) UXY.00.F: It will be ON when PLC CPU is powered or reset with A/D conversion ready to process A/D conversion.
Page 69
Chapter 5 Configuration and Function of Internal Memory (For XGK) Address Details Address No.2 CH0 digital output value CH1 digital output value Address No.3 CH2 digital output value Address No.4 CH3 digital output value Address No.5 CH4 digital output value Address No.6 CH5 digital output value Address No.7...
Page 70
Chapter 5 Configuration and Function of Internal Memory (For XGK) B15 B14 B13 B12 B11 B10 B9 UXY.19.0 — — — — — — — — — — — — — — — Flag to request error clear (UXY .19.0) Bit ON (1): Error clear request, Bit Off (0): Error clear standing-by [Fig.
Chapter 5 Configuration and Function of Internal Memory (For XGK) 5.3 Operation Parameters Setting Area ▶ 1 word is assigned for each address in the internal memory, which can be displayed in 16 bits. ▶ If each bit of 16 bits configuring the address is On, let it set to “1”, and if it is Off, let it set to “0” so to realize the respective functions.
Chapter 5 Configuration and Function of Internal Memory (For XGK) Address “3” Address“4” Description 0000 4 mA ~ 20 mA 0001 0 mA ~ 20 mA 0010 1 V ~ 5 V 0011 0 V ~ 5 V 0100 0 V ~ 10 V 0101 -10 V ~ 10 V 5.3.3 How to specify the range of output data (address No.5~ address No.6)
Chapter 5 Configuration and Function of Internal Memory (For XGK) Precise value has the following digital output range about analog input range. (a) Current Analog input 4 ~ 20 ㎃ 0 ~ 20 ㎃ Digital output Precise Value 4000 ~ 20000 0 ~ 20000 (b) Voltage Analog input...
Chapter 5 Configuration and Function of Internal Memory (For XGK) 5.3.5 How to specify average value (address No.9 ~ 24) (1) Setting range of average value is as follows. (a) Time average setting range: 16 ~ 16000(ms) (b) Count average setting range: 2 ~ 64000(times) (c) Weighted average setting range: 1 ~ 99(%) (2) In case other value exceeding the setting range is specified, (1) Error No.
Chapter 5 Configuration and Function of Internal Memory (For XGK) 5.3.6 Error code (address No.25) 1) Error codes detected from Analog input module will be saved. 2) Error types and details are as specified below. Address “25” B15 B14 B13 B12 B11 B10 —...
Chapter 5 Configuration and Function of Internal Memory (For XGK) 5.3.7 Hold last value (Address 26) (1) If you enable this function, when input value exceeds the effective range, holds the last value. For example, in case of 4~20mA, if input signal change from 10mA to 3mA shortly, channels holds output value corresponding to 10mA.
Chapter 6 Programming (For XGK) Chapter 6 Programming (For XGK) 6.1 Basic Program - Describes how to set about operation condition at internal memory of analog input module. - Analog input module is equipped at slot 2. - IO occupation point of analog input module is 16. (changeable type) - Initial setting condition is one time input and initial setting is saved at internal memory of analog input module.
Chapter 6 Programming (For XGK) Device to save data Module READY Execution contact point Device having data to send Device to save Slot No. Internal memory address No. of data to read 6.1.2 Program example using PUT/GET instruction Internal memory address No.
Chapter 6 Programming (For XGK) 6.2 Read/Write of Operation Parameters Setting Area Configuration of the internal memory is described as below. 6.2.1 Read of operation parameters setting area (GET, GETP instruction) Type GET instruction Execution condition Type Description Area available n1 Slot No.
Page 80
Chapter 6 Programming (For XGK) 6.2.2 Write of operation parameters setting area (PUT, PUTP instruction) Type PUT instruction Execution condition Description Area available Type Slot No. the special module is installed on Integer Start address of special module’s internal memory to write data. Integer Device’s start address or integer with saved data to write.
Chapter 6 Programming (For XGK) 6.3 Application Program 6.3.1 Program to sort A/D converted value in size (I/O slot fixed-points assigned: based on 64) (1) System configuration XGP- XGK- XGI- XGF- XGQ- ACF2 CPUS D24A AD16A RY2A (2) Details of initial setting Internal Value to write on internal Item...
Page 82
Chapter 6 Programming (For XGK) (4) Program (a) Program example using [I/O parameters] setting Module ready Execution contact point Slot No. Internal memory address Device to save No. of data to read...
Page 83
Chapter 6 Programming (For XGK) (b) Program example using PUT/GET instruction Internal memory address No. of word to write Setting data Slot No. Module ready Execution contact point Device to save No. of data to read...
Chapter 6 Programming (For XGK) 6.3.2 Program to output error codes of analog input module to BCD display (1) System configuration XGQ- XGP- XGK- XGI- XGQ- XGF- RY2A ACF2 CPUS D24A RY2A AD16A Initial value setting P0000 A/D converted value & P000 error code saved Digital BCD display...
Page 85
Chapter 6 Programming (For XGK) Module ready Execution contact point CH RUN signal Change error code into BCD (b) Program example using PUT/GET instruction...
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) Chapter 7 Configuration and Function of Global variable (For XGI/XGR) 7.1 Global Variable (Data area) 7.1.1 A/D conversion data IO area configuration Indicates A/D conversion data IO area at table 7.1 [Table 7.
Page 87
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) Memory Global variable Contents Read/Write allocation _xxyy_CH0_IDD %UXxx.yy.288 CH 0 disconnection detection flag _xxyy_CH1_IDD %UXxx.yy.289 CH 1 disconnection detection flag _xxyy_CH2_IDD %UXxx.yy.290 CH 2 disconnection detection flag _xxyy_CH3_IDD %UXxx.yy.291 CH 3 disconnection detection flag _xxyy_CH4_IDD %UXxx.yy.292 CH 4 disconnection detection flag...
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) Memory Global variable Contents Read/Write allocation _xxyy_CH0_LOOR %UXxx.yy.336 CH0 alarm lower limit _xxyy_CH1_LOOR %UXxx.yy.337 CH1 alarm lower limit _xxyy_CH2_LOOR %UXxx.yy.338 CH2 alarm lower limit _xxyy_CH3_LOOR %UXxx.yy.339 CH3 alarm lower limit _xxyy_CH4_LOOR %UXxx.yy.340 CH4 alarm lower limit...
Page 89
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (b) Select XGF-AD16A module at I/O parameter window (c) Set parameter by pressing [Details] and select [OK]...
Page 90
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (d) Select [Yes] - Auto-register global variable of module set in I/O parameter (e) Global variable auto registration check - Double-click Global/Direct Variable of project window...
Page 91
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (2) Global variable registration - Registers global variable set in I/O parameter (a) Double-click Global/Direct Variable of project window (b) Select [Register Special Module Variables] at menu [Edit]...
Page 92
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (3) Local variable registration - Registers variable among registered global variable you want to use as local variable. (a) Double-click local variable to use in the following scan program. (b) Click right button of mouse in the right local variable window and select “Add EXTERNAL variable”.
Page 93
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (c) Select local variable to add at Global View on “Add External Variable” window (“All” or “Base, slot”). -View All - View per base, slot (d) The following is example selecting digital input value (_0000_CH0_DATA) of “Base00, Slot00”.
Page 94
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (4) How to use local variable on program - It describes the added global variable at local program. - The following is example getting the conversion value of CH0 of Analog input module to %MW0. (a) At part reading A/D conversion data to %MW0 by using the following MOVE function, double-click variable part ahead of IN, then “Select Variable”...
Page 95
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (d) The following figure is result adding global variable corresponding to CH0 A/D conversion value. 7-10...
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) 7.2 PUT/GET Function Block use area (Parameter area) 7.2.1 PUT/GET Function Block use area (Parameter area) It indicates operation parameter setting area of Analog input module at table 7.2. [Table 7. 2] Operation parameter setting area Global variable Contents Instruction...
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) 7.2.2 PUT/GET instruction (1)PUT instruction Writing data to special module Function Block Description Input REQ : execute function when 1 BASE : set base position DONE BOOL BOOL SLOT : set slot position BASE UINT USINT...
Page 98
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (2) GET instruction Reading from special module data Function block Description Input : execute function when 1 BASE : set base position SLOT : set slot position DONE BOOL BOOL MADDR : module address BASE UINT...
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) 7.2.3 Example using PUT/GET instruction (1) Enable channel (a) You can enable/disable A/D conversion per channel (b) Disable channel not using to reduce the conversion cycle per channel (c) When channel is not designated, all channels are set as not used (d) Enable/disable of A/D conversion is as follows Description Stop...
Page 100
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (3) Out put data range setting (a) Digital output data range about analog input can be set per channel. (b) When output data range is not set, all channels are set as -32000~32000. (c) Setting of digital output data range is as follows Description 0~ 16000...
Page 101
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (4) Filter process setting (a) You can enable/disable filter process per channel (b) Filter process is not set, all channels are set as enable (c) Setting of filter process is as follows (d) The following figure is example using filter about CH4 Description 0~ 16000...
Page 102
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) Address Details CH0 average process value setting CH1 average process value setting CH2 average process value setting CH3 average process value setting CH4 average process value setting CH5 average process value setting CH6 average process value setting CH7 average process value setting CH8 average process value setting...
Page 103
Chapter 7 Configuration and Function of Global variable (For XGI/XGR) (6) Error code (a) Saves error code detected at Analog input module (b) Error type and contents are as follows (c) The following figure is program example reading error code —...
Chapter 8 Programming (For XGI/XGR) Chapter 8 Programming (For XGI/XGR) 8.1 Basic Program - How to specify Run condition details of Analog input module’s internal memory will be described. - Analog input module is as installed on Slot 2. - I/O assigned points of Analog input module is 16 points (changeable). - Initial value specified will be saved on the internal memory of Analog input module through one time of input under the initial setting condition.
Chapter 8 Programming (For XGI/XGR) 8.2 Application Program 8.2.1 Program to sort A/D converted value in size (I/O slot fixed-points assigned: based on 64) (1) System configuration XGP- XGI- XGI- XGF- XGQ- ACF2 CPUU D22A AD16A RY2A (2) Details of initial setting Internal Value to write on internal Item...
Page 109
Chapter 8 Programming (For XGI/XGR) (4) Program Program example using [I/O parameters] setting...
Page 113
Chapter 9 Troubleshooting Chapter 9 Troubleshooting Details and diagnosis of errors which occur while analog input module is used will be described. 9.1 Error Codes Errors which occur when Analog input module’s RUN LED blinks are as described in Table 9.1. Error code detected at analog input module is saved at address 25.
Chapter 9 Troubleshooting 9.2 Troubleshooting 9.2.1 RUN LED blinks RUN LED flickers. RUN LED flickers every 0.2 sec. Let the power ON/OFF again. If the error occurs again, it seems to be a module defect. Contact the nearest agency or LS branch office. RUN LED flickers every 1 sec.
Chapter 9 Troubleshooting 9.2.2 RUN LED is Off RUN LED is Off. Analog input module is installed on the base correctly Correctly install Analog input module on the base. Capacity of power module installed on the base is sufficient. Check the system configuration again with each module’s consumed current calculated correctly Normally operated if Analog input module with error is changed to another module...
Page 116
Chapter 9 Troubleshooting 9.2.4 Relationship discordant between analog input value & digital output value Relationship between analog input value and digital output value is not discordant. Each CH’s analog input type and connected input type is correct as specified. Check the used analog input type if set correctly. Analog input terminal’s wiring is correct.
Page 119
3. Since the above warranty is limited to PLC unit only, make sure to use the product considering the safety for system configuration or applications. Environmental Policy LS Industrial Systems Co., Ltd supports and observes the environmental policy as below. Environmental Management About Disposal...
Page 120
Fax: 86-532-583-3793 Tel: 86-411-8273-7777 Fax: 86-411-8730-7560 ※ LS Industrial Systems constantly endeavors to improve its product so that 2009. 9 Information in this manual is subject to change without notice. ⓒ 2008 LS Industrial Systems Co., Ltd All Rights Reserved.
Need help?
Do you have a question about the XGT Series and is the answer not in the manual?
Questions and answers