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.
Page 3
Safety Precautions Wiring Precautions CAUTION When grounding a FG termi n al, 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.
Chapter 1 Introduction 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-t o-di gital 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.
Chapter 1 Introduction 1.2 Terminology 1.2.1 Analog value : A A n a l og value is a continuously changing value such as voltage, current, tem pe r ature, speed pressure, flux, etc. Tem perature, for exam ple, is continuously changing according to the tim e .
Chapter 1 Introduction 1.3 Analog-to-Digital conversion characteristics 1.3.1 Voltage input The A/D m o d u l e converts the analog input from external devices to the digital value that can be handled by CPU module. W h e n t he analog input is voltage input, the K4F-A D 3 A a n d K 7 F-A D 3 A h a s t wo input r a n g e s s u c h a s 1 ~ 5 V D C a n d 0 ~ 1 0V DC .
Page 10
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 i s convert ed to di gital 0, and the 10VDC analog input i s converted into digital output 4000. Therefore, the resolution per 1 digital value is 0.0025VDC.
Page 11
Chapter 1 Introduction 1.3.2 Current input W h e n t he anal o g i n p u t i s 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 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 Frequency 10≤f∠57 Hz 57≤f≤150 Hz Vibration Frequency 10≤f∠57 Hz 57≤f≤150 Hz...
2.2 Performance Specifications Table 2-2 shows performance specifications of A/D conversion module. 1) G3F-AD3A, G4F-AD3A Items I/O points Voltage Current Analog input Voltage/Current selection Digital output 1 ~ 5VDC Maximum 0 ~ 10VDC resolution DC 4 ~20mA Overall Accuracy Max . conversion speed Max .
Page 14
Chapter 2. SPECIFICATIONS 2) G6F-AD2A Items I/O points Voltage Analog Current input Voltage/Current selection Digital output 1 ~ 5VDC 0 ~ 10VDC Maximum resolution -10 ~10VDC DC 4 ~20mA Overall Accuracy Max . conversion speed Max . absolute input Number of analog input point Isolation Terminals connected +5VDC...
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.1 G3F-AD3A 2 - 4...
Chapter 2. SPECIFICATIONS 2.3.2 G4F-AD3A RUN LED Indicates the operating status of the G3F-AD3A and G4F- A D3A. Selection switch of voltage/current 1)The switch status at voltage selection The switch locates off status. 1 2 3 4 5 6 7 8...
Chapter 2. SPECIFICATIONS 2.3.3 G6F-AD2A RUN LED Indicates the operating status of the G6F-AD2A. Selection switch of voltage/current Analog Input Voltage Current Description Input Range Selection Switch DC 1~5V DC 0~10V DC-10~10V 1 2 3 DC 4~20mA 1 2 3 2 - 6...
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.2 The voltage or current input for a channel is selected by analog input selection switch and the value of Offset / Gain can not be changed because it is fixed.
2. Keep the input voltage and current not to exceed +15V and 25mA. 2.4.1 Voltage Input Characteristics 1) G3F-AD3A, G4F-AD3A For voltage input, the corresponding input selection switch of each channel should be set to "off". - Off : Voltage...
Page 20
Chapter 2. SPECIFICATIONS (2)Voltage input range : DC 1 ~5V Digital output value for input voltage is shown as follows. 0.952 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.
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 "o n". - On : Current 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 - Digital output value for input current is shown as follows.
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 Input selection switch...
2.4.4 Analog input and Digital output characteristics 1) G3F-AD3A, G4F-AD3A 2009 2008 2007 2006 Digital output value 2005 2004 2003 2002 2001 2000 Digital Input Resolution output range value DC 0~10V 2.5 mV DC 1~5V 4000 DC 4~20 4 ㎂...
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.
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;...
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. ② External wiring has to be at least AWG32 (0.3mm of operating ambiance and/or allowable current.
Chapter 3 Installation and wiring 2) G3F-AD3A / G4F -AD3A ① Voltage input ② Current input *1: Use a two-core twisted pair shielded cable *2 : If noise is expected, ground the cable as shown in figure. Voltage/current selection switch...
AD3RD AD3RD The function block type and functions of input/output parameters of G3F-AD3A and G4F-AD3A are same. 4.1 Registration of the Function Block for A/D Conversion Module on the GMWIN Function Block is inserted on the execution of the GMWIN according to following procedure.
Page 29
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.
Page 30
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 Variable 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.
Page 32
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.
4.3.1 Module Initialization 1) G3F-AD3A, G4F-AD3A 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...
Page 34
2) G6F-AD2A 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.
Page 36
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 t o read output variable of data displayed from A/D conversion digital value. Function Variable block Input NET_...
Chapter 4. FUNCTION BLOCK 4.4 Errors on Function Block This shows errors and resolutions in accordance with them. STAT Local Descriptions /Remote Operating with no fault Local The base location number is exceeding the proper setting range H/W error of the base The slot location number is exceeding the proper setting range The A/D conversion module on the slot is...
Chapter 5. GM PROGRAMMING Chapter 5. GM PROGRAMMING 5.1 Programming for Distinction of A/D Conversion Value 1) System Configuration GM3- GM3- PA1A CPUA 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.
Page 39
Chapter 5. GM PROGRAMMING 4) Programming Example AD_INI AD3INI READY DONE ROW 0 execution condition ROW 1 BASE Base location number specification ROW 2 SLOT Slot location number specification ROW 3 AD_CH Available channel enable specification ROW 4 DATATYPE TYPE Data type specification ROW 5 AVG_EN...
Page 40
Chapter 5. GM PROGRAMMING 5) Specifying initial value of input/output variables on the program.(Specifying channels) This denotes 4 channels Channel No. Enabled channel : 1 Disabled channel : 0 To specify channel enable/disable 5 -3 Select this and this screen appears Select this and this screen appears To select...
Page 41
Chapter 5. GM PROGRAMMING 6) Input/output variables on Programming Variable Name Var_Kind AD_CH : VAR AD_INI : VAR AD_RD : VAR AVG_EN : VAR AVG_NUM : VAR DATA : VAR DATATYPE : VAR INI_ACT : VAR INI_STAT : VAR RD_ACT : VAR RD_STAT : VAR...
Chapter 5. GM PROGRAMMING 5.2 Programming for Display of A/D Conversion Value and Error Code on BCD Display 1) System Configuration GM4- GM4- PA2A CPUA Initialize %I0.0.0 Display error code with BCD %I0.0. 1 Display A/D conversion %I0.0.2 data with BCD 2) Initial Settings (1) Available channel enabled : channel 0, (2) Analog input : current input(DC 4 to 20 mA)
Page 43
Chapter 5. GM PROGRAMMING 4) Programming AD_INI AD3INI %I0.0.0 ROW 0 DONE Execution condition and Initial Setting ROW 1 BASE Base location number specification ROW 2 SLOT Slot location number specification ROW 3 AD_CH Available channel enable specification ROW 4 DATATYPE TYPE Data type specification...
Page 44
Chapter 5. GM PROGRAMMING 5) Input/output variables on the programming Variable Name Var_Kind AD_CH : VAR AD_INI : VAR AD_RD : VAR AVG_EN : VAR CH0_DATA : VAR DATA : VAR DATATYPE : VAR INI_ACT : VAR INI_STAT : VAR AVG_NUM : VAR RD_STAT...
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- G4L- G4Q- GM4- CPUA FUEA RY2A PA1A 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.
Page 46
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 Line 0 Execution condition Execution request when the initializing function block is not and initial setting Line 1 operated...
Page 47
Chapter 5. GM PROGRAMMING 5) Input/output variables used on the programming Variable Name Var_Kind AD_CH : VAR AD_DATA : VAR AD_INI : VAR AD_RD : VAR AVG_EN : VAR AVG_SEL : VAR INPUTTYPE : VAR INI_ACT : VAR INI_ERR : VAR INI_STAT : VAR AVG_NUM...
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.1 G6F-AD2A Address Name (decimal) Channel enable Output data range...
Page 49
Chapter 6 Buffer memory 6.1.2 G3F-AD3A / G4F-AD3A The buffer memory of G3F-AD3A and G4F-AD3A has same configuration. Address Name (decimal) Channel enable Input voltage / current type Average count processing enable Avg. count of Ch0 Avg. count of Ch1 Avg.
2) Output data range (Address 01) - Only G6F-AD2A has the function of selecting the range of digital output data. (It is not available with G3F-AD3A and G4F-AD3A). - Each channel can be set independently. - Turn on the corresponding bit as ‘1’ to set the output data range as -2048 ~ 2047. The default value is ‘0’...
Page 51
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). bit15 bit14 bit13 bit12 bit11 – – – – – 4) Averaging count (Address 03 ~ 06) - Assign the number of count that is used for the calculation of average value.
Page 52
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. Address 7) Channel status (Address 12) - Indicates a channel is operating or not by turning on/off the corresponding bit.
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.
Page 54
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). bit15 bit14 bit13 bit12 bit11 – – – – – Ignored 4) Averaging count (Address 03 ~ 10) - Assign the number of count that is used for the calculation of average value.
Page 55
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. Address 7) Channel status (Address 20) - Indicates a channel is operating or not by turning on/off the corresponding bit.
Page 56
Chapter 7 Buffer read/write instructions Buffer read/write instructions 7.1 Buffer read instructions 7.1.1 GET / GETP instruction FUN(230) GET, GETP FUN(231) Instructions ¡ ¡ ¡ ¡* GETP Input condition GET(P) n1 S D n2 * Available only when do not use computer link module or data link module 1) Functions - Reads the data of ‘n2’...
Page 57
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.
Page 58
Chapter 7 Buffer read/write instructions 7.1.2 RGET instructions RGET FUN(232) Instructions ¡ ¡ ¡ ¡* RGET ¡ ¡ ¡ ¡* Input condition RGET sl st D S n SS Operand setting Type of remote special function Upper byte module Lower Slot number of Fnet module of byte self-station...
Page 59
[ S ] words [ S+n2-1 ] - Code of remote special function modules are as followings; Module G3F-AD3A G4F-AD3A G6F-AD2A ( 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 + n2 –...
Page 60
- 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.
Page 61
Chapter 7 Buffer read/write instructions 7.2 Buffer write instructions 7.2.1 PUT / PUTP instructions FUN(234) PUT, PUTP FUN(235) Instructions ¡ ¡ ¡ ¡* PUTP Input condition PUT(P) n1 D S n2 * Available only when do not use computer link module or data link module 1) Functions Write the data of ‘n2’...
Page 62
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.
Page 63
Chapter 7 Buffer read/write instructions 7.2.2 RPUT instructions RPUT FUN(233) Instructions RPUT ¡ ¡ ¡ ¡* ¡ ¡ ¡ ¡* Input condition RPUT sl st S D n SS Operand setting Type of remote special function Upper byte module Lower Slot number of Fnet module of byte self-station...
Page 64
[ D ] words [ D+n2-1 ] - Code of remote special function modules are as followings; Module G3F-AD3A G4F-AD3A G6F-AD2A ( 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 + n2 –...
Page 65
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 G3F - AD3A module mounted at the slot 02 of remote station h0E.
Page 66
Chapter 7 Buffer read/write instructions Remarks The structure of ‘SS’ (Link status) of RPUT/RGET instruction is as following; bit15 bit14 bit13 bit12 bi t 11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Error code Error Done Bit 0 : Turns on during 1 scan after the communication is completed normally.
Page 67
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 Execution condition...
Chapter 8 MK Programming 8.2 Example programming 8.2.1 A program for comparison of A/D converted value 1) System configuration GM3- K7P- G3F- PA2A 30AS AD3A 2) Initial setting for A/D module Item Channel to be used Analog input type and range Averaging processing enable Averaging count Validate setting...
Chapter 8 MK Programming 8.2.2 Output the analog input value by 7-segment display 1) System configuration GM6- K3P- PAFB 07AS Initialize A/D module P0000 Read digital value P0001 Output digital value to P0002 BCD display 2) Initial setting for A/D module Item Channel to be used Analog input type and range...
Page 72
Chapter 8 MK Programming 4) Programming P0000 M0000 M0000 P0001 Slot Buffer Data number memory 0002 00000 h0001 00001 0002 00001 00000 00001 0002 00002 h0001 00001 0002 00003 00010 00001 0002 00007 00001 00001 SET M0000 Slot Buffer Destination number memory of data...
Chapter 8 MK Programming 8.2.3 An A/D module mounted on a remote station 1) System configuration P000 GM4- K4P- G4X- PA2A 15AS D22A Start switch for A/D P0000 conversion Fnet communication module on self-station : slot 2 Fnet remote module of remote station : station number 01 A/D module of remote station : slot 0, remote code = hC0 2) Initial setting of A/D module Item...
Page 74
Chapter 8 MK Programming 4) Programming P0000 Remote code of A/D module RPUT hC002 h0001 D0000 00000 00004 M000 Slot number of Fnet module P0000 RPUT hC002 h0001 D0011 00011 00001 M001 Remote code of A/D module P0000 F0093 RGET hC002 h0001 D0012 00012 00001 M002 Slot number of Fnet module...