LG G3F-AD4A User Manual page 45

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
4.2.2 Module Reading-Array Type :
AD4BARD)
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
G3F-AD4A
(G3F-AD4B,
G4F-AD2A)
AD4ARD
(AD4BARD,
AD2ARD)
REQ
DONE
BASE
STAT
SLOT
ACT
CH
DATA
Output
REMARK
*note 1: The number of array is G3F-AD4A of 16, G3F-AD4B of 16 and G4F-AD2A of 4 ,
the element numbers means the channel ones.
(G3F-AD4A : AD4ARD, G4F-AD2A : AD2ARD, G3F-AD4B :
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 Module 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 : GM1 series( 0 to 31 ), GM2 series( 0 to 7), GM3/4 series( 0 to 3)
Slot Location Number Area
- The slot No. on which A/D conversion module is mounted is written on this area.
SLOT
USINT
- Setting range: 0 to 7
BOOL
Available Channel Specification Area
CH
[Array]
- Available channels are specified in this area.
*note1
- Enabled channels are specified to 1 and disabled channels are specified to 0.
Function Block Execution Complete Area
- When function block reading is execute d 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.
- Error code is referred to Section 4.4.
BOOL
Channel Operation Display Area
ACT
[Array]
- The channel specified after executing the function block read with no error is
*note1
right, 1 is written and, on the non-specified channel, 0 is written
INT
DATA
[Array]
A/D Conversion Value Output Area
*note1
4 - 3
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G3f-ad4bG4f-ad2a

Table of Contents