Hello Everyone,
I have spent several hours searching the forum for a similar example or situation. The basic problem is this; I am trying to save data in a few registers for historical data that can be viewed on a PanelView plus. I am doing an Oven controller with an old PLC-5 and part of this project is a Summary for each bake--
Time Bake Started: Hour=N14:0 Minute=N14:1 Sec=N14:2
Time Temp was Reached: Hour=N14:3 Minute=N14:4 Sec=N14:5
Total Time at Temp: F8:60
Bake Number: ST12:1
etc
So..I am collecting this data and at the end of each batch
I am going to mov it to register and then shift it down. On the Panelview I will have a sumary screen with a up and down button to step through completed Batches using indirection.
Anyway I have written a little code and don't have a live PLC here in the shop to test it. What I am doing in this code is moving N14:0 N14:1 and N14:2 to N21:10, 11 and 12, The I am copying 900 words of n21 to n27:0(Storage) then 890 words from
n27:0 to n21:10 then clearing out n14:0. My goal is to move 10 words at a time down 10 place in the register(N21). In this example I am only showing N14s first 3 words but in final draft I will be moving Strings, Floats and Integers in respective files.
Then in the Panelview I will use my up and down button to increment or decrement a counter (C5:0) and look at the data like this
n21:[c5:0.acc]
I have read all the cases in here of using FIFOs and all that good stuff but tell why this won't work. Thank you all in advance.
I have spent several hours searching the forum for a similar example or situation. The basic problem is this; I am trying to save data in a few registers for historical data that can be viewed on a PanelView plus. I am doing an Oven controller with an old PLC-5 and part of this project is a Summary for each bake--
Time Bake Started: Hour=N14:0 Minute=N14:1 Sec=N14:2
Time Temp was Reached: Hour=N14:3 Minute=N14:4 Sec=N14:5
Total Time at Temp: F8:60
Bake Number: ST12:1
etc
So..I am collecting this data and at the end of each batch
I am going to mov it to register and then shift it down. On the Panelview I will have a sumary screen with a up and down button to step through completed Batches using indirection.
Anyway I have written a little code and don't have a live PLC here in the shop to test it. What I am doing in this code is moving N14:0 N14:1 and N14:2 to N21:10, 11 and 12, The I am copying 900 words of n21 to n27:0(Storage) then 890 words from
n27:0 to n21:10 then clearing out n14:0. My goal is to move 10 words at a time down 10 place in the register(N21). In this example I am only showing N14s first 3 words but in final draft I will be moving Strings, Floats and Integers in respective files.
Then in the Panelview I will use my up and down button to increment or decrement a counter (C5:0) and look at the data like this
n21:[c5:0.acc]
I have read all the cases in here of using FIFOs and all that good stuff but tell why this won't work. Thank you all in advance.
Last edited: