LG G3F-AD4A User Manual page 47

Programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCK
4.3 Remote Function Block
4.3.1 Module Initialization :
Module Initialization function block is a program for the use in setting the location number of the slot on
which the communication module of A/D conversion module of the master station is mounted, the address
number of communication module which a remote I/O station has, the base location number, and the slot
location number, and specifying the available channel enable, a data type for A/D conversion, filter process
data, and average process data.
Function
I/O
Variable
Block
G3F-AD4A
Inpu
t
REQ
(G4F-AD2A)
ADR4INI
NET_
(ADR2INI)
NO
REQ
NDR
ST_NO
NET_
ERR
NO
ST_N
STAT
BASE
O
BASE
ACT
SLOT
SLOT
CH
DATA
CH
TYPE
FILT
_EN
IN_
FILT
SEL*note3
_VAL
AVG_
DATA
EN
TYPE
AVG_
SEL
NUM/
TIME
FILT
_EN
G3F-AD4B
FILT
ADR4BINI
_VAL
REQ
NDR
AVG_
NET_
ERR
EN
NO
ST_N
STAT
AVG_
O
SEL
BASE
ACT
SLOT
NUM/
CH
TIME
IN_
SEL
DATA
TYPE
NDR
Output
FILT
_EN
FILT
ERR
_VAL
AVG_
EN
AVG_
SEL
STAT
NUM/
TIME
ACT
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,
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.
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: ADR4INI, G4F-AD2A: ADR2INI, G3F-AD4B: ADR4BINI)
Data
type
Function Block Execution Request Area on Rising Edge.
- The execution of write function block is requested in this area.
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 block initialization for the module is executed.
The location number of the slot on which the transmission module of the master station is
USINT
mounted. -Setting range: 0 to 7
Station number of the communication module which a remote I/O station has.
USINT
- Setting range : 0 to 63
Base Location Number Area
USINT
- The base No. on which A/D conversion module is mounted is written on this area.
- Setting range : 0 to 3
Slot Location Number Area
USINT
- The slot No. on which A/D conversion module is mount e d is written on this area.
- Setting range: 0 to 7
BOOL
Available Channel Specification Area
[Array]
- Available channels are specified in this area.
*note1
- Enabled channels are specified to 1 and disabled channels are specified to 0.
BOOL
Analog Input Type(current/voltage) Specification Area
[Array]
- 0 is for the select of current input. – 1 is for the select of voltage input.
Output Data Type Specification Area
BOOL
- Output digital data type for each channel is specified in this area.
[Array]
- 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 Process En able Specification Area
[Array]
- 0 is for the sampling processing. - 1 is for the filter processing.
*note2
USINT
Filter Constant Setting Area
[Array]
- Setting range: 1 to 99
*note2
BOOL
Average Process Enable Specification Are a
[Array]
- 1 is for the average processing. - 0 is for the sampling process.
*note2
BOOL
Average process Type Specification Area
[Array]
- 1 is for the time average.
*note2
Average Number or Average Time Set Area
USINT
- The number or time is set in accordance with the average process type
[Array]
specified on the AVG_SEL.
*note2
- Average number :2 to 4000 (count)
- Average time : G3F-AD4A/G3F-AD4B : 96 to12,000(ms), G4F-AD2A: 40 to 20,000(ms)
When function block execution is completed with no error, 1 is written. During the scan which the
BOOL
execution condition has been made, 1 is continuing and at the next scan. 0 is written.
Error Data Display Area
- When error occurs during function block initialization, 1 is written and the operation comes
BOOL
to stop. During the scan which the execution condition has been made, 1 is continuing
and at the next scan, 0 is written.
Error Code Display Area
USINT
- When error occurs during function block initialization, the error code number is written.
- Error code is referred to Section 4.4.
BOOL
Channel Operation Display Area
[Array]
- The channel specified after executing the function block initialization with no error is
*note1
right, 1 is written and, on the non-specified channel, 0 is written.
4 - 5
Descriptions
- 0 is for the number average.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G3f-ad4bG4f-ad2a

Table of Contents