Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How to detect a 5 axis operation in PC

Siemens Legend Siemens Legend
Siemens Legend

Hi @Frank ,

 

not completely sure why it not works on your side. If you don't want to use the pretreatment to get the information and do it directly in the operation it's needed to call this e.g. in the MOM_start_of_path buffer.

 

When I tried this it give me back the values for the types from documentation site.

 

LIB_GE_command_buffer_edit_prepend MOM_start_of_path_LIB MOM_start_of_path_LIB_ENTRY_start ForumProb _mytag

#------------------------------------------------------------
proc ForumProb {} {
#------------------------------------------------------------
set my_var [LIB_SPF_ask_operation_type]

MOM_output_literal ";** OPERATION TYPE: $my_var"
}

Best regards

Thomas

Re: How to detect a 5 axis operation in PC

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

I don't know why, but the error persists.

 

My code:

---------------------------

LIB_GE_command_buffer_edit_append MOM_start_of_path_LIB MOM_start_of_path_LIB_ENTRY_end PC_NYS_op_type NYS_OP_TYPE

 

proc PC_NYS_op_type {} {
set nys_dummy [LIB_SPF_ask_operation_type]
MOM_output_literal "OP TYPE: $nys_dummy"
}

-------------------------

 

The error in log file:

----------------------------------------------------------

Files found and loaded:
============================================================
--> UGII_TMP_DIR\pretreatment.tcl


No value at LIB_SPF_get_pretreatment for 'operation_list_delta' found
================================================================================================================================================================

************* MOM: TCL SCRIPT MESSAGE *************
User message: invalid command name "LIB_SPF_ask_operation_type"
while executing
"LIB_SPF_ask_operation_type"
(procedure "PC_NYS_op_type" line 2)
invoked from within
"PC_NYS_op_type"
invoked from within
"if {1} [subst $\{[subst ::buffer::${00_proc_name}::${00_section}::code($00_tag)]\}]"
("foreach" body line 7)
invoked from within
"foreach 00_tag [subst $\{[subst ::buffer::${00_proc_name}::${00_section}::current_tag_list]\}] {
set ::lib_ge_buffer_info(proc_id) "[LIB_GE_get_proc]"..."
invoked from within
"if {1} $::lib_ge_command_buffer_output_advanced"
("uplevel" body line 1)
invoked from within
"uplevel 1 {if {1} $::lib_ge_command_buffer_output_advanced}"
("eval" body line 1)
invoked from within
"eval $to_do"
(procedure "LIB_GE_command_buffer_output" line 3)
invoked from within
"LIB_GE_command_buffer_output"
(procedure "MOM_start_of_path_LIB" line 23)
invoked from within
"MOM_start_of_path_LIB"
(procedure "MOM_start_of_path" line 49)
invoked from within
"MOM_start_of_path"

Re: How to detect a 5 axis operation in PC

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Frank,

 

the code snipped from ThomasJ and yours both working on my end, I try it with post of OOTB sim01.

Which version of the PC libraries are you using?

 

PC Lib Version.png

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Re: How to detect a 5 axis operation in PC

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

I think the libraries are:

Library-Version : 4.3.2 - Release

 

Regards

Frank.

Re: How to detect a 5 axis operation in PC

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello, I have copied the folders bin,controller and libraries from MACH/resource/post_configurator/post_template into my post.

Now the LIB_SPF_ask_operation_type is working but I get a warning: "no value set for 'CONF_CTRL_setting local_ns_output'

 

How can I get rid of that warning?

 

Regards

Frank.

Re: How to detect a 5 axis operation in PC

Legend
Legend

Try 

set my_var [LIB_SPF_ask_operation_type "path_name"]

path_name is equal to operation_name

 

It think this works from NX12.0.2

NX CAM Postprocessor Group
NX CAM Postprocessor Group

Members (210)