Calling Functions In St Language - Mitsubishi MELSEC-Q Series Programming Manual

Mitsubishi programmable controller
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

(9) RETURN syntax
(a) Format
RETURN;
(b) Description
The RETURN syntax is used to end a program in a middle of the process.
When the RETURN syntax is used in a program, the process jumps from the RETURN
syntax execution step to the last line of the program, ignoring all the remaining steps
after the RETURN syntax.
(c) Example
(10) EXIT syntax
(a) Format
EXIT;
(b) Description
The EXIT syntax is used only in iteration syntaxes to end the iteration syntax in a middle
of the process.
When the EXIT syntax is reached during the execution of the iteration loop, the iteration
loop process after the EXIT syntax is not executed. The process continues from the line
after the one where the iteration syntax is ended.
(c) Example
5.1.4

Calling functions in ST language

The following description is used to call a function in the ST language.
Function name (Variable1, Variable2, ...);
Enclose the arguments by '( )' after the function name.
When using multiple variables, delimit them by ','.
The execution result of the function is stored by assigning the result to the variables.
5.1 ST Language
5.1.4 Calling functions in ST language
5
5-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l seriesMelsec-f series

Table of Contents