update completion list

This commit is contained in:
Christoph Brandau
2025-07-24 17:16:38 +02:00
parent c9a07ae1b9
commit e842d9d74e
+108
View File
@@ -12,6 +12,10 @@
"label": "lappend", "label": "lappend",
"kind": "keyword" "kind": "keyword"
}, },
{
"label": "append",
"kind": "keyword"
},
{ {
"label": "string", "label": "string",
"kind": "function" "kind": "function"
@@ -40,9 +44,33 @@
"label": "set", "label": "set",
"kind": "keyword" "kind": "keyword"
}, },
{
"label": "unset",
"kind": "keyword"
},
{ {
"label": "namespace", "label": "namespace",
"kind": "keyword" "kind": "keyword"
},
{
"label": "info",
"kind": "keyword"
},
{
"label": "global",
"kind": "keyword"
},
{
"label": "incr",
"kind": "keyword"
},
{
"label": "string",
"kind": "keyword"
},
{
"label": "expr",
"kind": "keyword"
} }
], ],
"MOM_procs": [ "MOM_procs": [
@@ -696,6 +724,86 @@
"MOM_force_block \"Once\" \"linear_move\"" "MOM_force_block \"Once\" \"linear_move\""
] ]
}, },
{
"label": "MOM_has_definition_element",
"kind": "function",
"description": "Interrogates whether the specified element or element and optional sub-element are defined in a definition file.",
"format": "MOM_has_definition_element <FORMAT|ADDRESS|BLOCK> <element> [<sub-element>]",
"parameters": [
{
"name": "FORMAT|ADDRESS|BLOCK",
"desc": "Name of the definition element."
},
{
"name": "element",
"desc": "Name of the definition element."
},
{
"name": "sub-element",
"desc": "Optional. Name of the definition sub-element."
}
],
"returns": [
"1 - Element is defined.",
"0 - Does not exist."
],
"example": [
"# Example 1",
"MOM_has_definition_element BLOCK \"linear_move\" \"X\""
]
},
{
"label": "MOM_incremental",
"kind": "function",
"description": "The next time that a block template that contains a reference to any of the input address names is evaluated, the deference (increment) from the previous value is output.",
"format": "MOM_incremental <On|Off> <address_1 ... address_n>",
"parameters": [
{
"name": "On|Off",
"desc": "`On` - For each address specified, always output incremantal values. `Off` - For each address specified, always output absolute values."
},
{
"name": "address_1 ... address_n",
"desc": "Name of output address(es)."
}
],
"returns": [
"1 - On.",
"0 - Off."
],
"example": [
"# Example 1",
"MOM_incremental ON X Y Z"
]
},
{
"label": "MOM_limit_output_angle",
"kind": "function",
"description": "Activates or deactivates the rotary axis output limits in a Post Configurator postprocessor. The command is called in the TCL procedure LIB_SPF_limit_output_angle. This command will set the following MOM variables:`mom_enable_4th_axis_output_limit` `mom_enable_5th_axis_output_limit` `mom_4th_axis_output_limit_max` `mom_4th_axis_output_limit_min` `mom_5th_axis_output_limit_max` `mom_5th_axis_output_limit_min`",
"format": "MOM_limit_output_angle <ON|OFF> [<4|5>] [<value1 value2>]",
"parameters": [
{
"name": "ON|OFF",
"desc": "urns rotary axis output limit ON or OFF."
},
{
"name": "4|5",
"desc": "Rotary axis."
},
{
"name": "value1 value2",
"desc": "`value1` - Maximum output angle. `value2` - Minumum output angle."
}
],
"example": [
"# Example 1",
"MOM_limit_output_angle OFF",
"# Example 2",
"MOM_limit_output_angle OFF 4",
"# Example 3",
"MOM_limit_output_angle ON 5 360.0 0.0"
]
},
{ {
"label": "MOM_source", "label": "MOM_source",
"kind": "function", "kind": "function",