Page 1 of 1

Showing the cause of brightening

Posted: Saturday 19 June 2021 11:56
by abdolhamednik
Hello friends
I have a problem thank you to help me.
I have a collection of programs that some of them are devoid and some of them.
For different modes in the worker system, one is activated. Now I want a plan that when the alarm is activated, it is clear that this is the problem because of which problem?
That is, I want different scenarios that are in programs and clearly identifiable.
To better understand the following example:

commandArray={}
if devicechanged ['circule1']=='On' then
commandArray['alarm']= "On FOR 2 SECONDS REPEAT 5 INTERVAL 5 SECONDS"

end
if devicechanged ['power3ph']=='Closed' then
commandArray['alarm']= "On FOR 2 SECONDS REPEAT 5 INTERVAL 5 SECONDS"
end

if devicechanged ['auto/man']=='Open' then
commandArray['alarm']= "On FOR 2 SECONDS REPEAT 5 INTERVAL 5 SECONDS"
end
return commandArray

I want the program to be such that each time that is activated, it is precisely determined what has been activated.
Meanwhile, I want a way of writing print.
Thanks for your guidance.