aNALOG MODULE
aNALOG MODULE
aNALOG MODULE
Users Manual
LG Programmable Logic Controller
LG Industrial Systems
CONTENTS
Chapter 1. INTRODUCTION
Chapter 2. SPECIFICATIONS
4.1 Insertion of the Function Block for the D/A Conversion Module on the GMWIN 4 - 1
Chapter 5. PROGRAMMING
5.1 Programming for Controlling Inverter Speed with 5 Step Analog Output Voltage 5 - 1
2.2 Programming for Displaying D/A Conversions which is Set by Digital Switch 5 - 5
Chapter 6. DIMENSIONS
For safety precautions on the PLC system, see the GLOFA GM6 Users Manuals.
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.
Design Precautions
! CAUTION
! CAUTION
Design a safety circuit in the outside of the PLC for system safety in
case of disorder of the external power or PLC module body. Other- Do not run I/O
wise, it can cause injury due to wrong output or malfunction. signal lines near
1) The following shows analog output states according to various to high voltage
settings of functions that control analog output. When setting an line or power line.
output state, be cautious for safety. Separate them as
Channel Setting Channel Specification 100 mm or more
State Used Unused as possible. Oth-
PLC CPU in RUN state. A D/A conversion
value is output. erwise, noise can
Voltage: cause module
PLC CPU in STOP state Voltage : 0V, 0V
malfunction.
Current : 4mA Current:
Previous value will be 4mA
PLC CPU in Error state output.
2) Sometimes, fault of output device or internal circuit can make
output abnormal. Design a supervising circuit in the outside for
output signals which can cause serious accidents.
Installation Precautions Wiring Precautions
! CAUTION
! CAUTION
! WARNING ! CAUTION
! CAUTION
Chapter 1. INTRODUCTION
The G6F-DA2V and the G6F-DA2I are digital/analog conversion modules for use with the GLOFA PLC GM6 series
CPU module. (Hereafter the G6F-DA2V and G6F-DA2I are called the D/A conversion module)
The D/A conversion module is to convert a 16-bit, signed BIN digital value into an analog output signal (voltage or
current).
1.1 Features
1.2 Glossary
-10 ~ 10V
Temperature
0 ~ 1000C Transducer voltage input to
A/D conversion
module
0
time
[Fig 1.1] Analog Value [Fig 1.2] Example of Transducer
Analog value is a sequentially changing value such as voltage, current, temperature, speed, pressure,
flux, etc.
Temperature, for example, is sequentially changing according to the time. Because this temperature is
not inputted on the PLC directly, the same analog value of DC voltage (0 to 10V) or current (4 to
20mA) in accordance with the temperature should be input on the PLC through transducer.
1-1
Chapter 1. INTRODUCION
time
[Fig. 1.3] Digital quality
1-2
Chapter 1. INTRODUCION
10V
Analog Output Voltage
0V
Digital/analog conversion module allows digital value of the CPU to be converted into an analog value
and to be output externally. Digital input value of 0 leads to analog output value of -10V and 4000
leads to 10V. Digital input value of 1 is equal to 5mV.
20
Analog Output Current
12 4
12.004
12.000
2000 2001 2002 2003 2004 2005
4
Digital Input
0 2000 4000
Digital Input Value
1-3
Chapter 2. SPECIFICATIONS
Chapter 2. SPECIFICATIONS
2-1
Chapter 2. SPECIFICATIONS
Specifications
Items
G6F-DA2I G6F-DA2V
*1
DC+5V 40mA 40mA
Internal
Current DC+15V 120mA 80mA
Consumption
DC-15V 25mA 60mA
2-2
Chapter 2. SPECIFICATIONS
G6F-DA2V / G6F-DA2I
RUN RUN
G6F-DA2V G6F-DA2I
G6F-DA2V G6F-DA2I
V+ I+
CH0 CH0
V- I-
V+ I+
CH1 CH1
V- I-
V+ I+
CH2 CH2
V- I-
V+ I+
CH3 CH3
V- I-
-10 ~ 10V 4 ~ 20
No. Descriptions
RUN LED
Indicates the operating condition of the D/A conversion module
* On: Normal operation
* Off : 5 VDC power off or D/A conversion module fault
2-3
Chapter 2. SPECIFICATIONS
I/O characteristics are displayed as a slant of the line connecting offset value and gain value in converting an
digital signal from the external PLC into an analog signal(voltage or current).
Offset value and Gain value of D/A converter are fixed and should not be modified.
Input/ output conversion characteristic example is shown on Fig 2.1
20.192mA 10.24V
20mA 10V
16mA 5V
12mA 0V
8mA -5V
4mA -10V
3.808mA -10.24V
Conversion speed indicates the period of time between D/A conversion processing and changing analog value
to set value.
Conversion speed of each D/A conversion module is like value in the table 2.2
That is, conversion speed of each D/A conversion module is constant regardless of used channels.
2-4
Chapter 3. INSTALLATION AND WIRING
3.1 Installation
This module has high reliability regardless of its installation ambience. But check the following for system in
higher reliability and stability.
1) Ambience requirements
Avoid installing this unit in locations which are subjected or exposed to :
- Water leakage and a large amount of dust, power and other conductive powder, oil mist, salt, of
organic solvent
- Mechanical vibrations of impacts transmitted directly to the module body
- Direct sunlight.
- Dew condensation due to sudden temperature change.
- High or low temperatures (outside the range of 0-55C)
From unpacking to installation of the D/A conversion module, be sure to check the following:
1) Do not drop it off, and make sure that strong impacts should not be applied.
2) Do not dismount printed circuit board(PCB) from the case. It can cause malfunctions.
3) During wiring, be sure to check any foreign matter like wire scraps should not enter into the upper
side of the PLC, and in the event that foreign matte entered into it, always eliminate it.
4) Be sure to disconnect electrical power before mounting or dismounting the module.
3-1
Chapter 3. INSTALLATION AND WIRING
3.2 Wiring
1) Separate AC and external input signal of D/A conversion module wiring not to be affected by surge or
induced noise in the AC.
2) External wiring has to be at least AWG22(0.3 ) and be selected in consideration of operating ambience
and/or allowable current.
3) Separate wiring from devices and/or substances generating intense heat, and oil not to make short-circuit
which leads to damage and/or mis-operation.
4) Identify the polarity of terminal block before external power supply is made connected.
5) Separate external wiring sufficiently from high voltage and power supply cable not to cause induced failure
and/or malfunction.
6) Don't put the power cable in front of the LED display ( To read the digital value on the LED correctly)
Circuit
*1 GND
CH3
D/A Converter 7
8 2
Circuit
*1
GND
2) G3F-DA4I
Motor driving
module etc.
CH0
D/A Converter 1
2 510
Circuit
*1 GND
CH3
D/A Converter 7
8 510
Circuit
*1 GND
3-2
Chapter 4. FUNCITION BLOCK
This chapter shows function block for the D/A conversion module on the GMWIN.
A kind of function block is as follows
REMARK
Function block of the G6F-DA2V and G6F-DA2I are same
4.1 Insertion of the Function Block for D/A Conversion Module on the GMWIN
A function block can be inserted during the execution of the GMWIN according to the following procedure..
A function block can be inserted only when a project opens.
Project(P) Select
Library insert(I)
G6F DA2V,
G6F DA2I
1. Special.6fb Local
. DA2AWR Function block
. DA2WR Inserting
COMMUNI.6fb
Mkstdlib.6fu
Special.6fb
STDLIB.6fb
stdlib.6fu
Library Files(*.6f*)
4-1
Chapter 4. FUNCITION BLOCK
Module write function block of the Array type is a program for the use in performing for every channel in
block and setting a digital value to be converted into a D/A conversion.
Function Data
I/O Variable Descriptions
Block Type
input REQ BOOL Function Block Execution Request Area
G6F-DA2V -The execution of function block initialization is requested in this area.
G6F-DA2I -If the status connected with this area is satisfied on the program execution
and 0 is changed to 1, function block for the module is executed.
BASE USINT Base Location Number Area
-The base No. on which D/A conversion module is mounted is written on this
area.
-Setting range : 0 to 1
REMARK
* Note 1: 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-2
Chapter 4. FUNCITION BLOCK
Module write function block of the Single type is a program for the use in performing for a channel of D/A
conversion module and setting a digital value to be converted into a D/A conversion.
Function Data
I/O Variable Descriptions
block type
input REQ BOOL Function Block Execution Request Area
G6F-DA2V -The execution of function block is requested in this area.
G6F-DA2I - If the status connected with this area is satisfied on the program execution
and 0 is changed to 1, function block for the module is executed.
BASE USINT Base Location Number Area
- The base No. on which D/A conversion module is mounted is written on this
area.
- Setting range : 0 to 1
4-3
Chapter 4. FUNCITION BLOCK
This shows the errors on the output variable STAT of variables and the resolutions in accordance with them.
Function Block
STAT No. Descriptions Resolutions
Array Single
type type
0 Operating with no fault O O -
The base location number is Correct the number in accordance
1 exceeding the proper setting range O O with the proper range
(See Manual 4.2)
2 H/W error of the base O O Contact the service station.
The slot location number is Set the right number to the slot
3 O O
exceeding the proper setting range mounting the D/A conversion module
The D/A conversion module on the Mount the D/A conversion module to
4 O O
slot is empty the specified slot
The module loaded isn't the D/A Mount the D/A conversion module to
5 O O
module the specified slot
The channel number is exceeding Specify the available channel
6 - O
the proper range correctly
H/W error of the D/A conversion Contact the service station.
7 O O
module
The D/A conversion module's Contact the service station.
8 O O
shared memory error
4-4
Chapter 5. PROGRAMMING
Chapter 5. PROGRAMMING
5.1 Programming for Controlling Inverter Speed with 5 Step Analog Output Voltage
1) System Configuration
slot 1
GM6 GM6 G6I G6F
PAFB CPUA D22A DA2V
AC230V3
Induction motor
2) Initial Settings
(1) Enabled channel : channel 0
5-1
Chapter 5. PROGRAMMING
4) Program
MOVE Set digital input value of channel 0 to 2000
%I0.0.1
ROW 0 EN EN0
Execution condition
ROW 1 2000 IN1 OUT CH0_DATA
ROW 2
MOVE
%I0.0.2 Set digital input value of channel 0 to 2500
ROW 3 EN EN0
Execution condition
ROW 4 2500 IN1 OUT CH0_DATA
ROW 5
MOVE Set digital input value of channel 0 to 3000
%I0.0.3
ROW 6 EN EN0
Execution condition
ROW 7 3000 IN1 OUT CH0_DATA
ROW 8
MOVE Set digital input value of channel 0 to 3500
%I0.0.4
ROW 9 EN EN0
Execution condition
ROW 10 3500 IN1 OUT CH0_DATA
ROW 11
MOVE
%I0.0.5 Set digital input value of channel 0 to 4000
ROW 12 EN EN0
Execution condition
ROW 13 40000 IN1 OUT CH0_DATA
ROW 14
ROW 15
DAWR
%I0.0.0 DA2AWR
ROW 16 REQ DONE
Execution condition
ROW 17 0 BASE STAT CH0_STAT
ROW 20
ROW 21
ROW 21
5-2
Chapter 5. PROGRAMMING
Select this
and this screen appears
This denotes
4 channels
Select this
and this screen
appears
To Select
previous Ch.
To Select
next Ch.
Channel No.
Digital Value
Set digital data input
5-3
Chapter 5. PROGRAMMING
5-4
Chapter 5. PROGRAMMING
5.2 Programming for Displaying D/A Conversions which is Set by Digital Switch
1) System Configuration
2) Initial Settings
(1) Enabled channel : channel 0, 1
5-5
Chapter 5. PROGRAMMING
4) Program
BCD_TO_INT
Programming for converting BCD into INT data to use as
ROW 0 EN ENO digital input value on channel 0 and channel 1 of
D/A conversion module.(For BCD is set by BCD digital switch)
ROW 1 %IW0.0.0 IN1 OUT INPUT
ROW 2
MOVE
%I0.1.1 %I0.1.2
ROW 3 EN EN0
Execution condition
ROW 4 INPUT IN1 OUT DATA[0]
ROW 5 Transmit digital input value by BCD digital switch onto channel 0
MOVE
%I0.1.2 %I0.1.1
ROW 6 EN EN0
Execution condition
ROW 7 INPUT IN1 OUT DATA[1]
ROW 11
DA_WR
%I0.1.0 DA2AWR
ROW 12 REQ
Execution condition
ROW 13 0 BASE WR_STAT
Base location number Error code
Specification
display on the
ROW 14 2 SLOT write function block
Slot location number
Specification processing
ROW 15 DATA DATA
Set digital data input
ROW 16
ROW 17
5-6
Chapter 5. PROGRAMMING
5-7
Chapter 6. DIMENSIONS
Chapter 6. DIMENSIONS
(Unit : mm)
RUN
G6F-DA2I
G6F-DA2I
I+
CH0
I-
I+
CH1
110.0
I-
I+
CH2
I-
I+
CH3
I-
4 ~ 20
100.0 35.0
6-1