11-23-2020 05:12 AM
Hello every one
i stuck to display fault message of inverter. there is memory in PLC which store fault code # of inverter as 0 ot 31. these 32 value in memory represent specific fault which i want to display on labview front panel. how can i compare these code to display alarm
let say memory has value "18" it mean inverter overvoltage fault and so on with every value 0 to 31 represent different faults.
please help me
Thanks in advance.
Solved! Go to Solution.
11-23-2020 05:21 AM
Hi Asif,
@Asif138 wrote:
let say memory has value "18" it mean inverter overvoltage fault and so on with every value 0 to 31 represent different faults.
Create an 1D string array of strings with 32 elements and put the error description into the corresponding elements.
When you read your error number you simply use it as index into this array…
@Asif138 wrote:
i stuck to display fault message of inverter. there is memory in PLC which store fault code # of inverter as 0 ot 31.
In my experience PLCs use 32bit (or 16bit) entities (aka bitfields) with each bit having its meaning. Does your PLC really store an integer number from 0-31 instead?
11-23-2020 06:18 AM
Thanks for replay
yes my plc memory store integer which is 0 to 31 number.
i explain more about that like if
memory have value 1 front panel should display "OK
memory have value 2 front panel should display "not OK
memory have value 3 front panel should display "check supply
memory have value 4 front panel should display "check input
memory have value "5 front panel should display "check output
i hope i explain it.
thanks
11-23-2020 06:23 AM - edited 11-23-2020 06:24 AM
Hi Asif,
@Asif138 wrote:
i explain more about that like if
memory have value 1 front panel should display "OK
memory have value 2 front panel should display "not OK
memory have value 3 front panel should display "check supply
memory have value 4 front panel should display "check input
memory have value "5 front panel should display "check output
So please use my suggestion in message #2!