// 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); // Trigger
|