FQM1-TER01 Omron, FQM1-TER01 Datasheet - Page 191

no-image

FQM1-TER01

Manufacturer Part Number
FQM1-TER01
Description
5M 4COND 22AWG TPE ST MALE M12
Manufacturer
Omron
Datasheet

Specifications of FQM1-TER01

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
FQM1TER01
Function Block (FB) Functions
Function Block Usage
and Procedures
ST Language
Specifications
Statements
164
End of statement
Comment
Assignment
IF, THEN, ELSIF, ELSE, END_IF
CASE, ELSE, END_CASE
FOR, TO, BY, DO, END_FOR
WHILE, DO, END_WHILE
REPEAT, UNTIL, END_REPEAT
EXIT
RETURN
Function block instance call
Statement
Note
Function blocks in CS/CJ Series Smart FB Library cannot be used in the
FQM1, primarily because the instruction sets are different and the CS/CJ
Series PLCs have an HR Area, while the FQM1 does not.
For details on function block usage and procedures, refer to the CX-Program-
mer Ver. 6.0 Operation Manual: Function Blocks (W447). Use the information
listed in the following ST Language Specifications and Function Block Specifi-
cations to check for differences in specifications between the CS/CJ Series
PLCs and FQM1 Controllers.
In the FQM1, the ST language supports most of the functions for mathemati-
cal calculations. The following table lists the ST-language statements, opera-
tors, and functions that can be used in the FQM1.
Ends the statement
All text between (* and *) is treated as a
comment.
Substitutes the results of the expres-
sion, variable, or value on the right for
the variable on the left.
Evaluates an expression when the con-
dition for it is true.
Evaluates an express based on the
value of a variable.
Repeatedly evaluates an expression
according to the initial value, final
value, and increment.
Repeatedly evaluates an expression as
long as a condition is true.
until a condition is true.
Stops repeated processing.
Returns to the point in the program
from which a function block was called.
Calls another function block definition.
Repeatedly evaluates an expression
Function
;
(*comment*)
A=B;
IF (condition_1) THEN
ELSIF (condition_2) THEN
ELSE
END_IF;
CASE (variable) OF
ELSE
END_CASE;
FOR (identifier) := (initial_value) TO
(final_value) BY (increment) DO
END_FOR;
WHILE (condition) DO
END_WHILE;
REPEAT
UNTIL (condition)
END_REPEAT;
EXIT;
RETURN;
Variable name with FUNCTION
BLOCK data type (called function block
definition’s input variable name := call-
ing function block definition’s variable
name or constant, ..., called function
block definition’s output variable name
or constant => calling function block
definition’s output variable name, ...);
(expression 1);
(expression 2);
(expression 3);
1: (expression 1);
2: (expression 2);
3: (expression 3);
(expression 4);
(expression);
(expression);
(expression);
Example
Section 5-9