Hi!
I'm having a problem to convert a value my PLC is sending with modbus, is says its in array, but I need to use this value to write on a chart, I don't know if I need to convert to number to be able to write in the chart, but thats what I think is the way to work.
I tried to convert the value the modbus is sending with this following function but is not working:
msg.payload = Number(msg.payload)
return msg;
Anyone can help? Do I need to convert the value from array to number to write on the chart or don't? If not why is not working?
If I need to convert the value to number, can anyone tell me how to do it?
It worked, thank you!
My chart is reading the values as it should, just one thing, is there a way to filter the value anything above 0?
I see there is the polling rate of my modbus reading but i need that reading the entire time waiting for the value to come.
Is there a function I can write like If value > 0 then pass the information?