FB_SimHydAx_Standard
This FB is a simplified simulation of a universal hydraulic axis. A number of typical effects are supported.
The implementation of this object is not a full-fledged and realistic simulation. |
Syntax:
FUNCTION_BLOCK FB_SimHydAx_Standard EXTENDS FB_SimAxCommon
Properties
Name | Type | Access | Description |
---|---|---|---|
ActualPosition | LREAL | Get, Set | This runtime value provides information about the simulated axis position. |
Cylinder | Get | An interface to the local | |
Encoder | Get | An interface to the local | |
ExternalForce | LREAL | Get, Set | This runtime value can be updated with pressure values required for process simulation. It is used to calculate the total pressure on the simulated cylinder and is part of the reported actual pressure. |
Overlapp_PA | LREAL | Get, Set | Overlap on the A-side of the valve. |
Overlapp_PB | LREAL | Get, Set | Overlap on the B-side of the valve. |
PressureTransducerA | Get | An interface to the local | |
PressureTransducerB | Get | An interface to the local | |
Qnominal_PA | LREAL | Get, Set | Oil flow between the supply connection and the A-side connection of the valve. |
Qnominal_PB | LREAL | Get, Set | Oil flow between the supply connection and the B-side connection of the valve. |
SpoolFeedback | INT | Get | Feedback value of the valve coil position. |
SupplyPressure | LREAL | Get, Set | Supply pressure of the valve. |
Valve | Get | An interface to the local | |
ValveControlValueType | E_SimControlValueType | Get, Set | The valve type used for the axis. |
ValveXyz | Diverse | Get, (Set) | Forwarded values of the internal |
AbsolutSwitch | BOOL | Get | This runtime value provides information about the simulated feedback signal as defined by AbsSwitchHighSelect. |
AbsSwitchHighEnd | LREAL | Get, Set | This parameter defines the threshold in case AbsSwitchHighSelect=TRUE: AbsolutSwitch will be TRUE if the simulated actuator position is >= AbsSwitchHighEnd. . |
AbsSwitchHighSelect | BOOL | Get, Set | This parameter defines the active AbsolutSwitch. A TRUE will select AbsSwitchHighEnd while a FALSE makes the AbsSwitchLowEnd the active AbsolutSwitch. |
AbsSwitchLowEnd | LREAL | Get, Set | This parameter defines the threshold in case AbsSwitchHighSelect=FALSE: AbsolutSwitch will be TRUE if the simulated actuator position is <= AbsSwitchLowEnd. |
CycleTime | LREAL | Get, Set | This parameter must be initialized with the update calling cycle of the Cyclic() method and will be forwarded to any sub-component if required. It is used to define any time behavior. |
EncoderInterpolation | LREAL | Get, Set | This parameter must be initialized with the same value as the corresponding parameter in the motion technology:
|
EncoderNoiseLevel | LREAL | Get, Set | The simulated axis offers the possibility to disturb the reported position with a pseudo-random white noise. This is realized by a FB_Noise() function block. The parameter EncoderNoiseLevel is forwarded as SetWhiteNoiseLevel. |
EncoderWeighting | LREAL | Get, Set | This parameter must be initialized with the same value as the corresponding parameter in the motion technology:
|
EncoderZeroShift | LREAL | Get, Set | This parameter must be initialized with the same value as the corresponding parameter in the motion technology:
|
HighSideBlock | LREAL | Get, Set | The simulated position of the actuator is limited to a value less than or equal to this parameter. |
HighSideEndswitch | LREAL | Get, Set | This parameter defines the UpperEndSwitch threshold that becomes TRUE when the simulated position of the actuator is >= this parameter. |
HighSideSpringLengt | LREAL | Get, Set | This parameter defines the length of a simulated spring-like effect at the upper side of the actuator stroke. |
LowerEndSwitch | BOOL | Get | This runtime value provides information about the state of a simulated sensor. Becomes TRUE if the position of the simulated actuator is >= HighSideEndswitch. |
LowSideBlock | LREAL | Get, Set | The simulated position of the actuator is limited to a value above or equal to this parameter. |
LowSideEndswitch | LREAL | Get, Set | This parameter defines the LowerEndSwitch threshold that becomes TRUE when the simulated position of the actuator is <= this parameter. |
LowSideSpringLength | LREAL | Get, Set | This parameter defines the length of a simulated spring-like effect at the lower side of the actuator stroke. |
MovingMass | LREAL | Get, Set | This parameter can be used to define a moving mass. It is used to calculate dynamic acceleration and deceleration forces, torques or pressures. |
NoBlock | BOOL | Get, Set | If this parameter is set to TRUE, the use of the springs and blocks on the upper and lower sides will be disabled. |
UpperEndSwitch | BOOL | Get | This runtime value provides information about the state of a simulated sensor. It becomes TRUE if the position of the simulated actuator is <= LowSideEndswitch. |
Methods
Name | Description |
---|---|
This method can be used to simulate an error situation on the simulated axis. | |
Cyclic() | Cycle method |
Interfaces
Type | Description |
---|---|
I_SimAxCommon | Standard interface for FB_SimAxCommon. |
I_SimHydAx | Standard interface for FB_SimHydAx_Standard. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.55 | PC or CX (x64, x86) | Tc3_PlasticFunctions (>= v3.12.5.0) Tc3_PlasticHydraulic (>= v3.12.5.0) |