Hi All
Im using RSlogix 5000 and compactlogix.
I need to store 2 bits of data to a register in the PLC, one is a time stamp from the wall clock and one is a REAL value.
I have created a user defined table called 'STORAGE' with both values in, 1st being a DINT [7] and the 2nd being a REAL [1]. This STORAGE has 10 elements.
I need to write to these 2 areas (ive used a GST for the time and a MOV from an ana input for the REAL value), then increment the STORAGE to the next element, and write the 2 values to STORAGE [1].
I have been trying to use a FIFO to store, then increment to the next element in the array, but cant see how to incorporate both the bits of data, then move on.
Any ideas would be greatly appreciated.
Oliver
Im using RSlogix 5000 and compactlogix.
I need to store 2 bits of data to a register in the PLC, one is a time stamp from the wall clock and one is a REAL value.
I have created a user defined table called 'STORAGE' with both values in, 1st being a DINT [7] and the 2nd being a REAL [1]. This STORAGE has 10 elements.
I need to write to these 2 areas (ive used a GST for the time and a MOV from an ana input for the REAL value), then increment the STORAGE to the next element, and write the 2 values to STORAGE [1].
I have been trying to use a FIFO to store, then increment to the next element in the array, but cant see how to incorporate both the bits of data, then move on.
Any ideas would be greatly appreciated.
Oliver