LG G3F-AD3A User Manual page 30

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
2) G6F-AD2A
Module Initialization function block is used in a program with setting of A/D conversion module located
base number, slot number of located module on base, specifying a channel enable, analog input data
type and information of average processing.
Function
I/O
block
Input
AD2INI
REQ
DONE
BASE
STAT
SLOT
ACT
CH
DATA
TYPE
AVG_
EN
AVG_
NUM
Output
REMARK
BOOL[4] and 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.
Data
Variable
type
Function Block Execution Request Area
- The execution of function block initialization is requested in this area.
REQ
BOOL
- If the status of condition connected with this area is changed from low(0) to high(1),
function block initialization for the module is executed.
Base Location Number Area
BASE
USINT
- The base No. on which A/D conversion module is mount e d is written on this area.
- Setting range : 0
Slot Location Number Area
SLOT
USINT
- The slot No. on which A/D conversion module is mounted is written on this area.
- Setting range: 0 to 7
Available Channel Specification Area
CH
BOOL[4]
- Enabled channels are specified to 1 and disabled channels are specified to 0.
Digital Output Data Type Specification Area
DATA
BOOL[4]
- 0 is for the range of –48 ~ 4047
TYPE
- 1 is for the range of –2048 ~ 2047
Enable / Disable of Average processing
AVG_
BOOL[4]
- 0 is for the sampling processing.
EN
- 1 is for the average processing for the number of times.
AVG_
Set a constant of the average processing of the number of times.
USINT[4]
NUM
- Setting range : 2 ~ 255
Function Block Execution Complete Area
- When function block initialization is executed with no error, 1 is written and 1 is
DONE
BOOL
kept until next execution. When error occurs, 0 is written and operation come to
stop.
Error Code Display Area
STAT
USINT
- When error occurs during function block initialization, the error code number is
written.
Channel Operation Display Area
ACT
BOOL[4]
- The channel specified after executing the function block initialization with no error
is right, 1 is written and, on the non-specified channel, 0 is written.
4 - 3
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents