LG G3F-AD3A User Manual page 39

Programmable logic controller
Table of Contents

Advertisement

Chapter 5. GM PROGRAMMING
4) Programming Example
READY
ROW 0
execution condition
ROW 1
0
Base location number
specification
ROW 2
0
Slot location number
specification
ROW 3
AD_CH
Available channel
enable specification
ROW 4
DATATYPE
Data type specification
ROW 5
AVG_EN
Average processing
enable/disable specification
ROW 6
AVG_NUM
Average number
value specification
ROW 7
START
ROW 8
ROW 9
DATA[0]
A/D conversion
value of channel 0
ROW 10
2000
ROW 11
ROW 12
DATA[2]
ROW 13
A/D conversion
value of channel 2
ROW 14
3600
ROW 15
ROW 16
3600
ROW 17
ROW 18
DATA[4]
A/D conversion
value of channel 3
ROW 19
2000
ROW 20
ROW 21
ROW 22
DATA[4]
A/D conversion
value of channel 4
2800
ROW 23
ROW 24
AD_INI
AD3INI
REQ
DONE
INI_STAT
STAT
BASE
Error code display
Base location
in the function block
number specification
initialization
INI_ACT
ACT
SLOT
러정보
Channel operation
display in the
function block
CH
initialization
TYPE
AVG-
EN
AVG-
NUM
LT
EN
OUT
The digital value less than 2000 of channel 0 turns %Q0.1.0 on.
IN1
OUT
IN2
IN2
GT
EN
ENO
The digital value more than 3600 of channel 2 turns %Q0.1.1 on.
IN1
OUT
IN2
IN2
GE
EN
ENO
The digital value more than 2000 or same, and less than 3600 or same
of channel 4 turns %Q0.1.2 on.
IN1
OUT
IN2
IN2
IN3
EQ
EN
ENO
The digital value 2800 of channel 4 turns %Q0.1.3 on.
IN1
OUT
IN2
IN2
5 -2
AD_RD
AD3RD
REQ DONE
0
BASE
STAT
Error code display in the processing
of the read function block
0
SLOT
ACT
Slot location Number
Channel operation display in the proces s-
specification
ing of read function block initialization
AD_CH
CH
DATA
Available channel
enable specification
START
S
Normal completion of
A/D conve rsion reading
RD_STAT
RD_ACT
DATA
Data display of A/D conversion
value of enabled channel
%Q0.1.0
%Q0.1.1
%Q0.1.2
%Q0.1.3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents