beautypg.com

Native code, New module – Rockwell Automation GMLC Reference Manual User Manual

Page 469

background image

Publication GMLC-5.2 - November 1999

432

Miscellaneous Blocks

Native Code

You can use the Native Code block to directly enter iCODE (the native
language of the motion controllers) commands into your GML
Commander diagram. However, few GML Commander diagrams ever
require this block.

Only experienced programmers should use the Native Code block. Its
purpose is to let you enter iCODE commands supported by your
firmware, but not by GML Commander. Contact Allen-Bradley Technical
Support if you believe you need to use the Native Code block to
accomplish something that cannot be done any other way.

The Native Code block resides on the Advanced Motion Palette.

New Module

Use the New Module block to create a new module that can become part
of your GML Commander diagram, or serve as an external module that
can be called by your GML Commander diagram using a Call Module
block.

By itself, a New Module block provides no program functionality. It is
merely a container that you can use to hold other function blocks.

You can create a New Module block in either of two ways:

Drag a New Module block from the Main Palette, and drop it into the
diagram window, or

Encapsulate other function blocks, by holding down the left mouse
button, dragging a dotted rectangle around other function blocks (that
are already in your diagram), and selecting Encapsulate from the
Module menu.