Jump to content

Get start alignment?


Recommended Posts

I wrote:
//Force people to slowdown and check the alignment if it's not correct for any reason.
alignment_check = true
correct_alignment = "StartAlignmentName(Start)"

if not((getStartSetting("baseSystemRealName") == correct_alignment)) then
	alignment_check = confirm("Incorrect alignment, or "+chr(34)+"Current Alignment"+chr(34)+" selected!"+cr()+cr()+"The correct alignment is:	"+correct_alignment+cr()+cr()+"Pressing Yes will continue with the current settings ***DANGER OF COLLISION**"+cr()+cr()+"No will cancel and allow you to correct the alignment")
endif

if not(alignment_check == true) then
	cncBreak()
endif
is there a PCM function that will pull the proper start alignment name? so I can replace this:

correct_alignment = "StartAlignmentName(Start)"

With a variable instead of typing the right alignment into each program?

getStartSetting("baseSystemRealName") pull the currently selected one from the Run menu, so that's half of what I need, now I need to compare that value to the proper setting.
Link to comment
https://qualityforum.zeiss.com/topic/9604-get-start-alignment/
Share on other sites

if baseSystem().machine.inspection.hasStartSystem
	correct_alignment = baseSystem().machine.inspection.startSystemTaskAndElement.value.defBaseSystem.nameOfBaseSystem

	if getStartSetting("baseSystemRealName") <> correct_alignment
		if not(confirm(getStartSetting("baseSystemRealName")+" selected!"+cr()+cr()+"The correct alignment is: "+correct_alignment+cr()+cr()+"Pressing Yes will continue with the current settings ***DANGER OF COLLISION**"+cr()+cr()+"No will cancel and allow you to correct the alignment"))
			endInspection()
		endif
	endif
endif
Link to comment
https://qualityforum.zeiss.com/topic/9604-get-start-alignment/#findComment-44822
Share on other sites

×
×
  • Create New...