- Posts: 232
- Thank you received: 0
Brother TC-211
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
no luck on the command line input
Please Log in to join the conversation.
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
- Posts: 232
- Thank you received: 0
Please Log in to join the conversation.
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
- Posts: 232
- Thank you received: 0
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.
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.
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
- Posts: 232
- Thank you received: 0
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.
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.
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
- Posts: 232
- Thank you received: 0
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.
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
- Posts: 232
- Thank you received: 0
You can fly over anytime you want and play away
Please Log in to join the conversation.
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
Please Log in to join the conversation.
- mblaszkiewicz
- Topic Author
- Offline
- Elite Member
-
- Posts: 232
- Thank you received: 0
On a side question what kind of bike do you ride. (Your avatar)
Please Log in to join the conversation.
