Setting up two flashing bits
This set up creates two flashing bits: 1 every 0.5 second, the other one at every 0.25 second. Those bits will be “Flags 19 and 20”. Timer 10 will be used.
You will find a downloadable PDF version at the end of this page.
DURATION
+/- 30 minutes
RECOMMENDATION
N/A
WARNING!
N/A
DANGER
N/A
For privacy reasons YouTube needs your permission to be loaded. For more details, please see our Privacy policy.
I AcceptSTEP BY STEP
FLAGS CREATION
- PRESS –> [ I/O ]
- PRESS –> [ F1 ] [ TYPE ]
- SELECT –> [ 0 ] 0 NEXT
- SELECT –> [ 2 ] 2 FLAG (see screenshot)
- Using Arrow, –> Scroll down to F[19]
- PRESS –> [ F2 ] [ DETAIL ] (see screenshot)
- PRESS –> [ ENTER ]
- ENTER–> Pulse 0.5s
- PRESS –> [ ENTER ]
- Using Arrow, –> Scroll down to F[20]
- PRESS –> [ F2 ] [ DETAIL ]
- PRESS –> [ ENTER ]
- ENTER–> Pulse 0.25s
- PRESS –> [ ENTER ]
BACKGROUND LOGIC PROGRAM CREATION
- PRESS –> [ SELECT ]
- PRESS –> [ F2 ] [ CREATE ]
- ENTER –> Program name with no space. You can use Option/Keybd feature to enter the name. To do so, select Keybd, press F5 for KEYBOARD, write what you want then press EXIT. (Use BG as a prefix to your background logic program name: BG_FLASH).
- PRESS –> [ ENTER ] (if name written using F1 to F5 keys) (see screenshot)
- PRESS –> [ DETAIL ]
- ENTER –> A comment on third line. (You can use Option/Keybd.)
- Using Arrow –> Scroll down on fourth line.
- PRESS –> [ F5 ] *
- PRESS –> [ F1 ] [END]
TIMER SET UP
- PRESS –> [ MENU ]
- SELECT –> [ 0 ] 0 NEXT
- SELECT –> [ 4 ] 4 STATUS
- SELECT –> [ 8 ] 8 PRG TIMER (see screenshot)
- Using Arrow –> Scroll down on tenth timer.
- PRESS –> [ ENTER ]
- ENTER –> A comment for timer 10. (You can use Option/Keybd.) FLASH_BIT (see screenshot)
- PRESS –> [ F2 ] [ DETAIL ]
- Using Arrow –> Scroll down on Local/Global. (see screenshot)
- PRESS –> [ F4 ] [ GLOBAL ]
- PRESS –> [ F2 ] [ LISTING ]
- PRESS –> [ EDIT ]
- You should be back to BG_FLASH program editing screen.
WRITING PROGRAM
- PRESS –> [ F1 ] [ INST ]
- SELECT –> [ 3 ] 3 IF/SELECT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 1 ] 1 IF (…) THEN (see screenshot)
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 3 ] 3 TIMER [ ] (see screenshot)
- ENTER –> 10
- PRESS –> [ ENTER ]
- PRESS –> [ F1 ]
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 7 ] 7 >
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 1 ] 1 Constant
- ENTER –> .5
- PRESS –> [ ENTER ]
- Using Arrow –> Scroll down one line.
- PRESS –> [ F1 ] [ INST ]
- SELECT –> [ 2 ] 2 I/O
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 2 ] 2 F[ ]=(…)
- ENTER –> 19
- PRESS –> [ ENTER ]
- PRESS –> [ 5 ] 5 F[ ]
- ENTER –> 19 (see screenshot)
- PRESS –> [ ENTER ]
- Using Arrow –> Move cursor back on 19.
- PRESS –> [ F5 ] (!)
- Using Arrow –> Scroll down one line.
- PRESS –> [ F1 ] [ INST ]
- SELECT –> [ 7 ] 7 Miscellaneous
- SELECT –> [ 7 ] 7 Parameter Name (see screenshot)
- SELECT –> [ 1 ] 1 $…=…. (see screenshot)
- PRESS –> [ ENTER ]
- ENTER –> TIMER[10].$TIMER_VAL (see screenshot)
- PRESS –> [ ENTER ]
- SELECT –> [ 2 ] 2 Constant
- ENTER –> 0
- PRESS –> [ ENTER ]
- PRESS –> [ F1 ] [ INST ]
- SELECT –> [ 3 ] 3 IF/SELECT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 3 ] 3 ENDIF (see screenshot)
- Using Arrow –> Scroll down one line.
- PRESS –> [ F1 ] [ INST ]
- SELECT –> [ 3 ] 3 IF/SELECT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 1 ] 1 IF (…) THEN
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 3 ] 3 TIMER [ ]
- ENTER –> 10
- PRESS –> [ ENTER ]
- PRESS –> [ F1 ]
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 7 ] 7 >
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 1 ] 1 Constant
- ENTER –> 0.25
- PRESS –> [ ENTER ]
- Using Arrow –> Scroll down one line.
- PRESS –> [ F1 ] [ INST ]
- SELECT –> [ 2 ] 2 I/O
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 2 ] 2 F[ ]=(…)
- ENTER –> 20
- PRESS –> [ ENTER ]
- SELECT –> [ 6 ] 6 ON
- PRESS –> [ ENTER ]
- Using arrow –> SCROLL DOWN one line.
- PRESS –> [ F1 ] [INST]
- SELECT –> [ 3 ] 3 IF/SELECT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 2 ] 2 ELSE (see screenshot)
- Using Arrow –> Scroll down one line.
- PRESS –> [ F1 ] [INST]
- SELECT –> [ 2 ] 2 I/O
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 2 ] 2 F[ ]=(…)
- ENTER –> 20
- PRESS –> [ ENTER ]
- SELECT –> [ 7 ] 7 OFF
- PRESS –> [ ENTER ]
- Using Arrow –> Scroll down one line.
- PRESS –> [ F1 ] [INST] (see screenshot)
- SELECT –> [ 3 ] 3 IF/SELECT
- SELECT –> [ 8 ] 8 NEXT
- SELECT –> [ 3 ] 3 ENDIF
START TIMER 10
The TIMER[10] has to be started only once per controller power up.
- PRESS –> [ SELECT ]
- Scroll down the list and SELECT –> POWERUP Program (see screenshot)
- PRESS –> [ ENTER ]
- Scroll down to an empty line.
- PRESS –> [ F1 ] [INST]
- SELECT –> [ 7 ] 7 Miscellaneous
- SELECT –> [ 3 ] 3 TIMER[] (see screenshot)
- ENTER –> 10
- PRESS –> [ ENTER ]
- SELECT –> [ 1 ] 1 START
- Using Arrow –> Move up one line. (see screenshot)
- PRESS –> [ STEP ]
- PRESS –> [ SHIFT and FWD ] (to run this live)
- PRESS –> [ STEP ]
- PRESS –> [ MENU ]
- SELECT –> [ 0 ] 0 NEXT
- SELECT –> [ 4 ] 4 STATUS
- SELECT –> [ 8 ] 8 Prg Timer
- You should see the timer count rising. (see screenshot)
START BACKGROUND LOGIC PROGRAM BG_FLASH
In order for the flags 19 and 20 to flash, you must put the background logic program et running mode
- PRESS –> [ MENU ]
- SELECT –> [ 6 ] 6 SETUP
- SELECT –> [ 0 ] 0 NEXT
- SELECT –> [ 5 ] 5 BG LOGIC (see screenshot)
- Scroll down to an empty line.
- PRESS –> [ F4 ] [ CHOICE ]
- Using Arrow, Scroll Down to–> BG_FLASH (see screenshot)
- PRESS –> [ ENTER ]
- PRESS –> [ F2 ] RUN
- If the program has no error, you should see in the STATUS column that it is running. (see screenshot)
- PRESS –> [ I/O ]
- PRESS –> [ F1 ] [ TYPE ]
- SELECT –> [ 0 ] 0 NEXT
- SELECT –> [ 2 ] 2 FLAG
- You should see Flags 19 and 20 switching from ON to OFF state. (see screenshot)