The Festo_Motion.lib library
21
Input/output Type Description
DatatypeRD USINT Data type of the read parameter
= 1: Byte
= 2: Word
= 4: Double word
ParamValueRD DINT Parameter value when reading a parameter
RETVAL UINT Current status of the FB instance
When using several instances of the FB, the current
internal status of the relevant FB is output.
Table: xxx_PRM_SINGLE, inputs and outputs
Key:
– Input/output: Designation of an input or output from the CoDeSys function block.
– Type: Data type expected by the relevant input or issued at an output.
– Description: Name and brief description of the CoDeSys function block (0 = FALSE, 1 = TRUE).
2. Limited selection of function blocks
The following inputs and outputs are only supported by certain Festo motor controllers. All other inputs and
outputs are present in all CoDeSys function blocks ..._PRM_SINGLE depending on the type of the motor
controller.
Input/output Type Motor controller
UpperLimit BOOL CMMD_AS
CMMP_AS
CMMS_AS
CMMS_ST
LowerLimit BOOL
DatatypeWR USINT MTR_DCI
SFC_DC
SFC_LAC
SFC_LACI
DatatypeRD USINT
The position factor must be taken into consideration when using the following inputs and outputs with the
specified motor controllers.
Input/output Type Motor controller
ParamValueWR DINT MTR_DCI
SFC_DC
SFC_LAC
SFC_LACI
ParamValueRD DINT
Function block xxx_PRM_MULTI
The xxx_PRM_MULTI block transfers a list of parameters to the relevant motor controller.
Figure: Example of function block CMMP_AS_PRM_MULTI