Linking to ADS
Box identification | |
Description | Reading of device dependent data, which are defined during configuration of the system (e.g. system manager). |
Information flow | CNC -> PLC |
ST path | pAC[axis_idx]^.addr^.StateLR_Data.HLITwinCATBoxData |
ST element | .AdsNetId |
Description | Definition of the AmsNetId of the TwinCAT-computer, on which the function shall be executed. For the local computer also, an empty string can be defined. The PLC variable of this type is a string and includes the network identification of the target device. On this device the ADS-command is directed. The string consists of six numerical sections, separated by dots. Each numerical section includes a number between 0 and 254. Valid AMS-network addresses e.g. are "1.1.1.2.7.1" or "200.5.7.170.1.7". If an empty string is delivered, the AMS-network identification automatically is set to the local device. |
ST element | .W_AdsPort |
Description | ADS-devices in a TwinCAT-network area are identified by an AMS-network address and a port number. The port number of the ADS-device is defined by the system manager during configuration. |
ST element | .W_AdsChannel |
Description |
|
Access | PLC is reading |
Characteristics |
|
Device identification | |
Description | Via the DeviceId (Device-Id) the IO-device is specified. On this IO-device the function shall be executed. The Device-Ids are defined by the TwinCAT-system manager during hardware configuration. |
Information flow | CNC -> PLC |
ST path | pAC[axis_idx]^.addr^.StateLR_Data.HLITwinCATDeviceData |
ST element | .D_Id |
Access | PLC is reading |
Characteristics | Now the device-ID is used for ring global actions (e.g. phase switching or reading). |