Define Method Parameters
-
-
Verify the Create a Method procedure is completed before defining a method.
Each method has its own interface definition independent of the parent UDFB implementation.
A method interface can contain:
- Input parameters.
- Output parameters.
- Local variables.
Examples
Input Parameters
|
Name |
Type |
Description |
|---|---|---|
|
Position |
LREAL |
Target position |
|
Velocity |
LREAL |
Requested velocity |
Output Parameters
|
Name |
Type |
Description |
|---|---|---|
|
IsValid |
BOOL |
Validation result |
|
ErrorCode |
DINT |
Validation error |
Local Variables
|
Name |
Type |
Description |
|---|---|---|
|
MaxVelocity |
LREAL |
Internal limit |
|
TempError |
DINT |
Working variable |
-
-
- Local variables declared within the method are only accessible from that method.
-
-
- After defining a method, continue with Call a Method.
See Also





