beautypg.com

LG G4F-AD3A User Manual

Page 43

background image

Chapter 5. GM PROGRAMMING


5 -6

4) Programming

AD_INI

AD3INI

%I0.0.0

REQ DONE

0

BASE STAT

INI_STAT

CH

AD_CH

TYPE

DATATYPE

AVG-

EN

AVG_EN

AVG-

NUM

SLOT

ACT

3

INI_ACT

3

SLOT

CH

0

RD_STAT

STAT

CH0_DATA

DATA

0

BASE

START

S

START

AD_RD

AD3AD

REQ DONE

AVG_NUM

%I0.0.1

INT_TO_BCD

EN

ENO

OUT

CH0_DATA

IN1

%QW0.1.0

USINT_TO_

BCD

EN

ENO

OUT

RD_STAT

IN1

%QB0.2.0

%I0.0.2

Execution condition and

Initial Setting

Base location number

specification

Available channel

enable specification

Data type specification

Average processing

enable/disable specification

Average number

value specification

Channel operation display

in the function block

initialization

Slot location

number

specification

Available channel

enable specification

Error code display in the processing

of the reading function block

Data display of A/D conversion

value of enabled channel

Slot location number

specification

A/D conversion read has

been completed normally.

This program converts the integer type of the A/D conversion value

CH0_DATA into BCD data type to display onto the BDC digital display.

Command for displaying the

error code onto BCD digital

display

Error code display in

the processing of

function block initialization

A/D conversion value

of channel 0

specification

Error code on the

reading function

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.

Command for displaying the

A/D conversion value onto BCD

digital display

Base location

number

specification

ROW 0

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

This manual is related to the following products: