Sign in to follow this  
Followers 0
vanilla_gorilla

Moving an interger into Control R6

5 posts in this topic

If I move an integer (in this case #1) into R6:0.POS does it increment the count in .POS or does it jusr mov a 1 in each time and R6:0.POS stays at 1 ?? BST XIC R6:0/DN NXB XIO I:1.0/9 BND XIC I:1.0/11 MOV 1 R6:0.POS

Share this post


Link to post
Share on other sites
There is no problem in moving an integer into R6:0.pos. I do it often with sequencers. HOWEVER, many instructions that use the R data files only work operate on false->true rung transtiions. For example, if the R6:0 structure is a control structure for a sequencer and you move a 3 into R6:0.pos the sequencer output word will not be automatically updated - you need to manually update it.

Share this post


Link to post
Share on other sites
Just curious what is R6.0.LEN in your application. Your program will move 1 into R6.0.pos for each I:1.0/9 while I:1.0/11 is true and when R6.0/DN is true.

Share this post


Link to post
Share on other sites
R6.LEN is 9 referenced in SQC BST XIC I:1.0/11 NXB XIC I:1.0/13 BND XIO B3:0/10 BST SQC #N7:0 N7:20 I:1.0 R6:0 9 1 NXB CTU C5:5 9 3 BND

Share this post


Link to post
Share on other sites
To answer your original question the rung you posted. BST XIC R6:0/DN NXB XIO I:1.0/9 BND XIC I:1.0/11 MOV 1 R6:0.POS Does the following: 1. Check if the R6.0 control register pos pointer has reached position 9 {is done}. 2. Check to see if input I:1.0/9 is off. {probably a sequence reset signal} 3. Check to see if input I;1.0/11 is on. {probably a use sequencer signal flag}. 4. If {condition 1 or condition 2} and condition 3 is true tne load a 1 into the R6.0.pos register. It does not increment R6.0.pos.

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