
Chapter 5. GM PROGRAMMING
5 -6
C) Programming Example
READY
Execution condition
REQ DONE
0
BASE STAT
INI_STAT
Base location number
specification
CH
AD_CH
Available channel
Enable specfication
IN_
SEL
IN_SEL
Input type specfication
DATA
TYPE
DATATYPE
Data type specfication
FILT
_EN
Filter enable/disable specfication
SLOT
ACT
0
러정보
INI_ACT
Slot location number
specification
0
SLOT
Slot location number
specfication
CH
AD_CH
Available channel
Enable specfication
RD_STAT
STAT
Error code display in the processing
of the read function block
RD_ACT
ACT
Channel operation display in the
processing of read function block
DATA
DATA
Data display of A/D conversion
value of enabled channel
Line 0
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
Line 12
Line 13
Line 14
Line 15
Line 20
Line 21
Line 22
Line 23
Line 16
Line 17
Line 18
Line 19
Line 24
Error code display in the
function block initialization
0
BASE
Base location number
specfication
Channel operation display
In the function block
initialization
START
LT
EN
OUT
OUT
IN2
IN2
2000
GT
EN
ENO
DATA[2]
IN1
OUT
IN2
IN2
3600
DATA[0]
IN1
A/D conversion value
of channel 0
EQ
EN
ENO
OUT
IN2
IN2
2800
GE
EN
ENO
3600
IN1
OUT
IN2
IN2
DATA[4]
A/D conversion value
of channel 2
A/D conversion vaule
of channel 4
IN3
2000
DATA[4]
IN1
A/D conversion value
of channel 4
S
START
Normal completion of
A/D conversion reading
%Q0.1.0
The digital value less than 2000 of channel 0 turns %Q0.1.0 On
%Q0.1.1
%Q0.1.2
The digital value more than 3600 of channel 2 turns %Q0.1.1 On
The digital value more than 2000 or same, and less than 3600 or same of channel 4 turns %Q0.1.2 On
%Q0.1.3
The digital value 2800 of channel 4 turns %Q0.1.3 On
REQ DONE
FILT_EN
AD_INI
AD_RD
AD4BINI
AD4BARD
Line 25
FILT
_VAL
AVG_
EN
AVG_
SEL
NUM/
TIME
Filter value specfication
FILT_VAL
Average processing
enable/disable specfication
AVG_EN
Average number/time specfication
AVG_SEL
Average number/time
value specfication
NUM_TIME