Siemens SIMATIC S7-1200 Manual page 96

Easy book
Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Programming made easy
6.2 Easy-to-use programming languages
In the section of the SCL code block you can declare the following types of parameters:
● Input, Output, InOut, and Ret_Val: These parameters define the input tags, output tags,
● Static (FBs only; the illustration above is for an FC): Static tags are used for storage of
● Temp: These parameters are the temporary tags that are used during the execution of
If you call the SCL code block from another code block, the parameters of the SCL code
block appear as inputs or outputs.
In this example, the tags for "Start" and "On" (from the project tag table) correspond to
"StartStopSwitch" and "RunYesNo" in the declaration table of the SCL program.
96
and return value for the code block. The tag name that you enter here is used locally
during the execution of the code block. You typically would not use the global tag name in
the tag table.
static intermediate results in the instance data block. Static data is retained until
overwritten, which may be after several cycles. The names of the blocks, which are called
in this code block as multi-instance, are also stored in the static local data.
the code block.
Easy Book
Manual, 11/2011, A5E02486774-04

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents