Table of Contents

Class FanucModalMacro

Namespace
Hi.NcParsers.Keywords
Assembly
HiMech.dll

Modal-macro-call record left by FanucModalMacroSyntax. Carries Fanuc G66 setup state forward block-to-block until cancelled by G67. The section is also written on the G67 block itself (with Term = “G67”) so cache dumps show the cancel edge; subsequent blocks then carry no section at all.

Per-block expansion of the modal call into an actual macro inline at every positioning move is not yet implemented — a FanucModalMacro--NotExpanded warning is emitted on the setup block to flag the simulation gap. The setup state itself is captured faithfully so external tooling can detect "this block sits inside a G66 modal" via the carried section.

public class FanucModalMacro
Inheritance
FanucModalMacro
Inherited Members
Extension Methods

Properties

Args

Argument-letter → numeric-value map captured from the G66 setup line. Null on a G67 cancel block.

public JsonObject Args { get; set; }

Property Value

JsonObject

FileName

Bare matched file name (e.g. “O9000.NC”) that would supply the modal-call macro body. Null on a G67 cancel block or when the file could not be resolved at the setup site. Same JSON-portable form as FileName — the folder context lives on the host's SubProgramFolderConfig dependency, not encoded here.

public string FileName { get; set; }

Property Value

string

L

Repeat count from the L parameter; defaults to 1 when absent. Null on a G67 cancel block.

public int? L { get; set; }

Property Value

int?

P

Macro program number from the P parameter on the G66 setup. Null on a G67 cancel block.

public int? P { get; set; }

Property Value

int?

Term

Triggering keyword: “G66” for setup / modal-active blocks, “G67” for the cancel block. Carried blocks downstream of a G66 setup mirror the setup section verbatim.

public string Term { get; set; }

Property Value

string