PLC variant II (trigger via ADS-Write)
You have the option to trigger the Mover ID detection via PLC variant II. Parameters of the XTS Processing Unit object can be accessed via ADSREAD or ADSWRITE commands.
For more information, please see the following links:
Direct link to the TE1000 TwinCAT 3 manual | PLC library: Tc2_System |
You need the following XTS-specific information for parameterization:
Parameter | Code block | Explanation |
---|---|---|
Task Port | PORT : T_AmsPort; | Task Port of the XTS task. |
Object Id | IDXGRP : UDINT; | Object ID from the XTS Processing Unit object. |
PTCID | IDXOFFS : UDINT; | PTCID of the parameter. |
- ►Expand Solution Explorer > TwinCAT Project > SYSTEM > Tasks
- ►Double-click on XTS Task
- ►In the project window click on the Task tab
- ►Read value at Port
The value 350 is preset by default.
Object Id
- ►Expand Solution Explorer > TwinCAT Project > SYSTEM > TcCOM Objects
- ►Double-click on XTS Processing Unit
- ►In the project window, click on the Object tab
- ►Read value at Object Id
PTCID
- ►Expand Solution Explorer > TwinCAT Project > SYSTEM > TcCOM Objects
- ►Double-click on XTS Processing Unit
The displayed values of the XTS Processing Unit object and the TcIoXtsDrv object differ from each other.
- ►Click the Parameter (Init) tab in the project window
- ►Read value at TriggerMoverIdDetection
See also