Chapter 4. FUNCITION BLOCK
4 - 2
4.2 Local Function Block
4.2.1 Module Initialization (G3F-DA4V/G3F-DA4I : DA4INI, G4F-DA1A : DA1INI)
A module initialization function block is a program for the use in setting a D/A conversion module base location, the
slot location number, specifying an available channel enable, a data type for D/A conversion, and output continuing
data for D/A conversion when the CPU module stops.
Function
Block
I/O Variable Data
type
Descriptions
REQ
BOOL
Function Block Execution Request Area
-The execution of function block initialization is requested in this area.
-If the status connected with this area is satisfied on the program execution and 0 is changed to
1, function block initialization for the module is executed.
BASE USINT
Base Location Number Area
-The base No. on which D/A 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 D/A conversion module is mounted is written on this area.
-Setting range: 0 to 7
CH
BOOL
[Array]
Available Channel Specification Area
-Available channels are specified in this area.
-Enabled channels are specified to 1 and disabled channels are specified to 0.
DATA
TYPE
BOOL
[Array]
Input Data Type Specification Area
-Input digital data type for each channel is specified in this area.
-0 is for the range of -192 to 16191.
-1 is for the range of -8192 to 8191.
Input
SEL
USINT
[Array]
When a CPU module stops or channel is disabled, output value is specified in this area.
-"0" leads to output the medium value of the range.
-"1" leads to output the previous value.
-"2" leads to output the maximum value of the range.
-"3" leads to output th e minimum value of the range.
DONE BOOL
Function Block Execution Complete Area
-When function block initialization has been completed with no error, 1 is written and until next
execution, 1 is continuing. When error occurs, 0 is written and operation comes to stop.
STAT USINT
Error Code Display Area
-When error occurs during function block processing, the error code number is written.
-For error code, refer to Section 7.4.
Output
ACT
BOOL
[Array]
*
Note 1
Channel Operation Display Area
-Enabled channel specified after executing the function block initialization with no error is normal,
1 is written and, 0 is written to the non-specified channel.
REMARK
*Note 1 :The number of Array are the G3F-DA4V and G3F-DA4I of 16 and the G4F-DA1A of 2
Содержание G3F-DA4I
Страница 42: ...Chapter 5 GM PROGRAMMING 5 5 6 I O Variables on Program ...
Страница 44: ...Chapter 5 GM PROGRAMMING 5 7 4 Program INI_STAT ...
Страница 45: ...Chapter 5 GM PROGRAMMING 5 8 5 I O Variables on Program ...
Страница 47: ...Chapter 5 GM PROGRAMMING 5 10 4 Program ...
Страница 48: ...Chapter 5 GM PROGRAMMING 5 11 5 I O Variables on Program ...
Страница 74: ...Chapter 10 G3F PA1A G3F PA2A POWER SUPPLY MODULE 10 3 10 4 Dimensions ...
Страница 75: ...Chapter 11 DIMENSIONS 11 1 Chapter 11 DIMENSIONS 11 1 G3F DA4V G3F DA4I Dimensions ...
Страница 76: ...Chapter 11 DIMENSIONS 11 2 11 2 G4F DA1A Dimensions ...