Siemens SIMATIC STEP 7 V5.2 Getting Started page 42

Table of Contents

Advertisement

Creating a Program with Function Blocks and Data Blocks
Programming Speed Monitoring
Select the question marks again and label the coil and the comparator with the
names from the variable declaration table.
Then save your program.
When is the engine switched on and off?
When the variable #Switch_On has signal state "1" and the variable "Automatic_Mode" has
signal state "0," the engine is switched on. This function is not enabled until
"Automatic_Mode" is negated (normally closed contact).
When the variable #Switch_Off has signal state "1" or the variable #Fault has signal state
"0," the engine is switched off. This function is achieved again by negating #Fault (#Fault is
a "zero-active" signal and has the signal "1" in the normal state and "0" if a fault occurs).
How does the comparator monitor the engine speed?
The comparator compares the variables #Actual_Speed and #Setpoint_Speed and assigns
the result of the variables to #Setpoint_Speed_Reached (signal state "1").
5-6
Insert a new network and select the
current path.
Then navigate in the Program
Elements catalog until you reach the
Compare function and insert a
CMP>=I.
Also insert a coil in the current path.
You can find more information under Help >
Contents in the topics "Programming Blocks,"
"Creating Logic Blocks," and "Editing the Variable
Declaration" or in "Editing LAD Instructions."
STEP 7 Getting Started
A5E00171228-01

Advertisement

Table of Contents
loading

Table of Contents