Added logic, tags, and alarms for runtime alarms

This commit is contained in:
Patrick McDonagh
2016-02-23 10:05:51 -06:00
parent 6374e9a561
commit ea2aa032c6
30 changed files with 34 additions and 39 deletions

View File

@@ -1 +1 @@
COMPILED
TO RELINK

View File

@@ -45,6 +45,11 @@ Controller.Micro820.Micro820._IO_EM_DO_05 FALSE
Controller.Micro820.Micro820._IO_EM_DO_06 FALSE
Controller.Micro820.Micro820._IO_P1_AI_00
Controller.Micro820.Micro820._IO_P1_AI_01
Controller.Micro820.Micro820.ALARM_Mode
Controller.Micro820.Micro820.ALARM_Pressure
Controller.Micro820.Micro820.ALARM_Temperature
Controller.Micro820.Micro820.ALARM_TubingPressure
Controller.Micro820.Micro820.ALARM_VFD
Controller.Micro820.Micro820.Auto_Mode TRUE
Controller.Micro820.Micro820.cfg_MaxFreq
Controller.Micro820.Micro820.cfg_MinFreq
1 Controller.Micro820.Micro820.__SYSVA_ABORT_CYCLE FALSE
45 Controller.Micro820.Micro820._IO_EM_DO_06 FALSE
46 Controller.Micro820.Micro820._IO_P1_AI_00
47 Controller.Micro820.Micro820._IO_P1_AI_01
48 Controller.Micro820.Micro820.ALARM_Mode
49 Controller.Micro820.Micro820.ALARM_Pressure
50 Controller.Micro820.Micro820.ALARM_Temperature
51 Controller.Micro820.Micro820.ALARM_TubingPressure
52 Controller.Micro820.Micro820.ALARM_VFD
53 Controller.Micro820.Micro820.Auto_Mode TRUE
54 Controller.Micro820.Micro820.cfg_MaxFreq
55 Controller.Micro820.Micro820.cfg_MinFreq

View File

@@ -1 +0,0 @@
TO RELINK

View File

@@ -1 +0,0 @@
COMPILED

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>

View File

@@ -205,7 +205,28 @@ END_IF;
IF (NOT Run_Permissive AND VFD_Run_Cmd) THEN
Device_Status := 'Lost Run Permissive';
Shutdown_Time := __SYSVA_CYCLEDATE;
IF NOT RP_Mode THEN
ALARM_Mode := TRUE;
ELSIF NOT RP_Pressure THEN
ALARM_Pressure := TRUE;
ELSIF NOT RP_Temperature THEN
ALARM_Temperature := TRUE;
ELSIF NOT RP_TubingPressure THEN
ALARM_TubingPressure := TRUE;
ELSIF NOT RP_VFD THEN
ALARM_VFD := TRUE;
END_IF;
VFD_Start := FALSE;
END_IF;
IF Run_Permissive THEN
ALARM_Mode := FALSE;
ALARM_Pressure := FALSE;
ALARM_Temperature := FALSE;
ALARM_VFD := FALSE;
END_IF;
(* Run only if commanded to start and start permissive is met or already running and not being told to stop *)

View File

@@ -1,17 +0,0 @@
RA_PFX_ENET_PAR_WRITE(168):FB,MSG_CIPGENERIC();FB,R_TRIG();
USINT_TO_UDINT(149):
VFD_MESSAGING(163):FB,RA_PFX_ENET_STS_CMD(164);
DINT_TO_USINT(154):
UINT_TO_USINT(155):
VFD_CONFIGMAP(167):FB,RA_PFX_ENET_PAR_READ(166);FB,RA_PFX_ENET_PAR_WRITE(168);
VFD_ERRORMAP(169):
USINT_TO_UINT(151):
RA_PFX_ENET_STS_CMD(164):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();
CONTROL(161):FB,LINEARSCALE(159);
USINT_TO_SINT(152):
LINEARSCALE(159):
SINT_TO_USINT(156):
UDINT_TO_USINT(153):
RA_PFX_ENET_PAR_READ(166):FB,MSG_CIPGENERIC();FB,R_TRIG();
USINT_TO_DINT(150):
READDOWNHOLEDATA(160):

Binary file not shown.

View File

@@ -1,2 +1,2 @@
[RMDManager]
TASK=BUILD
TASK=REBUILD

View File

@@ -0,0 +1,5 @@
Controller.Micro820.Micro820.ALARM_Mode
Controller.Micro820.Micro820.ALARM_Pressure
Controller.Micro820.Micro820.ALARM_Temperature
Controller.Micro820.Micro820.ALARM_TubingPressure
Controller.Micro820.Micro820.ALARM_VFD

Binary file not shown.

Binary file not shown.

Binary file not shown.