![]() |
TG Motion
version 502 - 4034/906 cnc 126
|
TG Motion is universal control system. The system includes single-axis, multi-axis and CNC motion functions like:
User can create motion and can control mechanisms like robots, manipulators, CNC machines, packaging machines, assembly machines, etc.
TG Motion runs on Windows with real-time extension or on a special ARM Linux computer called TGMmini.
TG Motion runs on dedicated processor core and communicates to the operating system through set of shared memories. Each user-accesible memory and its structure is documented in this manual.
Name | Number | Structure |
---|---|---|
TGM_System | 0 | SYSTEM |
TGM_Data | 1 | Flat memory for Virtual PLC |
TGM_Cam_Profile | 2 | Flat memory for gearing |
TGM_Oscilloscope | 3 | Stores oscilloscope data |
TGM_Servo | 4 | SERVO |
TGM_Dio | 5 | DIO |
TGM_General | 6 | GENERAL_MEMORY for general EtherCAT devices, etc. |
TGM_Interpolator | 7 | INTERPOLATOR |
InterpolatorWriteMemory | 8 | internally used by CNC module |
InterpolatorReadMemory | 9 | internally used by CNC module |
TGM_ODS | 10 | Serves for informational messages |
TGM_CNCODS | 11 | Informational messages of CNC module, passed to ODS memory |
TGM_CNCEX | 12 | Controls CNC module cnc::TGM_CNC_MEMORY |
TG Motion includes up to 3 CNC modules (PC) or up to 2 CNC modules (TGMmini). CNC module is controlled by G-code. Communication with this module is done by shared library called SF_TCh_5.dll (PC) or libSF_TCh_5.so (TGMmini). The main functions exported by this library are listed here.
The system supports use of plug-in for dynamic G-code recalculation.
Sometimes the CNC module needs to communicate back to the application, for this a system of callback functions is used. This is used for displaying G-code paths, error and warning messages, etc. Some callbacks are used only during simulation or test regimes.
List of main exported functions
There is also a specialized library (TGM_Comm_Int_5.DLL on Windows or libTGM_Comm_Int_5.so on Linux) which enables easy connection to all of these shared memories. The library functions and a complete C++ wrapper around this library is described in a class CTGM_COMM_INT_5.
Initialization functions
Informational functions
Access functions
Direct access functions
Helper function