LG G3F-AD3A User Manual page 34

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
2) G6F-AD2A
Module Initialization function block is a program for the use in setting the location number of the slot on
which the communication module of A/D conversion module of the master station is mounted, the address
number of communication module which a remote I/O station has, the base location number, and the slot
location number, and specifying the an available channel enable, a data type for A/D conversion, and
average process data.
Function
I/O
Variable
block
Inpu
t
REQ
NET_
ADR62INI
NO
REQ
NDR
ST_NO
NET_
ERR
NO
BASE
ST_N
STAT
O
BASE
ACT
SLOT
SLOT
CH
CH
DATA
DATA
TYPE
TYPE
AVG_
EN
AVG_
AVG_
NUM
EN
AVG_
NUM
Output
NDR
ERR
STAT
ACT
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
type
Function Block Execution Request Area on Rising Edge.
- The execution of write function block is requested in this area.
BOOL
- If the status to be connected with this area is satisfied on the program operation and input
condition changes from low(0) to high(1), function block initialization for the module is
executed.
The location number of the slot on which the transmission module of the master station is
USINT
mounted. -Setting range: 0 to 7
Station number of the communication module which a remote I/O station has.
USINT
- Setting range : 0 to 63
Base Location Number Area
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
USINT
- The slot No. on which A/D conversion module is mount e d is written on this area.
- Setting range: 0 to 7
Available Channel Specification Area
BOOL[4]
- Available channels are specified in this area.
- Enabled channels are specified to 1 and disabled channels are specified to 0.
Output Data Type Specification Area
BOOL[4]
- Output digital data type for each channel is specified in this area.
- 0 is for the r ange of –48 to 4047. - 1 is for the range of -2048 to 2047.
Average Process Enable Specification Area
BOOL[4]
- 1 is for the average processing. - 0 is for the sampling process.
Set a constant of the average processing of the number of times.
USINT[4]
- Setting range : 2 ~ 255
When function block execution is completed with no error, 1 is written. During the scan which
BOOL
the execution condition has been made, 1 is continuing and at the next scan. 0 is written.
Error Data Display Area
- When error occurs during function block initialization, 1 is written and the operation comes
BOOL
to stop. During the scan which the execution condition has been made, 1 is continuing
and at the next scan, 0 is written.
Error Code Display Area
USINT
- When error occurs during function block initialization, the error code number is written.
Channel Operation Display Area
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 - 7
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents