I need Help ML 1100

pcanis

Member
Join Date
Nov 2008
Location
Barcelona
Posts
10
I have ML 1100, via the RS 232 receives data from a temperature controller, the variable of the current temperature in the string is format HEX, as I can pass this variable to DEC, example the String value is:3C, the value in DEC is 60.
How is possible convert string HEX to DEC?
 
You need to use a ACI function to convert a string to an integer. Go to your help menu in RS Logix 500 and look up the instruction ACI and it will tell you how it is used.

Basically what you are doing is pulling the ASCII value and converting it into an Integer. It is based on ASCII not the actual HEX value.
 
Here's a program to illustrate extraction of value from ASCII encoded hex characters. This may take a bit of experimenting but this is the core routine.

After posting the program I thought - I can't test this.
If the original MOV of DATA[0] moves just the first character and not the first two let me know. It becomes at once a little easier and a little more complicated.
 
Last edited:

Similar Topics

I am trying to get a micrologix 1100 to communicate with my pv+ 400. I have quite a bit of experience with rs logix 500 but never have had to set...
Replies
7
Views
3,965
I have an old Sentry Palletizer (S/O Number 3007 / Serial Number 1172) that has lost its program as the backup battery died years ago. I can...
Replies
0
Views
107
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
70
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
383
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
197
Back
Top Bottom