xae_link
Links a TwinCAT 3 PLC variable to its I/O target in the XAE mapping table, with optional bit offsets and size for partial links; validates both ends and rejects invalid or TwinSAFE links.
Instructions
Link a variable to its I/O counterpart (ITcSysManager::LinkVariables), both as full tree paths: variable='TIPC^^ Instance^PlcTask Inputs^GVL_IO.bIn', target='TIID^Device 1 (EtherCAT)^Term 1 (EK1100)^Term 2 (EL1004)^Channel 1^Input' (xae_links gives the instance's variables, xae_tree_get the terminals'). offs_* / size_bits for a part (bits; 0 = the smaller of the two). XAE checks that both exist, are variables and fit. A whole link is refused when the two are linked already (a part may be linked besides others). Runs once; the result has what changed in the mapping table and what else the target is linked to. In XAE only — not saved, not activated. TwinSAFE ends are refused. guarded: tc_request_confirmation(action='xae_link', target=' -> ' + ' [offsets /, bit]' for a part).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| variable | Yes | ||
| size_bits | No | ||
| offs_target | No | ||
| confirm_token | No | ||
| offs_variable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||