blewl

How to modify a LINT in the program?

3 posts in this topic

Hello

I need to modify a LINT which I am using to control a MSG block.

The MOV command doesn't support a LINT.

How do I get the PLC to modify the LINT?

Thanks!

Share this post


Link to post
Share on other sites

Hello,

Assuming Studio5000/RSLogix5000 - you can go to the sample code library and search for "64 bit" there are instructions for handling LINT's - look for "LINT (64-bit signed 2's complement integer) Math Library"

http://search.rockwellautomation.com/search?client=samplecode&oe=UTF-8&ie=UTF-8&output=xml_no_dtd&proxystylesheet=samplecode&site=sample_code&getfields=*&lang=en&hl=en&sort=date:D:L:d1&wc=200&wc_mc=1&ud=1&filter=0&q=64%20bit

good luck!

vds

Edited by vds
1 person likes this

Share this post


Link to post
Share on other sites

Thanks, the L_MVM works well with the mask set to all 1s.

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