Sign in to follow this  
Followers 0
tlee

R and ZR File Registers

5 posts in this topic

OK, another new guy question (new to Mits PLC's that is): Is there a difference in R and ZR File Registers or just in the way they are addressed. Currently using a Q02HCPU. Any help would be greatly appreciated, esp. a location in the documentation that has the/an explanation. Thanks, T.

Share this post


Link to post
Share on other sites
Not sure what you asre asking here. R is a prefix for a file register, and Z is an indirect pointer number. No such thing as ZR that I've ever seen. Z is typically placed on the end of the address, such as D0Z0. If Z0 is equal to 4, then D0Z0 points to D4, not D0.

Share this post


Link to post
Share on other sites
ZR is used for adressing over the range of 32767 points of fileregisters. There are more than 32767 fileregisters, with this notation you can adres them. So for the range 0..32767 the notation R and ZR is the same adress. See page 3.28 of the common programming manual for System Q. Edited by FNMdeJong

Share this post


Link to post
Share on other sites
So by using ZR (Serial Number Access Method) you save an instruction by not using [RSET]. It is my understanding that ZR and R access the same file/memory location but just use different methods to address that memory, is this correct. Sweet, Thanks FNMdeJong. L8R, T.

Share this post


Link to post
Share on other sites
Yes you are correct, you save the RSET instruction.

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