Sign in to follow this  
Followers 0
buster

Filling in registers

7 posts in this topic

I have made an HMI screen like this. It is a job selector, the opperator can select any job say the red one. when the job is done those registers are cleared. How would any of you shift the rest of the job regesters to fill the red one and clear the last one.

Share this post


Link to post
Share on other sites
Need a little more detail, shift while running, shift at end. Shift from where?

Share this post


Link to post
Share on other sites
Lets say that my jobs are loaded in registers N7:0 - N7:199 each job uses 20 registers. The operator loads a job the clears registers N7:60 - 79. Now I want to move N7:80 - 199 to N7:60 - 179 to fill in the blank spot in the middle. Make sense

Share this post


Link to post
Share on other sites
Use the COP instruction to copy a series of words to another series of words. COP #N7:80 #N7:60 20 <- copies twenty consecutive words beginning at N7:80 to a destination starting at N7:60. Notice the # on the address indicating that indexed addressing is in use.

Share this post


Link to post
Share on other sites
GIVEN : N8:20/0 = GREEN SELECTED N8:20/1 = ORANGE SELECTED N8:20/2 = BLUE SELECTED N8:20/3 = RED SELECTED N8:20/4 = YELLOW SELECTED N8:20/5 = PURPLE SELECTED EACH SELECTED BIT IS SET BY HMI AND RESET BY PLC N8:21/0 = BATCH RUNNING N8:0 TO N8:19 REPRESENTS DATA FOR RUNNING BATCH LOGIC LOOKS LIKE AS FOLLOWS: **** TO HANDLE WHEN GREEN SELECTED THE FOLLOWING RUNG**** XIC N8:20/0 XIO N8:21/0 BST COP N7:0 N8:0 20 NXB COP N7:20 N7:0 180 NXB FLL 0 N7:180 20 NXB OTU N8:20/0 NXB OTL N8:21/0BND **** TO HANDLE WHEN ORANGE SELECTED THE FOLLOWING RUNG**** XIC N8:20/1 XIO N8:21/0 BST COP N7:20 N8:0 20 NXB COP N7:40 N7:20 160 NXB FLL 0 N7:180 20 NXB OTU N8:20/1 NXB OTL N8:21/0 BND **** TO HANDLE WHEN BLUE SELECTED THE FOLLOWING RUNG**** XIC N8:20/2 XIO N8:21/0 BST COP N7:40 N8:0 20 NXB COP N7:60 N7:40 140 NXB FLL 0 N7:180 20 NXB OTU N8:20/2 NXB OTL N8:21/0 BND **** TO HANDLE WHEN RED SELECTED THE FOLLOWING RUNG**** XIC N8:20/3 XIO N8:21/0 BST COP N7:60 N8:0 20 NXB COP N7:80 N7:60 120 NXB FLL 0 N7:180 20 NXB OTU N8:20/3 NXB OTL N8:21/0 BND **** TO HANDLE WHEN YELLOW SELECTED THE FOLLOWING RUNG**** XIC N8:20/4 XIO N8:21/0 BST COP N7:80 N8:0 20 NXB COP N7:100 N7:80 100 NXB FLL 0 N7:180 20 NXB OTU N8:20/4 NXB OTL N8:21/0 BND **** TO HANDLE WHEN PURPLE SELECTED THE FOLLOWING RUNG**** XIC N8:20/5 XIO N8:21/0 BST COP N7:100 N8:0 20 NXB COP N7:120 N7:100 80 NXB FLL 0 N7:180 20 NXB OTU N8:20/5 NXB OTL N8:21/0 BND Hope this helps at least spark an idea

Share this post


Link to post
Share on other sites
Yes that is what I mean. Thanks Bob I was thinking about the same. I wanted something smaller. There more Job pages than the one shown.

Share this post


Link to post
Share on other sites
Doug you are a smart man. I will give it the test.

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