Module Reading-Array Type; Type - LG G3F-AD3A User Manual

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK

4.2.2 Module Reading-Array Type

1) G3F-AD3A, G4F-AD3A
Array type of function block for reading the module is performed for every channel in block and the specified
channels are used to read output variable of data displayed from A/D conversion digital value.
Function
I/O
block
Input
AD3ARD
REQ
DONE
BASE
STAT
SLOT
ACT
DATA
CH
output
REMARK
BOOL[8] and USINT[8] of data type means that the number of element is 8, and also this means the whole number of channels and channel number.
2) G6F-AD2A
Array type of function block for reading is performed for all channels in module and the specified
channel is used to read output variable of data displayed from A/D conversion digital value.
Function
I/O
block
Input
AD2ARD
REQ
DONE
BASE
STAT
SLOT
ACT
DATA
CH
Output
Data
Variable

type

Function Block Execution Request Area
- The execution of function block reading is requested in this area.
REQ
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.
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 to 3
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[8]
- Enabled channels are specified to 1 and disabled channels are specified to 0.
Function Block Execution Complete Area
- When function block reading is executed with no error, 1 is written and until next
DONE
BOOL
execution, 1 is continuing. When error occurs, 0 is written and operation come to
stop
Error Code Display Area
STAT
USINT
- When error occurs during function block reading, the error code number is written.
Channel Operation Display Area
- After execution the function block of initialization with no error, if the setting
ACT
BOOL[8]
condition of specified channel is normal then output '1', or if abnormal, output 0'.
- No specified channel is '0'.-
A/D Conversion Value Output Area
DATA
INT[8]
Output data range : -48 ~ 4047
Data
Variable
type
Function Block Execution Request Area
- The execution of function block reading is requested in this area.
REQ
BOOL
- If input condition is changed from low(0) to high(1), function block initializatio n for
the module is executed.
Base Module Location Number Area
- The base No. on which A/D conversion module is mount e d is written on this area.
BASE
USINT
- 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
- Available channels are specified in this area.
CH
BOOL[4]
- Enabled channels are specified to 1 and disabled channels are specified to 0.
Function Block Execution Complete Area
DONE
BOOL
- When function block reading is executed with no error, 1 is written and 1 is 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 reading, the error code number is written.
- Error code is referred to Manual 4. 3 .
Channel Operation Display Area
ACT
BOOL[4]
- The channel specified after executing the function block read with no error is
right, 1 is written and, on the non-specified channel, 0 is written
A/D Conversion Value Output Area
DATA
INT[4]
- Output data range : -48 ~ 4047 or –2048 ~ 2047
4 - 4
Descriptions
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents