Siemens 6AV6651-7KA01-3AA4 - S7-1200 + KTP400 Basic Starter Kit 6AV6651-7KA01-3AA4 사용자 설명서

제품 코드
6AV6651-7KA01-3AA4
다운로드
페이지 364
 
Programming made easy 
 
6.2 Easy-to-use programming languages 
Easy Book 
Manual, 03/2014, A5E02486774-AF 
97
 
 
In the Interface 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, 
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 (FBs only; the illustration above is for an FC): The code block uses static tags for 
storage of static intermediate results in the instance data block. The block retains static 
data until overwritten, which can be after several cycles. The names of the blocks, which 
this block calls as multi-instance, are also stored in the static local data. 
●  Temp: These parameters are the temporary tags that are used during the execution of 
the code block. 
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.