Help - Search - Members - Calendar
Full Version: Date/schedule Sequencer
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
rwraley
I have written a program that contains a schedule for time on and time off for 2 seperate zones of operation in a process (8 N:7 words per day) X 12 areas X 31 days. You can see that this is a rather large integer file. I was wondering if anyone had any code examples of some sort of sequencer or instruction that would advance the day and load the appropriate N sources to there destinations(other than MOV or COP). The ultimate goal is to have xcell serve these integer setpoints via DDE once a month and have the master micrologix 1100 provide a master system clock to 12 Micrologix 1100's and write the new values to the 12 1100's in the plant that would maintain a 31 day schedule until served again for the next months schedule. Thanks in advance.
TWControls
I think I am following you but I'm not sure a sequencer would be the best way. I could probably do it that way but it would take much more code.

First am I understanding the following
You have 8 parameters per day per area
You have 12 areas
31 Days

If it was me I would make a data file for each area. We will say N10 through N22 with a size of 320 (I don't have RsLogix 500 in front of me right now and I thought the limit was 255 but I'm going off of you saying that you have a much larger data file)

Then the day X 10 would be where you would put your first value for that day. This does make XX8 and XX9 spares but you may end up needing them.

After that just use indirect addressing. Take the day x 10. Then use the COP instruction and copy N10:[day*10] to N10:0 with a length of 10. Since there is not zero day the first 10 weren't used anyway. To the same with N11 through N22

Is this what you are looking for?
rwraley
Thanks for the advice.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.