GeniusInTraining (Customer) asked a question.

Addressing a index in a copy with a Click PLC

Hello Everyone, I have been reading about Pointers, Loops and indexing but not sure if thats what I want or need.

 

I need to store some data, some will be time duration values and other will be real time integers, this will be triggered by events, when the event happens I need to move/copy my data to a register until the next event happens and then store it without writing over the last data and to a new register location at the end of the shift we will clear all data and start over

 

Example when x happens, I started a timer T1 and at the end of x I copy TD1 to DS500, then the next time the event happens I need to copy TD1 to DS501

 

My friend did a block copy with a index and it worked but that wrote over DS500, I need that but not to write over the old data

 

Thank you

Mark


  • GeniusInTraining (Customer)

    screenshotclickSo with some help (ok a lot of help), this works great! it copies the time stamp and also the duration of the alarm, then indexes everything

     

     

    Expand Post
  • Todd Dice (Customer)

    One thing I would change is the copy command that places 500 into DS499. It should perform it via a N.O. one-shot at the start of your shift, rather than at end of shift.

     

    And, I forgot the END statement! Eek!