EasyManua.ls Logo

Siemens SIMATIC S7-1500T - Configuration of the TIA Portal Project

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.4 Configuration of the TIA portal project
TOs of S7-1500(T)
Entry ID: 109743134, V1.0, 05/2017
46
Siemens AG 2017 All rights reserved
//Save error id of the function block
#statErrorId := #instMcOutputCam.ErrorId;
//Stop execution of function block
#statEnable := False;
END_IF;
Subsequently, the current status of the "CamOutput” output of the
"MC_OutputCam” function is saved, in order to detect an edge from it in the next
cycle.
//+++ Realize edge detection +++
//Save signal to next OB cycle
#statCamOutputOld := #instMcOutputCam.CamOutput;
Finally the "MC_OutputCam" technology function is called using the previously set
parameters.
//+++ Realize machine function +++
//Function block calls
#instMcOutputCam(OutputCam := #OutputCam,
Enable := #statEnable,
OnPosition := #statOnPosition,
OffPosition := #statOffPosition,
Mode := 1,
Direction := 3,
CamOutput => #CamOutput,
Busy => #Busy,
Error => #Error,
ErrorId => #ErrorID);
Note
Calling the technology function at the end of the function block, has the
advantage that based on the instance data of the technology function the
parameters from the last cycle can be recalculated before the function is
activated with the newly calculated parameters.
8.4 Configuration of the TIA portal project
The TIA Portal project provided, includes a runnable user program for the SIMATIC
S7-1515T-2 PN including HMTL user interface, which is running on the web server
of the SIMATIC CPU.

Table of Contents

Other manuals for Siemens SIMATIC S7-1500T

Related product manuals