
EMBEDDED
PLC BL2500 User’s Manual
Running Sample Applications
OEM Technology Solutions
Page 33
3.4.6 Using Flow Chart
1. Open the ISaGRAF Project Management by double-clicking on the ISaGRAF Projects icon on your
Desktop or selecting
Start
menu
→
Programs
→
ISaGRAF 3.5
→
Projects
. On the
Projects
Management
window, select
File
menu
→
New
.
2. On
the
Create new project
window, enter the
name of the project (for example b25test6) and
press
OK
button. The name of project should not
exceed 8 characters. The b25test6 project is then
listed in the
Projects Management
window.
3. Select
Edit
menu
→
Set comment text
. Enter a brief description of this project and press
OK
button.
This description will be displayed next to the project name in the
Projects Management
window.
4. Double-click
on
b25test6
project. An empty
B25TEST6 – Programs
window is displayed.
5. Select
File
menu
→
New
. On the
New program
window
enter the name of the program (for example, FCtest1); a
brief comment; select the Language to
FC
; select
Begin
Style and press
OK
button. The FCtest1 program is
displayed in the
B25TEST6 – Programs
window.
6. Follow Steps 6 to 11 in 3.4.1 to create and populate the application’s Dictionary with SW1 and SW2
Boolean input variables, and LED1 Boolean output variable.
7. On
the
B25TEST6 – Programs
window double-click on
FCtest1
program.
8. Select
the
Insert a comment
button
and place the comment box in the
FCtest1 Flow Chart
editor. Double click on the box to type in a comment
such as “Exclusive OR logic for switching on
LED”.
9. Select
the
Insert a test
button
and place it between the “Begin” symbol and the “End” symbol.
Double click on it to display the editing box for that symbol. Rename it SW1 = SW2, and type in the
code SW1 = SW2.
10. Select the
Insert an action
button
and place one on each of the two flow links from the test.
Double click on the action symbol placed on the “Yes” flow link to display the editing box. Rename it
LED1_OFF and type in the code:
LED1 := FALSE;
Double click on the action symbol placed on the “No” flow link to display the editing box. Rename it
LED1_ON and type in the code:
LED1 := TRUE;