4 - 4
4.2.6 Creating a program
4 CREATING PROGRAM IN ST LANGUAGE
GX Works2
4.2.6 Creating a program
Create the ST program shown in Section 4.1.2.
1. Double-click "POU" "Program" "POU_01"
"Program" on the Project view to display the
POU_01 [PRG] Program [ST] screen.
2. Input "Y10:=(LDP(TRUE
*1
, X0) OR Y10) AND
NOT (TS0
*2
);" directly, and click the key.
You can use the Function Block Selection window
for the input.
Settings
•Y10:= (LDP(TRUE
*1
, X0) OR Y10) AND NOT
(TS0
*2
);
*1: "TRUE" indicates the ON status.
*2: "TS0" indicates the contact of timer T0.
Basic description and display colors
Programming in the ST language consists of syntaxes, operators, function, function block, devices, labels, etc.
Refer to the following manual for syntaxes, operators and programming:
MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
● Make sure to write ";" at the end of a statement.
● Comment
You can describe comments in a program.
Double-click it.
(To the next page)
Make sure to enter a ";" at
the end of each statement.
You can describe
comments
within program.