beautypg.com

LG G4F-AD3A User Manual

Page 39

background image

Chapter 5. GM PROGRAMMING


5 -2

4) Programming Example

AD_INI

AD3INI

REQ DONE

0

BASE STAT

INI_STAT

CH

AD_CH

TYPE

DATATYPE

AVG-

EN

AVG_EN

AVG-

NUM

SLOT

ACT

0

INI_ACT

0

SLOT

CH

AD_CH

RD_STAT

STAT

RD_ACT

ACT

DATA

DATA

ROW 0

0

BASE

START

LT

EN

OUT

OUT

IN2

IN2

2000

GT

EN

ENO

DATA[2]

IN1

OUT

IN2

IN2

3600

DATA[0]

IN1

EQ

EN

ENO

OUT

IN2

IN2

2800

GE

EN

ENO

3600

IN1

OUT

IN2

IN2

DATA[4]

IN3

2000

DATA[4]

IN1

S

START

%Q0.1.0

%Q0.1.1

%Q0.1.2

%Q0.1.3

AD_RD

AD3RD

REQ DONE

execution condition

Base location number

specification

Slot location number

specification

Available channel

enable specification

Data type specification

Average processing

enable/disable specification

Average number

value specification

Error code display

in the function block

initialization

Channel operation

display in the

function block

initialization

Base location

number specification

Slot location Number

specification

Available channel

enable specification

Error code display in the processing

of the read function block

Channel operation display in the process-

ing of read function block initialization

Data display of A/D conversion

value of enabled channel

Normal completion of

A/D conve rsion reading

A/D conversion

value of channel 3

A/D conversion

value of channel 4

The digital value more than 3600 of channel 2 turns %Q0.1.1 on.

The digital value less than 2000 of channel 0 turns %Q0.1.0 on.

The digital value 2800 of channel 4 turns %Q0.1.3 on.

The digital value more than 2000 or same, and less than 3600 or same

of channel 4 turns %Q0.1.2 on.

A/D conversion

value of channel 2

A/D conversion

value of channel 0

READY

AVG_NUM

ROW 1

ROW 2

ROW 3

ROW 4

ROW 5

ROW 6

ROW 7

ROW 8

ROW 9

ROW 10

ROW 11

ROW 12

ROW 13

ROW 14

ROW 15

ROW 16

ROW 17

ROW 18

ROW 19

ROW 20

ROW 21

ROW 22

ROW 23

ROW 24

This manual is related to the following products: