|
|
|
@@ -30,34 +30,34 @@ export default class JobEditor extends Vue {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const siemensJobItems = [
|
|
|
|
|
{ title: 'job_item_part_program', layout: "big", command: 'CALL "%s"', rx: /CALL "(.+)";?|CALL "(.+)";([.]*)"/, order: 0 },
|
|
|
|
|
{ title: 'job_item_macro_cms', layout: "big", command: 'PCALL /_N_CMA_DIR/%s', rx: /PCALL \/_N_CMA_DIR\/(.+);?|PCALL \/_N_CMA_DIR\/(.+);?([.]*)/, order: 0 },
|
|
|
|
|
{ title: 'job_item_text', layout: "big", command: "%s", rx: /(.+);?|(.+);([.]*)/, order: 100 },
|
|
|
|
|
{ title: 'job_item_pause', layout: "small", command: "M0;%s", rx: /^M0;?|^M0;([.]*)/, order: 0 },
|
|
|
|
|
{ title: 'job_item_delay', layout: "small", command: "G04 F%s;", rx: /G04 F(\d*);?|G04 F(\d*);([.]*)/, order: 0 },
|
|
|
|
|
{ title: 'job_item_origin', layout: "small", command: "G%s", rx: /G(.+);?|G(.+);([.]*)/, order: 0 },
|
|
|
|
|
{ title: 'job_item_end_program', layout: "small", command: "M30", rx: /M30;?|M30;([.]*)/, order: 0 },
|
|
|
|
|
{ title: 'job_item_part_program', layout: "big", command: 'CALL "%s";%s', rx: /CALL "(.+)";(.*)|CALL "(.+)";?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_macro_cms', layout: "big", command: 'PCALL /_N_CMA_DIR/%s;%s', rx: /PCALL \/_N_CMA_DIR\/(.+);(.*)|PCALL \/_N_CMA_DIR\/(.+);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_text', layout: "big", command: "%s;%s", rx: /(.+);(.*)|(.+);?/, order: 100 },
|
|
|
|
|
{ title: 'job_item_pause', layout: "small", command: "M0;%s", rx: /^M0;(.*)|^M0;?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_delay', layout: "small", command: "G04 F%s;%s", rx: /G04 F(\d*);(.*)|G04 F(\d*);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_origin', layout: "small", command: "G%s;%s", rx: /G(.+);(.*)|G(.+);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_end_program', layout: "small", command: "M30;%s", rx: /M30;(.*)|M30;?/, order: 0 },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// Da controllare comandi e regex
|
|
|
|
|
const osaiJobItems = [
|
|
|
|
|
{ title: 'job_item_part_program', layout: "big", command: 'M198 %s', rx: /M198 (.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_macro_cms', layout: "big", command: 'M98 P%s', rx: /M98 P(.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_text', layout: "big", command: "%s", rx: /(.+);?[.]*/, order: 100 },
|
|
|
|
|
{ title: 'job_item_pause', layout: "small", command: "M0", rx: /^M0;?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_delay', layout: "small", command: "G04 X%s;", rx: /G04 X(.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_origin', layout: "small", command: "G54 P%s", rx: /G54 P(.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_end_program', layout: "small", command: "M30;", rx: /M30;?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_part_program', layout: "big", command: 'M198 %s', rx: /M198 (.+);(.*)|M198 (.+);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_macro_cms', layout: "big", command: 'M98 P%s', rx: /M98 P(.+);(.*)|M98 P(.+);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_text', layout: "big", command: "%s", rx: /(.+);(.*)|(.+);?/, order: 100 },
|
|
|
|
|
{ title: 'job_item_pause', layout: "small", command: "M0", rx: /^M0;(.*)|^M0;?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_delay', layout: "small", command: "G04 X%s;", rx: /G04 X(.+);(.*)|G04 X(.+);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_origin', layout: "small", command: "G54 P%s", rx: /G54 P(.+);(.*)|G54 P(.+);?/, order: 0 },
|
|
|
|
|
{ title: 'job_item_end_program', layout: "small", command: "M30;", rx: /M30;(.*)|M30;?/, order: 0 },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// Da controllare comandi e regex
|
|
|
|
|
const fanucJobItems = [
|
|
|
|
|
{ title: 'job_item_part_program', layout: "big", command: 'CALL "%s"', rx: /M198 (.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_macro_cms', layout: "big", command: 'PCALL /_N_CMA_DIR/%s', rx: /M98 P(.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_text', layout: "big", command: "%s", rx: /(.+);?[.]*/, order: 100 },
|
|
|
|
|
{ title: 'job_item_pause', layout: "small", command: "M0", rx: /^M0;?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_delay', layout: "small", command: "G04 F%s;", rx: /G04 X(.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_origin', layout: "small", command: "G%s", rx: /G54 P(.+);?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_end_program', layout: "small", command: "M30", rx: /M30;?[.]*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_part_program', layout: "big", command: 'CALL "%s"', rx: /M198 (.+);?.*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_macro_cms', layout: "big", command: 'PCALL /_N_CMA_DIR/%s', rx: /M98 P(.+);?.*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_text', layout: "big", command: "%s", rx: /(.+);?.*/, order: 100 },
|
|
|
|
|
{ title: 'job_item_pause', layout: "small", command: "M0", rx: /^M0;?.*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_delay', layout: "small", command: "G04 F%s;", rx: /G04 X(.+);?.*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_origin', layout: "small", command: "G%s", rx: /G54 P(.+);?.*/, order: 0 },
|
|
|
|
|
{ title: 'job_item_end_program', layout: "small", command: "M30", rx: /M30;?.*/, order: 0 },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|