Forum
Ways to improve acquisition rate
Quote from Henrique Núñez on October 30, 2020, 7:40 amI'm doing process monitoring, and I currently export some CNC data to a file (currently CSV).
In the most optimistic scenario, I'd need the acquisition rate to be around 1kHz, it means ~1ms on each info gathering iteration.
Honestly, I'd be already happy with ~10ms on each iteration, because now my code is running at ~15Hz, with 2 FOCAS readings.
Does anyone have any ideas on improving performance?
Thx
I'm doing process monitoring, and I currently export some CNC data to a file (currently CSV).
In the most optimistic scenario, I'd need the acquisition rate to be around 1kHz, it means ~1ms on each info gathering iteration.
Honestly, I'd be already happy with ~10ms on each iteration, because now my code is running at ~15Hz, with 2 FOCAS readings.
Does anyone have any ideas on improving performance?
Thx
Quote from Versex on October 30, 2020, 8:16 pmHi Henrique,
So a couple of things that I have noticed when testing out various communication methods, that you can get significantly faster rates if you are using HSSB. Also, if you have a Data Server on the CNC then you can use focas over the Data Server which is much faster than focas using the standard controller. If you don't have HSSB, or a Data Server available for the CNC, it may be worth looking into getting a Data Server card from Fanuc. You will need the card and you'll need the Fast Ethernet option.
In order to get sub 10ms readings, I believe you'll need to use HSSB which is an optical connection from the HMI to the controller. I have gotten ~4ms readings from the controller using HSSB.
Hi Henrique,
So a couple of things that I have noticed when testing out various communication methods, that you can get significantly faster rates if you are using HSSB. Also, if you have a Data Server on the CNC then you can use focas over the Data Server which is much faster than focas using the standard controller. If you don't have HSSB, or a Data Server available for the CNC, it may be worth looking into getting a Data Server card from Fanuc. You will need the card and you'll need the Fast Ethernet option.
In order to get sub 10ms readings, I believe you'll need to use HSSB which is an optical connection from the HMI to the controller. I have gotten ~4ms readings from the controller using HSSB.