LG G3F-AD3A User Manual page 36

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
2) G6F-AD2A
Function block for reading the module is performed for every channel in block and the specified channels
are used t o read output variable of data displayed from A/D conversion digital value.
Function
I/O
block
Input
ADR62RD
REQ
NDR
NET_
ERR
NO
ST_N
STAT
O
BASE
DATA
SLOT
CH
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 read function block 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 reading for the
module is executed.
The location number of the slot on which the communication module of the master
NET_
USINT
station is mounted.
NO
- Setting range: 0 to 7
The station number of the communication module which a remote I/O station has.
ST_NO
USINT
- Setting range : 0 to 63
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
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]
- Available channels are specified in this area.
- Enabled channels are specified to 1 and disabled channels are specified to 0.
When function block execution is completed with no error, 1 is written. During the scan
NDR
BOOL
which 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 the execution of function block reading, 1 is written and
ERR
BOOL
the operation come s 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
STAT
USINT
- When error occurs during the execution of function block reading, the error code
number is written.
Channel Operation Display Area
ACT
BOOL[4]
- The channel specified after executing the function block reading 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]
- Data output range : -48 ~ 4047
4 - 9
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-ad3aG6f-ad2a

Table of Contents