Академический Документы
Профессиональный Документы
Культура Документы
Main Module
Subroutine: ! Main Routine
High and Low alarms
In this sample application, an analog signal set to 4-20 mA will be scaled to 0-100.0% tank level. Two alarm levels - High and Low, and also hysteresis, will be entered from HMI. This application
will calculate alarm reset points |alarm setpoint - hysteresis| and will activate the alarms.
In this example, the alarm will be simulated.
Scaling the analog input to level in %. 204 - 1023 -> 0 - 1000 (0-100.0%). Using linearization function
EN
ENO
LINEAR
MI 10
Analog Level
MI 1
Tank Level in %
Calculating Low alarm Reset point, where a new entry from HMI is performed (SB30 rise)
SB 30
Keypad Vars
Locked(Standard:
OS turns ON after
|P|
EN ENO
ADD
MI 2
Low alarm Level
MI 4
Hysteresis
MI 5
Low Al Reset level
Calculating High alarm Reset point, where a new entry from HMI is performed (SB30 rise)
EN ENO
SUB
SB 30
Keypad Vars
Locked(Standard:
OS turns ON after
|P|
MI 3
High Alarm
MI 4
Hysteresis
MI 6
High Al Reset level
EN ENO
A <= B
MI 1
Tank Level in %
MI 2
Low alarm Level
MB 2
Low alarm condition
(S)
EN ENO
A >= B
MI 1
Tank Level in %
MI 5
Low Al Reset level
MB 2
Low alarm condition
(R)
EN ENO
A >= B
MI 1
Tank Level in %
MI 3
High Alarm
MB 3
High Alarm
Condition
(S)
E:\unitronics\modbusV2.vlp
Page 1 of 7
EN ENO
A <= B
MI 1
Tank Level in %
MI 6
High Al Reset level
MB 3
High Alarm
Condition
(R)
MB 2
Low alarm condition
SB 3
1 second pulse
MB 0
Low alarm Blink
| |
| |
( )
MB 3
High Alarm
Condition
SB 3
1 second pulse
MB 1
High Alarm Blink
| |
| |
( )
Level Simulator
EN ENO
A < B
SB 7
100 mS pulse
10
|P|
MI 10
Analog Level
D# 1024
|P|
MI 10
Analog Level
EN ENO
A >= B
SB 7
100 mS pulse
11
EN ENO
INC
MI 10
Analog Level
D# 1024
EN
D# 204
ST
ENO
B
MI 10
Analog Level
RET
21
E:\unitronics\modbusV2.vlp
Page 2 of 7
Jump Condition
SB 57 - ESC
Vars Table
Var Alias
A
Display
Parametros
Var Name
Variable 11
Var Type
Numeric
E:\unitronics\modbusV2.vlp
Page 3 of 7
Jump Condition
SB 57 - ESC
Vars Table
Var Alias
A
Display
Parametros
Var Name
Variable 12
Var Type
Numeric
E:\unitronics\modbusV2.vlp
Page 4 of 7
Jump Condition
SB 57 - ESC
Vars Table
Var Alias
A
Display
Monitoreo
Var Name
Variable 13
Var Type
Numeric
E:\unitronics\modbusV2.vlp
Page 5 of 7
F
C
E
D
Jump Condition
SB 41 - Key: # 1 (also Up arrow for V120)
Vars Table
Var Alias
A
B
C
D
E
F
G
Var Name
Variable 6
Variable 7
Variable 2
Variable 3
Variable 4
Variable 5
Variable 9
A
B
Display
Monitoreo
Var Type
Binary Image
Binary Image
Numeric
Numeric
Numeric
Numeric
BarGraph
E:\unitronics\modbusV2.vlp
Page 6 of 7
Jump Condition
SB 42 - Key: # 2
SB 43 - Key: # 3
SB 44 - Key: # 4
SB 57 - ESC
E:\unitronics\modbusV2.vlp
Display
Alarma Alta
Alarma Baja
Hysterisis
Monitoreo
Page 7 of 7