Modfified IQS_HGCV_ALARM Nica order trigger to not also check for active CHANGEOVER orders before triggering
This commit is contained in:
@ -148,9 +148,8 @@ WRITE_RECORD:
|
|||||||
end else
|
end else
|
||||||
ModeUser = @User4
|
ModeUser = @User4
|
||||||
end
|
end
|
||||||
CurrActiveHgCVOrders = Nica_Orders_Services('GetActiveOrders', 'REACTOR', Name, 'IQS_HGCV_ALARM')
|
CurrActiveHgCVOrders = Nica_Orders_Services('GetActiveOrders', 'REACTOR', Name, 'IQS_HGCV_ALARM')
|
||||||
CurrActiveProveInOrders = Nica_Orders_Services('GetActiveOrders', 'REACTOR', Name, 'CHANGEOVER')
|
OrderTypeAlreadyActive = (CurrActiveHgCVOrders NE '')
|
||||||
OrderTypeAlreadyActive = ( (CurrActiveHgCVOrders NE '') or (CurrActiveProveInOrders NE '') )
|
|
||||||
If Not(OrderTypeAlreadyActive) then
|
If Not(OrderTypeAlreadyActive) then
|
||||||
// Only create an order and change the mode if there is not already an active IQS_HGCV_ALARM order
|
// Only create an order and change the mode if there is not already an active IQS_HGCV_ALARM order
|
||||||
OrderResponse = Nica_Orders_Services('CreateNewOrder', 'REACTOR', Name, 'IQS_HGCV_ALARM')
|
OrderResponse = Nica_Orders_Services('CreateNewOrder', 'REACTOR', Name, 'IQS_HGCV_ALARM')
|
||||||
@ -228,5 +227,3 @@ Restore_System_Variables:
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user