|
Step 7 - YOUR FIRST PROGRAM
You will now set up your first program that turns on and off the leds that correspond to LIGHT1 and LIGHT2.
1. Move to the OUT symbol on the tool bar.
You will see another set of icons that have HIGH, LOW labels,
2. Select the High icon. You will see a box with the internal label of MOTOR1P. This box defaults to the label allocated to line 0. Note that LIGHT1 and LIGHT2 are on output 4 and output 5.
You have to change this label to match the LIGHT1 or LIGHT2 label,
Click on the high MOTOR1P icon and you will see a new window pop up at the lower left of the screen.
Select LIGHT1 or LIGHT2 from this area.
Place the following icons:
high LIGHT1 - turns ON Light1
low LIGHT2 - turns OFF LIGHT2
pause 1000 - get from the DELAY menu
low LIGHT1 - turns OFF Light1
high LIGHT2 - turns ON Light2
Use the line function to join the base of the last pause to the start icon.
What have you achieved?
You have set up a flow chart that sets up the alternate flashing of LIGHT1 and LIGHT2.
|