ConvertPosToDcTime
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
nAxisId : UDINT;
nSubIdx : UDINT;
fPosition : LREAL;
END_VAR
nAxisId | ID of the NC axis. |
nSubIdx | This 32 bit input magnitude is composed of two different items of information, and is divided into two 16-bit values: |
fPosition | NC axis position that will be converted through calculation into 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 >= 1524 or higher | PC or CX (x86, ARM) | TcEtherCAT.Lib |