Module Reading (Array Type) - LG G3F-TC4A User Manual

Glofa, master-k programmable logic controller
Table of Contents

Advertisement

Chapter 4. FUNCTION BLOCKS
4.3.2 Module Reading (G3F-TC4A : TCR4RD, G4F-TC2A : TCR2RD, G6F-TC2A : TCR62RD)
The module reading function block processes all channels of the thermocouple input module in batch.
The enabled channel outputs the temperature conversion value to the output variable TEMP.
Function
Block
G3F-TC4A
TCR4INI
REQ
NDR
NET_
ERR
NO
ST_
STAT
NO
ACT
BASE
SLOT
CH
TYPE
G4F-TC2A
TCR2INI
REQ
NDR
NET_
ERR
NO
ST_
STAT
NO
ACT
BASE
SLOT
CH
TYPE
G6F-TC2A
TCR62INI
REQ
NDR
NET_
ERR
NO
ST_
STAT
NO
ACT
BASE
SLOT
CH
TYPE
REMARK
*Note 1: The numbers of Array are 16 in G3F-TC4A, 4 in G4F-TC2A/G6F-TC2A
I/
Data
Variable
O
Type
I
Function block execution request area
- Used to request an execution of the reading function block
- If the conditions connected with this area are established while the program
REQ
BOOL
is running and "0" changes into "1"(
function block is executed.
Location No. of the slot where the local communication module to which the
NET_
USINT
function block will be sent is mounted.
NO
- Setting range: 0 ~ 7
Station No. of the communication module mounted in the remote I/O station.
ST_NO
USINT
-Setting range: 0 ~ 63
Base module location No.
- Used to write the base No. where the thermocouple input module is mounted.
BASE
USINT
- Setting range: GM1 series(0~31), GM2 series(0~7), GM3/4 series(0-3)
GM6 series(0-1)
Slot location No.
SLOT
USINT
- Used to write the slot No. where the thermocouple input module is mounted.
- Setting range: 0~7
BOOL
Used channel enable/disable specification
CH
[Array]
- Used to enable or disable a channel for run.
- Specify "1" for enabling, and "0" for disabling
O
"1" when the function block is finished without error. "1" remains during the
NDR
scan where the execution condition is being satisfied and changes into "0" at
*Note1
BOOL
next scan.
Error information indication area
- If error occurs during initialization function block execution "1" is outputted
ERR
BOOL
and the module enter into the stop state. "1" remains during the scan where
the execution condition is being satisfied and it changes into "0" at the next
scan.
Error status indication area
USINT
- Used to output the error No. when it occurs during reading function block
STAT
execution.
- For description of errors, refer to Section 4.4
BOOL
Run channel status indication area
ACT
[Array]
- After the initialization function block is finished with no error, "1" is output if
the channel is in normal state. But "0" is output for the disabled channels.
*Note 1
BOOL
Run channel error indication area
ALM
[Array]
- "1" is outputted when error occurs for each run channel.
*Note 1
Run channel error code area
-Outputs the following code for each channel coded if error occurred.
USINT
ALM_
0: Normal
[Array]
CODE
16: Disconnection detected
*Note 1
17: Out-of-the-measuring-range error
18: Reference junction compensation device error
Temperature conversion value output area
- The CPU module reads the temperature conversion value of the
corresponding channel from the thermocouple-input module and outputs it
INT
to this area.
TEMP
[Array]
- The temperature conversion value of each channel is 10 times than the real
*Note 1
temperature value.
- (Example: Temperature conversion value 1234 → Real temperature value
123.4°C)
Digital conversion value output area
- The CPU module reads the digital conversion value of the corresponding
channel from the thermocouple-input module and outputs it to this area.
- The temperature conversion value of each channel within its measuring
temperature range is converted into a digital value within 0 to 16000 and it
is outputted to this area.
INT
-
SCAL
[Array]
*Note 1
- The output value through digital conversion can be used as a PV of the PID
control module.
4 - 6
Description
The Value read from the output variable SCAL.
16000
× (Temperature conversion value –
Overall measuring
temperature range
), the module initialization
Minimum measuring temperature)
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-tc2aG6f-tc2a

Table of Contents