add more functions

This commit is contained in:
2025-07-21 22:19:49 +02:00
parent 5a020f7d07
commit 3fbe4f9243
+133
View File
@@ -4,6 +4,18 @@
"label": "proc",
"kind": "keyword"
},
{
"label": "array",
"kind": "keyword"
},
{
"label": "lappend",
"kind": "keyword"
},
{
"label": "string",
"kind": "function"
},
{
"label": "switch",
"kind": "keyword"
@@ -27,6 +39,10 @@
{
"label": "set",
"kind": "keyword"
},
{
"label": "namespace",
"kind": "keyword"
}
],
"MOM_procs": [
@@ -307,6 +323,98 @@
"mom_result1 = Countersink"
]
},
{
"label": "MOM_ask_init_junction_xform",
"kind": "function",
"description": "This command returns the transformation matrix of the junction at its initial state with respect to the absolute coordinate system (ACS). It passes the results to mom_sim_result (matrix: list of 9) and mom_sim_result1 (origin: list of 3).",
"format": "MOM_ask_init_junction_xform <junction_name>",
"parameters": [
{
"name": "junction_name",
"desc": "Name of junction."
}
],
"example": []
},
{
"label": "MOM_ask_library_attributes",
"kind": "function",
"description": "This function retrieves attributes for an item from the specified library.",
"format": "MOM_ask_library_attributes <library_key> <libref> <db_alias>+",
"parameters": [
{
"name": "library_key",
"desc": "The entry in the CAM configuration file for the desired library."
},
{
"name": "libref",
"desc": "Unique identifier of specified item in the library."
},
{
"name": "db_alias",
"desc": "The db_alias names are found in the definition file for that library. There can be a list of more than one name."
}
],
"returns": [
"The returned values are placed in the array mom_lib_attr_value."
],
"example": [
"global mom_lib_attr_value mom_libref",
"MOM_ask_library_attributes LIBRARY_TOOL $mom_libref Type SubType",
"MOM_output_literal \"Type = $mom_lib_attr_value(Type)\"",
"MOM_output_literal \"SubType = $mom_lib_attr_value(SubType)\""
]
},
{
"label": "MOM_ask_machine_zero_junction_name",
"kind": "function",
"description": "This command returns the name of the MACHINE_ZERO junction.",
"format": "MOM_ask_machine_zero_junction_name",
"parameters": [],
"returns": [
"Name of the MACHINE_ZERO junction."
],
"example": [
"set jct_name [MOM_ask_machine_zero_junction_name]"
]
},
{
"label": "MOM_ask_oper_csys",
"kind": "function",
"description": "Fetches the coordinate system (CSYS) information of the named operation. The command passes the results in three MOM variables mom_result, mom_result1, and mom_result2.",
"format": "MOM_ask_oper_csys <operation_name>",
"parameters": [
{
"name": "operation_name",
"desc": "Name of the operation."
}
],
"returns": [
"mom_result is the Special Purpose setting of the MCS.\n0 = None\n1 = Use Main MCS\n2 = Fixture Offset\n3 = CSYS Rotation",
"`mom_result1` is a list of 12 double precision values defining the mom_csys_matrix of the operation.",
"`mom_result2` is a list of 12 double precision values defining the `mom_machine_csys_matrix` of the operation."
],
"example": [
"set jct_name [MOM_ask_machine_zero_junction_name]"
]
},
{
"label": "MOM_ask_oper_info",
"kind": "function",
"description": "Retrieves operation information at the start of a program and stores the result in the array variable `mom_operation_info`. Called from Post Configurator procedure `MOM_start_of_path_LIB`.",
"format": "MOM_ask_oper_info <opr_list>",
"parameters": [
{
"name": "opr_list",
"desc": "List of operations."
}
],
"returns": [],
"example": [
"set opr_list \"PLANER_MILL FACE_MILLING1 GENERIC_MOTION1\"",
"MOM_ask_oper_info opr_list"
]
},
{
"label": "MOM_ask_ude_info",
"kind": "function",
@@ -332,6 +440,21 @@
],
"example": []
},
{
"label": "MOM_source",
"kind": "function",
"description": "Allows you to specify TCL files to be included as a source of commands and data during postprocessing.",
"format": "MOM_source <filename>+",
"parameters": [
{
"name": "filename(s)",
"desc": "Name of TCL file(s) to be included at runtime."
}
],
"example": [
"MOM_source my_header.tcl"
]
},
{
"label": "MOM_suppress",
"kind": "function",
@@ -350,6 +473,16 @@
"example": [
"MOM_suppress_address Always N X Y"
]
},
{
"label": "MOM_update_kinematics",
"kind": "function",
"description": "Maps the following legacy kinematics variables to the current kinematics variables, and is required after specifying them: mom_kin_4th_axis_center_offset, mom_kin_5th_axis_center_offset, mom_kin_pivot_gauge_offset.",
"format": "MOM_update_kinematics",
"parameters": [],
"example": [
"MOM_update_kinematics"
]
}
],
"mom_variables": [