FB_SimUniversalEncoder
This simplified simulation of a universal encoder is used as part of a simulated hydraulic axis. A number of typical effects are supported.
The implementation of this object is not a full-fledged and realistic simulation. |
Objects of this type are typically used as local elements in an implementation of an axis simulation. |
Syntax:
FUNCTION_BLOCK FB_SimUniversalEncoder
Properties
Name | Type | Access | Description |
---|---|---|---|
AdsAddr | AMSADDR | Get | This variable is used to implement a mapping interface of an analog valve. |
Count_UDINT | UDINT | Get | This variable is used to implement a mapping interface of an analog valve. |
Count_UINT | UINT | Get | This variable is used to implement a mapping interface of an analog valve. |
InfoDataState | UINT | Get, Set | This variable is used to implement a mapping interface of an analog valve. |
NoiseLevel | LREAL | Get, Set | This parameter must be initialized with the white noise amplitude to be simulated. |
Offset | LREAL | Get, Set | This parameter must be initialized with the displacement between the cylinder zero point (e.g. the lower stop) and the encoder zero point. |
Position | LREAL | Get, Set | This runtime value provides information about the actual position of the encoder. |
Resolution | LREAL | Get, Set | This parameter must be initialized with the resolution (i.e. the path per increment) of the encoder. |
Toggle | BOOL | Get | This variable is used to implement a mapping interface of an analog valve. |
WcState | BOOL | Get, Set | This variable is used to implement a mapping interface of an analog valve. |
Methods
Name | Description |
---|---|
Cyclic() | Cycle method |
Interfaces
Type | Description |
---|---|
I_SimUniversalEncoder | Standard interface for FB_SimUniversalEncoder. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.35 | PC or CX (x64, x86) | Tc3_PlasticFunctions v3.12.4.26 or higher Tc3_PlasticHydraulic v3.12.4.26 or higher |