Class BaseMValve
Version 1.1
Modified 28-SEP-2005 13:08:15.73
 Base component for a solenoid valve digital order output and with two
 switches.

Graphical Symbol
 The graphical symbol for this object is BaseComponent/MValve.
 For a valve without switches also MValveNoSwitches can be used.

 Default dynamics:
 - the valve symbol is filled with the original color when the valve is open.
 - colored white when the valve is closed.
 - colored gray when no switch is affected.
 - colored red when an error occurs.

 Default action:
 - the methods menu is opened with MB3.

 The current mode is displayed with the letters L (local) and M (manual).
 If no letter is displayed, the mode is auto.

Object Graph

Mode
 Auto or manual mode is selected from the object graph, with the buttons 'Auto'
 and 'Man'. The possibility to set the valve in manual mode might be disabled. In
 this case, the Auto/Man buttons are not displayed in the object graph.

 - Auto. The order output is controlled by the plc.
 - Manual. The order output is controlled by the operator, from the object graph.
   The valve is opened with the 'Open' button, and closed with the 'Close' button.

Supervision
 If limit switches for open and closed position are available, they are matched
 against the order output. If a switch doesn't correspond to the order within
 a time limit, an alarm is sent.

 If you choose not to use the handling of modes in the object, but place this
 outside the object, it is important to reset the order at error status, i.e.
 you should reset the function object inputs at error, to avoid unwanted restarts.

Configuration


 Component configuration
 - TwoSwitches            Switch open and switch closed.
 - SwitchOpen             Switch open.
 - SwitchClosed           Switch closed.
 - NoSwitches             No switches.

Signals
 Signals that should be connected to channel objects:

 - Order        Do
 - SwitchOpen   Di (optional)
 - SwitchClosed Di (optional)

Mode
 If the valve always should be controlled by the plc, the manual mode is
 disabled by setting Mode.OpAutoOnly to 1.

Plc coding
 For plc coding the function object BaseMValveFo is used.
 Create a function object in the plc editor and connect it to the current
 object with the connect function.

Simulate
 For simulation of the valve, use the plc object BaseMValveSim.

See also



RtBody attributes pwr_sClass_BaseMValve
Component Super   Super class.
BaseMValveGCEnum GraphConfiguration   Enumeration for object graph configuration.
Handled by the ConfigureComponent method.
Do Order   Digital output signal for order.
Di SwitchOpen   Digital input signal for switch open.
Di SwitchClosed   Digital input signal for switch closed.
CompModeDM Mode   Mode object handling the Auto/Manual/Local modes.
Float32 SwitchAlarmDelay   Delay for switch alarm in seconds.
DSupComp SwitchAlarm   Alarm text for switch alarm.
Boolean IndError   Indication for error.
Boolean IndWarning   Indication for warning.
Boolean ExtInterlock   External interlock.
ValvePosEnum PosEnum   Enumeration for valve position (open, closed or in between).
Boolean SupDisabled   Supervision is disabled.
AttrRef PlcConnect   The plc function object connected to this object.
AttrRef SimConnect   The simulate plc function object connected to this object.


Template Object
SwitchAlarmDelay 3.000000e+00
SwitchAlarm.DetectOn 1
SwitchAlarm.DetectText Switch error
SwitchAlarm.EventType 64
SwitchAlarm.EventPriority 67
SwitchAlarm.EventFlags 7
SwitchAlarm.MoreText
SwitchAlarm.Attribute BaseComponent:Class-BaseMValve-Template
SwitchAlarm.CtrlPosition 1
SwitchAlarm.LockAttribute 1


Attributes detail


Super Attribute
Class Attribute
Type Component
Flags Class|Superclass
Body RtBody
 Super class.

GraphConfiguration Attribute
Class Attribute
Type BaseMValveGCEnum
Flags
Body RtBody
 Enumeration for object graph configuration.
 Handled by the ConfigureComponent method.

Order Attribute
Class Attribute
Type Do
Flags Class|DisableAttr
Body RtBody
 Digital output signal for order.

SwitchOpen Attribute
Class Attribute
Type Di
Flags Class|DisableAttr
Body RtBody
 Digital input signal for switch open.

SwitchClosed Attribute
Class Attribute
Type Di
Flags Class|DisableAttr
Body RtBody
 Digital input signal for switch closed.

Mode Attribute
Class Attribute
Type CompModeDM
Flags Class
Body RtBody
 Mode object handling the Auto/Manual/Local modes.


SwitchAlarmDelay Attribute
Class Attribute
Type Float32
Flags ReduTransfer|DisableAttr
Body RtBody
 Delay for switch alarm in seconds.

SwitchAlarm Attribute
Class Attribute
Type DSupComp
Flags Class|DisableAttr
Body RtBody
 Alarm text for switch alarm.

IndError Attribute
Class Attribute
Type Boolean
Flags ReduTransfer|Noedit
Body RtBody
 Indication for error.

IndWarning Attribute
Class Attribute
Type Boolean
Flags ReduTransfer|Noedit
Body RtBody
 Indication for warning.

ExtInterlock Attribute
Class Attribute
Type Boolean
Flags ReduTransfer|Noedit
Body RtBody
 External interlock.

PosEnum Attribute
Class Attribute
Type ValvePosEnum
Flags ReduTransfer
Body RtBody
 Enumeration for valve position (open, closed or in between).

SupDisabled Attribute
Class Attribute
Type Boolean
Flags ReduTransfer
Body RtBody
 Supervision is disabled.
 Shows the input DisableSup in the plc Fo object.

PlcConnect Attribute
Class Attribute
Type AttrRef
Flags
Body RtBody
 The plc function object connected to this object.
 This attribute is set when the function object is connected from
 the plc editor by the connect function.

SimConnect Attribute
Class Attribute
Type AttrRef
Flags
Body RtBody
 The simulate plc function object connected to this object.
 This attribute is set when the simulate function object is connected from
 the plc editor by the connect function.