Table of Contents

Class SiemensFor

Namespace
Hi.NcParsers.Keywords.Siemens
Assembly
HiMech.dll

Siemens FOR <var> = <start> TO <end> ... ENDFOR counting-loop record. The Parsing capture stores the start expression as a single-entry Init map ({ “R1”: 0 }) — the variable name is a JSON key, which the evaluator's pass-2 tree walk never rewrites (values only), so a loop variable whose name matches a set named variable is not clobbered; the start/end values are substituted normally. The block-root stamp records the loop variable and its per-iteration Value.

public class SiemensFor
Inheritance
SiemensFor
Inherited Members
Extension Methods

Fields

InitKey

JSON key of the single-entry init map under Parsing.SiemensFor: Init = { <var>: <start> }.

public const string InitKey = "Init"

Field Value

string

TermEndfor

Loop terminator term.

public const string TermEndfor = "ENDFOR"

Field Value

string

TermFor

Loop entry term.

public const string TermFor = "FOR"

Field Value

string

Properties

End

Inclusive end bound. Parsing-side it is the raw end expression (literal written numeric, expression written string for the evaluator); the loop frame captures the resolved value once at loop entry — Sinumerik evaluates FOR bounds once, not per iteration.

public double End { get; set; }

Property Value

double

Term

public string Term { get; set; }

Property Value

string

Value

Current counter value assigned on this FOR arrival, stamp-side.

public double Value { get; set; }

Property Value

double

Var

Loop variable name (“R1” or a named variable), stamp-side.

public string Var { get; set; }

Property Value

string