Edited to say I wrote all the below when there is a easier way. The menu A text color can have a expression binding…
if ({[default]MachineA/MATagAlarm}=1, "#CC4828", "#00FF00")
…
I had a go at this one for changing text color…
In the folder for Machine ‘A’ I created a expression tag with the expression below. Extend it if you have more tags. I made the datatype INT so it gives a 0 or 1 if any of the tags are true.
{[.]MAtagA} || {[.]MAtagB} || {[.]MAtagC} = true
You might want to drill down into the is alarm active value depending on how you have things set up.
Then on the Machine A menu I created 2 custom properties. The value binds to the expression tag above so goes 1 or 0 depending on state.

On the value property I added a change script.
value = self.custom.value
if value == 1:
self.custom.color = '#CC4828'
else:
value == 0
self.custom.color = '#F93E10'
You can change the hex value to what color you want.
This then writes the hex code to the color custom property.
Then on the textstyle color property I bound that to the color custom property.
In the change script you could directly address the text style color but I like to keep things separate so i can see what’s going on and test. Personal preference I guess. But it would be something like…
value = self.custom.value
if value == 1:
self.props.textStyle.color = '#CC4828'
else:
value == 0
self.props.textStyle.color = '#00FF00'
I hope that helps, or at least gets you started.
This is the end result that will need tailored to fit your application…
Alarm;
No Alarm;