You are not logged in.
Pages: 1
Topic closed
Hello all,
I need to store a calculated value in a task between iterations, and also be able to read that value between tasks. Is there a block or blocks that will allow me to do this; data stored to RAM and not using SGSLP (to minimise sd card writes), and also ideally without using a external database?
Thannks in advance,
Adam
Offline
Dear Adam,
thanks for your question. The philosophy of the REX Control System is a bit different.
If you just need to use the value from previous iteration, then simply feed the signal back and use the LPBRK block. The following will increment the value by 1 in each cycle:
If you need to store some value for longer than 1 period of the task, you can use the SHLD function block.
As for connecting tasks, this is done using the Outport and Inport function blocks, whose names correspond to each other:
Hope this helps!
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Jaroslav, it does indeed help. Thank you very much
Offline
Pages: 1
Topic closed