Fanuc translators

Fanuc downloader

Previous  Chapter  Next

 

Introduction


The Fanuc vendor downloader translates the basic FASTSUITE Edition 2 functionality into a ready to use Fanuc robot program.


Fanuc_download_1



Layout preparation


For the robot program to be output correctly, the axes for Fanuc robots must be connected correctly in the Port mapping dashboard in Layout Builder workbench. Fanuc robot controllers divide the axes into different motion groups. Each motion group can have up to 9 joints. This information is read from the layout and processed when the robot program is created. It is therefore important to assign the correct group and axis index to the robot axes.


Fanuc_download_2



Fanuc downloader


The Fanuc downloader supports:

PageParagraph_8 Tool & base frame mapping

PageParagraph_8 Point to point, linear and circular motion output.

PageParagraph_8 Cartesian and joint motion target type for all motions.

PageParagraph_8 Speed, accuracy & acceleration events.

PageParagraph_8 Text event is used to add a comment in Fanuc robot program.

PageParagraph_8 Set signal & wait for signal (logic ports); Boolean signals only.

It has some restrictions:

PageParagraph_8  With FASTSUITE Edition 2 version R2024.1 only the (Python) downloader is available. For creating an upload, the Custom Definition application needs to be used.

PageParagraph_8  Implementation via customizing

PageParagraph_8 Multi-(synchronized) robot motions are supported by default.

PageParagraph_8 Resource port events are not implemented in the base.



Infrastructure


The Fanuc vendor downloader is derived from the translator base implementation.


Fanuc_download_3


To make the program creation as easy as possible, the Fanuc program is organized in several sections.


Fanuc_download_4


These sections are organized in string arrays. The string arrays are initialized in the __init__() function.


Fanuc_download_5


To add content to the section arrays, it is recommended to use the existing functions:


Fanuc_download_6


This has the advantage that things like line numbering and margin spacing are automatically maintained.


Fanuc_download_7



Header output


The header output is generated at the end of the complete process. It is not done in the OutputHeader() function.

This is because we need the maximum number of source lines in the header and make customizing easier. Instead, it is called in the CreateOutputFile().


Fanuc_download_8



Handle motion


The HandleMotion() function handles the motion and all the events before and after the motion.


The motion is divided into source and data sections:


Fanuc_download_9


Commands and signals are also processed.



Source output


In the source section, the point sequence is defined, depending on the motion type.


Fanuc_download_10


Fanuc_download_11



Data output


In the data section, the corresponding point coordinates are evaluated and converted into a suitable format using the motion target type.


Fanuc_download_12


If a point is created in the source section, the point counter is increased there. If the point is only output in the data section, the point counter needs to be increased there by setting the dataOutputOnly to True.


Fanuc_download_13



Handle events


In the HandleEvent() function, the events, so-called built-in events, which are delivered with the standard FASTSUITE Edition 2 installation (see the restrictions) are processed.


Fanuc_download_14


Fanuc_download_15



Motion groups


To simplify the output of point coordinates, the FASTSUITE Edition 2 data is transferred into a separate data structure with motion groups and joints. This data structure is the same as the Fanuc data structure. This makes the output much easier. The definition of motion groups and joints can be found at the end of the Fanuc translator.


Fanuc_download_16



Constants & settings for additional customizing


Constants


Below the class definition you will find the constant definition.


Fanuc_download_17


These can also be used in derivations by prefixing them with the self command.


Fanuc_download_18


Minimum & maximum tool & base frame index


Fanuc itself only supports tool and base frame index numbers within a common range.


Fanuc_download_19


Speed, accuracy & acceleration


The motion profiles are added to the point definition, so motion profile events change class-wide variables that are then considered in the point output.


Fanuc_download_20



Previous
Previous page
Chapter
Chapter page
Next
Next page