
Chapter 4. FUNCTION BLOCKS
4 -3
4.2.2 Reading the Detected Temperature Value of the Module (Array Type)
(G3F-RD3A : RTD3ARD, G4F-RD2A : RTD2ARD)
The Array type temperature conversion value reading function block executes all channels of the RTD
input module in a batch processing. If a channel is enabled then the function block outputs the detected
temperature value and its digital conversion value that is usable as a PV in the PID control module.
Function
Block I/O Variable Data
Type Descriptions
REQ BOOL Functionblockexecutionrequestarea
-Usedtorequestanexecutionofthereadingfunctionblock
-If the conditions connected with this area are established while the program is
running and“0”changes into“1”, the readingfunctionblockisexecuted.
BASE USINT BaselocationNo.
-Used to write the number of the base where the RTD input module is loaded.
-Settingrange:GM1series(0~31), GM2 series(0~7), GM3/4 series(0-3)
SLOT USINT SlotlocationNo.
-Usedtowritethe number oftheslotwheretheRTDinput module isloaded.
-Settingrange:0~7
I
CH BOOL
[Array]
*Note1
Runchannel enable/disable specification
-UsedtoenableordisableachanneIforrun.
-Specify“1”for enabling, and“0”for disabling
DONE BOOL Functionblockexecutioncompletestatus
-“1”is output when the reading function block is finished with no error and “1”
remainsuntil nextexecution.Ifanerroroccur,‘0’is displayed and the operation
entersintothestopstate.
STAT USINT
Errorstatusindicationarea
-Used to output the number of an error when it occurs during reading function
blockexecution.
-Fordescriptionoferrors,seeGMSection7.4
ACT BOOL
[Array]
*Note1
Runchannelstatusindicationarea
-After the reading function block is finished with no error, “1”is output if the
channelis innormalstate.But“0”isoutputforthedisabledchannels.
ALM BOOL
[Array]
*Note1
Run channelerrorindicationarea
-“1”isoutputtedwhen erroroccursforeachrunchannel.
ALM_
CODE USINT
[Array]
*Note1
Runchannelerrorcodearea
-Usedtooutput thecodeoferror occurred during run for each channel.
-For error description, seeGMSection7.4.
TEMP INT
[Array]
*Note1
Detectedtemperaturevalueoutputarea
-The CPU module reads the detected temperature value(-200.0°Cto+600.0°C) of
thecorrespondingchannelfromtheRTD inputmoduleandoutputsittothis area.
-The detected temperature value of each channel is 10 times than the real
temperaturevalue.
-(Example:Detected temperaturevalue1234 →realtemperaturevalue123.4°C)
O
SCAL INT
[Array]
*Note1
Digitalconversionvalueoutputarea
-TheCPUmodulereadsthedigitalconversionofthecorrespondingchannelfrom
theRTDinput moduleandoutputsitto thisarea.
-The detected temperature value (-200.0°C to +600.0°C) of each channel is
convertedintothea digital valuewithin0to16000andit is outputtothisarea.
-Valuetobe readfromtheoutput variable.
•SCAL =(the value to be read from the output variable TEMP + 2000)52
•Example: Where a temperature is 234.5°C.
The value to be read from the TEMP is (temperature 510),then
2345 is the detected temperature value.
The value to be read from the SCAL is (2345 + 2000) 52, i.e.,
8690.
-Theoutputvalue converted into a digitalvaluecan be used as the PVof the PID
control module.
REMARK
Note 1: The numbers of Array are 8 in G3F-RD3A, 4 in G4F-RD2A.