Sign in to follow this  
Followers 0
chainsaw

Indirect addressing & dint's

3 posts in this topic

I'm having trouble working out how to do this! I'm using GX IEC Developer and an A2US cpu. I have a set of words in the global variable table set as DINT. (d100, d102 etc) I need to indirectly address these. When using the DMOV instruction the input side is the side I'm having trouble with. If I use d100z0 it comes up with a type mismatch error. And I can't use a Z pointer with the symbol name from the g.var. list (or I don't know how to use them together.) Where am I going wrong?

Share this post


Link to post
Share on other sites
Make an Array of the double words in the GVL. You can pprogram these via arrayname[variable as pointer or Z] array.doc Edited by Gambit

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
Sign in to follow this  
Followers 0