User’s Manual LG Programmable Logic Controller G3F-AD3A G4F-AD3A G6F-AD2A LG Industrial Systems
Safety Precautions Safety Precautions Be sure to read carefully this safety precaution given in data sheet and user’s manual before operating the module and follow them. The precautions explained here only apply to the G3F-AD3A, G4F-AD3A, and G6F-AD2A. For safety precautions on the PLC sys tem, please see the MASTER-K 200S/300S/1000S User’s manual and the GLOFA GM3/4/6 User’s manual.
Safety Precautions Wiring Precautions CAUTION When grounding a FG terminal, be sure to provide class 3 grounding which is dedicated to the PLC. Before the PLC wiring, be sure to check the rated voltage and terminal arrangement for the module and observe them correctly. If a different power, not of the rated voltage, is applied or wrong wiring is provided, it can cause a fire or disorder of the module. Fasten the terminal screws firmly to the defined torque.
◎ CONTENTS ◎ Chapter 1. INTRODUCTION 1.1 Features ·································································································································································1-1 1.2 Terminology ··························································································································································1-2 1.2.
3.2 Wiring ···································································································································································3-2 3.2.1 Wiring Precautions ············································································································································3-2 3.2.
Chapter 8. MK Programming 8.1 Basic Programming ········································································································································8-1 8.1.1 G6F-AD2A ·························································································································································8-1 8.1.
Chapter 1 Introduction 1 Introduction T h e G 3 F -A D 3 A , G 4 F -A D 3 A , a n d G 6 F-AD2A modules are analog-to-digital conversion modules for use with the GLOFA PLC GM1/2/3/4/6 series and M A S T E R -K P L C K 2 0 0 S /3 0 0 S /1000S series. The G3F -A D 3 A is u s e d w ith G M 1 /2 /3 series and K1000S series, G 4 F -A D 3 A is used with GM4 series and K300S series, and G6F-A D 2 A is used w ith GM6 series and K200S series.
Chapter 1 Introduction 1.2 Terminology 1.2.1 Analog value : A A n a log value is a continuously changing value such as voltage, current, temperature, speed pressure, flux, etc. Tem perature, for exam ple, is continuously changing according to the tim e . Because this tem p e ra ture itself is not available for input of the PLC, the tem perature should be converted an analog electrical signal by transducer.
Chapter 1 Introduction 1.3 Analog-to-Digital conversion characteristics 1.3.1 Voltage input The A/D m o d u le converts the analog input from external devices to the digital value that can be handled by CPU module. W h e n the analog input is voltage input, the K4F-A D 3 A a n d K 7 F-A D 3 A h a s two input r a n g e s s u c h a s 1 ~ 5 V D C a n d 0 ~ 10VDC. The K3F -A D 2 A h a s three input range such as 1 ~ 5 V D C , 0 ~ 10VDC, and –1 0 ~ 1 0 V D C .
Chapter 1 Introduction 2) 0 ~ 10VDC range When the A/D m o d u le operates with 0 ~ 10VDC range, the 0VDC analog input is converted to digital 0, and the 10VDC analog input is converted into digital output 4000. Therefore, the resolution per 1 digital value is 0.0025VDC. 4000 D igital output value 2002 2001 2000 2000 1999 1998 0 0V 5V 4.995V 10V 5.005V 4.9975V Analog input voltage 5.0025V 5.000V Figure 1.
Chapter 1 Introduction 1.3.2 Current input W h e n the analo g in p u t is current input, the A/D conversion m o d u le has only one input ranges such as 4 ~ 20m A. W ith all analog input range, the digital output is varied in the range of 0 ~ 4000.
Chapter 2. SPECIFICATIONS Chapter 2 . SPECIFICATIONS 2.1 General Specifications Table 2.1 shows the general specifications of GLOFA GM series and MASTER-K series. Item Operating ambient temperature Storage ambient temperature Operating ambient humidity Storage ambient Humidity Vibration Shocks Specifications Standard 0 ~ 55℃ -25 ~ 70℃ 5 ~ 95%RH, non-condensing 5 ~ 95%RH, non-condensing In case of occasional vibration Sweep count Frequency Acceleration Amplitude 0.075 mm 10≤f∠57 Hz 57≤f≤150 Hz 9.
Chapter 2. SPECIFICATIONS 2.2 Performance Specifications Table 2-2 shows performance specifications of A/D conversion module. 1) G3F-AD3A, G4F-AD3A Specifications Items G3F-AD3A I/O points 16 points 1 ~ 5 VDC (input resistance 600㏀) Voltage Current Analog input G4F -AD3A 0 ~ 10 VDC (input resistance 600㏀) DC 4 ~ 20 mA (input resistance 250Ω) - Adjust input selection switch for each channel on side of module.
Chapter 2. SPECIFICATIONS 2) G6F-AD2A Items Specifications I/O points 16 points 1 ~ 5 VDC (input resistance 1㏁) 0 ~ 10 VDC (input resistance 1㏁) Voltage -10 ~ 10VDC (input resistance 1㏁) Analog input DC4 ~ 20 mA (input resistance 250Ω) Current Voltage/Current selection - Selection with Terminal ( It has to be connected between V and I terminal to select current.
Chapter 2. SPECIFICATIONS 2.3 Names of Parts and Functions The names of parts and functions of the A/D conversion module are shown as below. 2.3.
Chapter 2. SPECIFICATIONS 2.3.2 G4F-AD3A No Description ← RUN LED Indicates the operating status of the G3F-AD3A and G4F-AD3A. ↑ Selection switch of voltage/current 1)The switch status at voltage selection On The switch locates off status.
Chapter 2. SPECIFICATIONS 2.3.3 G6F-AD2A No Description ← RUN LED Indicates the operating status of the G6F-AD2A.
Chapter 2. SPECIFICATIONS 2.4 I/O Conversion Characteristics Input / Output (hereafter I/O) conversion characteristics are expressed with the angle of the line between analog input(voltage and current) and matched digital value. I/O conversion characteristics of the G3F-AD3A, G4F-AD3A are expressed with Fig 2.1, and I/O conversion characteristics of the G6F-AD2A is expressed with Fig 2.
Chapter 2. SPECIFICATIONS Practical analog input range 2047 2000 4047 4000 1000 3000 0 2000 -1000 1000 -2000 -2048 0 -48 Digital Output Value Analog Input 10.12V -0.12V 0V 5V 10V DC 1 ~ 5V 0.952V 1V 3V 5V 5.048V DC-10 ~ 10V -10.24V 10V 10.24V DC 4 ~ 20 ㎃ 3.808㎃ DC 0 ~ 10V [Fig 2.1] 0V -10V 4㎃ 12 20 ㎃ ㎃ I/O Conversion Characteristics 20.192㎃ REMARK 1. The analog output value of over 4047 or –48(2047 or –2048) is fixed as 4047 or –48(2047 or –2048). 2.
Chapter 2. SPECIFICATIONS (2)Voltage input range : DC 1~5V Digital output value for input voltage is shown as follows. Analog input voltage (V) 0.952 1 2 3 4 5 5.048 -48 0 1000 2000 3000 4000 4047 Digital output value 2) G6F-AD2A For voltage input, the corresponding input is selected by selection switch and selected input voltage range is same through whole channels. 1) Voltage input range : DC 1~5V Digital output value for input voltage is shown as follows.
Chapter 2. SPECIFICATIONS 2.4.2 Current Input Characteristics 1) G3F-AD3A, G4F-AD3A For current input, the corresponding input selection switch of each channel should be set to "on". Input selection switch - On : Current On (This switch is located on the side of module) 1 2 3 4 5 6 7 8 CH0 1 2 3 4 5 6 Number of channel 7 - Digital output value for input current is shown as follows. Analog input current(㎃) Digital output value 3.808 4 8 12 16 20 20.
Chapter 2. SPECIFICATIONS 2.4.3 Simultaneous Voltage and Current Input Characteristics 1) G3F-AD3A, G4F-AD3A For simultaneous voltage and current input, the input conversion switch of each channel is set to corresponding voltage and current range. Ex) Voltage input range: 0 to 3 Current input range: 4 to 7 Input selection switch - On : Current - Off : Voltage On (제품의 좌측면에 위치) 1 2 3 4 5 6 7 8 CH 0 1 2 3 4 5 6 채널 번호 7 - Digital output value for analog input is shown as follows..
Chapter 2. SPECIFICATIONS 2.4.4 Analog input and Digital output characteristics 1) G3F-AD3A, G4F-AD3A 2009 2008 2007 2006 2005 2004 2003 2002 2001 2000 Digital output value No Input range ℵ DC 0~10V ℑ DC 1~5V ℜ DC 4~20 ㎃ Digital output value ② ③ ① Resolution Analog input value 5.000 ~ 5.0025 2.5 mV 0 ~ 4000 5.0025 ~ 5.005 5.005 ~ 5.0075 5.0075 ~ 5.010 1mV 3.000 ~ 3.001 3.001 ~ 3.002 3.002 ~ 3.003 3.003 ~ 3.004 3.004 ~ 3.005 3.005 ~ 3.006 3.006 ~ 3.007 3.007 ~ 3.008 3.008 ~ 3.
Chapter 2. SPECIFICATIONS 2.5 Processing specifications 2.5.1 Sampling processing A/D conversion system The anal og values input to the channels designated for sampling processing by the CPU are converted to digital output values one by one and the digital output values are stored in the buffer memory. As the A/D module scans each channel, the value appearing at the instant is written to the buffer memory as a digital value.
Chapter 3 Installation and wiring 3 Installation and wiring 3.1 Installation 3.1.1 Installation ambiance The A/D module has designed to have high reliability regardless of its installation ambiance. However, please be sure to check the following precautions for higher reliability and stability of system. 1) Ambiance requirements Avoid installing the A/D module in following locations where; ① temperature may experience ambient drops or rising.
Chapter 3 Installation and wiring 3.2 Wiring 3.2.1 Wiring precautions ① Separate AC and external input signal of A/D module wiring not to be affected by surge or induced noise in the AC. 2 ② External wiring has to be at least AWG32 (0.3mm ), and be selected in consideration of operating ambiance and/or allowable current. ③ Separate wiring from device and/or substances generating intense heat, and oil not to make short-circuit which leads to damage and/or mis -operation.
Chapter 3 Installation and wiring 2) G3F-AD3A / G4F-AD3A ① Voltage input CH0 Voltage/current selection switch Voltage range selection switch R R R R *1 R CH7 R R R *1 *2 ② Current input CH0 Voltage/current selection switch Voltage range selection switch R R R R *1 CH7 R R R *1 *2 *1: Use a two-core twisted pair shielded cable *2 : If noise is expected, ground the cable as shown in figure.
Chapter 4. FUNCTION BLOCK CHAPTER 4. FUNCTION BLOCK This shows function block for A/D conversion module on the GMWIN. A kind of function block is as follows.
Chapter 4. FUNCTION BLOCK 4.2 Function Block for Local 4.2.1 Module Initialization 1) G3F-AD3A, G4F-AD3A Module Initialization function block is used in a program with setting of A/D conversion module located base number, slot number of located module on base, specifying a channel enable, analog input data type and the information of average processing.
Chapter 4. FUNCTION BLOCK 2) G6F-AD2A Module Initialization function block is used in a program with setting of A/D conversion module located base number, slot number of located module on base, specifying a channel enable, analog input data type and information of average processing. Function block I/O Input Variable Data type REQ BOOL BASE USINT Base Location Number Area - The base No. on which A/D conversion module is mounted is written on this area.
Chapter 4. FUNCTION BLOCK 4.2.2 Module Reading-Array Type 1) G3F-AD3A, G4F-AD3A Array type of function block for reading the module is performed for every channel in block and the specified channels are used to read output variable of data displayed from A/D conversion digital value.
Chapter 4. FUNCTION BLOCK 4.2.3 Module Reading - Single Type 1) G3F-AD3A, G4F-AD3A Single type of function block for reading the module is performed for only one channel and the specified channel is used to read output variable of data displayed from A/D conversion digital value.
Chapter 4. FUNCTION BLOCK 4.3 Remote Function Block 4.3.
Chapter 4. FUNCTION BLOCK 2) G6F-AD2A Function block Module Initialization function block is a program for the use in setting the location number of the slot on which the communication module of A/D conversion module of the master station is mounted, the address number of communication module which a remote I/O station has, the base location number, and the slot location number, and specifying the an available channel enable, a data type for A/D conversion, and average process data.
Chapter 4. FUNCTION BLOCK 4.3.2 Module Reading 1) G3F-AD3A, G4F-AD3A Function block for reading the module is performed for every channel in block and the specified channels are used to read output variable of data displayed from A/D conversion digital value. Function block I/O Input Variable Data type REQ BOOL NET_ NO USINT The location number of the slot on which the communication module of the master station is mounted.
Chapter 4. FUNCTION BLOCK 2) G6F-AD2A Function block for reading the module is performed for every channel in block and the specified channels are used to read output variable of data displayed from A/D conversion digital value. Function block I/O Input ADR62RD REQ NDR NET_ NO ERR ST_N O STAT BASE DATA SLOT Variable Data type Descriptions REQ BOOL Function Block Execution Request Area - The execution of read function block is requested in this area.
Chapter 4. FUNCTION BLOCK 4.4 Errors on Function Block This shows errors and resolutions in accordance with them. STAT No. Local /Remote 0 Descriptions Operating with no fault Local Function block Read Initiali-za Array Single tion type type О О Resolutions - О Correct the number in accordance with the proper range (See Section 4.
Chapter 5. GM PROGRAMMING Chapter 5. GM PROGRAMMING 5.1 Programming for Distinction of A/D Conversion Value 1) System Configuration GM3PA1A GM3CPUA G3FAD3A G3QRY4A 2) Initial Settings (1) Available channel enable : channel 0, 2, 3 (2) Analog input : current input(DC 4 ~ 20 mA) (3) Average processing setting : channel 2(100 times), channel 3(50 times) 3) Descriptions of the Program (1) The digital value less than 2,000 of channel 0 turns %Q0.1.0 on.
Chapter 5.
Chapter 5. GM PROGRAMMING 5) Specifying initial value of input/output variables on the program.(Specifying channels) Select this and this screen appears This denotes 4 channels Select this and this screen appears To select previous Ch. Channel No. Enabled channel : 1 Disabled channel : 0 To specify channel enable/disable 5 -3 To select next Ch.
Chapter 5. GM PROGRAMMING 6) Input/output variables on Programming Variable Name AD_CH AD_INI AD_RD AVG_EN AVG_NUM DATA DATATYPE INI_ACT INI_STAT RD_ACT RD_STAT READY START Var_Kind : VAR : VAR : VAR : VAR : VAR : VAR : VAR : VAR : VAR : VAR : VAR : VAR : VAR Data Type : ARRAY [0..7] OF BOOL : FB instance : FB instance : ARRAY [0..7] OF BOOL : ARRAY [0..7] OF USINT : ARRAY [0..7] OF INT : ARRAY [0..7] OF BOOL : ARRAY [0..7] OF BOOL : USINT : ARRAY [0..
Chapter 5. GM PROGRAMMING 5.2 Programming for Display of A/D Conversion Value and Error Code on BCD Display 1) System Configuration GM4PA2A GM4CPUA G4ID22A G4QRY2A G4QRY2A G4FAD3A Channel 0 (4~20mA) Initialize Display error code with BCD Display A/D conversion data with BCD %I0.0.0 %Q0.2.0 ~%Q0.2.7 %I0.0. 1 %I0.0.2 %Q0.1.0 ~%Q0.1.
Chapter 5. GM PROGRAMMING 4) Programming AD_INI AD3INI %I0.0.
Chapter 5. GM PROGRAMMING 5) Input/output variables on the programming Variable Name AD_CH Var_Kind : VAR Data : ARRAY [0..7] OF BOOL AD_INI : VAR : FB Instance AD_RD : VAR : FB Instance AVG_EN CH0_DATA DATA DATATYPE : VAR : VAR : VAR Type : ARRAY [0..7] OF BOOL : = {1,0,0,0,0,0,0,0} : DINT :ARRAY [0..7] OF BOOL INI_ACT : VAR : ARRAY [0..
Chapter 5. GM PROGRAMMING 5.3 Programming for Loading the A/D Conversion Module on Remote I/O Station 1) System Configuration Slot 0 GM4- PA1A GM4- CPUA G4LFUEA G4QRY2A Remote Station No. ”1” GM4- PA1A G4L - RBEA G4FAD3A Slot 0 2) Initial Settings (1) A/D conversion enabling channel: channel 0 (2) Conversion data range: DC 4~20mA (3) Average processing setting: channel 0(setting value: 50 times) 3) Descriptions of the Program (1)The digital value less than 2000of channel 0 turns % Q0.1.0 on.
Chapter 5. GM PROGRAMMING 4) Programming example It indicates on when operated normally, and off when operated abnormally or down from Live data of opposite station READY START AD_INI ADR3INI REQ NDR _NETO_LIV[1] Line 0 Line 1 Execution condition and initial setting Execution request when the initializing function block is not operated 0 Line 3 Line 4 Line 5 _NETO_RST[1] _NETO_LIV[1] It indicates information on power-off state of opposite station.
Chapter 5. GM PROGRAMMING 5) Input/output variables used on the programming Variable Name AD_CH AD_DATA Var_Kind Data : VAR : ARRAY [0..7] OF BOOL : VAR : ARRAY [0..7] OF INT AD_INI : VAR : FB Instance AD_RD : VAR : FB Instance AVG_EN Type (AT Address) (Initial Value) : = {0,0,0,0,0,0,0,0} : VAR : ARRAY [0..7] OF BOOL AVG_SEL : VAR : ARRAY [0..7] OF BOOL : = {1,0,0,0,0,0,0,0} INPUTTYPE : VAR :ARRAY [0..7] OF BOOL : = {0,0,0,0,0,0,0,0} INI_ACT : VAR : ARRAY [0..
Chapter 6 Buffer memory 6 Buffer memory The A/D module has buffer memory used for data exchange with CPU module. This chapter describes the configuration and contents of buffer memory. 6.1 The configuration of buffer memory 6.1.
Chapter 6 Buffer memory 6.1.2 G3F-AD3A / G4F-AD3A The buffer memory of G3F-AD3A and G4F-AD3A has same configuration. Address (decimal) Name Description Default value Remark h00 R/W h00 R/W 00 Channel enable Enable / disable channel operation 01 Input voltage / current type Assign the type voltage / current 02 Average count processing enable Enable / disable average count processing per each channel h00 R/W 03 Avg. count of Ch0 Assign the count of Avg.
Chapter 6 Buffer memory 6.2 The Contents and description of buffer memory 6.2.1 G6F-AD2A 1) Channel enable (Address 00) - When the power is on, all bits are set as 0 (off) and all channels are disabled. - In order to enable a channel, set the corresponding bit as 1 (on). For example, turn on the bit 2 to enable the channel 2. - Because the conversion time depends on the number of used channel, turning on just necessary channel can reduce A/D conversion time.
Chapter 6 Buffer memory 3) Average processing enable (Address 02) - To use the average processing, set the corresponding bit as ‘1’. - The default value is 0 (sampling processing).
Chapter 6 Buffer memory 6) Digital output value (Address 08 ~ 11) - The digital value converted from analog input value is stored at this area. - If an error occurs, the d igital output value keeps the previous value.
Chapter 6 Buffer memory 6.2.2 G3F-AD3A / G4F-AD3A 1) Channel enable (Address 00) - When the power is on, all bits are set as 0 (off) and all channels are disabled. - In order to enable a channel, set the corresponding bit as 1 (on). For example, turn on the bit 2 to enable the channel 2. - Because the conversion time depends on the number of used channel, turning on just necessary channel can reduce A/D conversion time.
Chapter 6 Buffer memory 3) Average processing enable (Address 02) - To use the average processing, set the corresponding bit as ‘1’. - The default value is 0 (sampling processing).
Chapter 6 Buffer memory 6) Digital output value (Address 12 ~ 19) - The digital value converted from analog input value is stored at this area. - If an error occurs, the digital output value keeps the previous value.
Chapter 7 Buffer read/write instructions 7 Buffer read/write instructions 7.1 Buffer read instructions 7.1.
Chapter 7 Buffer read/write instructions - In the following cases, operation error occurs; a) Special function module is not founded at the slot number specified at ‘n1’ b) The value of ‘n2’ is greater than 512, or [ D + n2 ] is exceeds the range of specified device.
Chapter 7 Buffer read/write instructions 7.1.
Chapter 7 Buffer read/write instructions [ Remote station ] [ Self station ] Buffer memory of A/D module CPU module ‘n2’ [S] [D] words Fnet remote module [ S+n2-1 ] ‘n2’ words Fnet module [ D+n2-1 ] Station No = ‘st’ - Code of remote special function modules are as followings; Module Code G3F-AD3A h40 G4F-AD3A hC0 G6F-AD2A h02 ( For the codes of other special function modules, please refer the user’s manual of the related special function module) - An operation error occurs when [ S +
Chapter 7 Buffer read/write instructions 2) Program example - Program that reads 8 words, through the Fnet module mounted at the slot 03, from the address 11 of the buffer memory of the G3F-AD3A module mounted at the slot 01 of remote station h1D. Then, stores the read data to the 8 words which begin with D0300 of self-station. The link status will be stored at M020 of self-station.
Chapter 7 Buffer read/write instructions 7.2 Buffer write instructions 7.2.
Chapter 7 Buffer read/write instructions - In the following cases, operation error occurs; a) Special function module is not founded at the slot number specified at ‘n1’ b) The value of ‘n2’ is greater than 512, or [ D + n2 ] is exceeds the range of specified device.
Chapter 7 Buffer read/write instructions 7.2.
Chapter 7 Buffer read/write instructions [ Remote station ] [ Self station ] Buffer memory of A/D module CPU module ‘n2’ [D] [S] words Fnet remote module [ D+n2-1 ] ‘n2’ words Fnet module [ S+n2-1 ] Station No = ‘st’ - Code of remote special function modules are as followings; Module Code G3F-AD3A h40 G4F-AD3A hC0 G6F-AD2A h02 ( For the codes of other special function modules, please refer the user’s manual of the related special function module) - An operation error occurs when [ S +
Chapter 7 Buffer read/write instructions 2) Program example - Program that write 10 words, through the Fnet module mounted at the slot 02, from the D0200 ~ D0209 of self station to the address 11~20 of the buffer memory of the G3FAD3A module mounted at the slot 02 of remote station h0E. The link status will be stored at M020 of self station.
Chapter 7 Buffer read/write instructions Remarks The structure of ‘SS’ (Link status) of RPUT/RGET instruction is as following; bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 Error code bit3 bit2 Error Bit 0 : Turns on during 1 scan after the communication is completed normally. Bit 1 : Turns on during 1 scan after a communication error is occurred. Bit 2 ~ 7 : Not used Bit 8 ~ 15 : When the bit 1 turns on, the corresponding error code is stored.
Chapter 8 MK Programming 8 MK Programming 8.1 Basic programming The following example program shows how to set the operation condition for buffer memory of A/D conversion module. In this example, assume that the A/D module is mounted on the slot 2. 8.1.1 G6F-AD2A Slot number Execution condition Buffer memory Data No.
Chapter 8 MK Programming 8.1.2 G3F-AD3A / G4F-AD3A Slot number Execution condition Buffer memory Data No.
Chapter 8 MK Programming 8.2 Example programming 8.2.
Chapter 8 MK Programming 4) Programming Slot number F0012 Buffer memory Data No.
Chapter 8 MK Programming 8.2.
Chapter 8 MK Programming 4) Programming P0000 Slot number M0000 Buffer memory Data No.
Chapter 8 MK Programming 8.2.
Chapter 8 MK Programming 4) Programming P0000 Remote code of A/D module Slot number of A/D module RPUT 00001 D0000 Channel to be used (use channel 0) MOVP 00001 D0001 Assign analog input range (0 ~ 10 VDC) MOVP 00001 D0002 Assign average processing channel (channel 0) MOVP 00010 D0003 Set Averaging count of channel 0 (10 times) Start address of data Buffer memory RPUT F0093 00001 D0011 hC002 h0001 D0011 00011 00001 M001 Remote code of A/D module RGET Link status Slot number of A/D
Chapter 9 Dimension 9 Dimension 9.
Chapter 9 Dimension 9.
Chapter 9 Dimension 9.
Chapter 9 Dimension 9-4