ASCII Application

dennis8437

Member
Join Date
Sep 2004
Posts
19
I am working on an application that will communicate two values via the serial port (CH0)of a PLC-5/40. These values are HEX and arrive in ASCII strings. I was successful in extracting the desired 4 digit HEX strings but now I need to derive the actual value (integer) from these representation.

Thank you for your consideration

dennis8437
 
Dennis, there is a String to Integer Function I beleive in RSlogix5.
It is ACI in SLC series logic. I don't have the software handy, but you would extract your STring information to a location, then perform the ACI from that point.

Hope that this helps.
 
Thank you for your attention SNK, however the ACI will work only if the data in the ASCII string represents decimal data. It seems that the function does't like those funny abc's in the hex data.
 

Similar Topics

Hi Guys and the master Bernie :D I need more advice….I know very little about ASCII transmission via RS-232 I am considering purchasing this...
Replies
5
Views
4,595
D
Dear all, I’m working on an application using a 90-30 series PLC (CPU350) and a PCM 301. I have a desktop PC that will send the PCM module an...
Replies
2
Views
9,330
Drewie
D
I'm stumped by something seemingly simple. I want to move the numerical value of an ASCII style SINT into a REAL tag in Studio 5000. What's the...
Replies
3
Views
64
Hi, We couldn’t find anything specific, so am starting a new thread. I’m trying to migrate a config from a ML1400 to a micro820 & am experiencing...
Replies
1
Views
126
I have an L24ER-QB1B with a 1769-ASCII card in slot number 4. I'm looking to send data to this zebra printer after every completed sequence. I'm a...
Replies
2
Views
482
Back
Top Bottom