Skip to main content
6-Contributor
December 20, 2023
Question

Is there a way to convert decimal data coming from a Siemens PLC to ASCII in Kepware/Thingworx

  • December 20, 2023
  • 1 reply
  • 2126 views

Hello, I am pretty new to Kepware and was hoping for some guidance.  Using advanced tags or Thingworx, is there a way to convert decimal data coming from a Siemens PLC to ASCII and feed it into Thingworx?  The result I need to get should read like +99.9

I was able to find a chart that shows decimal to ASCII, but I am not sure how I can make that conversion using Kepware/Thingworx.

1 reply

24-Ruby III
December 21, 2023

Some additional information - "Descriptions of the ASCII, ASCII Hex, and Binary Data Protocols": https://www.ptc.com/en/support/article/CS333058

S_Noe6-ContributorAuthor
6-Contributor
December 21, 2023

Thank you for this information.  I appreciate your response.  Using the chart I have, I can see that a byte sending a 43 from the PLC should be a '+' and a 26 should be a '.'  I am just not sure how to get those numbers to translate to those characters for the Thing I have created in Composer.  Nothing obvious is jumping out to me using advanced tags.  But I am very new to this software, so maybe the solution is very obvious?  Maybe I would have to create something in Thingworx using coding?  I'm not sure if it's possible or what approach to use.  Thank you for your patience with me!