# How do I configure my own alarm on the Flex Pendant?

**URL:** <https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801>\
**Category:** IRC5\
**Tags:** digital-input\
**Created:** [February 19, 2025, 12:23pm UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801 "2025-02-19T12:23:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![imnisarahmed](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@imnisarahmed](https://tech-community.robotics.abb.com/u/imnisarahmed)\
**Post date:** [February 19, 2025, 12:23pm UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/1 "2025-02-19T12:23:45Z")

</div>

Dear Experts,

I have an additional digital input connected to the controller I/O system to check whether the mixing unit, where the robot is placing samples, is ready or not. I would like to display an alarm on the Flex Pendant when the mixing unit becomes not ready and also understand how to use this alarm in ABB RAPID/configuration to set the ABB robot to “not ready” as well. Thanks.

Best regards,  
Ahmed

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [February 19, 2025, 1:33pm UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/2 "2025-02-19T13:33:30Z")

</div>

Read up on the ErrRaise and ErrWrite instructions in the technical manual - Instructions, Functions and Datatypes.

---

<div class="post-metadata">

**Author:** ![imnisarahmed](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@imnisarahmed](https://tech-community.robotics.abb.com/u/imnisarahmed)\
**Post date:** [February 20, 2025, 1:12am UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/3 "2025-02-20T01:12:16Z")

</div>

Hi Lee,

Thank you for your reply. I will check and try.

---

<div class="post-metadata">

**Author:** ![imnisarahmed](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@imnisarahmed](https://tech-community.robotics.abb.com/u/imnisarahmed)\
**Post date:** [February 23, 2025, 1:24am UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/4 "2025-02-23T01:24:03Z")

</div>

Hi Lee,

I have tried but it isn’t working. Please guide me if I am doing something wrong.

I have added this to RAPID:

PROC mixing\_alarm()  
IF DInput (mixing\_ready)=1 THEN  
ErrWrite\W, “Mixing unit not ready”,“”;  
ENDIF  
ENDPROC

best regards,  
Ahmed

---

<div class="post-metadata">

**Author:** ![jarmster](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jarmster](https://tech-community.robotics.abb.com/u/jarmster)\
**Post date:** [February 24, 2025, 4:00pm UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/5 "2025-02-24T16:00:39Z")

</div>

How do you have it set up to execute your proc? The robot needs to execute the code somehow

---

<div class="post-metadata">

**Author:** ![nolanmaris](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nolanmaris](https://tech-community.robotics.abb.com/u/nolanmaris)\
**Post date:** [February 25, 2025, 8:11am UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/6 "2025-02-25T08:11:59Z")

</div>

Hello

You can configure a custom alarm on the Flex Pendant using RAPID.

1. Monitor the Digital Input: Use a trap routine or cyclic task to check the mixing unit status.
2. Trigger an Alarm: If the unit is not ready, use SetAlarm to display a message and stop the robot:

VAR alarmid myAlarm;

PROC check\_mixing\_unit()

IF DI\_MixingUnit\_NotReady = 1 THEN

SetAlarm myAlarm, “Mixing unit not ready!”, 1;

StopMove;

ENDIF

ENDPROC

Set Robot to “Not Ready”: Modify SysPar or use logic to prevent movement when the alarm is active.

---

<div class="post-metadata">

**Author:** ![imnisarahmed](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@imnisarahmed](https://tech-community.robotics.abb.com/u/imnisarahmed)\
**Post date:** [February 28, 2025, 2:13pm UTC](https://tech-community.robotics.abb.com/t/how-do-i-configure-my-own-alarm-on-the-flex-pendant/11801/7 "2025-02-28T14:13:56Z")

</div>

Thank you.
