ConvertPathPosToDcTime
Under construction...
This function block converts an NC axis position into an associated 32-bit Distributed Clock System Time (i.e. the time at which this NC axis position was or will be reached exactly).
VAR_INPUT
VAR_INPUT
nGrpId : UDINT;
nSubIdx : UDINT;
fPosition : LREAL;
END_VAR
nGrpId | Group ID of the corresponding Nci channel |
nSubIdx | This 32-bit input value contains two different items of information and is therefore divided into two 16-bit values: |
fPosition | Relative Nci path distance that is converted to the corresponding 32-bit distributed clock system time (T_DCTIME32). |
VAR_OUTPUT
VAR_OUTPUT
dcTime : T_DCTIME32;(* 32 bit distributed clock time *)
iErr : UDINT;
END_VAR
dcTime | Supplies the 32 bit Distributed Clock System Time (T_DCTIME32) associated with the input fPosition. |
iErr | Supplies an error number if an error occurs, e.g. |
Requirements
Development Environment | Target System | PLC Libraries to include |
---|---|---|
TwinCAT v2.11.0 Build > 2214 or higher | PC or CX (x86, ARM) | TcEtherCAT.Lib |