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. For this purpose, a network connection between MOVI-C® CONTROLLER and a .NET-capable computer (hereinafter referred to as an import computer) is required. 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 tool center point 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 for controlling the import of G-code files is created in SEW_Generated.SEW_GVL when the additional function is activated in the configuration of the software module in MOVISUITE® under “Module configuration” > “Basic settings. When updating the IEC project, the block is generated automatically.

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. This transmits 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 to the parameterized program slot.

In the dialog of the manual G-code import, it is possible to configure the import in order to adjust the behavior of the G-code importer. For example, it is possible to scale the translational coordinates after the conversion and 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 them for the automatic G-code import. See [4] in chapter Conversion.

For an example of the code for automatic G-code import, refer to chapter Application examples.