ST_DriveAddress
This data type contains the ADS access data of a drive device. The data is read with the function block MC_ReadDriveAddress.
TYPE ST_DriveAddress :
STRUCT
NetID : T_AmsNetId; (* AMS NetID of the drive as a string *)
NetIdBytes : T_AmsNetIdArr; (* AMS NetID of the drive as a byte array (same information as NetID) *)
SlaveAddress : T_AmsPort; (* slave address of the drive connected to a bus master *)
Channel : BYTE; (* channel number of the drive *)
(* new since 2013-04-04 - just available with versions after this date, otherwise zero *)
NcDriveId : DWORD; (* ID [1..255] of the NC software drive of an axis *)
NcDriveIndex : DWORD; (* index [0..9] of the NC software drive of an axis *)
NcDriveType : E_NcDriveType; (* type enumeration of the NC software drive of an axis *)
NcEncoderId : DWORD; (* ID [1..255] of the NC software encoder of an axis *)
NcEncoderIndex : DWORD; (* index [0..9] of the NC software encoder of an axis *)
NcEncoderType : E_NcEncoderType;(* type enumeration of the NC encoder drive of an axis *)
NcAxisId : DWORD; (* ID [1..255] of the NC axis *)
NcAxisType : E_NcAxisType; (* type enumeration of the NC axis *)
(* new since 2016-04-11 - just available with versions after this date, otherwise zero *)
TcDriveObjectId : DWORD;
TcEncoderObjectId : DWORD;
TcAxisObjectId : DWORD;
END_STRUCT
END_TYPE
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v3.0.0 | PC or CX (x86 or x64) | Tc2_MC2 |