Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK MC PLC Funktionshandbuch Seite 580

Inhaltsverzeichnis

Werbung

Referenz zum PLC-Grundprogramm
10.5 Funktionsbausteine (FB)
// write $TC_MOP2 with LBP_WriteVar [FB3]
// value
#statToolData."$TC_MOP2".value := 8.7;
// token
#statToolData."$TC_MOP2".token.column := 1; // column = toolNumber
#statToolData."$TC_MOP2".token.row := 2; // row = (edgeNumber - 1) *
numCuttEdgeParams + 2
#statInstWriteVar(Req := # tempWriteVarReq,
580
NDR => #tempReadVarNDR,
State => #tempReadVarState,
RD1 := #statToolData.numCuttEdgeParams.value,
RD2 := NULL,
RD3 := NULL,
RD4 := NULL,
RD5 := NULL,
RD6 := NULL,
RD7 := NULL,
RD8 := NULL);
Addr1 := #statToolData.numCuttEdgeParams.token,
NumVar := 1,
Addr1 := #statToolData."$TC_MOP2".token,
Addr2 := NULL,
Addr3 := NULL,
Addr4 := NULL,
Addr5 := NULL,
Addr6 := NULL,
Addr7 := NULL,
Addr8 := NULL,
Error => #tempWriteVarError,
Done => #tempWriteVarDone,
State => #tempWriteVarState,
SD1 := #statToolData."$TC_MOP2".value,
SD2 := NULL,
SD3 := NULL,
SD4 := NULL,
SD5 := NULL,
SD6 := NULL,
Funktionshandbuch, 06/2019, A5E47437861A AA
PLC

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis