Position3P (FB)¶
FUNCTION_BLOCK Position3P
Short Description¶
Calculation of the current position of a 3-point driveIn addition, a reference position (limit switch) of the drive can be detected.Typical application: Determining the position on a 3-point valve drive
Portrayal¶
Interfaces¶
Inputs¶
Name Datatype
Init-Value
Init-Value
Function
xOutOpen BOOL Input - Release - Opening
xOutClose BOOL Input - Release - Closing
xRefPos BOOL Digital input to detect the reference position (limit Switch).
Ausgänge¶
Name Datatype
Init-Value
Init-Value
Function
rPos REAL rMinLimit bis rMaxLimit Display of the current position in %.
Setpoints / Parameters¶
Name Datatype
Init-Value
Init-Value
Function
iRefPosition INT 0 - 100 0% Reference position of the drive
rMinLimit REAL 0.0 Limit value - minimum position
rMaxLimit REAL 100.0 Limit value - maximum position
tDuration TIME T#120s Operating time of the drive
Functional description¶
General¶
Reference position¶
Position indicator rPos¶
Limitations/Information
Visualization¶
Information¶
Element Authors
Date
Version Note
Function
Adam Bartod 11.2017 1.0 Initial version
Programming
Adam Bartod 11.2017 1.0 Initial version
Test Jochen Reu / 11.2017 1.0 Initial version
Documentation
Jochen Reu 11.2017 1.0 Initial version
Codesys¶
- InOut:
Scope Name Type Initial Comment Input xOutOpen BOOL Input - Release - Opening
xOutClose BOOL Input - Release - Closing
xRefPos BOOL Digital signal for detecting the reference position (limit switch)
iRefPosition INT 0 Reference position of the drive
rMinLimit REAL 0.0 Limit value - minimum position
rMaxLimit REAL 100.0 Limit value - maximum position
tDuration TIME TIME#2m0s0ms Operating time of the drive
Output rPos REAL Display of the current position in %.