Hex to Decimal studio 5000

RioPLC

Member
Join Date
Nov 2019
Location
new jersey
Posts
19
I am trying to convert hex values to decimal.

I am reading in values from 232ASC module.

They come in on ___:4:I: Data[0] & ___:4:I: Data[1]

Data[0] reads 16#04 and Data[1] reads 16#a4

I would like to convert these numbers to decimal in ladder.

Is there a way to do this in studio 5000?
 
Last edited:
Don't use a MOV, use a COP. MOV attempts data conversion, but COP preserves the bit pattern. You might need TConnolly's solution in the thread linked above if you receive a value with bit 15 set to "1".
 
Hex-Conversion.png



šŸ™ƒ
 

Similar Topics

I am using a Micro 850E PLC (the new one with implicit messaging capability) to drive a Kinetix 5100 servo drive. The error code number on the...
Replies
7
Views
1,698
Hey All, i have been fortunate enough to play around with an Applied Motion Products Servo Drive SV200 with 100 watt/ 24vdc congif. I managed...
Replies
2
Views
1,873
Hi I'm using Mitsubishi FX5U with a GOT HMI. I need to enter values on HMI in decimal format then convert to HEX for use on a Modbus RTU link...
Replies
1
Views
3,066
Hi all, great forum I'm learning all the time on here. I'm having a problem with a g308 in that I can read the data in hex, but when I try to...
Replies
0
Views
2,223
i'm newbie in PLC, would u like to help me, plese.. i'm using an instruction MOV, for moving Hexadecimal data #0020 which is &32 in decimal,to...
Replies
3
Views
1,820
Back
Top Bottom