My attempt is as follows:
1) B3:0/0 is used to turn on/off the TON timer rung and the DLG rung.
2) When the timer reaches the preset time (i.e. T4:0/EN becomes true), I reset the B3:0/0 so that timer and DLG rungs will be turned off.
3) I have another rung that has XIO on T4:0/EN so that when the timer is not enabled, I would set B3:0/0 to turn on the timer.
The last step 3) is supposed to be my looping mechanism to keep the toggling going. But I think I am missing something. It is toggling freely and continuous, not at the set time interval.
Is my approach wrong? Is there another way or more conventional way to do data logging? My ultimate goal is to log an analog input signal (via the analog input module) every 0.1sec for a duration of 90sec and preform an integration of this signal. This signal is proportional to a gas flow. The integration with time will give me the total gas volume which is what I am trying to determine.
I will appreciate any suggestion or pointer. Thanks a lot!
Edit:
Here is a screen shot!
