Local Function Block; Module Initialization (G3F-Ad4A: Ad4Rini, G4F - Ad2A: Adr2Ini , G3F - Ad4B: Adr4Bi N I ) - LG G3F-AD4A User Manual

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK

4.2 Local Function Block

4.2.1 Module Initialization :
Module Initialization function block is a program for the use in setting base location number and the slot
location number of an A/D conversion module, specifying an available channel enable, a data type for
A/D conversion, filter processing data, and average processing data.
Function
I/O
block
Input
G3F-AD4A
(G4F-AD2A)
AD4INI
(AD2INI)
REQ
DONE
BASE
STAT
SLOT
ACT
CH
DATA
TYPE
FILT
_EN
FILT
_VAL
AVG_
EN
AVG_
SEL
NUM/
TIME
G3F-AD4B
AD4BINI
REQ
DONE
BASE
STAT
SLOT
ACT
CH
IN_
SEL
DATA
TYPE
FILT
_EN
FILT
Output
_VAL
AVG_
EN
AVG_
SEL
NUM/
TIME
REMARK
*note 1 : The number of array is G3F-AD4A of 16, G3F-AD4B of 16 and G4F-AD2A of 4 .
*note 2 : The number of array is G3F-AD4A of 4, G3F -AD4B of 16 and G4F-AD2A of 4 .
On the G3F -AD4A, the element number (0) is specified to channel 0, 1, 2, 3 in block,
On the G4F -AD2A, the element numbers means the channel ones.
*note 3 : Only on the G3F-AD4B, the number of array is 16, the element numbers means the channel ones.
(G3F-AD4A: AD4INI, G4F-AD2A: AD2INI, G3F-AD4B: AD4BINI)
Data
Variable
type
Function Block Execution Request Area
- The execution of function block initialization is requested in this area.
REQ
BOOL
- 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 bl ock initialization for the
module is executed.
Base Location Number Area
BASE
USINT
- The base No. on which A/D conversion module is mount e d is written on this area.
- Setting range : GM1 series( 0 to 31 ), GM2 series( 0 to 7), GM3/4 series( 0 to 3)
Slot Location Number Area
SLOT
USINT
- The slot No. on which A/D conversion module is mounted is written on this area.
- Setting range: 0 to 7
BOOL
Available Channel Specification Area
CH
[Array]
- Available channels are specified in this area.
*note1
- Enabled channels are specified to 1 and disabled channels are specified to 0.
IN_
Analog Input Type(current/voltage) Specification Area
BOOL
SEL
- 0 is for the select of current input
[Array]
*note3
- 1 is for the select of voltage input
Output Data Type Specification Area
BOOL
DATA
- Output digital data type for each channel is specified in this area.
[Array]
TYPE
- 0 is for the range of -192 to 16191. (G3F-AD4B: 0~16000)
*note1
- 1 is for the range of -8192 to 8191. (G3F-AD4B: -8000~8000)
BOOL
Filter Processing Enable Specification Area
FILT
[Array]
- 0 is for the sampling processing.
_EN
*note2
- 1 is for the filter processing.
USINT
FILT
Filter Constant Setting Area
[Array]
_VAL
- Setting range: 1 to 99
*note2
BOOL
Average Processing Enable Specification Area
AVG_
[Array]
- 1 is for the average processing.
EN
*note2
- 0 is for the sampling process.
BOOL
Average process Type Specification Area
AVG_
[Array]
- 1 is for the time average.
SEL
*note2
- 0 is for the numb er average.
Average Number or Average Time Set Area
USINT
- The number or time is set in accordance with the average process type
NUM/
[Array]
specified on the AVG_SEL.
TIME
*note2
- Average number :2 to 4000 (count)
- Average time : G3F-AD4A /G3F-AD4B: 96 to12,000(ms), G4F-AD2A: 40 to 20,000(ms)
Function Block Execution Complete Area
DONE
BOOL
- When function block initialization 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.
Error Code Display Area
STAT
USINT
- When error occurs during function block initialization, the error code number is written.
- Error code is referred to GM Section 1.4.
BOOL
Channel Operation Display Area
[Array]
- The channel specified after executing the function block initialization with no error is
ACT
*note1
right, 1 is written and, on the non-specified channel, 0 is written.
the element number (1) is specified to channel 4, 5, 6, 7, in block.
the element number (2) is specified to channel 8, 9, 10, 11 in block.
the element number (3) is specified to channel 12, 13, 14, 15 in block.
4 - 2
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G3f-ad4bG4f-ad2a

Table of Contents