In some cases it might be needed to output CYCLE800 in a different position in the NC code. For example, let's say that we output some custom codes at MOM_initial_move by using this code:
LIB_GE_command_buffer_edit_append MOM_initial_move MOM_initial_move_ENTRY_start myProc myTag
proc myProc {} {
MOM_output_literal "M123"
MOM_output_literal "G123"
}
The result looks like below. But we want to output CYCLE800 after the G123 instead.
To output a CYCLE800 and get the correct format we need to use the LIB_SPF_call_cycle command:
LIB_GE_command_buffer_edit_append MOM_initial_move MOM_initial_move_ENTRY_start myProc myTag
proc myProc {} {
MOM_output_literal "M123"
MOM_output_literal "G123"
LIB_SPF_call_cycle CYCLE800
}
Then to remove the first CYCLE800 we can use the LIB_GE_command_buffer_edit_remove command:
LIB_GE_command_buffer_edit_remove LIB_CSYS_plane_output_init CYCLE800 @CYCLE800
https://docs.sw.siemens.com/en-US/doc/209349590/PL20221117716122093.mfgpostconfig/xid1407073