Chapter 5 Writing Programs; Standard Format - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured. fundamentals
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5
WRITING PROGRAMS
5.1
ST
The ST language is a text language with a similar grammatical structure to the C language. Controls such as conditional
judgment and repetition process written in syntax can be described.
This language is suitable for programming complicated processes that cannot be easily described by a graphic language
(structured ladder/FBD language).

Standard format

Operators and syntax are used for programming in the ST language.
Syntax must end with ';'.
Spaces, tabs, and line feeds can be inserted anywhere between a keyword and an identifier.
Comments can be inserted in a program. Describe '(*' in front of a comment and '*)' in back of a comment.
Entering a comment in a comment causes the following compile error.
Compile error content: "Parser error" Error code : C1200
Enter ';' at the end.
Space
Tab
Line feed
Comment
Assignment syntax
syntaxes
Calling the function
Calling the function block
Comment
5 WRITING PROGRAMS
5
73
5.1 ST

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec f seriesMelsec l series

Table of Contents