Chapter 4. FUNCTION BLOCK
4 - 4
4.2.2 Module Reading-Array Type 1) G3F-AD3A, G4F-AD3A 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
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 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[8] Available Channel Specification Area
- Enabled channels are specified to 1 and disabled channels are specified to 0.
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 reading, the error code number is written.
ACT BOOL[8]
Channel Operation Display Area
- After execution the function block of initialization with no error, if the setting
condition of specified channel is normal then output ‘1’, or if abnormal, output 0’.
- No specified channel is ‘0’.-
output
DATA INT[8] A/D Conversion Value Output Area
Output data range : -48 ~ 4047
REMARK
BOOL[8] and USINT[8] of data type means that the number of element is 8, and also this means the whole number of channels and channel number.
2) G6F-AD2A
Array type of function block for reading is performed for all channels in module 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 input condition is changed 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 : 0
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[4] Available Channel Specification Area
- Available channels are specified in this area.
- Enabled channels are specified to 1 and disabled channels are specified to 0.
DONE BOOL Function Block Execution Complete Area
- 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
STAT USINT Error Code Display Area
- When error occurs during function block reading, the error code number is written.
- Error code is referred to Manual 4.3.
ACT BOOL[4] Channel Operation Display Area
- The channel specified after executing the function block read with no error is
right, 1 is written and, on the non-specified channel, 0 is written
Output
DATA INT[4] A/D Conversion Value Output Area
- Output data range : -48 ~ 4047 or –2048 ~ 2047
REQ
BASE
SLOT
CH
AD3ARD
STAT
ACT
DONE
DATA
REQ
BASE
SLOT
CH DATA
AD2ARD
STAT
ACT
DONE