EasyManua.ls Logo

Siemens TIA Portal V14 - 8.3.4 Sealing unit

Siemens TIA Portal V14
60 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8 Example Application
8.3 Programming of the processing stations
TOs of S7-1500(T)
Entry ID: 109743134, V1.0, 05/2017
39
Siemens AG 2017 All rights reserved
//+++ Call function block +++
#instMeasuringInput(MeasuringInput:=#MeasuringInput,
Execute:=(#FunctionEnable
AND NOT(#instMeasuringInput.Done)),
Mode:=0);
If a measured value was detected (instMeasuringInput.Done = True), virtually the
same function as in the simulation will run. But now the measured value detected
("instMeasuringInput.MeasuredValue1”) is entered in the "PositionTable” table.
//+++ Realize machine function +++
IF (#instMeasuringInput.Done = True)
THEN
//Get actual write index
#tempWriteIndex :=
#ProductPositionTable.WriteIndex_MeasuringInput;
//Save measured position of product on product belt
#ProductPositionTable.PositionTable[#tempWriteIndex] :=
#instMeasuringInput.MeasuredValue1;
//Generate next write index (write pointer)
//Incement index pointer
#tempWriteIndex := #tempWriteIndex + 1;
//Check modulo area of index pointer
IF (#tempWriteIndex > #ProductPositionTable.MaxIndex)
THEN
#tempWriteIndex := #ProductPositionTable.MinIndex;
END_IF;
//Write back index pointer
#ProductPositionTable.WriteIndex_MeasuringInput :=
#tempWriteIndex;
END_IF;
Note
Instead of the "MC_MeasuringInput” function and the independent restart of the
function realized in the program, this is where the "MC_MeasuringInputCyclic”
technology function can also be used.
8.3.4 Sealing unit
At the beginning of the "SynchronousOperation" function block, the current
parameters of the two technology objects used can be detected:
Cam disc technology object:
Check bit 5 of the status word of the cam disc whether the cam disc used has
already been already interpolated for the use.

Table of Contents

Related product manuals