LG G3F-AD3A User Manual page 32

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
4.2.3 Module Reading - Single Type
1) G3F-AD3A, G4F-AD3A
Single type of function block for reading the module is performed for only one channel and the specified
channel is used to read output variable of data displayed from A/D conversion digital value.
Function
I/O
block
Input
AD3RD
REQ
DONE
STAT
BASE
DATA
SLOT
CH
output
2) G6F-AD2A
Single type of function block for reading the module is performed for only one channel and the specified
channel is used to read output variable of data displayed from A/D conversion digital value.
Function
I/O
block
Input
AD2RD
REQ
DONE
BASE
STAT
SLOT
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), f u nction 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 : 0 ~ 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
USINT
- 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 until next
execution, 1 is continuing. When error occurs, 0 is written and operation come to stop.
Error Code Display Area
STAT
USINT
- When error occurred during function block initialization, the error code number is
written.
A/D Conversion Value Output Area
DATA
INT
Output data range : -47 ~ 4048
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 initialization 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
CH
BOOL[4]
Setting range : 0 ~ 3
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 .
A/D Conversion Value Output Area
DATA
INT[4]
- Output data range : -48 ~ 4047 or –2048 ~ 2047
4 - 5
Descriptions
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents