
Chapter 4. FUNCTION BLOCK
4 - 4
4.2.3 Module Reading - Single Type :
(G3F-AD4A : AD4RD, G4F-AD2A : AD2RD,
G3F-AD4B
: AD4BRD)
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
Block
I/O
Variable
Data
type
Descriptions
REQ
BOOL
Function Block Execution Request Area
- The execution of function block reading is requested in this area.
- 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
USINT
Base Module Location Number Area
- The base No. on which A/D conversion module is mounted is written on
this area.
- Setting range : GM1 series( 0 to 31 ), GM2 series( 0 to 7), GM3/4 series( 0
to 3)
SLOT
USINT
Slot Location Number Area
- The slot No. on which A/D conversion module is mount ed is written on this
area.
- Setting range: 0 to 7
Input
CH
USINT
Available Channel Specification Area
- Available channels are specified in this area.
- Setting range: G3F-AD4A/G3F-AD4B : 0 to 15, G4F -AD2A : 0 to 3
DONE
BOOL
Function Block Execution Complete Area
- 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.
STAT
USINT
Error Code Display Area
- When error occurs during function block initialization, the error code
number is written.
- Error code is referred to Section 4.4.
Output
DATA
INT
A/D Conversion Value Output Area
REQ
BASE
SLOT
CH
AD4RD
(AD4BRD,
AD2RD)
STAT
ACT
DONE
DATA
G3F-AD4A
(G3F-AD4B,
G4F-AD2A)