Register List

INCT_SysState - machine-stand system status interface. At the moment, the interface provides work with the generated list of registers (taking into account the settings file, the program library and the interpreter's parents). To distinguish the generated list of registers from the initial registers of the interpreter, the settings file and the parent interpreters, the generated list of registers is called the base list of registers.

Description of interface methods:

Method

Method Description

Description of use

FindFirstRegister

The function returns the first, found by address, base register (interface INCT_BaseReg).

Input parameter: Addr (string) - register address

The function can be used to search for the base register by address when analyzing the text of the G-code for implementing INCT_Interpreter.TransLine.

FindNextRegister

The function returns the next one, starting from FromIdx, found at the address of the base register (interface INCT_BaseReg).

Input parameter: FromIdx (integer) - the starting index, Addr (string) - the address of the register

The function can be used to search for the base register by address when analyzing the text of the G-code for implementing INCT_Interpreter.TransLine.

Get_BR_ByIndex

The function returns the base register by index (INCT_BaseReg interface)

Input parameter: Index (integer) - register index.

The function can be used to obtain the base register by index when searching the base registers (for example, to obtain the initial values of the tool position axes associated with the base registers).

Get_BR_ByName

The function returns the base case by name (interface INCT_BaseReg)

Input parameter: Name (integer) - the name of the register.

The function can be used to search for the base register by name, to determine the index of the register when implementing INCT_Interpreter.DefineRegister.

Get_BR_Count

The function returns the number of base registers.

The function can be used to obtain the number of base registers for subsequent enumeration of base registers (for example, to obtain initial values of tool position axes associated with base registers).


INCT_BaseReg - the interface provides work with the base register.

Description of interface methods:

Method

Method Description

Description of use

SetValue

The method sets a new value to the base register. The base register has three fields for storing a value — a string, a fractional number, an integer. If the new value is not empty, then it is written in a field with a string, converted and written into fields with integer and fractional numbers.

Input parameter: Value (string) - new register value.

The function can be used in the interpretation of tokens and semantic structures that affect the value of the register (for example, functions).

Get_Addr

The function returns the address of the base register (string).

No input parameters.

Functions can be used to obtain the corresponding parameters of the base register during the initialization, translation or interpretation of the text of the G-code.






Get_Name

The function returns the name of the base register (string).

No input parameters.

Get_Id

The function returns the identifier of the base register in the kinematic scheme of the machine (string).

No input parameters.

Get_Idx

The function returns the index of the base register in the register list (integer).

No input parameters.

Get_Str

The function returns the string value of the base register (string).

No input parameters.

Get_Int

The function returns the numeric value of the base register (integer).

No input parameters.

Get_Flt

The function returns the numeric value of the base register (integer).

No input parameters.