Programming In Structured Text (St); St Program Syntax - Panasonic GM1 User Manual

Motion controller controller rtex
Hide thumbs Also See for GM1:
Table of Contents

Advertisement

7.2 Programming in Structured Text (ST)

This section explains how to create programs (ST programs) in Structured Text compliant with
IEC 61131-3, the international standard for PLC programming languages.
● To create ST programs, POU objects for ST programs are required. Set the object setup
language to Structured Text (ST).
● An ST program is made up by combining expressions and instructions. Expressions and
instructions can also be executed under certain conditions or within a loop. Each instruction
must end with a semicolon (;).

7.2.1 ST Program Syntax

For ST programs, the following syntax can be used.
Item
Assignment
statement
Set assignment
statement
Reset assignment
statement
WUME-GM1RTXOP-01
Example
The value of the right side is set on the left side.
Example:
iVar1 : = 4;
If the value of the right side is judged to be TRUE, TRUE will be set on the left side.
Once the value of the left side is judged to be TRUE, the left side will maintain TRUE
even if the value of the right side is judged to be FALSE.
Do not leave any spaces between "S" and "=".
Example:
bVar0S=bVar1;
If the value of the right side is judged to be TRUE, FALSE will be set on the left side.
Once the value of the left side is judged to be FALSE, the left side will maintain FALSE
even if the value of the right side is judged to be FALSE.
Do not leave any spaces between "R" and "=".

7.2 Programming in Structured Text (ST)

7-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents