Analog input-AD3A, AD2A PDF
Analog input-AD3A, AD2A PDF
G3F-AD3A
G4F-AD3A
G6F-AD2A
LG Industrial Systems
Safety Precautions
Safety Precautions
Be sure to read carefully this safety precaution given in data sheet and user’s manual before
operating the module and follow them.
The precautions explained here only apply to the G3F-AD3A, G4F-AD3A, and G6F-AD2A.
For safety precautions on the PLC sys tem, please see the MASTER-K 200S/300S/1000S
User’s manual and the GLOFA GM3/4/6 User’s manual.
A precaution is given with a hazard alert triangular symbol to call your attention, and precautions
are represented as follows according to the degree of hazard.
However, a precaution followed with CAUTION can also result in serious conditions.
Both of two symbols indicate that an important content is mentioned, therefore, be sure to
observe it.
CAUTION CAUTION
Do not run I/O signal lines near to high Operate the PLC in the environment
voltage line or power line. Separate conditions given in the general
them as 100mm or more as possible. specifications
Otherwise, noise can cause module
If operation in other environment not
malfunction.
specified, it can cause an electric shock,
a fire, malfunction or damage or
degradation of the module.
Wiring Precautions
CAUTION
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.
CAUTION WARNING
Do not contact the terminals while the Do not separate the module from the
power is applied. It can cause printed circuit board (PCB), or remodel
malfunction. the module. Th ey can cause disorder,
malfunction, damage of the module or a
When cleaning or driving a terminal
fire.
screw, perform them after the power
has been turned off. When mounting or dismounting the
module, perform them after the power
Do not perform works while the power
has been turned off.
is applied, which can cause disorder
or malfunction.
CAUTION
Chapter 1. INTRODUCTION
Chapter 2. SPECIFICATIONS
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
Chapter 5. GM PROGRAMMING
Chapter 9. DIMENSIONS
1 Introduction
The A/D conversion m o d u le is to convert an analog input sig nal (voltage or current) from
external devices into a 12-bitsigned binary digital value.
1.1 Features
- G 6 F-A D 2 A : 4 channels
- G 4 F-AD3A and G3F -A D 3 A : 8 channels
2) The select of voltage input or current input is possible by channel of A/D m o d u le.
3) The unlim ited num ber of A/D m o d u les can be m ounted on a base board.
The m axim u m n u m b e r o f A/D m o d u les depends on the power capacity of power supply
m o d u le.( In case of use to the G6F-AD2A withG6F -DA2V and G6F -D A 2 I,itis depends
on the power capacity of the GM6-PAFB)
1-1
Chapter 1 Introduction
1.2 Terminology
value
tim e
Because the CPU module of PLC can handle dig ital value only, the analog signal from
external devices should be converted into analog signals with A/D m o d u le.
In the other hand, the digital output of CPU m o d u le should be converted into analog
signal to be used for external devices. The D/A module (d igital-analog converter) is used
for converting digital values into analog output (voltage or current).
value
tim e
1-2
Chapter 1 Introduction
W h e n the analog input is voltage input, the K4F-A D 3 A a n d K 7 F-A D 3 A h a s two input
r a n g e s s u c h a s 1 ~ 5 V D C a n d 0 ~ 10VDC. The K3F -A D 2 A h a s three input range such as
1 ~ 5 V D C , 0 ~ 10VDC, and –1 0 ~ 1 0 V D C .
W ith all analog input range, the digital output is varied in the range of 0 ~ 4000. Therefore,
the resolution of the A/D m o d u le is obtained by following equation;
1) 1 ~ 5 V D C range
W h e n the A/D module operates with 1 ~ 5VDC range, the 1VDC analo g input is
converted to digital 0, and the 5VD C a n a log input is converted into digital output 4000.
Therefore, the resolution per 1 digital value is 0.001VDC.
4000
2002
D igital output value
2001
2000 2000
1999
1998
0 2.998V
1V 3V 5V 3.002V
Analog input voltage 2.999V 3.001V
3.000V
1-3
Chapter 1 Introduction
2) 0 ~ 10VDC range
When the A/D m o d u le operates with 0 ~ 10VDC range, the 0VDC analog input is
converted to digital 0, and the 10VDC analog input is converted into digital output 4000.
Therefore, the resolution per 1 digital value is 0.0025VDC.
4000
2002
D igital output value
2001
2000 2000
1999
1998
0 4.995V
0V 5V 10V 5.005V
Analog input voltage 4.9975V 5.0025V
5.000V
W h e n the A/D m odule operates with –1 0 ~ 10VDC range, the 1 0 V D C a n a log input is
converted to digital 0, and the 1 0V D C a n a log input is converted into digital output 4000.
Therefore, the resolution per 1 digital value is 0.005VDC.
4000
2002
D igital output value
2001
2000 2000
1999
1998
0 -0.010V
-10V 0V 10V 0.010V
Analog input voltage -0.005V 0.005V
0.000V
1-4
Chapter 1 Introduction
W ith all analog input range, the digital output is varied in the range of 0 ~ 4000. Therefo re,
the resolution of the A/D m o d u le is obtained by following equation;
1) 4 ~ 2 0 m A range
4000
2002
D igital output value
2001
2000 2000
1999
1998
0 11.992mA 12.008mA
4mA 12mA 20mA
Analog input current 11.996mA 12.004mA
12.000mA
1-5
Chapter 2. SPECIFICATIONS
Chapter 2 . SPECIFICATIONS
Table 2.1 shows the general specifications of GLOFA GM series and MASTER-K series.
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 degree 2 means the condition in which normally, only non-conductive pollution occurs.
Occasionally, however, a temporary conductivity caused by condensation shall be expected.
2 -1
Chapter 2. SPECIFICATIONS
Specifications
Items
G3F-AD3A G4F -AD3A
1 ~ 5VDC 1 mV (1/4000)
Maximum
0 ~ 10VDC 2.5 mV (1/4000)
resolution
DC 4 ~20mA 4㎂ (1/4000)
! CAUTION
The manufacturer set value of A/D conversion module has been current input mode.
2 -2
Chapter 2. SPECIFICATIONS
2) G6F-AD2A
Items Specifications
1 ~ 5VDC 1 mV (1/4000)
+5VDC 40mA
Current
+15VDC 50mA
Consumption
-15VDC 20mA
Weight 200g
! 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
Chapter 2. SPECIFICATIONS
The names of parts and functions of the A/D conversion module are shown as below.
2.3.1 G3F-AD3A
2 -4
Chapter 2. SPECIFICATIONS
2.3.2 G4F-AD3A
No Description
← RUN LED
2 -5
Chapter 2. SPECIFICATIONS
2.3.3 G6F-AD2A
No Description
← RUN LED
DC 1~5V 1 2 3
J2
J1
Voltage DC 0~10V 1 2 3
J2
J1
DC-10~10V 1 2 3
J2
J1
Current DC 4~20mA 1 2 3
J2
2 -6
Chapter 2. SPECIFICATIONS
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.
4047
4000
3000
Digital
Output 2000
Value
1000
0
-48
-0.12V 10.12V
DC 0 ~ 10V 0V 5V 10V
Analog 0.952V 5.048V
DC 1 ~ 5V 1V 3V 5V
Input
3.808 ㎃ 20.192 ㎃
DC 4 ~ 20 ㎃ 4 ㎃ 12 ㎃ 20 ㎃
REMARK
1. The analog output value of over 4047 or –48 is fixed as 4047 or –48.
2. Keep the input voltage and current not to exceed +15V and 25mA.
2 -7
Chapter 2. SPECIFICATIONS
2047 4047
2000 4000
1000 3000
Digital
0
Output 2000
Value
-1000 1000
-2000 0
-2048 -48
-0.12V 10.12V
DC 0 ~ 10V 0V 5V 10V
Analog
DC 1 ~ 5V 0.952V 1V 3V 5V 5.048V
Input
-10.24V 10.24V
DC-10 ~ 10V -10V 0V 10V
3.808㎃ 20.192㎃
DC 4 ~ 20 ㎃ 4㎃ ㎃ 12 20 ㎃
[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 or –2048).
2. Keep the input voltage and current not to exceed +15V and 25mA.
- Off : Voltage
On
(This switch is located
on the side of module)
1 2 3 4 5 6 7 8
2 -8
Chapter 2. SPECIFICATIONS
2) G6F-AD2A
For voltage input, the corresponding input is selected by selection switch and selected input voltage range is
same through whole channels.
1) Voltage input range : DC 1~5V
Digital output value for input voltage is shown as follows.
Input range selection
Analog input voltage (V)
switch
0.952 1 2 3 4 5 5.048
11
J1
2 -9
Chapter 2. SPECIFICATIONS
- 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
2) G6F-AD2A
Digital output value for input voltage is shown as follows.
Input range selection
Analog input current (mA)
switch
3.808 4 8 12 16 20 20.192
11
J1
2 - 10
Chapter 2. SPECIFICATIONS
- On : Current
- Off : Voltage On
(제품의 좌측면에 위치)
1 2 3 4 5 6 7 8
CH 0 1 2 3 4 5 6 7 채널 번호
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..
Analog input
Voltage DC1~ 5V 0.952 1 2 3 4 5 5.048
Current DC4 ~ 20mA 3.808 4 8 12 16 20 20.192
-48 0 1000 2000 3000 4000 4047
Digital output value
-2048 -2000 -1000 0 1000 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 +
+ V+ V+
1 2 3 I+ I+
Analog Input Analog Input
J2 COM COM
2 - 11
Chapter 2. SPECIFICATIONS
2009
2008
2007 ② ③
2006
Digital output value
2005
2004
2003
2002
2001
①
2000
Digital
Input
No output Resolution Analog input value
range
value
5.000 5.0025 5.005 5.0075
ℵ DC 0~10V 2.5 mV ~ ~ ~ ~
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 ~ 1mV ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
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
2) G6F-AD2A
2009
2008
2007 ③ ④
2006
Digital output value ②
2005
2004
2003
2002
2001
2000 ①
Digital
No Input range output Resolution Analog input value
value
0.000 0.005
ℵ DC-10~10V 5mV ~ ~
0.005 0.010
2 - 12
Chapter 2. SPECIFICATIONS
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.
The process time when 4 channels is used, for example, will be 20 msec = 4 × 5 ms
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
Chapter 3 Installation and wiring
1) Ambiance requirements
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.
① 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
Chapter 3 Installation and wiring
3.2 Wiring
V+ R J1
I+ R 1 2 3
COM R
*1 J2
-15V
V+ R
I+ R
COM R
*1
FG
G6F-AD2A
*2
② Current input
V+ R J1
I+ R 1 2 3
COM R
*1 J2
-15V
V+ R
I+ R
COM R
*1
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
Chapter 3 Installation and wiring
2) G3F-AD3A / G4F-AD3A
① Voltage input
Voltage/current
selection switch Voltage range
CH0 selection switch
R
R R
R
R
*1
CH7
R
R
R
*1
*2
② Current input
Voltage/current
Voltage range
CH0 selection switch
selection switch
R
R R
R R
*1
CH7
R
R
R
*1
*2
3-3
Chapter 4. FUNCTION BLOCK
This shows function block for A/D conversion module on the GMWIN.
A kind of function block is as follows.
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)
G3F – AD3A
1. Special.3fb Function block
. AD3INI Insertion for Local
. AD3ARD
. AD3RD
2. Remote3.3fb Function block
. ADR3INI insertion
. ADR3RD for Remote GM3
3. Remote4.3fb Function block
. ADR3INI insertion
. ADR3RD for Remote GM4
G4F – AD3A
1. Special.4fb Function block
. AD3INI insertion
. AD3ARD for Local
. AD3RD
2. Remote4.4fb Function block
. ADR3INI insertion
. ADR3RD for Remote GM4
3. Remote3.4fb Function block
. ADR3INI insertion
. ADR3RD for Remote GM3
G6F – AD2A
1. Special.6fb Function block
. AD2INI insertion
. AD2ARD for Local
. AD2RD
2. Remote6.6fb Function block
. ADR62INI insertion
. ADR62RD for Remote GM6
4 -1
Chapter 4. FUNCTION BLOCK
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
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 Data
block I/O Variable Descriptions
type
Function Block Execution Request Area
Input - The execution of function block initialization is requested in this area.
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
BASE USINT - The base No. on which A/D conversion module is mounted is written on this area.
- Setting range : 0
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
Chapter 4. FUNCTION BLOCK
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.
Function Data
block I/O Variable Descriptions
type
Function Block Execution Request Area
Input - The execution of function block reading is requested in this area.
REQ BOOL
- If input condition is changed from low(0) to high(1), function block initializatio n for
the module is executed.
AD2ARD
Base Module Location Number Area
REQ DONE BASE USINT - The base No. on which A/D conversion module is mounted is written on this area.
- Setting range : 0
BASE STAT Slot Location Number Area
SLOT USINT - The slot No. on which A/D conversion module is mounted is written on this area.
SLOT ACT - Setting range: 0 to 7
Available Channel Specification Area
CH DATA
CH BOOL[4] - 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
DONE BOOL - When function block reading is executed with no error, 1 is written and 1 is kept
Output until next execution. When error occurs, 0 is written and operation come to stop
Error Code Display Area
STAT USINT - When error occurs during function block reading, the error code number is written.
- Error code is referred to Manual 4.3.
Channel Operation Display Area
ACT BOOL[4] - The channel specified after executing the function block read with no error is
right, 1 is written and, on the non-specified channel, 0 is written
A/D Conversion Value Output Area
DATA INT[4]
- Output data range : -48 ~ 4047 or–2048 ~ 2047
4 -4
Chapter 4. FUNCTION BLOCK
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.
Function Data
block I/O Variable Descriptions
type
Function Block Execution Request Area
Input - The execution of function block reading is requested in this area.
REQ BOOL
- If input condition is changed from low(0) to high(1), function block initialization for
AD2RD the module is executed.
Base Module Location Number Area
REQ DONE BASE USINT - The base No. on which A/D conversion module is mounted is written on this area.
- Setting range : 0
BASE STAT Slot Location Number Area
SLOT USINT - The slot No. on which A/D conversion module is mounted is written on this area.
SLOT DATA - Setting range: 0 to 7
Available Channel Specification Area
CH CH BOOL[4] Setting range : 0 ~ 3
Function Block Execution Complete Area
DONE BOOL - When function block reading is executed with no error, 1 is written and 1 is kept
Output until next execution. When error occurs, 0 is written and operation come to stop
Error Code Display Area
STAT USINT - When error occurs during function block reading, the error code number is written.
- Error code is referred to Manual 4.3.
A/D Conversion Value Output Area
DATA INT[4]
- Output data range : -48 ~ 4047 or –2048 ~ 2047
4 -5
Chapter 4. FUNCTION BLOCK
Output When function block execution is completed with no error, 1 is written. During the scan which
NDR BOOL
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
ERR BOOL
to stop. During the scan which the execution condition has been made, 1 is continuing
and at the next scan, 0 is written.
Error Code Display Area
STAT USINT - When error occurs during function block initialization, the error code number is written.
Channel Operation Display Area
ACT BOOL[8] - 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.
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
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.
Function Data
block I/O Variable Descriptions
type
Function Block Execution Request Area on Rising Edge.
Input - The execution of write function block is requested in this area.
REQ BOOL - 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.
NET_ The location number of the slot on which the transmission module of the master station is
USINT
ADR62INI
Output NDR 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
ERR BOOL
to stop. During the scan which the execution condition has been made, 1 is continuing
and at the next scan, 0 is written.
Error Code Display Area
STAT USINT
- When error occurs during function block initialization, the error code number is written.
Channel Operation Display Area
ACT BOOL[4] - 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.
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
Chapter 4. FUNCTION BLOCK
The location number of the slot on which the communication module of the master
NET_
USINT station is mounted.
NO
ADR3RD - Setting range: 0 to 7
REQ NDR
NET_ ERR The station number of the communication module which a remote I/O station has.
ST_NO USINT
NO - Setting range : 0 to 63
ST_N STAT
O
BASE DATA
Base Module Location Number Area
SLOT BASE USINT - The base No. on which A/D conversion module is mounted is written on this area.
- Setting range : 0 to 3
CH
Output When function block execution is completed with no error, 1 is written. During the scan
NDR BOOL which the execution condition has been made, 1 is continuing and at the next scan. 0
is written.
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
Chapter 4. FUNCTION BLOCK
2) G6F-AD2A
Function block for reading the module is performed for every channel in block and the specified channels
are used to read output variable of data displayed from A/D conversion digital value.
Function Data
block I/O Variable Descriptions
type
Function Block Execution Request Area
Input - The execution of read function block is requested in this area.
REQ BOOL - 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.
The location number of the slot on which the communication module of the master
NET_ USINT station is mounted.
NO
ADR62RD - Setting range: 0 to 7
REQ NDR
NET_ ERR The station number of the communication module which a remote I/O station has.
ST_NO USINT
NO - Setting range : 0 to 63
ST_N STAT
O
BASE DATA
Base Module Location Number Area
SLOT BASE USINT - The base No. on which A/D conversion module is mounted is written on this area.
- Setting range : 0
CH
Output When function block execution is completed with no error, 1 is written. During the scan
NDR BOOL which the execution condition has been made, 1 is continuing and at the next scan. 0
is written.
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
Chapter 4. FUNCTION BLOCK
Average number exceeding the proper Correct the value to the proper range
17 О - -
range (Number: 2 to 255)
H/W error of the communication module See the manual for the remote communication
128 О О
Remote for remote module
Correct the number in accordance with the
The base location number is exceeding
129 О О proper range
the proper setting range
(See Section 4.3)
The slot location number is exceeding Set the right number to the slot mounting the
131 О О
the proper setting range A/D conversion module
Mount the A/D conversion module to the
133 The module loaded isn't the A/D module О О -
specified slot
135 H/W error of the A/D conversion module О О Contact the service station
The A/D conversion module's shared
136 О О Contact the service station
memory error
Make a correct specification of the available
137 The available channels are not specified - О
channel on the initializing function block
Average number exceeding the proper Correct the value to the proper range
145 О -
range (Number:2 to 255)
4 - 10
Chapter 5. GM PROGRAMMING
Chapter 5. GM PROGRAMMING
1) System Configuration
2) Initial Settings
(1) The digital value less than 2,000 of channel 0 turns %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
Chapter 5. GM PROGRAMMING
4) Programming Example
AD_INI AD_RD
READY AD3INI AD3RD START
ROW 0 REQ DONE REQ DONE S
Normal completion of
execution condition A/D conve rsion reading
ROW 1 0 BASE STAT INI_STAT 0 BASE STAT RD_STAT
Error code display Base location
Base location number Error code display in the processing
in the function block number specification
specification initialization of the read function block
ROW 2 0 SLOT ACT INI_ACT
러정보 0 SLOT ACT RD_ACT
Slot location number Channel operation Slot location Number Channel operation display in the process-
specification display in the specification ing of read function block initialization
function block
ROW 3 AD_CH CH initialization AD_CH CH DATA DATA
Available channel Available channel Data display of A/D conversion
enable specification enable specification value of enabled channel
ROW 4 DATATYPE TYPE
Data type specification
ROW 11
GT
ROW 12 EN ENO
%Q0.1.1
The digital value more than 3600 of channel 2 turns %Q0.1.1 on.
ROW 13 DATA[2] IN1 OUT
A/D conversion
value of channel 2
ROW 14 3600 IN2
ROW 15
GE
ROW 16 EN ENO
The digital value more than 2000 or same, and less than 3600 or same %Q0.1.2
of channel 4 turns %Q0.1.2 on.
ROW 17 3600 IN1 OUT
ROW 20
EQ
ROW 21 EN ENO
%Q0.1.3
The digital value 2800 of channel 4 turns %Q0.1.3 on.
ROW 22 DATA[4] IN1 OUT
A/D conversion
value of channel 4
ROW 23 2800 IN2
ROW 24
5 -2
Chapter 5. GM PROGRAMMING
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
5 -3
Chapter 5. GM PROGRAMMING
5 -4
Chapter 5. GM PROGRAMMING
5.2 Programming for Display of A/D Conversion Value and Error Code on BCD
Display
1) System Configuration
Channel 0 (4~20mA)
Initialize %I0.0.0
%Q0.2.0
~%Q0.2.7 Digital BCD Display
Display error code with BCD %I0.0. 1 (displaying error)
2) Initial Settings
(1) Available channel enabled : channel 0,
(2) Analog input : current input(DC 4 to 20 mA)
(3) Average processing setting : 10 times
5 -5
Chapter 5. GM PROGRAMMING
4) Programming
AD_INI AD_RD
%I0.0.0 AD3INI AD3AD START
ROW 0 REQ DONE REQ DONE S
Execution condition and A/D conversion read has
Initial Setting been completed normally.
ROW 1 0 STAT INI_STAT 0 BASE RD_STAT
BASE Error code display in Base location STAT Error code display in the processing
Base location number the processing of number of the reading function block
specification function block initialization specification
ROW 2 3 ACT 3 SLOT
Slot location number
SLOT INI_ACT
러정보
Slot location
DATA CH0_DATA
Data display of A/D conversion
Channel operation display
specification in the function block number value of enabled channel
specification
ROW 3 AD_CH CH initialization
0 CH
Available channel Available channel
enable specification enable specification
ROW 4 DATATYPE TYPE
Data type specification
%I0.0.2 USINT_TO_
BCD
ROW 11 EN ENO
Command for displaying the
error code onto BCD digital
ROW 12 display RD_STAT IN1 OUT %QB0.2.0
Error code on the
reading function
ROW 13
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
Chapter 5. GM PROGRAMMING
5 -7
Chapter 5. GM PROGRAMMING
Slot 0
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)
5 -8
Chapter 5. GM PROGRAMMING
4) Programming example
LT GE
Line 13 EN ENO EN ENO
LT
Line 14 AD_DATA[0] AD_DATA[0] OUT EN ENO
IN1 OUT % Q0.1.0 IN1
The digital value less than
2000 of channel 0
Line 15 2000 2000 IN2 AD_DATA[0] IN1 OUT % Q0.1.1
IN2 turns %Q0.1.0 on.
The digital value more than
2000 or same, and less than
Line 16 3000 IN2 3000 or same turns %Q0.1.1
on.
Line 17
Line 18
GE
Line 19 EN ENO
LT
AD_DATA[0] IN1 OUT EN ENO
Line 20
Line 23
Line 24
GE
Line 25 EN ENO
Line 28
5 -9
Chapter 5. GM PROGRAMMING
5 -10
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.1 G6F-AD2A
Address Name Description Default Remark
(decimal) value
1
00 Channel enable Enable / disable channel operation h00 R/W
01 Output data range Assign the range of digital output value h00 R/W
Average count Enable / disable average count processing
02 processing enable per each channel h00 R/W
03 Avg. count of Ch0 Assign the count of Avg. processing of Ch0 h02 R/W
04 Avg. count of Ch1 Assign the count of Avg. processing of Ch1 h02 R/W
05 Avg. count of Ch2 Assign the count of Avg. processing of Ch2 h02 R/W
06 Avg. count of Ch3 Assign the count of Avg. processing of Ch3 h02 R/W
07 Data enable Make enable the new setting of buffer 0 ~ 6 h00 R/W
2
08 Ch0 digital output value Digital output value of channel 0 - R
09 Ch1 digital output value Digital output value of channel 1 - R
10 Ch2 digital output value Digital output value of channel 2 - R
11 Ch3 digital output value Digital output value of channel 3 - R
12 Channel status Indicate run/stop of each channel - R
Shows error code when an error occurred
13 Ch0 error code - R
on channel 0
Shows error code when an error occurred
14 Ch1 error code - R
on channel 1
Shows error code when an error occurred
15 Ch2 error code - R
on channel 2
Shows error code when an error occurred
16 Ch3 error code - R
on channel 3
1
R/W : Read and write are both available
2
R : Read only
6-1
Chapter 6 Buffer memory
6-2
Chapter 6 Buffer memory
6.2.1 G6F-AD2A
- In order to enable a channel, set the corresponding bit as 1 (on). For example, turn on
the bit 2 to enable the channel 2.
- Because the conversion time depends on the number of used channel, turning on just
necessary channel can reduce A/D conversion time.
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
Write h0006 ( turn on bit 1 and 2 ) to buffer 00, and sampling time is
obtained as 2 × 5ms = 10ms.
- 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
6-3
Chapter 6 Buffer memory
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
- If the channel is not designated as average processing in address 02, the setting of
averaging count is ignored.
Address Description
03 The number of averaging count of channel 0.
04 The number of averaging count of channel 1.
05 The number of averaging count of channel 2.
06 The number of averaging count of channel 3.
- 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
6-4
Chapter 6 Buffer memory
- If an error occurs, the d igital output value keeps the previous value.
Address Description
08 The digital output value of channel 0
09 The digital output value of channel 1
10 The digital output value of channel 2
11 The digital output value of channel 3
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
6-5
Chapter 6 Buffer memory
- In order to enable a channel, set the corresponding bit as 1 (on). For example, turn on
the bit 2 to enable the channel 2.
- Because the conversion time depends on the number of used channel, turning on just
necessary channel can reduce A/D conversion time.
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
Write h000D ( turn on bit 1, 2, and 3 ) to buffer 00, and sampling time is
obtained as 3 × 5ms = 15ms.
- Turn on the cor responding bit as‘1’ to 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
6-6
Chapter 6 Buffer memory
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
- If the channel is not designated as average processing in address 02, the setting of
averaging count is ignored.
Address Description
03 The number of averaging count of channel 0.
04 The number of averaging count of channel 1.
05 The number of averaging count of channel 2.
06 The number of averaging count of channel 3.
07 The number of averaging count of channel 4.
08 The number of averaging count of channel 5.
09 The number of averaging count of channel 6.
10 The number of averaging count of channel 7.
- 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
6-7
Chapter 6 Buffer memory
- If an error occurs, the digital output value keeps the previous value.
Address Description
12 The digital output value of channel 0
13 The digital output value of channel 1
14 The digital output value of channel 2
15 The digital output value of channel 3
16 The digital output value of channel 4
17 The digital output value of channel 5
18 The digital output value of channel 6
19 The digital output value of channel 7
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
6-8
Chapter 7 Buffer read/write instructions
K200S
FUN(230) GET
GET, GETP Applicable CPU K300S
FUN(231) GETP
K1000S
Operand setting
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 as ‘D’.
[S] [D]
[ S+n2-1 ] [ D+n2-1 ]
7-1
Chapter 7 Buffer read/write instructions
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
GETP
Executed only once Executed only once
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 a ddress 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
13 (08) D0013
7-2
Chapter 7 Buffer read/write instructions
K200S
RGET FUN(232) RGET Applicable CPU K300S
K1000S
Input
condition
RGET sl st D S n SS
Operand setting
Upper Type of remote special function
byte module Start address of buffer memory
sl S of A/D module of remote
Lower Slot number of Fnet module of station
byte self-station
Upper Slot number of remote special
byte function module
st n Number of words to be read
Lower Station number of Fnet remote
byte module
Start address of destination device of self- Device at which the link status
D SS
station is stored
* Available only when do not use computer link module or data link module
1) Functions
- Reads the data of ‘n2’ words, 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
Chapter 7 Buffer read/write instructions
Fnet Fnet
[ S+n2-1 ] [ D+n2-1 ]
remote module
module
Station
No = ‘st’
- Execution conditions
Input condition
RGET
Executed only once Executed only once
7-4
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
Remote station
[ Example program ]
Input
condition
7-5
Chapter 7 Buffer read/write instructions
K200S
FUN(234) PUT
PUT, PUTP Applicable CPU K300S
FUN(235) PUTP
K1000S
Operand setting
Slot number at which A/D
n1
Input module is mounted
condition
Start address of buffer memory
PUT(P) n1 D S n2 D
at which data will be written
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’.
[D] [S]
[ D+n2-1 ] [ S+n2-1 ]
7-6
Chapter 7 Buffer read/write instructions
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
PUTP
Executed only once Executed only once
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
7-7
Chapter 7 Buffer read/write instructions
K200S
RPUT FUN(233) RPUT Applicable CPU K300S
K1000S
Input
condition
RPUT sl st S D n SS
Operand setting
Upper Type of remote special function
byte module Start address of buffer memory
sl D of A/D module of remote
Lower Slot number of Fnet module of station
byte self-station
Upper Slot number of remote special
byte function module
st n Number of words to be read
Lower Station number of Fnet remote
byte module
Start address of device at which source Device at which the link status
S SS
data is stored (self-station) is stored
* 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 ‘D’ of 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
Chapter 7 Buffer read/write instructions
Fnet Fnet
[ D+n2-1 ] [ S+n2-1 ]
remote module
module
Station
No = ‘st’
- Execution conditions
Input condition
RPUT
Executed only once Executed only once
7-9
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
Remote station
[ Example program ]
Input
condition
7 - 10
Chapter 7 Buffer read/write instructions
Remarks
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
7 - 11
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
Assign average
PUT 0002 00002 h0009 00001 processing channel
(channel 0 and 3)
8-1
Chapter 8 MK Programming
Assign average
PUT 0002 00002 h0009 00001 processing channel
(channel 0 and 3)
8-2
Chapter 8 MK Programming
1) System configuration
GM3- K7P- G3F- G3I- G3Q- G3Q- (A/D module is mounted on slot 0)
PA2A 30AS AD3A D22A RY4A RY4A
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 on P0012 bit when the digital value of channel 4 is in the range of 2000 ~ 3600
④ Turns on the P0013 bit when the digital value of channel 4 is 2800.
8-3
Chapter 8 MK Programming
4) Programming
Assign average
PUT 0000 00002 h0014 00001 processing channel
(channel 2 and 4)
P0013
Turn on P0013 when
= 02800 D0016 D0016 is 2800 and no
error at Ch 4
END
8-4
Chapter 8 MK Programming
1) System configuration
P000 P001 P002
7-segment display
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, output the contents of D0008 to the 7 -segment display.
8-5
Chapter 8 MK Programming
4) Programming
Assign average
PUT 0002 00002 h0001 00001 processing channel
(channel 0)
END
8-6
Chapter 8 MK Programming
1) System configuration
Station
P000 P001 P002 number : 01
Slot 0
3) Description of program
① When the digital converted value of channel 0 of remote A/D module is less than
2000, turns on P0010 of 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
Chapter 8 MK Programming
4) Programming
P0000
Channel to be used
MOVP 00001 D0000 (use channel 0)
Assign average
MOVP 00001 D0002 processing channel
(channel 0)
Remote code Slot number Start address Buffer No. of Link status
of A/D module of A/D module of data memory words
Remote code Slot number Start address Buffer No. of Link status
of A/D module of A/D module of data memory words
P0000 F0093
Read buffer 12 of remote
RGET hC002 h0001 D0012 00012 00001 M002 A/D module per 1
second, and store it to
D0012 of self -station
Slot number of Station number of
Fnet module Fnet remote module
P0000
P0010
Turns on P0010 when
< 2000 D0012 the digital value is less
than 2000
P0011
Turns on P0011 when
>= D0012 2000 < D0012 3000 the digital value is 2000
~ 2999
P0012 Turns on P0012 when
>= D0012 3000 < D0012 4000 the digital value is 3000
~ 3999
P0013
Turns on P0013 when
>= D0012 4000 the digital value is 4000
or greater
END
8-8
Chapter 9 Dimension
9 Dimension
9.1 G3F-AD3A
Unit : mm
9-1
Chapter 9 Dimension
9.2 G4F-AD3A
Unit : mm
9-2
Chapter 9 Dimension
9.3 G6F-AD2A
Unit : mm
9-3
Chapter 9 Dimension
9-4