Skip to main content
CNC.wiki

I want to call and execute macro programs on my Doosan machine with a Fanuc control unit. How can I do that?

AI answer

You can use the following commands to call and execute macro programs on your Doosan machine with a Fanuc control unit:

  • G65 (Simple Call): Used when a specific subroutine needs to be executed exactly once without leaving a modal state [1].
  • G66 (Modal Call A): This is a modal call that executes the macro after an axis movement. In this mode, the execution of the macro is delayed until the axis movement block is completed [1].
  • G66.1 (Modal Call B): This is a modal call that executes the macro for every NC block, regardless of movement [1].
  • G67 (Modal Cancel): Used to disable the modal state after completing G66 or G66.1 cycles. This prevents unintended macro executions in subsequent axis movements [1].

Important Notes:

  • When making macro calls, program only one macro call or canned cycle per NC block [1].
  • When passing variable arguments with G65, G66, and G66.1 commands, avoid using standard G-codes (e.g., G address) as a variable argument, as this can trigger an alarm [1].
  • It is important to use the G67 command to remember to cancel modal calls (G66, G66.1). Otherwise, the macro may continue to execute unexpectedly, potentially leading to mechanical damage [1].
  • Fanuc systems have a maximum nesting depth limit of five levels for macro calls [1].
🤖 This answer was prepared by our AI assistant utilizing content from our website.

Related Sources