03-15-2019, 04:32 AM
Hello, I'm having some trouble when trying to gather Sys.Time values into a file.
I'm running a motion program:
gather.enable = 0
Gather.addr[0]=Sys.Time.a
Gather.addr[1]=Motor[2].ActPos.a
Gather.addr[2]=Motor[4].ActPos.a
Gather.addr[3]=Motor[2].ActVel.a
Gather.addr[4]=Motor[4].ActVel.a
Gather.items=5
Gather.Period=1
gather.enable = 3; dwell 0
--motion code---
gather.enable = 0; dwell 0
enable plc GATHERPLC // sends system "gather -u /var/ftp/gather/data.txt"
But when I check the generated data file, the first column values does not match with the values I expected and see for Sys.Time on the Watch window. I tried to change Gather.Type[0] to 5, but I got weird numbers. The rest of the columns are ok with the variables as it was specified. I would like to have Sys.Time value in seconds.
Another problem I'm having is that the full motion program have duration of 51 seconds, and the gather file has only information for the last 12 seconds, it's missing data. Is it beacause of any file limitation size?
I'm running a motion program:
gather.enable = 0
Gather.addr[0]=Sys.Time.a
Gather.addr[1]=Motor[2].ActPos.a
Gather.addr[2]=Motor[4].ActPos.a
Gather.addr[3]=Motor[2].ActVel.a
Gather.addr[4]=Motor[4].ActVel.a
Gather.items=5
Gather.Period=1
gather.enable = 3; dwell 0
--motion code---
gather.enable = 0; dwell 0
enable plc GATHERPLC // sends system "gather -u /var/ftp/gather/data.txt"
But when I check the generated data file, the first column values does not match with the values I expected and see for Sys.Time on the Watch window. I tried to change Gather.Type[0] to 5, but I got weird numbers. The rest of the columns are ok with the variables as it was specified. I would like to have Sys.Time value in seconds.
Another problem I'm having is that the full motion program have duration of 51 seconds, and the gather file has only information for the last 12 seconds, it's missing data. Is it beacause of any file limitation size?