trying to output a different approach move with the tail stock on

trying to output a different approach move with the tail stock on

Anonymous
Not applicable
443 Views
1 Reply
Message 1 of 2

trying to output a different approach move with the tail stock on

Anonymous
Not applicable

i am trying to change to initial tool move when the tailstock is on  

i look in the dump file and see this  currentSection.tailstock=true

 

i added the red text to the post thinking i should see the output i am looking for 

but i found out the if statement is ignored.  not sure why.

 

if (insertToolCall) {
gMotionModal.reset();
 
if (currentSection.tailstock == "true") {
writeBlock(
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y));
writeBlock(zOutput.format(initialPosition.z));
}

if (properties.type == "A") {
writeBlock(
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), zOutput.format(initialPosition.z)
);
} else {
writeBlock(
gAbsIncModal.format(90),
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), zOutput.format(initialPosition.z)
);
}

 

 

 

 

2553: onSection()
currentSection.unit=1
currentSection.workOrigin=(0, 0, 0)
currentSection.workPlane=[[1, 0, 0], [0, 1, 0], [0, 0, 1]]
currentSection.wcsOrigin=(0, 0, 0)
currentSection.wcsPlane=[[1, 0, 0], [0, 1, 0], [0, 0, 1]]
currentSection.workOffset=1
currentSection.dynamicWCSOrigin=(0, 0, 0)
currentSection.dynamicWCSPlane=[[1, 0, 0], [0, 1, 0], [0, 0, 1]]
currentSection.dynamicWorkOffset=1
currentSection.fcsOrigin=(-6.15032e-21, 0, 0.095)
currentSection.fcsPlane=[[0, 1, 0], [0, 0, 1], [1, 0, 0]]
currentSection.type=1
currentSection.quality=0
currentSection.jetMode=0
currentSection.tailstock=true
currentSection.partCatcher=false

0 Likes
Accepted solutions (1)
444 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni
Accepted solution

You are treating the tailStock variable as a text string, since you added quotes around "true".  This variable is a boolean and holds either true or false, not a text string.  Change it to look like the following and it should work for you.

 

if (currentSection.tailstock) {


Bob Schultz
Sr. Post Processor Developer