LG Electronics Network Card G3F AD3A User Manual

User’s Manual  
LG Programmable Logic Controller  
G3F-AD3A  
G4F-AD3A  
G6F-AD2A  
LG Industrial Systems  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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. If loosely fasten, it can cause  
short circuit, a fire or malfunction.  
Be careful that any foreign matter like wire scraps should not enter into the module. It can  
cause a fire, disorder or malfunction.  
Test Run and Maintenance Precautions  
CAUTION  
WARNING  
Do not contact the terminals while the  
power is applied. It can cause  
malfunction.  
Do not separate the module from the  
printed circuit board (PCB), or remodel  
the module. Th ey can cause disorder,  
malfunction, damage of the module or a  
fire.  
When cleaning or driving a terminal  
screw, perform them after the power  
has been turned off.  
When mounting or dismounting the  
module, perform them after the power  
has been turned off.  
Do not perform works while the power  
is applied, which can cause disorder  
or malfunction.  
Waste Disposal Precautions  
CAUTION  
When disposing the module, do it as anindustrial waste.  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CONTENTS  
Chapter 1. INTRODUCTION  
1.1 Features ·································································································································································1-1  
1.2 Terminology··························································································································································1-2  
1.2.1 Analog Value : A ··················································································································································1-2  
1.2.2 Digital Value : D ···················································································································································1-2  
1.3 Analog to Digital Conversion Characteristics ····················································································1-3  
1.3.1 Voltage input························································································································································1-3  
1.3.2 Current input························································································································································1-5  
Chapter 2. SPECIFICATIONS  
2.1 General Specifications ··································································································································2-1  
2.2 Performance Specifications ·······················································································································2-2  
2.3 Names of Parts and Functions ··················································································································2-4  
2.3.1 G3F-AD3A ·························································································································································2-4  
2.3.2 G4F-AD3A ·························································································································································2-5  
2.3.3 G6F-AD2A ·························································································································································2-6  
2.4 I/O Conversion Characteristics ·················································································································2-7  
2.4.1 Voltage Input Characteristics ··························································································································2-8  
2.4.2 Current Input Characteristics ··························································································································2-10  
2.4.3 Simultaneous Voltage and Current Input Characteristics ················································································2-11  
2.4. 4 Analog input and Digital output characteristics ·······························································································2-12  
2.5 Processing Specification······························································································································2-13  
2.5.1 Sampling processing A/D conversion system···································································································2-13  
2. 5.2 Averaging processing A/D conversion system ·································································································2-13  
Chapter 3. INSTALLATION AND WIRING  
3.1 Installation ··························································································································································3-1  
3.1.1 Installation Ambience··········································································································································3-1  
3.1.2 Handling Precautions ········································································································································3-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.2 Wiring ···································································································································································3-2  
3.2.1 Wiring Precautions ············································································································································3-2  
3.2.2 Wiring Examples ···············································································································································3-2  
Chapter 4. FUNCTION BLOCK  
4.1 Registration of the Function Block for the A/D Conversion Module on the GMWIN ·········4-1  
4.2 Function Block for Local································································································································4-2  
4.2.1 Module Initialization ···········································································································································4-2  
4.2.2 Module Reading - Array Type ···························································································································4-4  
4.2.3 Module Reading - Single Type····························································································································4-5  
4.3 Remote Function Block ································································································································4-6  
4.3.1 Module Initialization ···········································································································································4-6  
4.3.2 Module Reading ··················································································································································4-8  
4.4 Errors onFunction Block ··························································································································4-10  
Chapter 5. GM PROGRAMMING  
5.1 Programming for Distinction of A/DConversion Value ····································································5-1  
5.2 Programming for Display of A/DConversion Value and Error Code on BCD Display...·····5-5  
5.3 Programming for Loading the A/D Conversion Module on Remote I/O Station ··················5-8  
Chapter 6. Buffer Memory  
6.1 The configuration of buffer memory·········································································································6-1  
6.1.1 G6F-AD2A ···························································································································································6-1  
6.1.2 G3F-AD3A / G4F-AD3A······································································································································6-2  
6.2 The contents and description of buffer memory·················································································6-3  
6. 2.1 G6F-AD2A ···························································································································································6-3  
6. 2.2 G3F-AD3A / G4F-AD3A······································································································································6-8  
Chapter 7. Buffer read/write instructions  
7.1 Buffer read instructions··································································································································7-1  
7.1.1 GET/GETP instruction·········································································································································7-1  
7.1.2 RGET instruction·················································································································································7-3  
7.2 Buffer write instructuins ·································································································································7-6  
7.2.1 PUT/PUTP instruction ·········································································································································7-6  
7.2.2 RPUT instruction·················································································································································7-8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8. MK Programming  
8.1 Basic Programming ········································································································································8-1  
8.1.1 G6F-AD2A ·························································································································································8-1  
8.1.2 G3F-AD3A / G4F-AD3A ····································································································································8-2  
8.2 Example Programming ·································································································································8-3  
8.2.1 A program for comparision of A/D conversion value ························································································8-3  
8.2.2 Output the analog input value by 7-segment display ·······················································································8-5  
8.2.3 An A/D module mounted on a remote station ·····································································································8-7  
Chapter 9. DIMENSIONS  
9.1 G3F-AD3A Dimensions ·································································································································9-1  
9.2 G4F-AD3A Dimensions ·································································································································9-2  
9.3 G6F-AD2A Dimensions ·································································································································9-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 1 Introduction  
1 Introduction  
The G3F-AD3A, G4F-AD3A, and G6F-AD2A modul es ar e anal og-to -digi t al conversi on  
modul es f or use wi t h t he GLOFA PLC GM1/ 2/ 3/ 4/6 ser i es and MASTER-K PLC  
K200S/300S/ 1000S ser i es. The G3F-AD3A is used wi th GM1 /2/ 3 ser i es and K1000S  
seri es, G4F-AD3A i s used wi t h GM4 ser i es and K300S ser i es, and G6F-AD2A is used  
wi th GM6 ser i es and K200S ser ies. ( Her eaf t er t he G3F-AD3A, G4F-AD3A, and G6F-  
AD2A modul es are cal l ed as t he A/ D conversi on module)  
The A/ D conver si on module i s t o convert an anal og i nput si g nal (vol t age or current ) f rom  
ext ernal devi ces i nt o a 12-bit signed bi nary di gi tal val ue.  
1.1 Features  
1) Multi-channel anal og t o di gi t al conversi on i s possi bl e wi t h a si ngl e A/ D module.  
-
-
G6F-AD2A  
: 4 channel s  
: 8 channel s  
G4F-AD3A and G3F-AD3A  
2) The sel ect of vol tage i nput or current i nput i s possi bl e by channel of A/D modul e.  
3) The unlimited number of A/ D modul es can be mount ed on a base boar d.  
The maxi mum number of A/D modul es depends on t he power capaci ty of power suppl y  
modul e.( In case of use to t he G6F-AD2A withG6F-DA2V and G6F-DA2I, it is depends  
on t he power capaci t y of t he GM6-PAFB)  
1-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 1 Introduction  
1.2 Terminology  
1.2.1 Analog value : A  
Analog val ue i s a cont i nuousl y changi ng val ue such as vol t age, current , t emper ature,  
speed pressure, f l ux, et c. Tem perat ure, f or exam pl e, i s cont i nuousl y changi ng accordi ng  
to the ti me . Because thi s temperature i tsel f i s not avai l abl e for i nput of the PLC, the  
tem per at ur eshould be conver t ed an anal og el ect r i cal signal by t ransducer. Moreover, t he  
conver ted anal og si gnal ( volt age or current ) has t o be convert ed i nt o a di gi t al val ue wi t h  
t he A/ D modul e because t he PLC can handl e onl y di gi tal val ues.  
val ue  
time  
Figure 1.1 Analog value  
1.2.2 Digital value : D  
Di gi t al val ue i s adiscrete dat a t hat ar e descr i bed i n num ber s such as 0, 1, 2, … I n  
gener al , a bi nar y code syst em that ar e consist of 0(of f ) and 1(on) i s used f or expressi ng  
digi tal val ue. Al so, BCD or hexadeci mal val ues ar e used.  
Because t he CPU modul e of PLC can handl e di g i t al val ue onl y, t he anal og si gnal f rom  
ext ernal devi ces shoul d be convert ed i nt o anal og si gnal s wi t h A/ D module.  
I n t he ot her hand, t he di gi t al out put of CPU modul e should be conver t ed i nto anal og  
signal t o be used f or ext ernal devi ces. The D/ A modul e ( di gi tal-analog conver t er ) i s used  
for converti ng di gi tal val ues i nto anal og output (vol tage or current).  
val ue  
time  
Figure 1.2 Digital value  
1-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 1 Introduction  
1.3 Analog-to-Digital conversion characteristics  
1.3.1 Voltage input  
The A/ D module convert s t he anal og i nput f rom ext ernal devi ces t o t he di gi t al val ue t hat  
can be handl ed by CPU modul e.  
When the anal og i nput i s vol t age i nput , t he K4F-AD3A and K7F-AD3A has two i nput  
r anges such as 1 ~ 5VDC and 0 ~ 10VDC. The K3F-AD2A has three i nput r ange such as  
1 ~ 5VDC, 0 ~ 10VDC, and –10 ~ 10VDC.  
Wi t h al l anal og i nput range, t he di gi t al out put i s vari ed i n t he range of 0 ~ 4000. Theref ore,  
the resol uti on of the A/D modul e i s obt ai ned by f ol l owi ng equat i on;  
Maximuminput voltage- Minimuminput voltage  
Resolutionof A/Dmodule=  
4000  
1) 1 ~ 5VDC r ange  
When t he A/ D modul e oper at es wi t h 1 ~ 5VDC r ange, t he 1VDC analog i nput i s  
conver ted t o di gi t al 0, and t he 5VDC analog i nput i s convert ed i nt o di gi t al out put 4000.  
Theref ore, t he resol ut i on per 1 di gi t al val ue i s 0. 001VDC.  
4000  
2002  
2001  
2000  
2000  
1999  
1998  
0
2. 998V  
3. 002V  
1V  
3V  
5V  
2. 999V  
3. 001V  
Anal og i nput vol tage  
3. 000V  
Figure 1.3 A/D conversion characteristics ( 1 ~ 5VDC )  
1-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 1 Introduction  
2) 0 ~ 10VDC r ange  
When t he A/ D modul e oper at es wi t h 0 ~ 10VDC r ange, t he 0VDC anal og i nput is  
conver ted t o digi t al 0, and t he 10VDC anal og i nput is convert ed i nt o di gi t al out put 4000.  
Theref ore, t he resol ut i on per 1 di gi t al val ue i s 0. 0025VDC.  
4000  
2002  
2001  
2000  
2000  
1999  
1998  
0
4. 995V  
5. 005V  
5. 0025V  
0V  
5V  
10V  
4. 9975V  
5. 000V  
Anal og i nput vol tage  
Figure 1.4 A/D conversion characteristic ( 0 ~ 10VDC )  
3) 10 ~ 10VDC r ange  
When t he A/ D modul e oper at es wi t h 10 ~ 10VDC r ange, t he  
10VDC anal og i nput i s  
conver ted t o digi t al 0, and t he10VDC analog i nput i s convert ed i nt o di gi t al out put 4000.  
Theref ore, t he resol ut i on per 1 di gi t al val ue i s 0. 005VDC.  
4000  
2002  
2001  
2000  
2000  
1999  
1998  
0
-10V  
-0. 010V  
0. 010V  
0V  
10V  
-0. 005V  
0. 005V  
Anal og i nput vol tage  
0. 000V  
Figure1.5 A/D conversion characteristic (-10 ~ 10VDC )  
1-4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 1 Introduction  
1.3.2 Current input  
When the analog input is current i nput , t he A/ D conversi on modul e has onl y one i nput  
r anges such as 4 ~ 20mA.  
Wi t h al l anal og i nput range, t he di gi t al out put i s vari ed i n t he range of 0 ~ 4000. Theref o re,  
the resol uti on of the A/D modul e i s obt ai ned by f ol l owi ng equat i on;  
Maximum input current - Minimum input current  
Resolution of A/D module=  
4000  
1) 4 ~ 20mA r ange  
When the A/D modul e operat es wi t h 4 ~ 20mA range, t he 4mA anal og i nput i s convert ed  
t o di gi t al 0, and t he 20m A anal og i nput i s convert ed i nt o di gi t al out put 4000. There fore,  
the resol uti on per 1 di gi tal val ue i s 0.004mA.  
4000  
2002  
2001  
2000  
2000  
1999  
1998  
0
4 mA  
11. 992mA  
11. 996mA  
12. 000mA  
12. 008mA  
1 2 mA  
2 0 mA  
12. 004mA  
Anal og i nput current  
Figure 1.6 A/D conversion characteristic ( 4 ~ 20mA )  
1-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Specifications  
0 ~ 55℃  
Standard  
Operatingambient  
temperature  
Storage ambient  
temperature  
-25 ~ 70℃  
Operating ambient  
humidity  
5 ~ 95%RH, non-condensing  
Storage ambient  
Humidity  
5 ~ 95%RH, non-condensing  
In case of occasional vibration  
Sweep count  
Frequency  
10f57 Hz  
57f150 Hz  
Acceleration  
-
Amplitude  
0.075 mm  
-
9.8(1G)  
10 times in each  
direction for  
X, Y, Z  
Vibration  
Shocks  
IEC 61131-2  
IEC 61131-2  
In case of continuos vibration  
Frequency  
Acceleration  
-
Amplitude  
0.035 mm  
-
10f57 Hz  
57f150 Hz 4.9(0.5G)  
*Maximum shock acceleration: 147 {15G}  
*Duration time :11 ms  
*Pulse wave: half sine wave pulse( 3 times in each of X, Yand Z directions )  
LGIS  
Standard  
Square wave impulse noise  
±1,500 V  
IEC 61131-2  
IEC1000-4-2  
IEC 61131-2  
IEC1000-4-3  
Electrostatic discharge  
Voltage :4kV(contact discharge)  
27 ~ 500 MHz, 10 V/m  
Radiated electromagnetic field  
Noise immunity  
Digital I/Os  
(Ue < 24 V)  
Analog I/Os  
communication  
I/Os  
Fast transient  
&
burst noise  
All power  
modules  
Digital I/Os  
( Ue³ 24 V)  
Modules  
Voltage  
IEC 61131-2  
IEC1000-4-4  
2 kV  
1 kV  
0.25 kV  
Operating atmosphere  
Altitude for use  
Free from corrosive gases and excessive dust  
Up to 2,000m  
2 or lower  
Pollution degree  
Cooling method  
Self-cooling  
[Table 2.1 ] General specifications  
REMARK  
1) IEC(International Electrotechnical Commission)  
: The international civilian organization which produces standards for electrical and electronics industry.  
2) Pollution degree  
: It indicates a standard of operating ambient pollution level.  
The pollution degree2 means the condition in which normally, only non-conductive pollution occurs.  
Occasionally, however, a temporary conductivity caused by condensation shall be expected.  
2 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
G4F -AD3A  
I/O points  
16 points  
1 ~ 5 VDC (input resistance 600)  
Voltage  
Current  
0 ~ 10 VDC (input resistance 600)  
DC 4 ~ 20 mA(input resistance 250)  
Analog  
input  
- Adjust input selection switch for each channel on side of module.  
( ON : Current, OFF : Voltage)  
Voltage/Current selection  
- Selection of voltage range by program  
Digital output  
- 16 bit binary value  
1 ~ 5VDC  
0 ~ 10VDC  
DC 4~20mA  
1 mV(1/4000)  
Maximum  
resolution  
2.5 mV(1/4000)  
4(1/4000)  
±0.5% (accuracy to full scale)  
Overall Accuracy  
Max . conversion speed  
Max . absolute input  
5.0 ms/channel  
Voltage : 15V, Current : 25mA  
8 channels/module  
Number of analog input point  
Between input terminals and PLC: Photo coupler isolation  
(Between channels : Non-isolated)  
Isolation  
Terminals connected  
Internal current consumption  
Weight  
20-point terminal block  
0.5 A  
310  
0.5 A  
280  
[Table 2.2] Performance Specifications  
CAUTION  
!
The manufacturer set value ofA/D conversion module has been current input mode.  
2 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
- Selection with Terminal  
Voltage/Current selection  
( It has to be connected between V and I terminal to select current. )  
- Selection of voltage range by switch on the side of module  
-
-
12 bit binary value(-48 ~ 4047, -2048 ~ 2047)  
Digital output value is selected by program.  
Digital output  
1 ~ 5VDC  
1 mV(1/4000)  
0 ~ 10VDC  
2.5 mV(1/4000)  
Maximum  
resolution  
-10 ~10VDC  
5 mV (1/4000)  
4(1/4000)  
DC 4~20mA  
±0.5% (accuracy to full scale)  
Overall Accuracy  
Max . conversion speed  
5.0 ms/channel  
Max . absolute input  
Voltage : 15V, Current : 25mA  
4 channels/module  
Number of analog input point  
Between input terminals and PLC: Photo coupler isolation  
(Between channels : Non-isolated)  
Isolation  
Terminals connected  
18-point terminal block  
+5VDC  
Current  
40mA  
50mA  
+15VDC  
Consumption  
-15VDC  
Weight  
20mA  
200g  
[Table 2.2] Performance Specifications  
CAUTION  
!
The factory-set value of A/D conversion module has been current input mode.  
The G6F-AD2A has to be used with the GM6-PAFB.  
2 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
2.3 Names of Parts and Functions  
The names of parts and functionsof the A/D conversion module are shown as below.  
2.3.1 G3F-AD3A  
2 - 4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
switch locates off status.  
1 2 3 4 5 6 7 8  
2)The switch statues at current selection  
On  
switch locates on status  
1 2 3 4 5 6 7 8  
2 - 5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
2.3.3 G6F-AD2A  
No  
Description  
¬
RUN LED  
Indicates the operating status of the G6F-AD2A.  
Selection switch of voltage/current  
AnalogInput  
Input Range Selection Switch  
J1  
1
2
3
DC 1~5V  
DC 0~10V  
J2  
J1  
1
2
3
Voltage  
Current  
J2  
J1  
1
2
3
DC-10~10V  
DC 4~20mA  
J2  
J1  
1
2
3
J2  
2 - 6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.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.  
Practical analog input range  
4047  
4000  
3000  
Digital  
Output  
2000  
Value  
1000  
0
-48  
10.12V  
5.048V  
-0.12V  
0.952V  
10V  
5V  
0V  
5V  
3V  
DC 0 ~ 10V  
DC 1 ~ 5V  
Analog  
Input  
1V  
3.808  
DC 4 ~ 20 ㎃  
4 ㎃  
12 ㎃  
20 20.192  
[Fig 2.1] I/O Conversion Characteristics  
REMARK  
1. The analog output value of over 4047 or 48is fixed as 4047 or48.  
2. Keep the input voltage and current not to exceed +15V and 25mA.  
2 - 7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
Practical analog input range  
2047  
2000  
4047  
4000  
1000  
0
3000  
2000  
Digital  
Output  
Value  
1000  
-1000  
-2000  
-2048  
0
-48  
10.12V  
-0.12V  
10V  
0V  
1V  
5V  
3V  
0V  
DC 0 ~ 10V  
Analog  
Input  
0.952V  
-10.24V  
5.048V  
10.24V  
5V  
DC 1 ~ 5V  
10V  
DC-10 ~ 10V  
-10V  
3.808  
20 20.192  
DC 4 ~ 20 ㎃  
4 ㎃  
12 ㎃  
[Fig 2.1] I/O Conversion Characteristics  
REMARK  
1. The analog output value of over 4047 or 48(2047 or –2048) is fixed as 4047 or 48(2047 or2048).  
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".  
Input selection switch  
- Off : Voltage  
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
7
Number of channel  
The voltage input range is selected in program.  
Input selection switch has to be located at off.  
(1)Voltage input range : DC 0  
~
10V  
Digital output value for input voltage is shown as follows.  
Analog input voltage (V)  
5
-0.12  
-48  
0
2.5  
7.5  
10  
10.12  
4047  
Digital output value  
0
1000  
2000  
3000  
4000  
2 - 8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
(2)Voltage input range : DC 1  
~
5V  
Digital output value for input voltage is shown as follows.  
Analog input voltage (V)  
3
0.952  
-48  
1
2
4
5
5.048  
4047  
Digital output value  
0
1000  
2000  
3000  
4000  
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~ 5  
V
Digital output value for input voltage is shown as follows.  
Input range selection  
switch  
Analog input voltage (V)  
3
0.952  
1
2
4
5
5.048  
J1  
J2  
-48  
0
1000  
2000  
0
3000  
1000  
4000  
2000  
4047  
2047  
1
2
3
Digital output value  
-2048  
-2000  
-1000  
2) Voltage input range : DC 0 ~ 1  
V0  
Digital output value for input voltage is shown as follows.  
Input range selection  
switch  
Analog input voltage (V)  
-0.12  
0
2.5  
5
7.5  
10  
10.12  
J1  
1
2
3
-48  
0
1000  
2000  
0
3000  
1000  
4000  
2000  
4047  
2047  
Digital output value  
J2  
-2048  
-2000  
-1000  
3) Voltage input range : DC -10 ~ 1  
V0  
Digital output value for input voltage is shown as follows.  
Input range selection  
switch  
Analog input voltage (V)  
0
-10.24  
-10  
-5  
5
10  
10.24  
1J1  
1
2
3
-48  
0
1000  
2000  
0
3000  
1000  
4000  
2000  
4047  
2047  
Digital output value  
J2  
-2048  
-2000  
-1000  
2 - 9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
2.4. 2  
Current Input Characteristics  
1) G3F-AD3A, G4F-AD3A  
For current input, the corresponding input selection switch of each channelshould 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
7
Number of channel  
- Digital output value for input current is shown as follows.  
Analog input current(  
)  
3.808  
-48  
4
8
12  
16  
20  
20.192  
4047  
Digital output value  
0
1000  
2000  
3000  
4000  
2) G6F-AD2A  
Digital output value for input voltage is shown as follows.  
Input range selection  
switch  
Analog input current (mA)  
3.808  
4
8
12  
16  
20  
20.192  
J1  
1J2  
1
2
3
-48  
0
1000  
2000  
0
3000  
1000  
4000  
2000  
4047  
2047  
Digital output value  
-2048  
-2000  
-1000  
It has to be connected between V and I terminal to select current.  
2 - 10  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
CH0  
1
2
3
4
5
6
7
- Digital output value for analog input is shown as follows..  
Analoginput  
0~10V  
1~ 5V  
-0.12  
0
1
2.5  
2
5
3
7.5  
4
10  
5
10.12  
5.048  
Voltage  
(V)  
0.952  
Current  
(mA)  
4 ~ 20 mA  
3.808  
-48  
4
0
8
12  
16  
20  
20.192  
4047  
Digital output value  
1000  
2000  
3000  
4000  
2) G6F-AD2A  
For simultaneous use of voltage and current input, the available input voltage rage is 0 ~ 5VDC only.  
Digital output value for analog input is shown as follows..  
Analoginput  
Voltage DC1~ 5V  
0.952  
3.808  
-48  
1
4
2
3
12  
4
5
5.048  
20.192  
4047  
Current DC4 ~ 20mA  
8
16  
20  
0
1000  
-1000  
2000  
0
3000  
1000  
4000  
2000  
Digital output value  
-2048  
-2000  
2047  
Ex) channel for voltage : 0,  
channel for current : 1  
Wiring Example  
Input Rage Selection Switch  
Voltage Input(Channel 0)  
+
Current Input(Channel 1)  
J1  
J2  
+
V+  
V+  
1
2
I+  
3
I+  
Analog Input  
Analog Input  
COM  
COM  
2 - 11  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
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  
range  
No  
À
Resolution  
2.5 mV  
1mV  
Analog input value  
output  
value  
5.000  
~
5.0025  
5.005  
~
5.0075  
~
~
DC 0~10V  
5.0025  
5.005  
5.0075  
5.010  
0
~
3.000  
~
3.001  
3.002  
~
3.003  
3.004  
~
3.005  
~
3.006  
3.007  
~
3.008  
3.009  
~
~
~
~
~
DC 1~5V  
Á
3.001  
3.002  
3.003  
3.004  
3.005  
3.006  
3.007  
3.008  
3.009  
3.010  
4000  
12.000  
12.004  
12.008  
12.012  
12.016  
12.020  
12.024  
12.028  
12.032  
12.036  
DC 4~20  
~
~
~
~
~
~
~
~
~
~
4 ㎂  
Â
12.004  
12.008  
12.012  
12.016  
12.020  
12.024  
12.028  
12.032  
12.036  
12.040  
Analog input and Digital output  
2) G6F-AD2A  
2009  
2008  
2007  
2006  
2005  
2004  
2003  
2002  
2001  
2000  
③ ④  
Digital output value  
Digital  
output  
value  
No  
Input range  
DC-10~10V  
Resolution  
5mV  
Analog input value  
0.000  
~
0.005  
~
À
Á
Á
0.005  
0.010  
0 ~  
4000  
or  
5.000  
~
5.0025  
5.005  
5.0075  
~
~
~
DC 0~10V  
DC 1~5V  
2.5 mV  
1mV  
5.0025  
5.005  
5.0075  
5.010  
3.000  
~
3.001  
3.002  
~
3.003  
3.004  
~
3.005  
~
3.006  
3.007  
~
3.008  
3.009  
~
-2048  
~
~
~
~
~
3.001  
3.002  
3.003  
3.004  
3.005  
3.006  
3.007  
3.008  
3.009  
3.010  
2047  
12.000  
~
12.004  
~
12.008  
~
12.012  
~
12.016  
~
12.020  
~
12.024  
~
12.028  
~
12.032  
~
12.036  
~
DC 4~20 ㎃  
4 ㎂  
Â
12.004  
12.008  
12.012  
12.016  
12.020  
12.024  
12.028  
12.032  
12.036  
12.040  
Analog input and digital output value  
2 - 12  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 2. SPECIFICATIONS  
2.5 Processing specifications  
2.5.1 Sampling processing A/D conversion system  
The analog 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. The timing of this sampling depends on the number of  
channels used, and may be found from the following expression.  
Process time = Number of channels used  
´
Maximum conversion time (5 ms)  
The process time when 4 channels is used, for example, will be 20 msec = 4´ 5 ms  
2.5.2 Averaging processing A/D conversion system  
The A/D module makes the A/D conversion for any channels to which averaging processing  
has been specified from the CPU. Using a pres et count, an average is calculated (excluding the  
maximum value and the minimum value) and stored to the buffer memory. The preset count  
can be set as 2 to 255 times.  
The time in which the average value by this processing is stored in the buffer memory varies  
with the number of channels used.  
Processing time = Count setting  
´
No. of channels  
´
5ms (Max conversion time)  
The processing time when count value is 50 and 4 channels are used, for example, will be 50 ´  
4 ´ 5ms = 1000ms.  
2 - 13  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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) Ambiancerequirements  
Avoid installing the A/D module in following locations where;  
temperature may experience ambient drops or rising.  
(It should stay within 0 °C ~ 55°C or 32°F ~ 131 °F)  
condensation may occur due to abrupt temperature changes  
vibration and shock are directly transmitted to the PLC system.  
the PLC system is exposed to the direct rays of the sun.  
the PLC system is exposed to corrosive or inflammable gas.  
the PLC system is exposed to conductive powder, oil mist, salt, or organic solvent.  
2) Installing and wiring  
During wiring or other work, do not allow any wire scraps to enter into the module.  
Install the module on location that is convenient for operation.  
Be sure that it is not located near high voltage equipment on the same panel.  
Be sure to install the module at least 50 mm away from a duct or other devices.  
Be sure to be grounded to locations that have good noise immunity.  
3.1.2 Handling precautions  
From unpacking to installation, be sure to check the following;  
Do not drop it off, and make sure that strong impacts should not be applied.  
Do not dismount printed circuit boards from the case. It can cause malfunctions of  
module.  
Be sure to disconnect electrical power before mounting / dismounting the module.  
3 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.3mm2 ), 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.  
Be careful not to connect external power supply with wrong polarity.  
Separate external wiring sufficiently from high voltage and power supply cable not to  
cause induced noise or malfunction of module.  
3.2.2 Wiring examples  
1) G6F-AD2A  
Voltageinput  
Input Range  
Selection Switch  
+15V  
R
R
J1  
V+  
I+  
R
1
2
3
COM  
J2  
*1  
-15V  
V+  
I+  
R
R
R
COM  
*1  
FG  
G6F-AD2A  
*2  
Current input  
Input Range  
+15V  
Selection Switch  
R
R
J1  
V+  
I+  
COM  
R
1
2
3
J2  
*1  
*1  
-15V  
R
R
V+  
I+  
COM  
R
FG  
G6F-AD2A  
*2  
*1: Use a two-core twisted pair shielded cable  
*2 : If noise is expected, ground the cable and FG terminal as shown in figure.  
3 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 3 Installation and wiring  
2) G3F-AD3A / G4F-AD3A  
Voltageinput  
Voltage/current  
selection switch  
Voltage range  
selection switch  
CH0  
CH7  
R
R
R
R
R
*1  
R
R
R
*1  
*2  
Current input  
Voltage/current  
selection switch  
Voltage range  
selection switch  
CH0  
CH7  
R
R
R
R
R
*1  
*1  
R
R
R
*2  
*1: Usea two-core twisted pair shielded cable  
*2 : If noise is expected, ground the cable as shown in figure.  
3 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
G3F-AD3A  
G4F-AD3A  
G6F-AD2A  
No  
Function  
Local  
Remote  
Local  
Remote  
Local  
AD2INI  
Remote  
1
2
AD3INI  
ADR3INI  
ADR3RD  
AD3INI  
ADR3INI  
ADR3RD  
ADR62INI  
Initializing module  
AD3ARD  
AD3ARD  
AD2ARD ADR62RD  
AD2RD  
Reading A/D converted value(array Type)  
3
AD3RD  
-
AD3RD  
-
-
Reading A/D converted value(Single Type)  
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.  
Function block can be inserted only in the open condition of the Project.  
Project(P)  
select  
Library Insertion(I)  
G3FAD3A  
Function block  
Insertion for Local  
1. Special.3fb  
. AD3INI  
. AD3ARD  
. AD3RD  
2. Remote3.3fb  
. ADR3INI  
. ADR3RD  
3. Remote4.3fb  
. ADR3INI  
Function block  
insertion  
for Remote GM3  
Function block  
insertion  
for Remote GM4  
. ADR3RD  
G4FAD3A  
1.Special.4fb  
. AD3INI  
Function block  
insertion  
for Local  
. AD3ARD  
. AD3RD  
2.Remote4.4fb  
. ADR3INI  
Function block  
insertion  
for Remote GM4  
. ADR3RD  
3.Remote3.4fb  
. ADR3INI  
. ADR3RD  
Function block  
insertion  
for Remote GM3  
G6FAD2A  
1.Special.6fb  
. AD2INI  
. AD2ARD  
. AD2RD  
Function block  
insertion  
for Local  
2.Remote6.6fb  
. ADR62INI  
. ADR62RD  
Function block  
insertion  
for Remote GM6  
4 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 4. FUNCTION BLOCK  
4.2 Function Blockfor 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.  
Data  
type  
Function  
block  
I/O  
Var iable  
Descriptions  
Function Block ExecutionRequest Area  
- The execution of function block initialization is requested in this area.  
Input  
REQ  
BOOL  
- If the status of condition connected with this area is changed from low(0) to high(1),  
function block initialization for the module is executed.  
Base Location Number Area  
AD3INI  
BASE  
USINT  
- The baseNo. on which A/D conversion module is mounted is written on this area.  
- Setting range : 0 to 3  
Slot Location Number Area  
REQ  
DONE  
STAT  
BASE  
SLOT  
CH  
USINT  
- The slot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
Available Channel Specification Area  
-Enabled channels are specified to 1 and disabled channels are specified to 0.  
SLOT  
CH  
ACT  
BOOL[8]  
AnalogInputData Type Specification Area  
- Output digital data type for each channel is specified in this area.  
- 0 is for the range of 1 ~ 5VDC andDC4 ~ 20mA.  
- 1 is for the range of 0 ~ 10VDC  
Enable / Disable of Average processing  
- 0is for thesampling processing.  
TYPE  
AVG_  
TYPE  
BOOL[8]  
BOOL[8]  
AVG_  
EN  
AVG_  
NUM  
- 1 is for the average processing of the number of times.  
AVG_  
NUM  
USINT  
[8]  
Set a constant of the average processing of the number of times.  
- Setting range : 2 ~ 255  
Function Block Execution Complete Area  
- When function block initialization is executed with no error, 1 is written and until  
next execution, 1 is continuing. When error occurs, 0 is written and operation come  
tostop.  
Output  
DONE  
BOOL  
Error Code Display Area  
STAT  
ACT  
USINT  
- When error occurs during function block initialization, the error code number is  
written.  
Channel Operation Display Area  
- After execution the function block of initialization with no error, if the setting  
condition of specified channel is normal then output 1’ ,or if abnormal, output 0’ .  
- No specified channel is ‘ 0’ .-  
BOOL[8]  
REMARK  
BOOL[8] and USINT[8] of data type means that the number of element is 8, and also this means the whole number of channels and channel  
number.  
4 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Data  
type  
I/O  
Variable  
Descriptions  
Function Block ExecutionRequest Area  
-The execution of function block initialization is requested in this area.  
-If the status of condition connected with this area is changed from low(0) to high(1),  
function block initialization for the module is executed.  
Input  
REQ  
BOOL  
Base Location Number Area  
-The base No. on which A/D conversion module is mounted is written on this area.  
-Setting range : 0  
BASE  
SLOT  
CH  
USINT  
Slot Location Number Area  
-The slot No. on which A/D conversion module is mounted is written on this area.  
-Setting range: 0 to 7  
USINT  
AD2INI  
REQ  
DONE  
STAT  
Available Channel Specification Area  
- Enabled channels are specified to 1 and disabled channels are specified to 0.  
BOOL[4]  
BOOL[4]  
BOOL[4]  
USINT[4]  
BOOL  
BASE  
DigitalOutputData Type Specification Area  
-0 is for the range of –48 ~ 4047  
-1 is for the range of –2048 ~ 2047  
SLOT  
CH  
ACT  
DATA  
TYPE  
Enable / Disable ofAverage processing  
- 0 is for thesampling processing.  
- 1 is for the average processing forthe number of times.  
DATA  
TYPE  
AVG_  
EN  
AVG_  
AVG_  
NUM  
AVG_  
NUM  
Set a constant of the average processing of the number of times.  
- Setting range : 2 ~ 255  
Function Block Execution Complete Area  
- When function block initialization is executed with no error, 1 is written and 1 is  
kept until next execution. When error occurs, 0 is written and operation come to  
stop.  
Output  
DONE  
STAT  
ACT  
Error Code Display Area  
- When error occurs during function block initialization, the error code number is  
written.  
USINT  
Channel Operation Display Area  
- The channel specified after executing the function block initialization with no error  
is right, 1 is written and, on the non-specified channel, 0 is written.  
BOOL[4]  
REMARK  
BOOL[4] and USINT[4] of data type means that the number of element is 4, and also this means the whole number of channels and channel  
number.  
4 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
Data  
type  
Function  
block  
I/O  
Variable  
Descriptions  
Function Block Execution Request Area  
- The execution offunction blockreading is requested in this area.  
- If the status to be connected with this area is satisfied on the program operation  
and input condition changes from low(0) to high(1), function block initialization for  
the module is executed.  
Input  
REQ  
BOOL  
Base Location Number Area  
- The baseNo. on which A/D conversion module is mounted is written on this area.  
- Setting range : 0 to 3  
AD3ARD  
BASE  
USINT  
REQ  
DONE  
Slot Location Number Area  
- Theslot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
BASE  
STAT  
SLOT  
CH  
USINT  
SLOT  
CH  
ACT  
Available Channel Specification Area  
-Enabled channels are specified to 1 and disabled channels are specified to 0.  
BOOL[8]  
DATA  
Function Block Execution Complete Area  
- When function block reading is executed with no error, 1 is written and until next  
execution, 1 is continuing. When error occurs, 0 is written and operation come to  
stop  
output  
DONE  
STAT  
BOOL  
USINT  
Error Code Display Area  
- When error occurs during function blockreading, the error code number is written.  
Channel Operation Display Area  
- After execution the function block of initialization with no error, if the setting  
condition of specified channel is normal then output 1’ , or if abnormal, output 0’ .  
- No specified channel is0’ .-  
A/D Conversion Value Output Area  
Output data range : -48 ~ 4047  
ACT  
BOOL[8]  
INT[8]  
DATA  
REMARK  
BOOL[8] and USINT[8] of data type means that the number of element is 8, and also this means the whole number of channels and channel number.  
2) G6F-AD2A  
Array type of function block for reading is performed for all channels in module and the specified  
channel is used to read output variable of data displayed from A/D conversion digital value.  
Data  
type  
Function  
block  
I/O  
Input  
Variable  
Descriptions  
Function Block Execution Request Area  
- The execution of function blockreading is requested in this area.  
- If input condition is changed from low(0) to high(1), function block initializatio n for  
the module is executed.  
REQ  
BOOL  
AD2ARD  
Base Module Location Number Area  
REQ  
DONE  
- The baseNo. on which A/D conversion module is mounted is written on this area.  
- Setting range :0  
Slot Location Number Area  
- Theslot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
Available Channel Specification Area  
- Available channels are specified in this area.  
- Enabled channels are specified to 1 and disabled channels are specified to 0.  
Function Block Execution Complete Area  
- When function block reading is executed with no error, 1 is written and 1 is kept  
until next execution. When error occurs, 0 is written and operation come to stop  
Error Code Display Area  
- When error occurs during function blockreading, the error code number is written.  
- Error code is referred to Manual 4.3.  
BASE  
SLOT  
USINT  
USINT  
BASE  
STAT  
ACT  
SLOT  
CH  
DATA  
CH  
BOOL[4]  
BOOL  
DONE  
STAT  
Output  
USINT  
Channel Operation Display Area  
ACT  
BOOL[4]  
INT[4]  
- The channel specified after executing the function block readwith no error is  
right, 1 is written and, on the non-specified channel, 0 is written  
A/D Conversion Value Output Area  
DATA  
- Output data range : -48 ~ 4047 or–2048 ~ 2047  
4 - 4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
Data  
type  
Function  
block  
I/O  
Variable  
Descriptions  
Function Block Execution Request Area  
- The execution of function blockreading is requested in this area.  
- If the status to be connected with this area is satisfied on the program operation and  
input condition changes from low(0) to high(1), uf nction block initialization for the  
module is executed.  
Input  
REQ  
BOOL  
AD3RD  
Base Module Location Number Area  
- The baseNo. on which A/D conversion module is mounted is written on this area.  
- Setting range :0 ~ 3  
REQ  
DONE  
STAT  
BASE  
USINT  
BASE  
Slot Location Number Area  
- Theslot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
SLOT  
CH  
USINT  
USINT  
BOOL  
DATA  
SLOT  
CH  
Available Channel Specification Area  
-Enabled channels are specified to 1 and disabled channels are specified to 0.  
Function Block Execution Complete Area  
- When function block reading is executed with no error, 1 is written and until next  
execution, 1 is continuing. When error occurs, 0 is written and operation come tostop.  
DONE  
output  
Error Code Display Area  
- When error occurred during function block initialization, the error code number is  
written.  
STAT  
DATA  
USINT  
INT  
A/D Conversion Value Output Area  
Output data range : -47 ~ 4048  
2)G6F-AD2A  
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.  
Data  
type  
Function  
block  
I/O  
Input  
Variable  
Descriptions  
Function Block Execution Request Area  
- The execution of function blockreading is requested in this area.  
- If input condition is changed from low(0) to high(1), function block initialization for  
the module is executed.  
REQ  
BOOL  
AD2RD  
Base Module Location Number Area  
REQ  
DONE  
STAT  
- The baseNo. on which A/D conversion module is mounted is written on this area.  
BASE  
USINT  
- Setting range :0  
Slot Location Number Area  
BASE  
SLOT  
CH  
USINT  
BOOL[4]  
BOOL  
- Theslot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
Available Channel Specification Area  
Setting range : 0 ~ 3  
SLOT  
CH  
DATA  
Function Block Execution Complete Area  
DONE  
- When function block reading is executed with no error, 1 is written and 1 is kept  
until next execution. When error occurs, 0 is written and operation come to stop  
Error Code Display Area  
Output  
STAT  
DATA  
USINT  
INT[4]  
- When error occurs during function blockreading, the error code number is written.  
- Error code is referred to Manual 4.3.  
A/D Conversion Value Output Area  
- Output data range : -48 ~ 4047 or2048 ~ 2047  
4 - 5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 4. FUNCTION BLOCK  
4.3 Remote Function Block  
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  
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.  
Data  
type  
Function  
block  
I/O  
Input  
Variable  
Descriptions  
Function Block Execution Request Area onRisingEdge.  
- The execution of write function block is requested in this area.  
- Ifthe status to be connected with this area is satisfied on the program operation and input  
condition changes from low(0) to high(1), function block initialization for the module is  
executed.  
REQ  
BOOL  
ADR3INI  
NET_  
NO  
The location number of the slot on which the transmission module of the master station is  
mounted. -Setting range: 0 to 7  
Stationnumber of thecommunicationmodule which a remote I/O station has.  
- Setting range : 0 to 63  
Base Location Number Area  
- The base No. on which A/D conversion module ismounted is written on this area.  
- Setting range : 0 to 3  
Slot Location Number Area  
- The slot No. on which A/D conversion module is mounted is written on this area.  
- Setting range: 0 to 7  
Ava ilable Channel Specification Area  
- Available channels are specified in this area.  
- Enabled channels are specified to 1 and disabled channels are specified to 0.  
Output Data Type Specification Area  
USINT  
USINT  
REQ  
NDR  
ST_NO  
NET_  
NO  
ERR  
STAT  
ACT  
ST_N  
O
BASE  
USINT  
USINT  
BASE  
SLOT  
CH  
SLOT  
CH  
BOOL[8]  
TYPE  
- Output digital data type for each channel is specified in this area.  
- 0 is for the range of 1 ~ 5VDC and DC 4 ~ 20mA  
- 1 is for the range of0 ~ 10VDC  
AVG_  
EN  
TYPE  
BOOL[8]  
BOOL[8]  
AVG_  
NUM  
AVG_  
EN  
Average Process Enable Specification Area  
- 1 is for the average processing. - 0 is for the sampling process.  
AVG_  
NUM  
Set a constant of the average processing of the number of times.  
- Setting range : 2 ~ 255  
USINT[8]  
BOOL  
When function block execution is completed with no error, 1 is written. During the scan which  
the execution condition has been made, 1 is continuing and at the next scan. 0 is written.  
Error Data Display Area  
- When error occurs during function block initialization, 1 is written and the operation comes  
to stop. During the scan which the execution condition has been made, 1 is continuing  
and at the next scan, 0 is written.  
Output  
NDR  
ERR  
BOOL  
Error Code Display Area  
- When error occurs during function block initialization, the error code number is written.  
Channel Operation Display Area  
- The channel specified after executing the function block initialization with no error is  
right, 1 is written and, on the non-specified channel, 0 is written.  
STAT  
ACT  
USINT  
BOOL[8]  
REMARK  
BOOL[8] and USINT[8] of data type means that the number of element is 8, and also this means the whole number of channels and channel number.  
4 - 6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 4. FUNCTION BLOCK  
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.  
Data  
type  
Function  
block  
I/O  
Variable  
Descriptions  
Function Block Execution Request Area onRisingEdge.  
- The execution of write function block is requested in this area.  
- If the status to be connected with this area is satisfied on the program operation and input  
condition changes from low(0) to high(1), function block initialization for the module is  
executed.  
t
Inpu  
REQ  
BOOL  
ADR62INI  
NET_  
NO  
The location number of the slot on which the transmission module of the master station is  
mounted.-Setting range: 0 to 7  
Stationnumber of thecommunicationmodule which a remote I/O station has.  
- Setting range : 0 to 63  
Base Location Number Area  
- The base No. on which A/D conversion module is mounted is written on this area.  
- Setting range : 0  
Slot Location Number Area  
- The slot No. on which A/D conversion module is mounted is written on this area.  
- Setting range: 0 to 7  
Available Channel Specification Area  
- Available channels are specified in this area.  
- Enabled channels are specified to 1 and disabled channels are specified to 0.  
Output Data Type Specification Area  
- Output digital data type for each channel is specified in this area.  
- 0 is for the r ange of –48 to 4047. - 1 is for the range of -2048 to 2047.  
USINT  
USINT  
REQ  
NDR  
ST_NO  
NET_  
NO  
ERR  
STAT  
ACT  
BASE  
USINT  
USINT  
ST_N  
O
BASE  
SLOT  
CH  
SLOT  
CH  
BOOL[4]  
BOOL[4]  
BOOL[4]  
DATA  
TYPE  
DATA  
TYPE  
AVG_  
EN  
AVG_  
NUM  
AVG_  
EN  
Average Process Enable Specification Area  
- 1 is for the average processing. - 0 is for the sampling process.  
AVG_  
NUM  
Set a constant of the average processing ofthe number of times.  
- Setting range : 2 ~ 255  
USINT[4]  
BOOL  
When function block execution is completed with no error, 1 is written. During the scan which  
the execution condition has been made, 1 is continuing and at the next scan. 0 is written.  
Error Data Display Area  
- When error occurs during function block initialization, 1 is written and the operation comes  
to stop. During the scan which the execution condition has been made, 1 is continuing  
and at the next scan, 0 is written.  
Output  
NDR  
ERR  
BOOL  
Error Code Display Area  
- When error occurs during function block initialization, the error code number is written.  
Channel Operation Display Area  
- The channel specified after executing the function block initialization with no error is  
right, 1 is written and, on the non-specified channel, 0 is written.  
STAT  
ACT  
USINT  
BOOL[4]  
REMARK  
BOOL[4] and USINT[4] of data type means that the number of element is 4, and also this means the whole number of channels and channel number.  
4 - 7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
Data  
type  
Function  
block  
I/O  
Variable  
Descriptions  
Function Block Execution Request Area  
- The execution of read function block is requested in this area.  
- If the status to be connected with this area is satisfied on the program operation  
and input condition changes from low(0) to high(1), function block reading for the  
module is executed.  
Input  
REQ  
BOOL  
The location number of the slot on which the communication module of the master  
station is mounted.  
- Setting range: 0 to 7  
NET_  
NO  
USINT  
USINT  
USINT  
USINT  
BOOL[8]  
ADR3RD  
REQ  
NDR  
NET_  
NO  
ERR  
STAT  
The station number of the communication module which a remote I/O station has.  
- Setting range : 0 to 63  
ST_NO  
BASE  
SLOT  
CH  
ST_N  
O
BASE  
DATA  
Base Module Location Number Area  
-The base No. on which A/D conversion module is mounted is written on this area.  
-Setting range : 0 to 3  
SLOT  
CH  
Slot Location Number Area  
- The slot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
Available Channel Specification Area  
- Available channels are specified in this area.  
- Enabled channels are specified to 1 and disabled channels are specified to 0.  
Output  
When function block execution is completed with no error, 1 is written. During the scan  
which the execution condition has been made, 1 is continuing and at the next scan. 0  
is written.  
NDR  
ERR  
BOOL  
Error Data Display Area  
- When error occurs during the execution of function block reading, 1 is written and  
the operation come s to stop. During the scan which the execution condition has  
been made, 1 is continuing and atthe next scan, 0 is written.  
BOOL  
Error Code Display Area  
- When error occurs during the execution of function block reading, the error code  
number is written.  
STAT  
ACT  
USINT  
BOOL[8]  
INT[8]  
Channel Operation Display Area  
- The channel specified after executing the function block reading with no error is  
right, 1 is written and, on the non-specified channel, 0 is written.  
A/D Conversion Value Output Area  
- Output data range : -48 ~ 4047 or–2048 ~ 2047  
DATA  
REMARK  
BOOL[8] and USINT[8] of data type means that the number of element is 8, and also this means the whole number of channels and channel number.  
4 - 8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
Data  
type  
Function  
block  
I/O  
Variable  
Descriptions  
Function Block Execution Request Area  
- The execution of read function block is requested in this area.  
- If the status to be connected with this area is satisfied on the program operation  
and input condition changes from low(0) to high(1), function block reading for the  
module is executed.  
Input  
REQ  
BOOL  
The location number of the slot on which the communication module of the master  
station is mounted.  
- Setting range: 0 to 7  
NET_  
NO  
USINT  
ADR62RD  
REQ  
NDR  
NET_  
NO  
ERR  
STAT  
The station number of the communication module which a remote I/O station has.  
- Setting range : 0 to 63  
ST_NO  
BASE  
SLOT  
CH  
USINT  
USINT  
USINT  
BOOL[4]  
BOOL  
ST_N  
O
BASE  
DATA  
Base Module LocationNumber Area  
-The base No. on which A/D conversion module is mounted is written on this area.  
-Setting range : 0  
SLOT  
CH  
Slot Location Number Area  
- The slot No. on which A/D conversion module ismounted is written on this area.  
- Setting range: 0 to 7  
Available Channel Specification Area  
- Available channels are specified in this area.  
- Enabled channels are specified to 1 and disabled channels are specified to 0.  
Output  
When function block execution is completed with no error, 1 is written. During the scan  
which the execution condition has been made, 1 is continuing and at the next scan. 0  
is written.  
NDR  
Error Data Display Area  
- When error occurs during the execution of function block reading, 1 is written and  
the operation come s to stop. During the scan which the execution condition has  
been made, 1 is continuing and atthe next scan, 0 is written.  
ERR  
BOOL  
Error Code Display Area  
- When error occurs during the execution of function block reading, the error code  
number is written.  
STAT  
ACT  
USINT  
BOOL[4]  
INT[4]  
Channel Operation Display Area  
- The channel specified after executing the function block reading with no error is  
right, 1 is written and, on the non-specified channel, 0 is written.  
A/D Conversion Value Output Area  
- Data output range : -48 ~ 4047  
DATA  
REMARK  
BOOL[4] and USINT[4] of data type means that the number of element is 4, and also this means the whole number of channels and channel number.  
4 - 9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 4. FUNCTION BLOCK  
4.4 Errors on Function Block  
This shows errors and resolutions in accordance with them.  
Function block  
Read  
STAT  
No.  
Local  
Descriptions  
Initiali-za  
Resolutions  
/Remote  
Array Single  
tion  
type  
type  
0
1
Operating with no fault  
-
О
О
О
Local  
Correct the number in accordance with the  
proper range  
The base location number is exceeding  
the proper setting range  
О
О
О
(See Section 4.2)  
2
3
H/W error of the base  
Contact the service station  
О
О
О
О
О
О
The slot location number is exceeding  
Set the right number to the slot loading the A/D  
the proper setting range  
The A/D conversion module on the slot is  
empty  
conversion module  
Load the A/D conversion module to the specified  
4
5
О
О
О
О
О
О
slot  
Load the A/D conversion module to the specified  
slot  
The module loaded isn't the A/D module  
The channel number is exceeding the  
proper range  
6
7
8
-
-
О
О
О
Specify the available channel correctly  
Contact the service station  
H/W error of the A/D conversion module  
О
О
О
О
The A/D conversion module's shared  
memory error  
Contact the service station  
Make a correct specification of the available  
channel on the initialize function block  
О
О
9
The available channels are not specified  
-
Average number exceeding the proper  
range  
Correct the value to the proper range  
(Number:2 to 255)  
17  
О
О
-
-
H/W error of the communication module  
for remote  
See the manual for the remote communication  
О
128  
Remote  
module  
Correct the number in accordance with the  
proper range  
The base location number is exceeding  
the proper setting range  
129  
131  
О
О
(See Section 4.3)  
The slot location number is exceeding  
the proper setting range  
Set the right number to the slot mounting the  
A/D conversion module  
О
О
О
О
Mount the A/D conversion module to the  
specified slot  
133  
135  
136  
The module loaded isn't the A/D module  
-
H/W error of the A/D conversion module  
The A/D conversion module's shared  
memory error  
Contact the service station  
О
О
О
О
Contact the service station  
Make a correct specification of the available  
channel on the initializing function block  
137  
145  
The available channels are not specified  
-
О
Average number exceeding the proper  
range  
Correct the value to the proper range  
(Number:2 to 255)  
О
-
4 - 10  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
Chapter 5. GM PROGRAMMING  
5.1 Programming for Distinction of A/D Conversion Value  
1) System Configuration  
GM3-  
GM3-  
G3F-  
G3Q-  
PA1A  
CPUA  
AD3A  
RY4A  
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 0turns %Q0.1.0 on.  
(2) The digital value more than 3,600 of channel 2 turns %Q0.1.1 on.  
(3) The digital value more than 2,000 or same, and less than 3,600 or same of channel 4 turns %Q0.1.2 on.  
(4) The digital value of the same as 2,800 of channel 4 turns %Q0.1.3 on.  
5 -1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
4) Programming Example  
READY  
AD_INI  
AD3INI  
AD_RD  
AD3RD  
START  
ROW 0  
REQ DONE  
DONE  
STAT  
ACT  
S
REQ  
Normal completion of  
execution condition  
A/D conve rsion reading  
ROW 1  
0
0
INI_STAT  
RD_STAT  
STAT  
ACT  
BASE  
SLOT  
CH  
BASE  
Error code display  
Base location  
Base location number  
specification  
Error code display in the processing  
of the read function block  
in the function block  
initialization  
numberspecification  
INI_ACT  
0
ROW 2  
0
Slot location number  
specification  
RD_ACT  
SLOT  
CH  
Slot location Number  
specification  
Channel operation  
display in the  
functionblock  
initialization  
Channel operation display in the process-  
ing of read function block initialization  
AD_CH  
ROW 3  
ROW 4  
AD_CH  
Available channel  
enable specification  
DATA DATA  
Available channel  
Data display of A/D conversion  
value of enabled channel  
enable specification  
DATATYPE  
TYPE  
Data type specification  
ROW 5  
ROW 6  
AVG_EN  
AVG-  
EN  
Average processing  
enable/disable specification  
AVG_NUM  
Average number  
value specification  
AVG-  
NUM  
ROW 7  
ROW 8  
ROW 9  
START  
LT  
GT  
GE  
EN  
IN1  
OUT  
OUT  
%Q0.1.0  
%Q0.1.1  
%Q0.1.2  
The digital value less than 2000 of channel 0 turns %Q0.1.0 on.  
DATA[0]  
A/D conversion  
value of channel 0  
ROW 10  
ROW 11  
2000  
IN2  
EN  
IN1  
ENO  
OUT  
ROW 12  
ROW 13  
The digital value more than 3600 of channel 2 turns %Q0.1.1 on.  
DATA[2]  
A/D conversion  
value of channel 2  
ROW 14  
ROW 15  
3600  
IN2  
ROW 16  
ROW 17  
ROW 18  
ROW 19  
ROW 20  
ROW 21  
ROW 22  
EN  
IN1  
ENO  
OUT  
The digital value more than 2000 or same, and less than 3600 or same  
of channel 4 turns %Q0.1.2 on.  
3600  
DATA[4]  
IN2  
A/D conversion  
value of channel 3  
2000  
IN3  
EQ  
EN  
IN1  
ENO  
OUT  
%Q0.1.3  
The digital value 2800 of channel 4 turns %Q0.1.3 on.  
DATA[4]  
A/D conversion  
value of channel 4  
2800  
ROW 23  
ROW 24  
IN2  
5 -2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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 select  
next Ch.  
To specify channel enable/disable  
5 -3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Var_Kind  
: VAR  
Data Type  
(AT Address) (Initial Value)  
: = { 1,0,1,0,1,0,0,0,0 }  
: 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  
: VAR  
: VAR  
: VAR  
: VAR  
: VAR  
: VAR  
: VA R  
: VAR  
: VAR  
: VAR  
: VAR  
: VAR  
: = { 0,1,0,1,0,0,0,0 }  
: = { 0,0,100,50,0,0,0,0 }  
: = { 0,0,0,0,0,0,0,0 }  
: ARRAY [0..7] OF BOOL  
: USINT  
: BOOL  
: BOOL  
START  
5 -4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
5.2 Programming for Display of A/D Conversion Value and Error Code on BCD  
Display  
1) System Configuration  
GM4-  
PA2A  
GM4-  
G4I -  
G4Q -  
G4Q -  
G4F-  
CPUA  
D22A  
RY2A  
RY2A  
AD3A  
Channel 0 (4~20mA)  
Initialize  
%I0.0.0  
%Q0.2.0  
~%Q0.2.7  
Digital BCD Display  
(displaying error)  
Display error code with BCD  
%I0.0. 1  
%I0.0.2  
Display A/D conversion  
data with BCD  
%Q0.1.0  
~%Q0.1.15  
Digital BCD Display  
(displaying A/D conver-  
sion value)  
2) Initial Settings  
(1) Available channel enabled : channel 0,  
(2) Analog input : current input(DC 4to 20 mA)  
(3) Average processing setting : 10 times  
3) Descriptions of the Program  
(1) %I0.0.0 turning On leads to the initial setting of A/Dconversion module.  
(2) %I0.0.1 turning On leads to displaying A/D conversion value on the BCD display.(%Q0.1.0 to %Q0.1.15)  
(3) %I0.0.2 turning On leads to displaying error code of function block on the BCD display,  
(%Q0.2.0 to %Q0.2.7)  
5 -5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
4) Programming  
AD_INI  
AD3INI  
AD_RD  
AD3AD  
%I0.0.0  
ROW 0  
START  
REQ DONE  
DONE  
S
REQ  
A/D conversion read has  
been completed normally.  
Execution condition and  
Initial Setting  
ROW 1  
0
0
INI_STAT  
RD_STAT  
STAT  
BASE  
SLOT  
CH  
BASE  
SLOT  
CH  
STAT  
Error code display in  
the processing of  
Base location  
number  
Error code display in the processing  
of the reading function block  
Base location number  
specification  
function block initialization specification  
ROW 2  
3
3
ACT INI_ACT  
CH0_DATA  
DATA  
Slot location number  
specification  
Slot location  
number  
Data display of A/D conversion  
value of enabled channel  
Channel operation display  
in the function block  
initialization  
specification  
ROW 3  
ROW 4  
AD_CH  
Available channel  
enable specification  
DATATYPE  
Data type specification  
0
Available channel  
enable specification  
TYPE  
ROW 5  
ROW 6  
AVG_EN  
Average processing  
AVG-  
EN  
enable/disable specification  
AVG_NUM  
Average number  
value specification  
This program converts the integer type of the A/D conversion value  
CH0_DATA into BCD data type to display onto the BDC digital display.  
AVG-  
NUM  
ROW 7  
ROW 8  
ROW 9  
INT_TO_BCD  
START  
%I0.0.1  
EN  
ENO  
OUT  
Command for displaying the  
A/D conversion value onto BCD  
digital display  
%QW0.1.0  
%QB0.2.0  
CH0_DATA IN1  
A/D conversion value  
of channel 0  
ROW 10  
USINT_TO_  
BCD  
%I0.0.2  
ROW 11  
ROW 12  
ROW 13  
EN  
ENO  
Command for displaying the  
error code onto BCD digital  
display  
RD_STAT  
Error code on the  
readingfunction  
IN1  
OUT  
This program converts the unsigned integer type of RD_STAT, which indicates the error status  
of the reading function block, into BCD data type to display it onto the BDC digital display.  
5 -6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
5) Input/output variables on the programming  
Variable Name  
Var_Kind  
Data Type  
(AT Address) (Initial Value)  
AD_CH  
: VAR  
: VAR  
: VAR  
: ARRAY [0..7] OF BOOL : = {1,0,0,0,0,0,0,0}  
AD_INI  
AD_RD  
: FB Instance  
: FB Instance  
AVG_EN  
CH0_DATA  
DATA  
: VAR  
: ARRAY [0..7] OF BOOL : = {1,0,0,0,0,0,0,0}  
: VAR  
: VAR  
: INT  
: DINT  
DATATYPE  
INI_ACT  
: VAR  
: VAR  
:ARRAY [0..7] OF BOOL : = {0,0,0,0,0,0,0,0}  
: ARRAY [0..7] OF BOOL  
INI_STAT  
AVG_NUM  
RD_STAT  
START  
: VAR  
: USINT  
: VAR  
: ARRAY [0..7] OF UINT : = {10,0,0,0,0,0,0,0}  
: VAR  
: VAR  
: USINT  
: BOOL  
5 -7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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-  
CPUA FUEA  
G4L-  
G4Q-  
RY2A  
GM4-  
PA1A  
Remote Station No.”1”  
G4L -  
RBEA  
GM4-  
PA1A  
G4F-  
AD3A  
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.  
(2)The digital value more than 2000 or same, and less than 10,000 or same of channel 0 turns %Q0.1.1 on.  
(3)The digital value more than 3,000 or same, and less than 12,000 of channel 0 turns %Q0.1.2 on.  
(4)The digital value more than 4,000 or same of channel 0 turns %Q0.1.3 on.  
5 -8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
4) Programming example  
It indicates on when operated normally,  
and off when operated abnormally or down  
from Live data of oppositestation  
AD_INI  
START  
S
READY  
START  
_NETO_LIV[1]  
ADR3INI  
Line 0  
REQ  
NDR  
Execution condition  
and initial setting  
Execution request when the  
initializing function block is not  
operated  
Line 1  
Line 2  
0
NDR SRD_ST  
NET_  
NO  
Error data display in processing of  
Slot location number of maste
communication module  
initialization function block  
INI_STAT  
1
ST_  
NO  
STAT  
Address of remote  
Error code display in processing of  
_NETO_RST[1] _NETO_LIV[1]  
MOVE  
MOVE  
ENO  
station  
0
initialization function block  
Line 3  
Line 4  
Line 5  
Line 6  
BASE  
ACT INI_ACT  
EN  
ENO  
EN  
Base location number o
A/D conversion modu
Normal channel operation  
It indicates information on  
power-off state of opposite  
station. If restored, it turns  
“Onand the “On” state is  
retained until the user  
program turns it Off.  
display  
0
_NETO_RST[1]  
0
SLOT  
OUT  
0
OUT  
READY  
IN1  
IN1  
Slot location number o
A/D conversion modul
AC_CH  
CH  
Available channel enable  
specification  
INPUT TYPE  
Conversion data range  
specification  
TYPE  
AD_RD  
START  
AD_RD.NDR  
_NETO_LIV[1]  
ADR3RD  
Line 7  
Line 8  
AVG_EN  
Average processing  
REQ  
NDR  
AVG  
_EN  
Execution request on the reading function  
block with communication intervals.  
enable/disable specification  
AVG_NUM  
0
ERR  
RD_ERR  
NET_  
NO  
AVG  
_NUM  
Slot location number of  
master communication module  
Average processing  
number specification  
Error data display  
RD_STAT  
Line 9  
1
ST_  
NO  
STAT  
Error code display at  
occurring error  
Address of remote station  
Line 10  
0
BASE  
ACT RD_ACT  
Base location number of  
Normal channel  
A/D conversion module  
operationdisplay  
Line 11  
Lind 12  
0
SLOT DATA AD_DATA  
Slot location number of  
A/D conversion value  
A/D conversion module  
AD_CH CH  
GE  
LT  
Line 13  
Line 14  
EN  
ENO  
OUT  
EN  
ENO  
OUT  
LT  
AD_DATA[0]  
2000  
EN  
ENO  
OUT  
AD_DATA[0]  
2000  
IN1  
IN2  
IN1  
IN2  
%
Q0.1.0  
The digital value less than  
2000 of channel 0  
AD_DATA[0]  
3000  
Line 15  
Line 16  
Line 17  
Line 18  
IN1  
IN2  
%
Q0.1.1  
turns %Q0.1.0 on.  
The digital value more than  
2000 or same, and less than  
3000 or same turns %Q0.1.1  
on.  
GE  
EN  
ENO  
OUT  
Line 19  
Line 20  
Line 21  
Line 22  
Line 23  
Line 24  
LT  
AD_DATA[0]  
3000  
EN  
ENO  
IN1  
IN2  
AD_DATA[0  
IN1  
OUT  
%
Q0.1.2  
The digital value more than  
3000 or same, and less  
4000  
than 4000 turns%Q0.1.2  
IN2  
on.  
GE  
EN  
ENO  
OUT  
Line 25  
Line 26  
AD_DATA[0]  
4000  
IN1  
IN2  
%
Q0.1.2  
The digital value more than  
12000 or same  
turns %Q0.1.3 on.  
Line 27  
Line 28  
5 -9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 5. GM PROGRAMMING  
5) Input/output variables used on the programming  
Variable Name  
AD_CH  
Var_Kind  
Data Type  
(AT Address) (Initial Value)  
: = {0,0,0,0,0,0,0,0}  
: VAR  
: VAR  
: VAR  
: ARRAY [0..7] OF BOOL  
: ARRAY [0..7] OF INT  
: FB Instance  
AD_DATA  
AD_INI  
AD_RD  
AVG_EN  
AVG_SEL  
: VAR  
: VAR  
: FB Instance  
: ARRAY [0..7] OF BOOL : = {1,0,0,0,0,0,0,0}  
: ARRAY [0..7] OF BOOL : = {1,0,0,0,0,0,0,0}  
: VAR  
: VAR  
INPUTTYPE  
INI_ACT  
:ARRAY [0..7] OF BOOL  
: ARRAY [0..7] OF BOOL  
: BOOL  
: = {0,0,0,0,0,0,0,0}  
: VAR  
INI_ERR  
: VAR  
: VAR  
INI_STAT  
AVG_NUM  
RD_STAT  
: USINT  
: VAR  
: VAR  
: ARRAY [0..7] OF UINT  
: ARRAY [0..7] OF BOOL  
: = {50,0,0,0,0,0,0,0}  
RD_ERR  
RD_STAT  
READY  
: VAR  
: BOOL  
: USINT  
: BOOL  
: VAR  
: VAR  
5 -10  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
(decimal)  
Default  
value  
Name  
Description  
Remark  
00  
01  
Channel enable  
Enable / disable channel operation  
h00  
h00  
R / W1  
R / W  
Output data range  
Assign the range of digital output value  
Average count  
processing enable  
Enable / disable average count processing  
per each channel  
02  
h00  
R / W  
03  
04  
05  
06  
07  
08  
09  
10  
11  
12  
Avg. count of Ch0  
Avg. count of Ch1  
Avg. count of Ch2  
Avg. count of Ch3  
Data enable  
Assign the count of Avg. processing of Ch0  
Assign the count of Avg. processing of Ch1  
Assign the count of Avg. processing of Ch2  
Assign the count of Avg. processing of Ch3  
Make enable the new setting of buffer 0 ~ 6  
Digital output value of channel 0  
h02  
h02  
h02  
h02  
h00  
-
R / W  
R / W  
R / W  
R / W  
R / W  
2
Ch0 digital output value  
Ch1 digital output value  
Ch2 digital output value  
Ch3 digital output value  
Channel status  
R
Digital output value of channel 1  
-
R
R
R
R
Digital output value of channel 2  
-
Digital output value of channel 3  
-
Indicate run/stop of each channel  
-
Shows error code when an error occurred  
on channel 0  
13  
14  
15  
16  
Ch0 error code  
Ch1 error code  
Ch2 error code  
Ch3 error code  
-
-
-
-
R
R
R
R
Shows error code when an error occurred  
on channel 1  
Shows error code when an error occurred  
on channel 2  
Shows error code when an error occurred  
on channel 3  
* All 16-bit data  
1
R/W  
R
: Read and write are both available  
: Read only  
2
6 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 6 Buffer memory  
6.1.2 G3F-AD3A / G4F-AD3A  
The buffer memory of G3F-AD3A and G4F-AD3A has same configuration.  
Address  
Default  
value  
Name  
Description  
Remark  
R / W  
(decimal)  
00  
Channel enable  
Enable / disable channel operation  
h00  
Input voltage / current Assign  
the  
type  
of  
analog input  
01  
02  
h00  
R / W  
type  
voltage / current  
Average count  
processing enable  
Enable / disable average count processing  
per each channel  
h00  
R / W  
03  
04  
05  
Avg. count of Ch0  
Avg. count of Ch1  
Avg. count of Ch2  
Assign the count of Avg. processing of Ch0  
Assign the count of Avg. processing of Ch1  
Assign the count of Avg. processing of Ch2  
h02  
h02  
h02  
R / W  
R / W  
R / W  
06  
07  
Avg. count of Ch3  
Avg. count of Ch4  
Assign the count of Avg. processing of Ch3  
Assign the count of Avg. processing of Ch4  
h02  
h02  
R / W  
R / W  
08  
09  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
Avg. count of Ch5  
Assign the count of Avg. processing of Ch5  
Assign the count of Avg. processing of Ch6  
Assign the count of Avg. processing of Ch7  
Make enable the new setting of buffer 0~10  
Digital output value of channel 0  
h02  
R / W  
R / W  
R / W  
R / W  
R
Avg. count of Ch6  
h02  
Avg. count of Ch7  
h02  
Data enable  
h00  
Ch0 digital output value  
Ch1 digital output value  
Ch2 digital output value  
Ch3 digital output value  
Ch4 digital output value  
Ch5 digital output value  
Ch6 digital output value  
Ch7 digital output value  
Channel status  
-
-
-
-
-
-
-
-
-
Digital output value of channel 1  
R
Digital output value of channel 2  
R
Digital output value of channel 3  
R
Digital output value of channel 4  
R
Digital output value of channel 5  
R
Digital output value of channel 6  
R
Digital output value of channel 7  
R
Indicate run/stop of each channel  
R
Shows error code when an error occurred  
on channel 0  
21  
22  
23  
24  
25  
26  
27  
28  
Ch0 error code  
Ch1 error code  
Ch2 error code  
Ch3 error code  
Ch4 error code  
Ch5 error code  
Ch6 error code  
Ch7 error code  
-
-
-
-
-
-
-
-
R
R
R
R
R
R
R
R
Shows error code when an error occurred  
on channel 1  
Shows error code when an error occurred  
on channel 2  
Shows error code when an error occurred  
on channel 3  
Shows error code when an error occurred  
on channel 4  
Shows error code when an error occurred  
on channel 5  
Shows error code when an error occurred  
on channel 6  
Shows error code when an error occurred  
on channel 7  
* All 16-bit data  
6 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
necessarychannel can reduce A/D conversion time.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch3 Ch2 Ch1 Ch0  
Channel enable  
Ignored  
0 : A/D conversion disable  
1 : A/D conversion enable  
Example) To enable channel 1 and 2 :  
Write h0006 ( turn on bit 1 and 2 ) to buffer 00, and sampling time is  
obtained as 2 ´ 5ms = 10ms.  
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’ ( -48 ~ 4047 ).  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch3 Ch2 Ch1 Ch0  
Assign the output data range  
0 : -48 ~ 4047  
Ignored  
1 : -2048 ~ 2047  
6 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch3 Ch2 Ch1 Ch0  
average processing enable  
0 : sampling processing  
Ignored  
1 : average processing  
4) Averaging count (Address 03 ~ 06)  
- Assign the number of count that is used for the calculation of average value.  
- Each channel can be set with different values.  
- If the channel is not designated as average processing in address 02, the setting of  
averaging count is ignored.  
Address  
03  
Description  
The number of averaging count of channel0.  
The number of averaging count of channel 1.  
The number of averaging count of channel 2.  
The number of averaging count of channel 3.  
04  
05  
06  
5) Data enable (Address 07)  
- By turning on the bit 0 of address 07, the contents of address 00 ~ 06 are validated.  
- While the bit 0 of address 07 is off, the A/D module operates according to the previous  
value of address 00 ~ 06 (channel enable, average processing enable, etc.) even if the  
contents of address 00 ~ 06 is changed by CPU module.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
DE  
Data enable  
0 : Ignore new data  
Ignored  
1 : Validate new data  
6 - 4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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 digital output value keeps the previous value.  
Address  
08  
Description  
The digital output value of channel 0  
The digital output value of channel 1  
09  
10  
11  
The digital output value of channel 2  
The digital output value of channel 3  
7) Channel status (Address 12)  
- Indicates a channel is operating or not by turning on/off the corresponding bit.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch3 Ch2 Ch1 Ch0  
Channel status  
0 : Not operating  
1 : Operating  
Ignored  
8) Error code (Address 13 ~ 16)  
- Shows an error code when an error occurred.  
Error code  
h00  
Description  
No error  
h11  
The averaging count setting error  
6 - 5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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 aredisabled.  
- 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  
necessarychannel can reduce A/D conversion time.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch7 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Ch0  
Channel enable  
0 : A/D conversion disable  
Ignored  
1 : A/D conversion enable  
Example) To enable channel 1, 2, and 3 for G4F-AD3A :  
Write h000D ( turn on bit 1, 2, and 3 ) to buffer 00, and sampling time is  
obtained as 3 ´ 5ms = 15ms.  
2) Input voltage/current type (Address 01)  
- This function is available with G3F-AD3A and G4F-AD3A. With the G6F-AD2A, the input  
voltage/current type isn’ t set by sequence program.  
- Turn on the corresponding bit as‘ 1to set the input voltage/current type as 0 ~ 10 VDC.  
The default value is ‘ 0’ ( 1 ~ 5 VDC and DC4~20mA ).  
- When use current input, be sure to set the corresponding bit as ‘ 0’ . Otherwise, the  
module will not operate normally.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch7 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Ch0  
Assign input voltage range  
0 : 1 ~ 5 VDC and DC4~20mA  
Ignored  
1 : 0 ~ 10 VDC  
6 - 6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch7 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Ch0  
average processing enable  
0 : sampling processing  
Ignored  
1 : average processing  
4) Averaging count (Address 03 ~ 10)  
- Assign the number of count that is used for the calculation of average value.  
- Each channel can be set with different values.  
- If the channel is not designated as average processing in address 02, the setting of  
averaging count is ignored.  
Address  
Description  
03  
04  
05  
The number of averaging count of channel 0.  
The number of averaging count of channel 1.  
The number of averaging count of channel 2.  
06  
07  
08  
The number of averaging count of channel 3.  
The number of averaging count of channel 4.  
The number of averaging count of channel 5.  
09  
10  
The number of averaging count of channel 6.  
The number of averaging count of channel 7.  
5) Data enable (Address 11)  
- By turning on the bit 0 of address 07, the contents of address 00 ~ 06 are validated.  
- While the bit 0 of address 11 is off, the A/D module operates according to the previous  
value of address 00 ~ 10 (channel enable, average processing enable, etc.) even if the  
contents of address 00 ~ 10 is changed by CPU module.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2 bit1  
bit0  
DE  
Data enable  
0 : Ignore new data  
Ignored  
1 : Validate new data  
6 - 7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
12  
Description  
The digital output value of channel 0  
The digital output value of channel 1  
13  
14  
15  
16  
The digital output value of channel 2  
The digital output value of channel 3  
The digital output value of channel 4  
17  
18  
19  
The digital output value of channel5  
The digital output value of channel 6  
The digital output value of channel 7  
7) Channel status (Address 20)  
- Indicates a channel is operating or not by turning on/off the corresponding bit.  
bit15 bit14 bit13 bit12 bit11 bit10 bit9  
bit8  
bit7  
bit6  
bit5  
bit4  
bit3  
bit2  
bit1  
bit0  
Ch7 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Ch0  
Channel status  
0 : Not operating  
Ignored  
1 : Operating  
8) Error code (Address 21 ~ 28)  
- Shows an error code when an error occurred.  
Error code  
h00  
Description  
No error  
The averaging count setting error  
h11  
6 - 8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
7 Buffer read/write instructions  
7.1 Buffer read instructions  
7.1.1 GET / GETP instruction  
K200S  
K300S  
K1000S  
FUN(230)  
FUN(231)  
GET  
GET, GETP  
Applicable CPU  
GETP  
Available devices  
Flag  
Instructions  
Steps  
Error Zero Carry  
(F110) (F111) (F112)  
M
P
K
L
F
T
C
S
D
#D Integer  
n1  
¡
GET  
S
D
¡
9
¡
GETP  
¡
¡
¡
¡*  
¡
¡
¡
¡
n2  
¡
Operand setting  
Slot number at which A/D  
module is mounted  
n1  
S
Input  
condition  
Start address of buffer  
memory to be read  
GET(P) n1  
S
D
n2  
Start address of CPU memory  
at which read data is stored  
D
n2  
Number of word to be read  
* Available only when do not use computer link module or data link module  
1) Functions  
- Reads the data of ‘ n2 words, which start at the address specified as ‘ S’ of buffer  
memory inside the special module mounted at the slot ‘ n1’ , and stores the data into the  
memory of CPU which begin with the device specified asD’ .  
Buffer memory  
CPU module  
of A/D module  
[ S ]  
[ D ]  
‘ n2 words  
‘ n2 words  
[ S+n2-1]  
[ D+n2-1 ]  
7 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
- Execution conditions  
Input condition  
GET  
Executed per scan  
Executed only once  
Executed per scan  
Executed only once  
GETP  
2) Program example  
- Program that reads address 14, 15 of buffer memory of the A/D module (G4F-AD3A)  
mounted at the slot 3, and stores them to the D0014, D0015 of CPU module.  
Input  
condition  
GET 00003 00014 D0014 00002  
- Program that reads address 09, 10 of buffer memory of the A/D module (G6F-AD2A) mounted  
at the slot 3, and stores them to the D0014, D0015 of CPU module.  
Input  
condition  
GET 00003 00009 D0014 00002  
G4F -AD3A  
(G6F-AD2A)  
Buffer memory  
of A/D module  
CPU module  
12(07)  
13(08)  
14(09)  
15(10)  
16(11)  
D0012  
D0013  
D0014  
D0015  
D0016  
2001  
1999  
2001  
1999  
2 words  
2 words  
7 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
7.1.2 RGET instructions  
K200S  
K300S  
K1000S  
RGET  
FUN(232)  
RGET  
Applicable CPU  
Available devices  
Flag  
Instructions  
Steps  
Error Zero Carry  
(F110) (F111) (F112)  
M
P
K
L
F
T
C
S
D
#D Integer  
sl  
¡
¡
st  
D
S
¡
¡
¡
¡
¡
¡
¡*  
¡
¡
¡
¡
¡
¡
¡
¡
¡
RGET  
13  
¡
¡
¡
n
SS  
¡*  
Input  
condition  
RGET sl st D S n SS  
Operand setting  
Type of remote special function  
module  
Upper  
byte  
Start address of buffer memory  
of A/D module of remote  
station  
sl  
S
Lower Slot number of Fnet module of  
byte self-station  
Upper Slot number of remote special  
byte function module  
st  
D
n
Number of words to be read  
Lower Station number of Fnet remote  
byte module  
Start address of destination device of self-  
station  
Device at which the link status  
is stored  
SS  
* Available only when do not use computer link module or data link module  
1) Functions  
- Reads the data of ‘ n2words, which starts at the address specified as S of buffer  
memory inside the special function module of remote station (station number & slot  
number is specified as ‘ st’ ) through the Fnet communication module (the slot number is  
specified as‘ sl’ ), and stores the data into devices which begin with the device specified  
as ‘ D’ . Then stores the link status into the device specified as ‘ SS’ of self-station.  
7 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
[ Remote station ]  
[ Self station ]  
Buffer memory  
of A/D module  
CPU module  
‘ n2’  
‘ n2’  
[ S ]  
[ D ]  
words  
words  
Fnet  
remote  
Fnet  
module  
[ S+n2-1 ]  
[ D+n2-1 ]  
module  
Station  
No = ‘ st’  
- Code of remote special function modules are as followings;  
Module  
Code  
G3F-AD3A  
G4F-AD3A  
G6F-AD2A  
h40  
hC0  
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 + n2 – 1 ] or [ D + n2 – 1 ] is exceeds the range of  
specified device.  
- Execution conditions  
Input condition  
RGET  
Executed only once  
Executed only once  
7 - 4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
[ System configuration ]  
Self-station  
GM4-  
PA2A  
K4P-  
15AS  
G4I-  
D22A  
G4I-  
D22A  
G4L-  
FUEA  
G4L-  
FUEA  
G4Q-  
RY2A  
Station  
No=h01  
Station  
No=h02  
slot 0  
slot 1  
slot 2  
slot 3  
slot 4  
Remote station  
GM3-  
G3L-  
G3I-  
G3F-  
G3Q-  
PA2A  
RBEA  
D22A  
AD3A  
RY2A  
Station  
No=h1D  
slot 0  
slot 1  
slot 2  
[ Example program ]  
Input  
condition  
RGET hC003 h011D D0300 00011 0008 M020  
sl’ :  
upper byte à the code of remote module is hC0  
lower byteà slot number of Fnet module of self station is h03  
st’ :  
upper byte à slot number of remote A/D module is h01  
lower byteà the station number of remote station is h1D  
7 - 5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
7.2 Buffer write instructions  
7.2.1 PUT / PUTP instructions  
K200S  
K300S  
K1000S  
FUN(234)  
FUN(235)  
PUT  
PUT, PUTP  
Applicable CPU  
PUTP  
Available devices  
Flag  
Instructions  
Steps  
Error Zero Carry  
(F110) (F111) (F112)  
M
P
K
L
F
T
C
S
D
#D Integer  
n1  
¡
PUT  
S
D
¡
9
¡
PUTP  
¡
¡
¡
¡*  
¡
¡
¡
¡
n2  
¡
Operand setting  
Slot number at which A/D  
module is mounted  
n1  
Input  
condition  
Start address of buffer memory  
at which data will be written  
D
D
PUT(P) n1  
D
S
n2  
Start address of source data of  
CPU module  
n2 Number of word to be written  
* Available only when do not use computer link module or data link module  
1) Functions  
Write the data of ‘ n2 words, which start at the address specified as ‘ S of CPU, and  
transfer the data into the block starting at the address specified as ‘ D’ of buffer memory  
inside the A/D module mounted at the slot number ‘ n1’ .  
Buffer memory  
CPU module  
of A/D module  
[ D ]  
[ S ]  
‘ n2 words  
‘ n2 words  
[ D+n2-1]  
[ S+n2-1 ]  
7 - 6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
- Execution conditions  
Input condition  
PUT  
Executed per scan  
Executed only once  
Executed per scan  
Executed only once  
PUTP  
2) Program example  
- Program that write 3 words of D0049 ~ D0051 of CPU module to the address 02 ~ 04 of  
buffer memory of the A/D module mounted at the slot 3.  
Input  
condition  
PUTP 00003 00002 D0049 00003  
Buffer memory  
CPU module  
of A/D module  
01  
02  
03  
04  
05  
D0048  
D0049  
D0050  
D0051  
D0052  
h0003  
h0020  
h0020  
h0003  
h0020  
h0020  
3 words  
3 words  
7 - 7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
7.2.2 RPUT instructions  
K200S  
K300S  
K1000S  
RPUT  
FUN(233)  
RPUT  
Applicable CPU  
Available devices  
Flag  
Instructions  
Steps  
Error Zero Carry  
(F110) (F111) (F112)  
M
P
K
L
F
T
C
S
D
#D Integer  
sl  
¡
¡
st  
S
¡
RPUT  
13  
¡
D
¡
¡
¡
¡
¡
¡
¡*  
¡
¡
¡
¡
¡
¡
¡
¡
¡
¡
n
SS  
¡*  
Input  
condition  
RPUT sl st  
S
D
n
SS  
Operand setting  
Type of remote special function  
module  
Upper  
byte  
Start address of buffer memory  
of A/D module of remote  
station  
sl  
D
Lower Slot number of Fnet module of  
byte self-station  
Upper Slot number of remote special  
byte function module  
st  
S
n
Number of words to be read  
Lower Station number of Fnet remote  
byte module  
Start address of device at which source  
data is stored (self-station)  
Device at which the link status  
is stored  
SS  
* Available only when do not use computer link module or data link module  
1) Functions  
- Write the data of ‘ n words which start at the device specified as ‘ S to the block which  
begin with the address specified as ‘ Dof buffer memory inside the special function  
module of remote station. (station number & slot number is specified as ‘ st’ ) through the  
Fnet communication module. Then stores the link status into the device specified as ‘ SS’  
of self-station.  
7 - 8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
[ Remote station ]  
[ Self station ]  
Buffer memory  
of A/D module  
CPU module  
‘ n2’  
‘ n2’  
[ D ]  
[ S ]  
words  
words  
Fnet  
remote  
Fnet  
module  
[ D+n2-1 ]  
[ S+n2-1 ]  
module  
Station  
No = ‘ st’  
- Code of remote special function modules are as followings;  
Module  
Code  
G3F-AD3A  
G4F-AD3A  
G6F-AD2A  
h40  
hC0  
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 + n2 – 1 ] or [ D + n2 – 1 ] is exceeds the range of  
specified device.  
- Execution conditions  
Input condition  
RPUT  
Executed only once  
Executed only once  
7 - 9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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. The link status will be stored  
at M020 of self station.  
[ System configuration ]  
Self-station  
GM4-  
PA2A  
K4P-  
15AS  
G4I-  
D22A  
G4I-  
D22A  
G4L-  
FUEA  
G4L-  
FUEA  
G4Q-  
RY2A  
Station  
No=h01  
Station  
No=h02  
slot 0  
slot 1  
slot 2  
slot 3  
slot 4  
Remote station  
GM3-  
G3L-  
G3I-  
G3Q-  
G3F-  
PA2A  
RBEA  
D22A  
RY2A  
AD3A  
Station  
No=h0E  
slot 0  
slot 1  
slot 2  
[ Example program ]  
Input  
condition  
RPUT hC002 h020E D0200 00011 0010 M020  
sl’ :  
upper byte à the code of remote module is hC0  
lower byteà slot number of Fnet module of self station is h02  
st’ :  
upper byte à slot number of remote A/D module is h02  
lower byteà the station number of remote station is h0E  
7 - 10  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 7 Buffer read/write instructions  
Remarks  
The structure ofSS’ (Link status) ofRPUT/RGET instruction is as following;  
bit15  
bit14  
bit13  
bit12  
bit11  
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.  
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.  
7 - 11  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Buffer  
No. of  
words  
Data  
number  
memory  
Execution  
condition  
Channel to be used  
PUT 0002 00000 h000B 00001  
PUT 0002 00001 00000 00001  
PUT 0002 00002 h0009 00001  
PUT 0002 00003 00100 00001  
PUT 0002 00006 00050 00001  
PUT 0002 00007 00001 00001  
(use channel 0, 1, and 3)  
Assign analog input  
range (DC4 ~ 20mA)  
Assign average  
processing channel  
(channel 0 and 3)  
Set Averaging count of  
channel 0 (100 times)  
Set Averaging count of  
channel 3 (50 times)  
Validate the new setting  
value  
Slot  
number  
Buffer  
memory  
Destination  
of data  
No. of  
words  
Execution  
condition  
Read the A/D converted  
value of channel 0, and  
store it into D0108  
GET 0002 00008 D0108 00001  
GET 0002 00009 D0109 00001  
GET 0002 00011 D0111 00001  
GET 0002 00012 D0112 00001  
GET 0002 00013 D0113 00001  
GET 0002 00014 D0114 00001  
GET 0002 00016 D0116 00001  
Read the A/D converted  
value of channel 1, and  
store it into D0109  
Read the A/D converted  
value of channel 3, and  
store it into D0111  
Read the operating  
status, and store it into  
D0112  
Read the error code of  
channel 0, and store it  
into D0113  
Read the error code of  
channel 3, and store it  
into D0114  
Read the error code of  
channel 4, and store it  
into D0116  
8 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 MK Programming  
8.1.2 G3F-AD3A / G4F-AD3A  
Slot  
number  
Buffer  
memory  
No. of  
words  
Data  
Execution  
condition  
Channel to be used  
(use channel 0, 3, and 4)  
PUT 0002 00000 h0019 00001  
PUT 0002 00001 00000 00001  
PUT 0002 00002 h0009 00001  
PUT 0002 00003 00100 00001  
PUT 0002 00006 00050 00001  
PUT 0002 00011 00001 00001  
Assign analog input  
range (DC4 ~ 20mA)  
Assign average  
processing channel  
(channel 0 and 3)  
Set Averaging count of  
channel 0 (100 times)  
Set Averaging count of  
channel 3 (50 times)  
Validate the new setting  
value  
Slot  
number  
Buffer  
memory  
Destination  
of data  
No. of  
words  
Execution  
condition  
Read the A/D converted  
value of channel 0, and  
GET 0002 00012 D0112 00001  
GET 0002 00015 D0115 00001  
GET 0002 00016 D0116 00001  
GET 0002 00020 D0120 00001  
GET 0002 00021 D0121 00001  
GET 0002 00024 D0124 00001  
GET 0002 00025 D0125 00001  
store it into D0112  
Read the A/D converted  
value of channel 3, and  
store it into D0115  
Read the A/D converted  
value of channel 4, and  
store it into D0116  
Read the operating  
status, and store it into  
D0120  
Read the error code of  
channel 0, and store it  
into D0121  
Read the error code of  
channel 3, and store it  
into D0124  
Read the error code of  
channel 4, and store it  
into D0125  
8 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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-  
G3I-  
G3Q- G3Q-  
(A/D module is mounted on slot 0)  
PA2A 30AS AD3A D22A RY4A RY4A  
2) Initial setting for A/D module  
Buffer memory  
address  
Data to be  
No  
Item  
Setting  
written  
h0015  
h0000  
h0014  
h0064  
h0032  
h0001  
1
2
3
Channel to be used  
Ch 0, 2, 4  
DC4~20mA  
Ch 2, 4  
0
1
Analog input type and range  
Averagingprocessingenable  
2
Ch2 : 100 times  
Ch 4 : 50 times  
5
4
5
Averagingcount  
Validate setting  
7
11  
3) Description of program  
Turns on P0010 bit when the digital value of channel 0 is less than 2000  
Turns on P0011 bit when the digital value of channel 2 is greater than 3600  
Turns onP0012 bit when the digital value of channel 4 is in therange of 2000 ~ 3600  
Turns on the P0013 bit when the digital value of channel 4 is 2800.  
8 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 MK Programming  
4) Programming  
Slot  
number  
Buffer  
memory  
No. of  
words  
Data  
F0012  
Channel to be used  
(use channel 0, 2, and 4)  
PUT 0000 00000 h0015 00001  
PUT 0000 00001 00000 00001  
PUT 0000 00002 h0014 00001  
Assign analog input  
range (DC4 ~ 20mA)  
Assign average  
processing channel  
(channel 2 and 4)  
Set Averaging count of  
channel 2 (100 times)  
PUT 0000 00005 00100 00001  
PUT 0000 00007 00050 00001  
PUT 0000 00011 00001 00001  
Set Averaging count of  
channel 4 (50 times)  
Validate the new setting  
value  
Slot  
Buffer  
Destination  
of data  
No. of  
words  
number  
memory  
F0010  
Read the A/D converted  
value of channel 0, and  
store itinto D0012  
GET 0000 00012 D0012 00001  
GET 0000 00014 D0014 00001  
GET 0000 00016 D0016 00001  
GET 0000 00021 D0021 00001  
GET 0000 00023 D0023 00001  
GET 0000 00025 D0025 00001  
Read the A/D converted  
value of channel 2, and  
store it into D0014  
Read the A/D converted  
value of channel 4, and  
store it into D0016  
Read the error code of  
channel 0, and store it  
into D0021  
Read the error code of  
channel 2, and store it  
into D0023  
Read the error code of  
channel 4, and store it  
into D0025  
P0010  
Turn on P0010 when  
D0012 is greater than 2000  
= D0021 00000  
= D0023 00000  
= D0025 00000  
> 02000 D0012  
and no error at Ch 0  
P0011  
Turn on P0011 when  
D0014 is less than 3600  
< 03600 D0014  
and no error at Ch 2  
P0012  
P0013  
Turn on P0012 when  
D0016 is 2000~3600 and  
<= 02000 D0016  
= 02800 D0016  
>= 03600 D0016  
no error at Ch 4  
Turn on P0013 when  
D0016 is 2800 and no  
error at Ch 4  
END  
8 - 4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 MK Programming  
8.2.2 Output the analog input value by 7-segment display  
1) System configuration  
P000  
P001  
P002  
GM6- K3P-  
PAFB 07AS D22A TR2A AD2A  
G6I-  
G6Q-  
G6F-  
(A/D module is mounted on slot 2)  
Channel 0 : Analog input (DC4 ~ 20mA  
Initialize A/D module  
Read digital value  
P0000  
P0001  
P0002  
Output digital value to  
BCD display  
7-segment display  
2) Initial setting for A/D module  
Buffer memory  
address  
Data to be  
written  
No  
Item  
Setting  
1
Channel to be used  
Ch 0  
0
h0001  
2
3
4
Analog input type and range  
Averagingprocessingenable  
Averagingcount  
DC4~20mA  
Ch 0  
1
2
3
h0000  
h0001  
h000A  
Ch 0 : 10 times  
5
Validate setting  
7
h0001  
3) Description of program  
When the P0000 is on, initialize the A/D module.  
When the P0001 is on, read the digital value of channel 0 from buffer memory of A/D  
module and store it into the D0008.  
When the P0002 is on, outputthe contents of D0008 to the 7-segment display.  
8 - 5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 MK Programming  
4) Programming  
Slot  
number  
Buffer  
memory  
No. of  
words  
Data  
P0000 M0000  
Channel to be used  
(use channel 0)  
PUT 0002 00000 h0001 00001  
PUT 0002 00001 00000 00001  
Assign digital output  
range (-48 ~ 4047)  
Assign average  
processing channel  
PUT 0002 00002 h0001 00001  
PUT 0002 00003 00010 00001  
(channel 0)  
Set Averaging count of  
channel 0 (10 times)  
Validate the new setting  
value  
PUT 0002 00007 00001 00001  
SET M0000  
Set M0000 to execute  
above program block  
only one time  
Slot  
number  
Buffer  
memory  
Destination  
of data  
No. of  
words  
M0000  
P0001  
Read the A/D converted  
value of channel 0, and  
GET 0000 00008 D0008 00001  
GET 0000 00013 D0013 00001  
store it into D0008  
Read the error code of  
channel 0, and store it  
into D0013  
P0002  
Convert digital value to  
BCD format and output it  
BCD D0010 P001  
to P001 (7 segment  
display)  
END  
8 - 6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 MK Programming  
8.2.3 An A/D module mounted on a remote station  
1) System configuration  
Station  
number : 01  
P000  
P001  
P002  
GM4-  
K4P-  
G4X-  
G4Q-  
G4L-  
GM4-  
G4L-  
G4F-  
G4Q-  
PA2A 15AS D22A TR2A FUEA  
PA2A RBEA AD3A TR2A  
Slot 0  
Start switch for A/D  
conversion  
P0000  
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  
Buffer memory  
address  
Data to be  
written  
No  
Item  
Setting  
1
Channel to be used  
Ch 0  
0
h0001  
2
3
4
Analog input type and range  
Averagingprocessingenable  
Averagingcount  
0 ~ 10 VDC  
Ch 0  
1
2
3
h0001  
h0001  
h000A  
Ch 0 : 10 times  
5
Validate setting  
7
h0001  
3) Description of program  
When the digital converted value of channel 0 of remote A/D module is less than  
2000, turns on P0010of self-station.  
When the digital converted value of channel 0 of remote A/D module is 2000 ~ 2999,  
turns on P0011 of self-station.  
When the digital converted value of channel 0 of remote A/D module is 3000 ~ 3999,  
turns on P0012 of self-station.  
When the digital converted value of channel 0 of remote A/D module is 4000 or  
greater, turns on P0013 of self-station.  
8 - 7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 8 MK Programming  
4) Programming  
P0000  
Channel to be used  
(use channel 0)  
MOVP 00001 D0000  
MOVP 00001 D0001  
Assign analog input  
range (0 ~ 10 VDC)  
Assign average  
processing channel  
(channel 0)  
MOVP 00001 D0002  
MOVP 00010 D0003  
Set Averaging count of  
channel 0 (10 times)  
Remote code  
of A/D module  
Slot number  
of A/D module  
Start address  
of data  
Buffer  
memory  
No. of  
words  
Link status  
Send the setting data to  
the remote A/D module  
RPUT hC002 h0001 D0000 00000 00004 M000  
via Fnet module at slot 2  
Slot number of  
Fnet module  
Stationnumberof  
Fnet remote module  
P0000  
Validate the setting of  
A/D module  
MOVP 00001 D0011  
Send the setting data to  
the remote A/D module  
RPUT hC002 h0001 D0011 00011 00001 M001  
via Fnet module at slot 2  
Remote code  
Slot number  
Start address  
of data  
Buffer  
No. of  
words  
Link status  
of A/D module  
of A/D module  
memory  
P0000 F0093  
Read buffer 12 of remote  
A/D module per 1  
RGET hC002 h0001 D0012 00012 00001 M002  
second, and store it to  
D0012 of self -station  
Slot number of  
Fnet module  
Stationnumberof  
Fnet remote module  
P0000  
P0010  
Turns on P0010 when  
the digital value is less  
<
2000 D0012  
than 2000  
P0011  
P0012  
Turns on P0011 when  
the digital value is 2000  
>= D0012 2000  
>= D0012 3000  
<
<
D0012 3000  
~ 2999  
Turns on P0012 when  
the digital value is 3000  
D0012 4000  
~ 3999  
P0013  
END  
Turns on P0013 when  
the digital value is 4000  
>= D0012 4000  
orgreater  
8 - 8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 9 Dimension  
9 Dimension  
9.1 G3F-AD3A  
Unit : mm  
9 - 1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 9 Dimension  
9.2 G4F-AD3A  
Unit : mm  
9 - 2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 9 Dimension  
9.3 G6F-AD2A  
Unit : mm  
9 - 3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Chapter 9 Dimension  
9 - 4  
Download from Www.Somanuals.com. All Manuals Search And Download.  

Life Fitness Stepper Machine LS9100 User Manual
Linear Home Security System DF 31 EC User Manual
Lowrance electronic SONAR X 65 User Manual
Mackie Stereo Amplifier UP4000 User Manual
Magnadyne Car Stereo System MV VCRUSER02 User Manual
Makita Tool Storage HM0810 User Manual
Mamp;S Systems Intercom System DMC 10 User Manual
Marshall electronic Microphone MXL User Manual
MartinLogan Indoor Fireplace 33ISDG User Manual
Melissa Blender 646 051 User Manual