MC_WriteParameter_PTO: Write Parameters to the PTO
This function block is used to write parameters to the PTO.
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
This table describes the input variables:
Input |
Type |
Initial Value |
Description |
---|---|---|---|
Axis |
AXIS_REF_PTO |
- |
Name of the axis (instance) for which the function block is to be executed. In the devices tree, the name is declared in the controller configuration,. |
Execute |
BOOL |
FALSE |
On rising edge, starts the function block execution. On falling edge, resets the outputs of the function block when its execution terminates. |
ParameterNumber |
INT |
0 |
ID of the requested parameter (PTO_PARAMETER) |
Value |
DINT |
0 |
Value to be written to the requested parameter. |
This table describes the output variables:
Output |
Type |
Initial Value |
Description |
---|---|---|---|
Done |
BOOL |
FALSE |
If TRUE, indicates that the function block execution is finished with no error detected.. |
Error |
BOOL |
FALSE |
If TRUE, indicates that an error was detected. Function block execution is finished. |
ErrorId |
PTO_ERROR |
PTO_ERROR.NoError |
When Error is TRUE: code of the error detected. |