
Getting Started: I-8437-80/8837-80/8417/8817, Jul 2020 V4.0 32
Double-click on
“
ST1
”
program to edit it. Click on
“
save
”
and then exit when you finish it.
Note: Any character inside between
(*
and
*)
is the comment.
2.3.6
Create the LD -
“
LD1
”
Program
Click on the
“
Create New Program
”
button and the
“
New Program
”
window will appear. Enter
the
“
Name
”
as
“
LD1
”
. Next, click on the
“
Language
”
scroll button and select
“
Quick LD: Ladder
Diagram
”
and make sure the
“
Style
”
is set to
“
End: Main Program
”
. Also, add any desired text in
the
“
Comment
”
field.
Now we have two programs inside this project. Double-click on the
“
LD1
”
to get into it.
IF INIT THEN
(* Do init steps here *)
INIT := False;
T1 := T#1500ms;
END_IF;
1.
.
2.
.
Codes written here run only one time in the first scan
cycle. They are usually some initial setting codes.
程式段只在第
1
個
Scan
週期時執行一遍
.
之後的
Scan
週期都不會執行到此程式段
.