Place of Origin: | Japan |
Brand Name: | Tamagawa |
Certification: | CE |
Model Number: | TS5016N60 |
Minimum Order Quantity: | 1pcs |
---|---|
Packaging Details: | carton |
Delivery Time: | in stock |
Payment Terms: | T/T, Western Union, MoneyGram |
Supply Ability: | 100pcs/week |
TAMAGAWA: | TAMAGAWA | TS5016N60: | TS5016N60 |
---|---|---|---|
Japan: | Japan | Material: | Iron |
Color: | Black | Temperature: | 40-80 |
Wire: | Wire | Dimension: | 60mm |
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 static intermediate results in the instance data block. |
and return value for the code block. | Static data is retained until overwritten, which may be after several cycles. |
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. |
The names of the blocks, which are called in this code block as multi-instance, are also stored in the static local data. |
Guang Zhou Lai Jie Electric Co.,LTD
TS5016N60
TS3617N3E8
TS3617N3E9
TS3617N3E1
TS3617N11E3
TS3617N11E1
TS3617N11E2
TS3617N12E4
TS3617N12E5
TS3617N12E6
TS3617N12E7
TS3617N13E8
TS3617N13E9
TS3617N13E1
TS3653N1E1
TS3653N1E2
TS3653N1E3
TS3653N2E4
TS3653N2E5
TS3653N2E6
TS3653N3E7
TS3653N3E8
TS3653N3E9
TS3653N11E1
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.
Constructing an SCL expression
An SCL expression is a formula for calculating a value. The expression consists of operands
and operators (such as *, /, + or -). The operands can be tags, constants, or expressions.The evaluation of the expression occurs in a certain order, which is defined by the following
factors:
● Every operator has a pre-defined priority, with the highest-priority operation performed
first.
● For operators with equal priority, the operators are processed in a left-to-right sequence.
● You use parentheses to designate a series of operators to be evaluated together.
The result of an expression can be used either for assigning a value to a tag used by your
program, as a condition to be used by a control statement, or as parameters for another SCL
instruction or for calling a code block.As a high-level programming language, SCL uses standard statements for basic tasks:
● Assignment statement: :=
● Mathematical functions: +, -, *, and /
● Addressing of global variables (tags): "<tag name>" (Tag name or data block name
enclosed in double quotes)
● Addressing of local variables: #<variable name> (Variable name preceded by "#" symbol) The following examples show different expressions for different uses.
"C" := #A+#B; Assigns the sum of two local variables to a tag
"Data_block_1".Tag := #A; Assignment to a data block tag
IF #A > #B THEN "C" := #A; Condition for the IF-THEN statement
"C" := SQRT (SQR (#A) + SQR (#B)); Parameters for the SQRT instruction
Arithmetic operators can process various numeric data types. The data type of the result is
determined by the data type of the most-significant operands. For example, a multiplication
operation that uses an INT operand and a REAL operand yields a REAL value for the result.
Control statements
A control statement is a specialized type of SCL expression that performs the following
tasks:
● Program branching
● Repeating sections of the SCL program code
● Jumping to other parts of the SCL program
● Conditional execution
The SCL control statements include IF-THEN, CASE-OF, FOR-TO-DO, WHILE-DO,
REPEAT-UNTIL, CONTINUE, GOTO, and RETURN.