Herunterladen Inhalt Inhalt Diese Seite drucken

Abb. 6-69: Beispiel: Il_Readdatatable, Client-Seitiges Sps-Programm - Bosch Rexroth IndraLogic L40 03VRS Bedienungs- Und Programmieranleitung

Inhaltsverzeichnis

Werbung

IndraLogic L40 03VRS
(******************************************************************
** Explicit message: Read data table - 2 DINT
*******************************************************************)
Read2Fb_strPath
Read2Fb_strRemoteTag := 'PLC_PRG.diCounter';
Read2Fb_uiElements
Read2Fb_udiTimeout
Read2In1(
bExecute
:= Read2Fb_bExecute,
strPath
:= Read2Fb_strPath,
strRemoteTag
:= Read2Fb_strRemoteTag,
udiMaxReadSize := SIZEOF(Read2Fb_diReadData),
pbyReadData
:= ADR(Read2Fb_diReadData),
uiElements
:= Read2Fb_uiElements,
udiTimeout
:= Read2Fb_udiTimeout,
udiReadSize
=> Read2Fb_udiReadSize,
bDone
=> Read2Fb_bDone,
bError
=> Read2Fb_bError,
enErrorID
=> Read2Fb_enErrorID,
stErrorIdent
=> Read2Fb_stErrorIdent);
(*Automatiktest*)
IF Read2Fb_bAutoTest = TRUE THEN
IF Read2Fb_bDone = TRUE THEN
IF Read2Fb_bError = TRUE THEN
Read2Fb_udiCtrErr
ELSE
Read2Fb_udiCtrGood := Read2Fb_udiCtrGood + 1;
END_IF
Read2Fb_bExecute := FALSE;
ELSE
Read2Fb_bExecute := TRUE;
END_IF
END_IF
DOK-CONTRL-IC*L40*****-AW02-DE-P
:= '192.168.73.105';
:= 1;
:= 100;
:= Read2Fb_udiCtrErr + 1;

Abb. 6-69: Beispiel: IL_ReadDataTable, Client-seitiges SPS-Programm

(*IP-Adresse des Data-Table-Servers*)
(*Name der zu lesenden Variablen*)
(*Anzahl der zu lesenden Elemente*)
(*Timeout in ms*)
6-29
Bibliotheken

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis