MC_ValveCharacterization
This function block characterizes the valve characteristic curve of the axis through a series of velocity measurements.
For each measurement the function block generates an output value for the drive based on the OutputStepSize input and
the drive's actuating value range and measures the resulting actual velocity.
Syntax
Definition:
FUNCTION_BLOCK MC_ValveCharacterization
VAR_IN_OUT
Axis : Reference To AXIS_REF;
END_VAR
VAR_INPUT
Execute : BOOL;
PauseAtPositionLimit : BOOL;
OutputStepSize : LREAL;
PositionLimitMinimum : LREAL;
PositionLimitMaximum : LREAL;
Options : ValveCharacterizationOptions;
END_VAR
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Active : BOOL;
CommandAborted : BOOL;
Error : BOOL;
ErrorId : UDINT;
NextMovingToMaximum : BOOL;
NextMovingToMinimum : BOOL;
END_VAR
Inputs
|
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Execute |
BOOL |
|
Start the valve characterization process at rising edge. |
|
PauseAtPositionLimit |
BOOL |
false |
The upcoming move is delayed while PauseAtPositionLimit = TRUE. |
|
OutputStepSize |
LREAL |
#Invalid |
Size of output steps. Must have value [0..1], where 1 = output value changes by 100% between two measurements (0 = no change) |
|
PositionLimitMinimum |
LREAL |
#Invalid |
Minimum position ([PosUnit]). Must have value < PositionLimitMaximum. |
|
PositionLimitMaximum |
LREAL |
#Invalid |
Maximum position ([PosUnit]). Must have value > PositionLimitMinimum. |
|
Options |
|
Additional function block options |
In/Outputs
|
Name |
Type |
Description |
|---|---|---|
|
Axis |
Reference To AXIS_REF |
Reference to the axis |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
Done |
BOOL |
Valve characterization finished successfully |
|
Busy |
BOOL |
Function block is not finished and new output values are to be expected. |
|
Active |
BOOL |
Function block has active control on the axis. |
|
CommandAborted |
BOOL |
Command is aborted by another command. |
|
Error |
BOOL |
Error occurred within function block. |
|
ErrorId |
UDINT |
Error identifier |
|
NextMovingToMaximum |
BOOL |
Positive move upcoming |
|
NextMovingToMinimum |
BOOL |
Negative move upcoming |
Versionsinformation
- TwinCAT Standard >= v3.1.4026.23.1
- TF5560 MC3 FluidPower >= v4.0.6 (inkludiert TF5500 MC3 Base >= v4.0.6)
Required License
TC3 MC3 Fluid Power