Changed all components to use HAL structs as in and outs
- All components now use HAL structs as inputs and outputs - Restructured library folders - FB_Axis_PTP now implements the execute pattern with E_CmdResult - Bumped version number to 2.0.0
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1">
|
||||
<DUT Name="ST_ValveAnalogConfig" Id="{8ae10abc-4856-40f8-b7e0-08933552acd7}">
|
||||
<Declaration><![CDATA[TYPE ST_ValveAnalogConfig :
|
||||
STRUCT
|
||||
// Analog value when valve is considered open
|
||||
// defaults to >=5%
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
rPVIsOpen : REAL := 5.0;
|
||||
|
||||
// Maximum allowable difference between setpoint and process value
|
||||
// Defaults to +-5
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
rTargetTolerance : REAL := 5.0;
|
||||
|
||||
// Time for the valve to get to the requested setpoint
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
timNotInRange : TIME := T#30S;
|
||||
|
||||
// Config parameters for the analog input
|
||||
stAnalogInputConfig : ST_ANALOG_IO_CONFIG := (iAIMax := 32767, iAIMin := 0, rPVMax := 100, rPVMin := 0);
|
||||
stAnalogInputEWConfig : ST_ANALOG_EW_CONFIG;
|
||||
|
||||
// Config parameters for the analog output
|
||||
stAnalogOutputConfig : ST_ANALOG_IO_CONFIG := (iAIMax := 32767, iAIMin := 0, rPVMax := 100, rPVMin := 0);
|
||||
|
||||
// Timeout for the valve to open
|
||||
// 0 = deactivated
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
timTimeoutOpen : TIME := T#0S;
|
||||
|
||||
// Timeout for the valve to close
|
||||
// 0 = deactivated
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
timTimeoutClose : TIME := T#0S;
|
||||
|
||||
// Valve has open feedback signal
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
xHasOpenFeedback : BOOL;
|
||||
|
||||
// Valve has close feedback signal
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
xHasClosedFeedback : BOOL;
|
||||
|
||||
// Valve has analog feedback signal
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
xHasAnalogFeedback : BOOL;
|
||||
|
||||
// Set setpoint to use if interlocks are active
|
||||
// defaults to 0
|
||||
rSetpointWhenInterlocksActive : REAL := 0;
|
||||
|
||||
// Valve is used
|
||||
{attribute 'OPC.UA.DA' := '1'}
|
||||
xUsed : BOOL := TRUE;
|
||||
END_STRUCT
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
</DUT>
|
||||
</TcPlcObject>
|
||||
Reference in New Issue
Block a user