Unsigned DINT in RSLOGIX 5000

bgrove

Member
Join Date
Nov 2017
Location
Michigan
Posts
4
PLC Programming Noob here...

Converting a Micro/WIN program to RSLogix 5000.

Anyway to do an Unsigned DINT in RSLogix 5000? Have a value of 4294967295 that I need to store.
 
do you really need that VALUE - or just the corresponding bit pattern? ...

if it's just the bit pattern of ones and zeros - then you might experiment with using a COP (Copy) instruction - instead of a MOV (Move) ...

TIP: a Copy transfers BIT PATTERNS ... a Move transfers NUMERIC VALUES ...

if you can tell us more about where that number/pattern is actually coming from - and what you plan to eventually do with it, then maybe we could come up with a method that would meet your needs ...

many long years ago, I had to manipulate the MSB (Most Significant Bit) by using ladder logic with an OTE instruction as a workaround ...

and welcome to the forum ...
 
LINT routines will do all that you need but you can’t display LINT on HMI.
Few years ago I wrote AOI that can display UDINT in the pair of DINTs that can be put side by side on HMI
You can find these in Stratix faceplates
 
Change the radix to HEX, which will be FFFF_FFFF.

All of the LT, GT, GEQ, LEQ blocks won't work though, you could roll your own with SUB, ADD, S:N, S:C and/or S:V.
Watch out for the overflow flag, which raises a minor error.
 

Similar Topics

I'm having to make an AOI to use with a generic ethernet device because the manufacturer does not provide an AOP. I just want to do a sanity check...
Replies
13
Views
1,258
Is there a way in CX-Programmer to ad UINTs together with an instruction without a compiler warning. Ladder Rung: Warning: Instructions...
Replies
2
Views
1,248
I'm trying to read a u32 register from a fuel meter over modbus rtu. There isn't a unsigned integer option under the "treat as" field. I select...
Replies
15
Views
3,860
Hello, I'm reading a modbus register 40125 I'm using a modbus poll program to read this register. If i read the register as a "signed" value it...
Replies
12
Views
9,288
I have a cognex camera that is transmitting a trigger id as an unsigned integer. However, everything in siemens displays it as a signed integer...
Replies
10
Views
6,211
Back
Top Bottom