Automatic G-code import
INFORMATION
To use the automatic G-code import, the IEC function block (SEW_MK_Robotics.SEW_RobGCode.MyRobot_GCodeImport) must be able to communicate with the import service application on the import computer. This requires a network connection between the MOVI-C® CONTROLLER and a .NET-capable computer (subsequently referred to as the import computer). The import computer can be a host computer, an engineering PC, a server, or the Windows part of the MOVI-C® CONTROLLER. Accordingly, a port share for the TCP protocol (port 2392 by default) must be set up on the import computer. In addition, the firewall must be configured accordingly and the import service must be started on the import computer.
The automatic G-code import makes it possible to control the import of G-code files by a function block in the IEC user program. The conversion process is performed by the standalone import service application GCodeImportService.exe
(subsequently referred to as "G-code import service"). See also Starting the G-code import service application.
An instance of the function block is created in SEW_Generated.SEW_GVL if the option has been activated in MOVISUITE®. This can be found under "Additional options > Activate G-code import". The function block is generated automatically when the IEC project is updated.
The IEC programmer can define the import behavior via a G-code import configuration file as well as via the inputs of the G-code import block. The latter transfers the request to the G-code import service application on the import computer. The G-code import service application converts the requested file into an SRL program and transfers this SRL program back to the G-code import block. The G-code import block loads the converted G-code program into the parameterized program slot.
In the dialog of the manual G-code import, the import can be configured to adjust the behavior of the G-code importer. For example, it is possible to scale the translational coordinates after the conversion and to specify which M-functions are to be used, or to insert additional SRL commands. The user can then save the settings made in a configuration file and use this for automatic G-code import. See also [4] in chapter G-code selection.
A code example for automatic G-code import can be found in chapter Application examples.