ElectronGuru

LINT Literature Conflicts

5 posts in this topic

Sorry for such a long post but here goes.

I've been messing around this week with a 1756-5583E controller running on version 30.11, and I decided to play with LINTs, ULINTS, and other U-integer data types just for fun. (I now regret this decision, lol). No matter what instruction I attempted to use a LINT or other 64-bit data type in, when I verified the routine it told me I'm using an invalid data type. So I start digging around and found this in the New Features section of Studio5000 version 32 release notes:

"Added new predefined data types (USINT, UINT, UDINT, ULINT) and 64-bit data types (LINT and REAL) to improve range, accuracy, and precision of user applications and increase productivity. The new data types are applicable to CompactLogix 5380, CompactLogix 5480, and ControlLogix 5580 controllers only".

After a lot of screwing around I discovered that LINT is available in the tag editor in all my Studio versions (21, 28, 30, 31, 32, & 34), but Studio woofs its cookies if you try to use it in code at V31 or below. You can declare a LINT tag but if you can use in code without getting an invalid data type error, I can't figure it out. If I use LINT in V32 or above (as advertised in the release notes), all is well.

BUT WAIT: THERE'S MORE!

You'd think I'd had enough but I went even further down the rabbit hole and found this on page 130 in the Replacement Guidelines: Logix 5000 Controllers (March 2022) manual (bold italics are mine):

"LINT data types are aligned on 64-bit boundaries in Logix 5000® controllers, that use a Logix Designer project, version 27 or later".

This appears to directly contradict the release notes that said LINT was new in V32. Then this on page 131:

"See Produce and Consume Tags on page 106, if you Produce/Consume tags in UDTs between the following:

  • 5580 and 5570 controllers that use Logix Designer projects, version 26 or earlier.
  • 5380 and 5370 controllers that use Logix Designer projects, version 26 or earlier".

 According to Rockwell's Product Compatibility and Download Center (PCDC) there is no L8 controller that can be flashed to below V28.

Questions:

  1. Does anyone know why 64-bit data types are available in Studio V31 and below if they can't be used in code?
  2. If they can be used in code, what the heck am I missing? (I was trying simple things like MOV a decimal value to data type LINT tag).
  3. Does anyone know why these three Rockwell reference tools (release notes, Replacement Guidelines, and PCDC) seem to so egregiously contradict one another?

Thanks and again, sorry so long. 

Share this post


Link to post
Share on other sites

LINT is available in V31 and earlier, but cannot be used in math.  It can only be used in GSV,  SSV, COP, and CPS instructions, as far as I can tell.  It is handy for 64-bit UTC wallclock to pass to external systems.  Except the alignment issue is a real pain in the ***.

To do LINT math pre-v32, you need AOIs that will COP to two-element DINT arrays, perform the math with those, then COP back to an LINT result.

The only contradiction is that LINT was permitted pre-v32, not added to v32.  All 64-bit math--full functionality if you will--was added in v32.

Share this post


Link to post
Share on other sites

@pturmel thanks! If only the V32 release notes had just said, "you can now do math, etc. with a LINT".

Share this post


Link to post
Share on other sites

Look at a current instruction set reference, math chapter.  There are separate columns for supported types on 5380 & 5580 processors versus other models.  I suspect it isn't a v32 issue, but simply a processor model issue.  The newer processors only run v32+, IIRC.

Anyways, looks documented to me.

Share this post


Link to post
Share on other sites

There are several Control- and CompactLogix L8 processors that will go all the way down to V28, at least according to PCDC. But true, the vast majority of them run only on V32 and up.

Anyway, you definitely cleared up my questions for me and today I fooled around with several controllers and versions of Studio to see that in action for myself.

Thanks! This helped a lot!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now