
B–63172EN/01
16. CUSTOM MACRO
NC FUNCTION
97
As with the conversational macro function of macro executors/compilers,
the C language executor function is used to customize screens and include
unique operations. Application programs for display and operation can
be created in standard C language, in the same way as programs are made
for normal personal computers. A program compiled on a personal
computer is transferred and stored in flash ROM in the CNC via a memory
card. The program is read into memory upon activation of the CNC, and
executed by the C language executor.
NOTE
This function can not used for Power Mate i–D (2 path
control).
No special additional hardware is needed to run the C language executor
and application programs (
*
). CRT/MDI and handy operator’s panel are
supported. User applications can be included in the current CNC system.
NOTE
(
*
) : The flash ROM/DRAM capacity may have to be increased.
Application programs can be developed using an ordinary personal
computer. Program development, from program creation and editing to
compilation/linkage, can also be performed on a personal computer. And,
to a certain extent, debugging is also possible on the personal computer.
Microsoft Corporation’s C compiler (MS–C) is employed as the C
language compiler. It is the de–facto standard C compiler for personal
computers. The function library provided by the C language executor has
excellent compatibility with the ANSI standards and MS–C. Therefore,
application programs for ordinary personal computers can be transported
to the CNC, except when they are dependent on particular hardware.
An application program created by the machine tool builder is executed
as one task of the CNC software. The application program can display
its own screens in place of existing CNC screens. In addition, the
application program can read and write CNC system data via libraries
provided by the C language executor. This enables operation of the
application program to be integrated with CNC software.
The C language executor can be used with the macro executor. Not only
executable macros, but also conversational macros can be used together.
The screen display portion of a macro program already created by the
machine tool builder can be replaced with a program coded in C. This can
prevent existing software resources from becoming useless.
16.5
C LANGUAGE
EXECUTER
FUNCTION
Features
D Low–cost customization
D Application development
on a personal computer
D High compatibility with C
language application
programs for personal
computers
D Integration of CNC
software and
applications
D Using the C language
executor with the macro
executor