Sample TriggerMoverIdDetection
Below are sample codes for a TriggerMoverIdDetection:
ADSWRITE
// Declaration part
PROGRAM MAIN
VAR
     fbAdsWrite     : ADSWRITE;
END_VAR
//----------------------------------------------------------------------------------------------------
// Programm part
fbAdsWrite(
     NETID      := ´´,
     PORT       := 350,               // Taskport of the XTS-Task
     IDXGRP     := 16#01010010,       // Object Id of the driver object
     IDXOFFS    := 16#205,            // PTDCID of TriggerMoverIdDetection
     WRITE      := TRUE);             // TriggerADSREAD
// Declaration part
PROGRAM MAIN
VAR
     fbAdsRead     : ADSREAD;
     TempData      : BOOL; // Needs to be the data type that is read
END_VAR
//----------------------------------------------------------------------------------------------------
// Programm part
fbAdsRead(
     NETID      := ´´,
     PORT       := 350,               // Taskport of the XTS-Task
     IDXGRP     := 16#01010010,       // Object Id of the driver object
     IDXOFFS    := 16#251,            // PTDCID of IsIdDetectionValid
     LEN        := SIZEOF(TempData),  // Size of the read out data
     DESTADDR   := ADR(TempData),     // Address to which the data should be written to
     READ       := TRUE);             // TriggerFurther Information