<STRUCTURE> command



The <STRUCTURE> command allows us to represent a tree structure of CLData commands as a linear list of commands.

Command:

STRUCTURE ON(71)|OFF(72), TYPE(Level), Comment(Level: -65)

In SprutCAM toolpath of each operation is represented as a tree, separated into groups and subgroups, within which are placed the usual commands of moving tool, turn on the spindle or feed, etc. Inside the postprocessors generator toolpath is represented as a linear list of commands that is not divided into groups. <STRUCTURE> command intended to preserve the original information as to in what group was originally located CLData command. Each group is converted into two commands: <STRUCTURE ON(71)> and <STRUCTURE OFF(72)>. The first command defines the start of the group, and the second one - the end of the group. All items that are placed inside a group will be located between these two commands. As well as groups can be nested within each other, inside a <STRUCTURE ON(71)> ... <STRUCTURE OFF(72)> block can be nested several other blocks <STRUCTURE ON(71)> ... <STRUCTURE OFF(72)>.

images/download/attachments/84219332/StructureMCDTreeToCLD.png

Parameters:


Parameter

CLD array

Description

ON(71),

OFF(72)

CLD[1]

Sign that this command is the beginning or the end of the group:

ON(71) - command defines the beginning of group,

OFF(72) - command defines the end of group.


Parameters available through the Cmd operator


TCLDSStructure: ComplexType

Command that defines the structure

IsClose: Integer

Cmd.Int["IsClose"] - Sign that this command is the beginning or the end of the group:

0 - command defines the beginning of group,

1 - command defines the end of group.

NodeType: String

Cmd.Str["NodeType"] - A string that specifies the type of group. For example, Approach - a group of approach movings, Level - a layer of machining, etc. This string is not translated into local languages.

Comment: String

Cmd.Str["Comment"] - The group name that is displayed in the SprutCAM's toolpath tree. Can be translated into local languages ​​and contain arbitrary characters.


See also:

Technology commands description