Brother TC-211

More
12 years 1 month ago #51250 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
version 2.5.4. And Ill reset and try the man orient




no luck on the command line input

Please Log in to join the conversation.

More
12 years 1 month ago #51251 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
Ok I just upgraded to 2.63

Please Log in to join the conversation.

More
12 years 1 month ago #51252 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
Ran it again and got a new error message


Debug file information:
Brother_TC-211.hal:238: pin 'hm2_5i25.0.encoder.00.index-enable' is connected to a signal
3579
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

I went in and edited the encoder to 03. Thats the spindle encoder, and got another error.

Debug file information:
Brother_TC-211.hal:242: Unknown command 'aetp'
3927
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components


and the bad line

aetp pid.0.maxoutput 90

should it read

aetp pid.03.maxoutput 90

Please Log in to join the conversation.

More
12 years 1 month ago #51253 by andypugh
Replied by andypugh on topic Brother TC-211

mblaszkiewicz wrote: Brother_TC-211.hal:238: pin 'hm2_5i25.0.encoder.00.index-enable' is connected to a signal


We are making progress, getting towards the bottom of the file now. (line 238)

This is a mistake on my part again.

# make sure the encoder is aligned to index
setp hm2_5i25.0.encoder.00.index-enable 1

Needs to be encoder.03.index-enable for the spindle. (Copy and paste error, sorry)

Please Log in to join the conversation.

More
12 years 1 month ago #51254 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
Debug file information:
Brother_TC-211.hal:242: parameter or pin 'pid.0.maxoutput' not found
4139
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Still something wrong here

And the hal file section

#SPINDLE ORIENT CHANGES

setp hm2_5i25.0.encoder.03.scale 4098
#set the orientation angle here
setp orient.0.angle 180
# make sure the encoder is aligned to index
setp hm2_5i25.0.encoder.03.index-enable 1
# these values will require adjustment!!!!!
setp pid.spindle.Pgain 1
setp pid.spindle.Igain 0.001
setp pid.0.maxoutput 90 <line 242 the error line

Please Log in to join the conversation.

More
12 years 1 month ago #51255 by andypugh
Replied by andypugh on topic Brother TC-211

mblaszkiewicz wrote: Brother_TC-211.hal:242: parameter or pin 'pid.0.maxoutput' not found


This is what happens when I try to write a HAL file without a LinuxCNC machine to test it on. (though without a 7i77 I could never have tested this file).
Anyway, the problem here is that it isn't pid.0, it is pid.spindle.maxoutput
I even got it right in the two lines above the error...

Please Log in to join the conversation.

More
12 years 1 month ago #51256 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
Debug file information:
Brother_TC-211.hal:245: Pin 'orient-pos' does not exist
4320
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components


net spindle orient-pos orient.0.command => pid.spindle.command

Ok I have no idea at all :(

Please Log in to join the conversation.

More
12 years 1 month ago #51257 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
This is what happens when I try to write a HAL file without a LinuxCNC machine to test it on. (though without a 7i77 I could never have tested this file).



You can fly over anytime you want and play away :) :) :) :) :) :)

Please Log in to join the conversation.

More
12 years 1 month ago #51260 by andypugh
Replied by andypugh on topic Brother TC-211

mblaszkiewicz wrote: Brother_TC-211.hal:245: Pin 'orient-pos' does not exist

net spindle orient-pos orient.0.command => pid.spindle.command

Ok I have no idea at all :(


Sorry, it was 2am last night, I had to log out.

I can see why that one is hard to decode. The problem is another typo.
The format of a "net" command is
net signal pin pin pin pin....

Unfortunately I put a space instead of a hyphen in the signal name, so the net command is creating a signal called "spindle" then trying to connect a pin called "orient-pos" to it.

The line needs to be
Code:
net spindle-orient-pos orient.0.command => pid.spindle.command

Please Log in to join the conversation.

More
12 years 1 month ago #51268 by mblaszkiewicz
Replied by mblaszkiewicz on topic Brother TC-211
I will do that change tonight. At work now. Again thanks so much for the help.

On a side question what kind of bike do you ride. (Your avatar)

Please Log in to join the conversation.

Time to create page: 0.219 seconds
Powered by Kunena Forum