EasyManua.ls Logo

Siemens SIMATIC S7-1500T - Page 45

Siemens SIMATIC S7-1500T
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
45
Siemens AG 2017 All rights reserved
//Check OffPosition
IF (#statOffPosition > #tempModuloEndPosition)
THEN
#statOffPosition := #statOffPosition -
#tempModuloAxisMaster.Length;
END_IF;
END_IF;
//Start execution of function block
#statEnable := True;
Based on the falling edge on the "CamOutput” output of the "MC_OutputCam
technology function it is checked whether the output of the cam signal and thus the
application of the material (end position of the cam reached) has been fully
completed. In this case, the read index is set to the next index.
//Check end of synchronous operation/movement
ELSIF ((#instMcOutputCam.Busy = True)
AND (#instMcOutputCam.CamOutput = False)
AND (#statCamOutputOld = True)
AND (#statEnable = True))
THEN
//Stop execution of function block
#statEnable := False;
//Get actual read index
#tempReadIndex := #ProductPositionTable.ReadIndex_OutputCam;
//Incement index pointer
#tempReadIndex := #tempReadIndex + 1;
//Check modulo area of index pointer
IF (#tempReadIndex > #ProductPositionTable.MaxIndex)
THEN
#tempReadIndex := #ProductPositionTable.MinIndex;
END_IF;
//Write back index pointer
#ProductPositionTable.ReadIndex_OutputCam := #tempReadIndex;
If an error occurred during the execution of the function, the error will be detected
and passed on to the outputs of the function block. In this case, the cam output is
stopped via the "statEnable” tag.
//Check error of synchronous operation/movement
ELSIF ((#instMcOutputCam.Error = TRUE)
AND (#statEnable = True))
THEN

Table of Contents

Other manuals for Siemens SIMATIC S7-1500T

Related product manuals