Chapter 4. FUNCITION BLOCK
4.2.2 Module Write_Single Type( G3F-DA3V,G3F-DA3I,G4F-DA3V,G4F-DA3I : DA3WR,
G4F-DA2V,G4F-DA2I,G6F-DA2V,G6F-DA2I : DA2WR)
Module write function block of the Single type is a program for the use in performing for a channel of D/A
conversion module and setting a digital value to be converted into a D/A conversion.
Function
I/O
Variable
block
REQ
Input
G3F-DA3V/DA3I
G4F-DA3V/DA3I
DA3WR
REQ
DONE
BASE
BASE
STAT
SLOT
CH
SLOT
DATA
CH
G4F-DA2V/DA2I
G6F-DA2V/DA2I
DA2WR
DATA
REQ
DONE
BASE
STAT
output
DONE
SLOT
CH
DATA
STAT
Data
type
BOOL
Function Block Execution Request Area
-The execution of function block 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 for the module is executed.
USINT Base Location Number Ar ea
- The base No. on which D/A conversion module is mount e d is written on this area.
- Setting range : G3F-DA3V,G3F-DA3I,G4F-DA3V,G4F-DA3I,G4F-DA2V,G4F-DA2I : 0 to 3
G6F-DA2V, G 6F-DA2I : 0
USINT Slot Location Number Area
- The slot No. on which D/A conversion module is mount e d is written on this area.
- Setting range: 0 to 7
USINT Available Channel Specification Area
- Available channels are specified in this area.
- Range : G3F-DA3V,G3F-DA3I,G4F-DA3V,G4F-DA3I : 0 to 3
G4F-DA2V,G4F-DA2I,G6F-DA2V, G 6F-DA2I : 0
INT
Input Data Type Specification Area
-Input digital data type for each channel is specified in this area.
-Setting range: 0 ~ 4000
BOOL
Function Block Execution Complete Area
- When function block has been completed with no error, 1 is written and until next execution, 1
is continuing. When error occurs, 0 is written and operation come to stop.
USINT Error Code Display Area
- When error occurs during function block processing, the error code number is written.
- For error code, refer to section 4.4.
4 - 3
Descriptions