Link to ADS
Box identification | |
Description | Device-dependent data defined when the system is configured (e.g. system manager) can be read out here. |
Data type | HLI_TWINCAT_BOX_DATA |
Signal flow | CNC → PLC |
ST path | gpAx[axis_idx]^.lr_state.twincat_box |
Access | PLC reads |
Special features | This element is not available in every PLC runtime environment. |
Elements of the data type | |
ST element | .ads_netid_r |
Description | This defines the AmsNetId of the TwinCAT computer to execute the function. An empty string can also be specified for the local computer. The PLC variable of this type is a string containing the AMS network identifier of the target device for which the ADS command is intended. The string consists of six numerical sections separated by dots. Each numerical section includes a number between 0 and 254. Valid AMS network address include: "1.1.1.2.7.1" or "200.5.7.170.1.7". If an empty string is transferred, the AMS network identifier of the local device is automatically accepted. |
|
|
ST element | .ads_port_r |
Description | ADS devices in a TwinCAT network topology are identified by an AMS network address and a port number. The port number of the ADS device is specified by the system manager during configuration. |
|
|
ST element | .channel_r |
Description |
|
Device identification | |
Description | The IO device where the function is executed is specified by the device ID. The device IDs are specified by the TwinCAT system manager during hardware configuration. |
Signal flow | CNC → PLC |
ST path | gpAx[axis_idx]^.lr_state.twincat_device |
ST element | .id_r |
Data type | UDINT |
Access | PLC reads |
Special features | The device ID is currently used for ring global actions (e.g. phase switching or reading). This element is not available in every PLC runtime environment. |