
Chapter 4. FUNCTION BLOCK
4 - 6
4.3.2 Module Reading:
(G3F-AD4A: ADR4RD, G4F-AD2A: ADR2RD, G3F-AD4B: ADR4BRD)
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
Block
I/O
Variable
Data
type
Descriptions
REQ
BOOL
Function Block Execution Request Area
- The execution of read function block 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 reading for the
module is executed.
NET_
NO
USINT
The location number of the slot on which the communication module of the master
station is mounted.
- Setting range: 0 to 7
ST_NO
USINT
The station number of the communication module which a remote I/O station has.
- Setting range : 0 to 63
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 : 0 to 3
SLOT
USINT
Slot Location Number Area
- The slot No. on which A/D conversion module is mounted is written on this area.
- Setting range: 0 to 7
Input
CH
BOOL
[Array]
*note1
Available Channel Specification Area
- Available channels are specified in this area.
- Enabled channels are specified to 1 and disabled channels are specified to 0.
NDR
BOOL
When function block execution is completed with no error, 1 is written. During the scan
which the execution condition has been made, 1 is continuing and at the next scan. 0
is written.
ERR
BOOL
Error Data Display Area
- When error occurs during the execution of function block reading, 1 is written and
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.
STAT
USINT
Error Code Display Area
- When error occurs during the execution of function block reading, the error code
number is written.
- Error code is referred to Section 4.4.
ACT
BOOL
[Array]
*note1
Channel Operation Display Area
-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.
Output
DATA
INT
[Array]
*note1
A/D Conversion Value Output Area
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.
REQ
BASE
SLOT
CH
ADR4RD
(ADR4BRD,
ADR2RD)
STAT
ACT
NDR
DATA
NET_
NO
ST_N
O
ERR
G3F-AD4A
(G3F-AD4B,
G4F-AD2A)