Você está na página 1de 2

Totally Integrated

Automation Portal

SCALE4_20new (tested)_V13_SP1 / PLC_1 [Unspecific CPU 1200] / Program blocks


SCALE_4..20 [FC105]
SCALE_4..20 Properties
General
Name SCALE_4..20 Number 105 Type FC Language LAD
Numbering automatic
Information
Title Author Comment Family
Version 0.1 User-defined
ID

SCALE_4..20
Name Data type Offset Default value Comment
Input
IN Int
HI_LIM Real
LO_LIM Real
Output
OUT Real
InOut
Temp
in0to20mA(0-1) Real ...
in0to20mA(0-27648) Real ...
process_range Real ...
4-20resolution Real ...
in-offset4mA Real ...
aux5 Real ...
aux6 Real ...
Constant
Return
SCALE_4..20 Word

Network 1:

NORM_X MUL
Int to Real Real
EN ENO EN ENO
0 MIN #"in0to20mA(0- #"in0to20mA(0- #"in0to20mA(0-
#IN VALUE OUT 1)" 1)" IN1 OUT 27648)"
27648 MAX 27648.0 IN2

Symbol Address Type Comment


#"in0to20mA(0-1)" Real
#"in0to20mA(0-27648)" Real
#IN Int

Network 2:
Totally Integrated
Automation Portal

SUB DIV
Real Real
EN ENO EN ENO
#HI_LIM IN1 OUT #process_range #process_range IN1 OUT #"4-20resolution"
#LO_LIM IN2 22118.4 IN2

SUB
Real
EN ENO
#"in0to20mA(0- OUT #"in-offset4mA"
27648)" IN1
5529.6 IN2

MUL ADD
Real Real
EN ENO EN ENO
#"in-offset4mA" IN1 OUT #aux5 #aux5 IN1 OUT #aux6
#"4-20resolution" IN2 #LO_LIM IN2

#"in0to20mA(0-
27648)"
MOVE
<
Real EN ENO
#LO_LIM IN OUT1 #OUT
5529.6

#"in0to20mA(0-
27648)"
MOVE
>
EN ENO
Real
27648.0 #HI_LIM IN OUT1 #OUT

IN_RANGE
Real MOVE
EN ENO
5529.6 MIN #aux6 IN OUT1 #OUT
#"in0to20mA(0-
27648)" VAL
27648.0 MAX

Symbol Address Type Comment


#"4-20resolution" Real
#"in0to20mA(0-27648)" Real
#"in-offset4mA" Real
#aux5 Real
#aux6 Real
#HI_LIM Real
#LO_LIM Real
#OUT Real
#process_range Real

Network 3:

OUT_RANGE
Int MOVE
EN ENO
5400 MIN 16#0008 IN OUT1 #"SCALE_4..20"
#IN VAL
29000 MAX MOVE
NOT EN ENO
16#0000 IN OUT1 #"SCALE_4..20"

Symbol Address Type Comment


#"SCALE_4..20" Word
#IN Int