Hello,
I have got this piece of code:
............
'FTP sending
RA(ALARMS:1R:W100)1H
DO1"Level(m);2047"
DO{COPYD sched=AB format=free start=new id=2 dest=ftp://XXXXXXXX/yyyy-xxx-?(timestamp).csv}
'Level schedule
RB"Nivel"(DATA:200D)10m
1L(s1,W,=1CV)
1CV("Nivel~m",FF4)=1CV+50CV 'Reading channel 4-20mA + user function adjustment
...........
For some reason the new flag doesnt update correctly and some hours it send all data it has and some others it just send the last hour values. I had the FTP schedule at the end of the rest schedules and this wasnt happening, however I had to move it to the A schd as I ned a CSV header workaround. Maybe it has to be with a mutex problem trying to acces to data while writing from shed B. Any thoughts?
Thank you
Hello,
I have got this piece of code:
............
'FTP sending
RA(ALARMS:1R:W100)1H
DO1"Level(m);2047"
DO{COPYD sched=AB format=free start=new id=2 dest=ftp://XXXXXXXX/yyyy-xxx-?(timestamp).csv}
'Level schedule
RB"Nivel"(DATA:200D)10m
1L(s1,W,=1CV)
1CV("Nivel~m",FF4)=1CV+50CV 'Reading channel 4-20mA + user function adjustment
...........
For some reason the new flag doesnt update correctly and some hours it send all data it has and some others it just send the last hour values. I had the FTP schedule at the end of the rest schedules and this wasnt happening, however I had to move it to the A schd as I ned a CSV header workaround. Maybe it has to be with a mutex problem trying to acces to data while writing from shed B. Any thoughts?
Thank you