Getting Started: I-8437-80/8837-80/8417/8817, Jul 2020 V4.0 24
2.3
Step 3 - Writing a Simple ISaGRAF Program
We are going to use ISaGRAF to write a simple ISaGRAF example program and then download it
to the PAC to make it work. If “ISaGRAF” and “ICP DAS Utilities for ISaGRAF” have not been
installed, go back to
This example contains two programs. One is
ST
program and the other is
LD
program.
Variables declaration:
Name
Type
Attribute
Description
INIT
Boolean
Internal
Initial value at
“
TRUE
”
. TRUE means 1st scan cycle
OUT01
Boolean
Output
Output 1
OUT02
Boolean
Output
Output 2
OUT03
Boolean
Output
Output 3
K1
Boolean
Input
Push button 1
K2
Boolean
Input
Push button 2
T1
Timer
Internal
Time period of blinking
ST program –
“
ST1
”
outline:
IF INIT THEN
(* Do init steps here *)
INIT:= False;
T1:= T#1500ms;
END_IF;
Project name –
“
example1
”
Group name ("Test") for projects
One ST program –
“
ST1
”
One LD program –
“
LD1
”