Siemens SIMATIC S7-1500 Manual page 45

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

Advertisement

8 Example Application
8.3 Programming of the processing stations
//Check OffPosition
IF (#statOffPosition > #tempModuloEndPosition)
THEN
#statOffPosition := #statOffPosition -
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
TOs of S7-1500(T)
Entry ID: 109743134,
V1.0,
05/2017
#tempModuloAxisMaster.Length;
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500tTia portal v14

Table of Contents