Getting Started:
PAC-5007(P)/5107(P)/5207/5307 Ver. 1.0, 07/2010 ICP DAS
.
4-1
Chapter 4.
ISaGRAF Demo
4.1 Writing a Simple ISaGRAF Program
Note:
The following is a step-by-step example on how to create a ladder logic (henceforth
referred as "LD") program and download it to
PAC-5x07(P) PAC. If you do not install the
“ISaGRAF Workbench” and “ICP DAS Utilities for ISaGRAF” software, please refer to
Example of LD Program:
The following is a step-by-step example on how to create a ladder logic (henceforth
referred as "LD") program, we use
PAC-5307 PAC (plugged XW-board: XW107)
.
Variable Declaration:
Name
Type
Attribute
Description
SW1
Boolean Input
Input Switch 1
SW2
Boolean Input
Input Switch 2
SHUT
Boolean Input
Input Shutdown button
OUT01
Boolean Output
Output 1
OUT02
Boolean Output
Output 2
OUT03
Boolean Output
Output 3
TMR1
Timer
Internal Time Period of blinking, initial value is set at "T#1s"
LD Program:
Action Procedure:
1.
Monitors the “SW1” (Default: OFF) and “SW2” (Default: OFF).
2.
Monitors the “SHUT” button (Default: OFF, Normal Close)
3.
If either “SW1” or “SW2” is ON and the “SHUT” is OFF, start the (blinking) timer
“TMR1”.
4.
OUT01 ~ 03 will switch to ON and OFF per second.
5.
Press “SHUT” to stop the bliking of OUT01 ~ 03.
Содержание ISaGRAF mPAC Series
Страница 46: ......