Syntaxes In St Language - Mitsubishi MELSEC-Q Series Programming Manual

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

Advertisement

5.1.3

Syntaxes in ST language

The following table shows the syntaxes that can be used in the ST language.
Type of syntax
Assignment syntax
Conditional syntax
Iteration syntax
Other control syntax
(1) Assignment syntax
(b) Format
(c) Description
(d) Example
5.1 ST Language
5-4
5.1.3 Syntaxes in ST language
Table 5.1.3-1 Syntaxes in the ST language
Assignment syntax
IF THEN conditional syntax, IF ELSE conditional syntax, and IF ELSIF conditional syntax
CASE conditional syntax
FOR DO syntax
WHILE DO syntax
REPEAT UNTIL syntax
RETURN syntax
EXIT syntax
<Left side> := <Right side>;
The assignment syntax assigns the result of the right side expression to the label or
device of the left side.
The result of the right side expression and data type of the left side need to obtain the
same data when using the assignment syntax.
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l seriesMelsec-f series

Table of Contents