Quantcast
Channel: Allen Bradley / Rockwell Automation Latest Topics
Viewing all articles
Browse latest Browse all 3721

ASCII Conversion in RSLogix5000

$
0
0

I have been using RSLogix programming for a little time now, and I have run into a problem with converting ASCII characters coming in from a remote console into usable data in my program. Right now they are stored in tags of a data type SINT, or signed integer. I would like to convert them to a string of an equivalent value to the incoming data for comparison. For example, a character of incoming data could contain a value of 121, which is equivalent to 'y' as an ASCII string. I would like to convert it into that character so that I can compare and evaluate the next step of my project. I am aware of the DTOS and STOD functions that are at my disposal, but I am missing some in between step. Or perhaps I am on the wrong thought process altogether. I am not sure.

 

My work associate described them as having 8 bits of data in which I have to pack into a new string whose length I must define. Does anyone know what I am missing?


Viewing all articles
Browse latest Browse all 3721

Trending Articles