Payload: Float64array

Hello everyone,

I have a CNC reporting some torque data using OPC UA. The problems is that the data format(?) is in Float64Array and the reported value (debugging) shows double quotes. How do I convert this to a usable number(no double quotes nor Float64Array) ? I'll be sending this numeric value to InfluxDB eventually.

6/3/2020, 11:59:15 AMnode: f1466b5.4f00618
ns=27;s=NC.Chan.ActSpindleTorque,01,ActiveValue : msg.payload : Float64Array
"-0.30000000000000004"

-L

It behaves just like a regular array, no conversion needed. You can access the first element with msg.payload[0].

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.