Вы находитесь на странице: 1из 7

Module: !

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

Low Alarm set

EN ENO
A <= B

MI 1
Tank Level in %

MI 2
Low alarm Level

MB 2
Low alarm condition

(S)

Low alarm reset

EN ENO
A >= B

MI 1
Tank Level in %

MI 5
Low Al Reset level

MB 2
Low alarm condition

(R)

High Alarm set

EN ENO
A >= B

MI 1
Tank Level in %

MI 3
High Alarm

MB 3
High Alarm
Condition

(S)

Low alarm reset

E:\unitronics\modbusV2.vlp

Page 1 of 7

mircoles, 01 de octubre de 2014

EN ENO
A <= B

MI 1
Tank Level in %

MI 6
High Al Reset level

MB 3
High Alarm
Condition

(R)

Low and High Alarms blink for HMI

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

mircoles, 01 de octubre de 2014

HMI Display: Alarma Alta

Jump Condition
SB 57 - ESC
Vars Table
Var Alias
A

Display
Parametros

Var Name
Variable 11

Var Type
Numeric

Var Type: Numeric


Var Name: Variable 11
Linked Operand: MI 3 - High Alarm
Features:
Format: 999.9
Leading Type: Spaces

E:\unitronics\modbusV2.vlp

Page 3 of 7

mircoles, 01 de octubre de 2014

HMI Display: Alarma Baja

Jump Condition
SB 57 - ESC
Vars Table
Var Alias
A

Display
Parametros

Var Name
Variable 12

Var Type
Numeric

Var Type: Numeric


Var Name: Variable 12
Linked Operand: MI 2 - Low alarm Level
Features:
Format: 999.9
Leading Type: Spaces

E:\unitronics\modbusV2.vlp

Page 4 of 7

mircoles, 01 de octubre de 2014

HMI Display: Hysterisis

Jump Condition
SB 57 - ESC
Vars Table
Var Alias
A

Display
Monitoreo

Var Name
Variable 13

Var Type
Numeric

Var Type: Numeric


Var Name: Variable 13
Linked Operand: MI 3 - High Alarm
Features:
Format: 999.9
Leading Type: Spaces

E:\unitronics\modbusV2.vlp

Page 5 of 7

mircoles, 01 de octubre de 2014

HMI Display: Monitoreo

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

Var Type: Binary Image


Var Name: Variable 6
Var Type: Binary Image
Var Name: Variable 7
Var Type: Numeric
Var Name: Variable 2
Linked Operand: MI 1 - Tank Level in %
Features:
Format: 999.9
Leading Type: Spaces
Postfix: %
Var Type: Numeric
Var Name: Variable 3
Linked Operand: MI 2 - Low alarm Level
Features:
Format: 999.9
Leading Type: Spaces
Var Type: Numeric
Var Name: Variable 4
Linked Operand: MI 3 - High Alarm
Features:
Format: 999.9
Leading Type: Spaces
Var Type: Numeric
Var Name: Variable 5
Linked Operand: MI 4 - Hysteresis
Features:
Entry Min Value: D# -32768
Entry Max Value: D# 32767
Format: 99.9
Leading Type: Spaces
Key Pad Entry: Yes
Var Type: BarGraph
Var Name: Variable 9
Linked Operand: MI 1 - Tank Level in %
Features:
Direction: Up
Min Value: D# 0
Max Value: D# 1000
Frame: Yes

E:\unitronics\modbusV2.vlp

Page 6 of 7

mircoles, 01 de octubre de 2014

HMI Display: Parametros

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

mircoles, 01 de octubre de 2014

Вам также может понравиться