RSxxx interface
Write_Fifo_Full
ADwin
172
ADwin-Gold II
, Manual February 2013
RS_Set_LED
(
rs_adr
,
rs_channel
, (
red_led
And
1
)
Or
(
Shift_Left
((
green_led
And
1
),
1
)))
If
((
red_led
>
0
)
Or
(
green_led
>
0
))
Then
If
((
Read_Timer
()
-
led_time
) >
20000000
)
Then
If
(
red_led
>
0
)
Then
Inc
red_led
If
(
green_led
>
0
)
Then
Inc
green_led
led_time
=
Read_Timer
()
EndIf
EndIf
If
((
red_led
=
3
)
Or
(
green_led
=
3
))
Then
red_led
=
0
green_led
=
0
EndIf