Configuration Of The Tia Portal Project - Siemens SIMATIC S7-1500 Manual

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

Advertisement

8 Example Application

8.4 Configuration of the TIA portal project

//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,
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.
TOs of S7-1500(T)
Entry ID: 109743134,
V1.0,
Enable := #statEnable,
OnPosition := #statOnPosition,
OffPosition := #statOffPosition,
Mode := 1,
Direction := 3,
CamOutput => #CamOutput,
Busy => #Busy,
Error => #Error,
ErrorId => #ErrorID);
05/2017
46

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500tTia portal v14

Table of Contents