# Flashing LED

**URL:** <https://forum.deltamotion.com/t/flashing-led/417>\
**Category:** RMCTools\
**Created:** [March 22, 2017, 4:02pm UTC](https://forum.deltamotion.com/t/flashing-led/417 "2017-03-22T16:02:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnneR](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@AnneR](https://forum.deltamotion.com/u/AnneR)\
**Post date:** [March 22, 2017, 4:02pm UTC](https://forum.deltamotion.com/t/flashing-led/417/1 "2017-03-22T16:02:48Z")

</div>

Hi,

I am really new to this so please excuse my ignorance. I’m trying to make an LED (Output0) flash on completion of a step in a program. From my understanding I should be able to do this by creating a timer. I’ve followed the steps in the Software manual for this so I:

1. Created a variable, Time0 (DINT)
2. Created a step with the following commands:  
Command: Set Discrete Output I/O Point: Output0  
Command: Expression Expression: Time0 := \_SysMS  
Link Type: Cnd Jump Link Condition: \_SysMS - Time0 \>= 999 Jump on True: Repeat Jump on False: Wait

I more or less understand what’s going on here, apart from by setting Time0 = \_SysMS, wont \_SysMS - Time always equal zero?

Any help appreciated!

 ![RMC75 code.jpg](https://forum.deltamotion.com/uploads/default/original/1X/f838695fb1ef0c2f0ca3eef669cd830ea8882af8.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacob\_Paso](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@Jacob\_Paso](https://forum.deltamotion.com/u/Jacob_Paso)\
**Post date:** [March 22, 2017, 4:10pm UTC](https://forum.deltamotion.com/t/flashing-led/417/2 "2017-03-22T16:10:11Z")

</div>

You can use a timer, but it would be simpler to just do something like this:

 ![2017-03-22_9-09-06.png](https://forum.deltamotion.com/uploads/default/original/1X/bdac051c6f91f42c16bb31e8e35063fcfecb168d.png)

---

<div class="post-metadata">

**Author:** ![AnneR](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@AnneR](https://forum.deltamotion.com/u/AnneR)\
**Post date:** [March 22, 2017, 4:31pm UTC](https://forum.deltamotion.com/t/flashing-led/417/3 "2017-03-22T16:31:52Z")

</div>

Thanks for the fast reply. Sorry, I should have said I’m trying to get the light to flash continuously (eg. 1 sec on, 1 sec off) until the next program is triggered. From what I understand your suggestion would just flash once after 0.5sec and then turn off?

---

<div class="post-metadata">

**Author:** ![Jacob\_Paso](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@Jacob\_Paso](https://forum.deltamotion.com/u/Jacob_Paso)\
**Post date:** [March 22, 2017, 5:08pm UTC](https://forum.deltamotion.com/t/flashing-led/417/4 "2017-03-22T17:08:55Z")

</div>

I see. How about this? The next program would need to make sure to turn off the output.

 ![2017-03-22_10-07-56.png](https://forum.deltamotion.com/uploads/default/original/1X/4f8edce883eefaa21f065dd2dc2e48840339bb8a.png)

---

<div class="post-metadata">

**Author:** ![AnneR](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@AnneR](https://forum.deltamotion.com/u/AnneR)\
**Post date:** [March 22, 2017, 5:15pm UTC](https://forum.deltamotion.com/t/flashing-led/417/5 "2017-03-22T17:15:44Z")

</div>

Perfect! I didn’t realise you could label and call different commands like that. Thanks for your help 🙂
