show the entry list
STEP 7 (TIA Portal) -- Creating SCL programs -- Creating program sequences
How do you perform edge evaluation with SCL in SIMATIC (TIA Portal) V11?
How do you convert a degree number into a radian measure in STEP 7 V11 and calculate a current arithmetic average value from the values read in one after the other?
How do you perform edge evaluation with SCL in SIMATIC (TIA Portal) V11?
Part number:

Description
Unlike other programming languages, in SCL (Structured Control Language) there are no special statements for evaluating signal edges. For this reason an auxiliary variable is employed in SCL. This provides rapid processing of commands and you retain a clear overview of the program.

Fig. 01 shows how the edge of the "pulse" signal can be evaluated using the auxiliary variable "flag".


Fig. 01

The "edge_bit_1" and "edge_bit_2" variables are active only for one control cycle and can be used in the continued course of the program.

Note
Also refer here to the "Rules for SCL statements" in the Online Help of SIMATIC (TIA Portal) V11.

 Entry ID:60012258   Date:2012-06-28 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour