Thanks for all the help thus far!
The OPC Server is running on a windows 10 system. Its part of a bunch of other proprietary software and I'm really not sure how to tell if it is set to UTF-8 or not. My node-red system is running on arch-linux and is set to UTF-8
Thanks for the tip to force it into a string. I downloaded and installed that module and it might just be the way to do this. That said I have been able to get some interesting results Somethimes I get output that looks like this (It says Type not printable??) but the data looks more or less clean.
20/12/2021, 15:59:49node: b5117cb2a94c0f74 ns=2;s=Work.CurrentPlan : msg.payload : PlanInfo PlanInfo [Type not printable]PlanInfo { jobGuid: '82FD37E5-AB23-430E-99BA-4F477A97C2C4', planGuid: '175BE2CA-92DF-4A22-9A86-944A51D9E26D', name: '512_1849747', description: '', sizeX: 1848.515733196966, sizeY: 694.8310772215672, totalRuns: 16, totalParts: 1, planState: 3, estimatedCutTime: 3136.144, materialFormatType: 0, materialName: 'MS_XLTool', materialSizeX: 1870, materialSizeY: 695, materialThickness: 0.91, tubeProfileType: 0, profileDimA: 0, profileDimB: 0, profileDimC: 0, weight: 9.295876590000002, waste: 0.44893076028116086, articleInfo: 'GREEN 120488 XL Tool Inc.', chargeInfo: '120488', materialInfo1: '0.04 40x40"', materialInfo2: '', materialInfo3: '', parameterFile: 'BySmartFiber_L802_10000_MS_1_N2.par', spacerPlateInfo: '' }
Other times it looks like:
20/12/2021, 16:04:39node: b5117cb2a94c0f74 ns=2;s=Work.CurrentPlan : msg.payload : PlanInfo PlanInfo {e[36m /*PlanInfo*/e[39m e[33m jobGuid e[39m e[36m/* Guid */e[39m: 82FD37E5-AB23-430E-99BA-4F477A97C2C4 e[33m planGuid e[39m e[36m/* Guid */e[39m: 175BE2CA-92DF-4A22-9A86-944A51D9E26D e[33m name e[39m e[36m/* UAString */e[39m: 512_1849747 e[33m description e[39m e[36m/* UAString */e[39m: e[33m sizeX e[39m e[36m/* Double */e[39m: 1848.515733196966 e[33m sizeY e[39m e[36m/* Double */e[39m: 694.8310772215672 e[33m totalRuns e[39m e[36m/* Int32 */e[39m: 16 e[33m totalParts e[39m e[36m/* Int32 */e[39m: 1 e[33m planState e[39m e[36m/* PlanState */e[39m: PlanState.Started ( 1) e[33m estimatedCutTime e[39m e[36m/* Double */e[39m: 3136.144 e[33m materialFormatType e[39m e[36m/* MaterialFormatTyp */e[39m: MaterialFormatType.Sheet ( 0) e[33m materialName e[39m e[36m/* UAString */e[39m: MS_XLTool e[33m materialSizeX e[39m e[36m/* Double */e[39m: 1870 e[33m materialSizeY e[39m e[36m/* Double */e[39m: 695 e[33m materialThickness e[39m e[36m/* Double */e[39m: 0.91 e[33m tubeProfileType e[39m e[36m/* TubeProfileType */e[39m: TubeProfileType.None ( 0) e[33m profileDimA e[39m e[36m/* Double */e[39m: 0 e[33m profileDimB e[39m e[36m/* Double */e[39m: 0 e[33m profileDimC e[39m e[36m/* Double */e[39m: 0 e[33m weight e[39m e[36m/* Double */e[39m: 9.295876590000002 e[33m waste e[39m e[36m/* Double */e[39m: 0.44893076028116086 e[33m articleInfo e[39m e[36m/* UAString */e[39m: GREEN 120488 XL Tool Inc. e[33m chargeInfo e[39m e[36m/* UAString */e[39m: 120488 e[33m materialInfo1 e[39m e[36m/* UAString */e[39m: 0.04 40x40" e[33m materialInfo2 e[39m e[36m/* UAString */e[39m: e[33m materialInfo3 e[39m e[36m/* UAString */e[39m: e[33m parameterFile e[39m e[36m/* UAString */e[39m: BySmartFiber_L802_10000_MS_1_N2.par e[33m spacerPlateInfo e[39m e[36m/* UAString */e[39m: };
With the string node I can remove the crap but I'm not sure how to remove the unnecessary white spaces.
I end up with this: --EDIT --- This site seems to remove all the extra spaces... There are a bunch in between each word.
{e[36m /*PlanInfo jobGuid Guid : 82FD37E5-AB23-430E-99BA-4F477A97C2C4 planGuid Guid : 175BE2CA-92DF-4A22-9A86-944A51D9E26D name UAString : 512_1849747 description UAString : sizeX Double : 1848.515733196966 sizeY Double : 694.8310772215672 totalRuns Int32 : 16 totalParts Int32 : 1 planState PlanState : PlanState.Started ( 1) estimatedCutTime Double : 3136.144 materialFormatType MaterialFormatTyp : MaterialFormatType.Sheet ( 0) materialName UAString : MS_XLTool materialSizeX Double : 1870 materialSizeY Double : 695 materialThickness Double : 0.91 tub...
Is there something I can look at in UAExpert that will tell me what the server character encoding is?