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:

PLC variant II (trigger via ADS-Write) 1:

Direct link to the TE1000 TwinCAT 3 manual | PLC library: Tc2_System

PLC variant II (trigger via ADS-Write) 2:

Direct link to the function blocks

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.

PLC variant II (trigger via ADS-Write) 3:
Expand Solution Explorer > TwinCAT Project > SYSTEM > Tasks
Double-click on XTS Task
PLC variant II (trigger via ADS-Write) 4:
In the project window click on the Task tab
Read value at Port

The value 350 is preset by default.

Object Id

PLC variant II (trigger via ADS-Write) 5:
Expand Solution Explorer > TwinCAT Project > SYSTEM > TcCOM Objects
Double-click on XTS Processing Unit
PLC variant II (trigger via ADS-Write) 6:
In the project window, click on the Object tab
Read value at Object Id

PTCID

PLC variant II (trigger via ADS-Write) 7:
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.

PLC variant II (trigger via ADS-Write) 8:
Click the Parameter (Init) tab in the project window
Read value at TriggerMoverIdDetection