Sealing Unit - Siemens SIMATIC S7-1500 Manual

Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

8 Example Application
8.3 Programming of the processing stations
//+++ Call function block +++
#instMeasuringInput(MeasuringInput:=#MeasuringInput,
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 :=
//Save measured position of product on product belt
#ProductPositionTable.PositionTable[#tempWriteIndex] :=
//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 :=
END_IF;
Instead of the "MC_MeasuringInput" function and the independent restart of the
Note
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.
TOs of S7-1500(T)
Entry ID: 109743134,
V1.0,
Execute:=(#FunctionEnable
Mode:=0);
#ProductPositionTable.WriteIndex_MeasuringInput;
05/2017
AND NOT(#instMeasuringInput.Done)),
#instMeasuringInput.MeasuredValue1;
#tempWriteIndex;
39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500tTia portal v14

Table of Contents