Commit b05f084d authored by claes's avatar claes

Attr ManMode added to Mode to make to remove code in object graph

parent 3323c8e5
/*
* Proview $Id: rt_plc_pid.c,v 1.5 2005-09-01 14:57:56 claes Exp $
* Proview $Id: rt_plc_pid.c,v 1.6 2006-05-16 11:48:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -290,6 +290,7 @@ void mode_exec(
if (object->OpMod <= 1)
{
object->Force = TRUE;
object->ManMode = TRUE;
object->AutMode = FALSE;
object->CascMod = FALSE;
/* External setpoint ? */
......@@ -305,12 +306,14 @@ void mode_exec(
/* Auto */
if (object->OpMod == 2)
{
object->ManMode = FALSE;
object->AutMode = TRUE;
object->CascMod = FALSE;
}
/* Cascade mode */
else
{
object->ManMode = FALSE;
object->AutMode = FALSE;
object->CascMod = TRUE;
object->SetVal = object->XSetVal;
......
!
! Proview $Id: pwrb_c_mode.wb_load,v 1.8 2005-09-01 14:58:02 claes Exp $
! Proview $Id: pwrb_c_mode.wb_load,v 1.9 2006-05-16 11:48:54 claes Exp $
! Copyright (C) 2005 SSAB Oxelösund AB.
!
! This program is free software; you can redistribute it and/or
......@@ -238,6 +238,21 @@ SObject pwrb:Class
EndBody
EndObject
!/**
! Indicates if the control mode MANUAL is selected or not.
! FALSE means that MANUAL is not the control mode; TRUE
! means that MANUAL is the control mode.
! This attribute is used only as information.
!*/
Object ManMode $Intern 27
Body SysBody
Attr PgmName = "ManMode"
Attr Flags |= PWR_MASK_STATE
Attr Flags |= PWR_MASK_NOEDIT
Attr TypeRef = "pwrs:Type-$Boolean"
Attr GraphName = "man"
EndBody
EndObject
!/**
! Specifies the actual control mode. The value is changed
! from the object display of the Mode object.
!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment