soop7667
Member
I am storing Data in a SLC 5/04 with a few Lines of Logic. I'm using the MSG Instruction to Gather the Data from Two Other SLC's On a DH+. Then using Indexed Addressing to Write each Machine's Cycles Into Several Contiguous Integer Files- One Word of Data Per Machine Each Minute. I have mapped out the Memory so there is One Section for Each Machine (N10:0 - N15:159)Machine #1, and (N20:0 - N15:159)Machine #2. All intensions in doing this is to have a Buffer to store the cycle count per minute data instead of using Excel with VBA. My Excel Proggie, like all of the others, if turned off will obviously not logg any data - so I figured they can shut off My Excel but they can't shut off my PLC - Anyhow....On to the point - I've been pondering when and how to extract this data from the PLC at the end of a production run. Once 24 Hours has been Logged I HAVE to get the data out or it just sits there and doesn't record any new Data. We run 24/7 with two 1 hour periods of downtime -Production day ends at 3am with the machines final cycle counts. I can extract the data automatically with Excel in the event the Cycle Counter is reset, but the program has to be on to be able to do this automatically - or even manually for that matter.
I'm thinking ...Right now I'm storing 2880 Words of Data - I have 32K of Memory and about 15 rungs of logic. Can I Move all of this Data from N10:0-N15:159 Into say - N30:0-N45:159? and the Same for the other machines Cycle Data? This would be storing a total of 5760 Words of Data. This way I will have 24 hours to turn on My Excel Program once the production day ends. The Cycle Count being reset to zero would be my trigger to Move the data - I can have the logic turn on a bit for each machine once it's Cycle Data has been moved to the new Files - Then Have Excel look for that bit and if its true Execute the Code which will "Grab" the values out of the N Files. From there I would POKE a value of 1 into my "Clear Cycle Data" Bit (Pre-existing)and the data would be cleared. In the meantime The next days Cycle counts would already be started and I'd have a much better chance of not loosing any data.
I'm thinking ...Right now I'm storing 2880 Words of Data - I have 32K of Memory and about 15 rungs of logic. Can I Move all of this Data from N10:0-N15:159 Into say - N30:0-N45:159? and the Same for the other machines Cycle Data? This would be storing a total of 5760 Words of Data. This way I will have 24 hours to turn on My Excel Program once the production day ends. The Cycle Count being reset to zero would be my trigger to Move the data - I can have the logic turn on a bit for each machine once it's Cycle Data has been moved to the new Files - Then Have Excel look for that bit and if its true Execute the Code which will "Grab" the values out of the N Files. From there I would POKE a value of 1 into my "Clear Cycle Data" Bit (Pre-existing)and the data would be cleared. In the meantime The next days Cycle counts would already be started and I'd have a much better chance of not loosing any data.