Hello all,
I am using Galil 4080 controller. I have connected forward and reverse limit switches and it is working fine.
I understand, I can get the feedback from a Galil motion program for Limit switch by MG_LFA etc.
I need to know how to get the feedback of Limit Switch in a C/C++ code.??
Kindly help with an example.
Bhutani
KushalP on 01/05/2015 - 14:46
Hi Bhutani,
If you are just getting started with writing your host application, you will want to take a look at the getting started guide, and our API examples.
Getting started guide:
http://www.galil.com/download/manual/galiltools/hello.html
API Examples:
http://www.galil.com/learn/api-examples
Here is a reference for all of the functions used in the GalilTools Communications library:
http://www.galil.com/download/manual/galiltools/library.html#message
Galil controllers also have the data record feature that is ideal for data collection and controller monitoring. It is a binary data structure generated by the controller's firmware either in a periodic and asynchronous manner (DR) or via an interrogated, synchronous command (QR). The transmitted data contains a variety of controller information: encoder positions, reference positions, profiler information, I/O, program information, user variables on the Accelera family, and much more.
More information on the data record can be found here:
http://www.galil.com/download/manual/galiltools/library.html#datarecord
The status of the limit switches is reported as a part of the data record and can be queried using the sourceValue() function:
http://www.galil.com/download/manual/galiltools/library.html#sourceValue