- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
30 Aug 2018 14:18 - 30 Aug 2018 14:21 #116867
by tecno
Two versions, right or wrong?
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Again, done at work in Windows, so no guarantees of any sort.
Already spotted one error i have a comma where a semicolon belongs
for (i = 0; spindle_speed_in > speeds && i < 14; i++);
speeds && i < 14; i++);
Is above OK?
Two versions, right or wrong?
for (i = 0; spindle_speed_in > speeds[i] && i < 14; i++);
for (i = 0; spindle_speed_in > speeds && i < 14; i++);
Last edit: 30 Aug 2018 14:21 by tecno.
Please Log in or Create an account to join the conversation.
30 Aug 2018 14:23 - 30 Aug 2018 14:27 #116868
by andypugh
You are clearly not using the version I attached to the message.
Actually, you might be. I left at least one error in.
Try the attached
Replied by andypugh on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Actually, you might be. I left at least one error in.
Try the attached
Last edit: 30 Aug 2018 14:27 by andypugh.
Please Log in or Create an account to join the conversation.
30 Aug 2018 14:41 #116871
by tecno
We are getting closer.
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
You are clearly not using the version I attached to the message.
Actually, you might be. I left at least one error in.
Try the attached
We are getting closer.
bengt@debian:~/linuxcnc$ sudo halcompile --compile GB_2speed.comp
[sudo] password for bengt:
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
CC [M] /tmp/tmphO_XzL/GB_2speed.o
GB_2speed.comp: In function ‘_’:
GB_2speed.comp:38:3: error: ‘message’ undeclared (first use in this function)
GB_2speed.comp:38:3: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/tmp/tmphO_XzL/GB_2speed.o] Fel 1
make[3]: *** [_module_/tmp/tmphO_XzL] Fel 2
make[2]: *** [sub-make] Fel 2
make[1]: *** [all] Fel 2
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
make: *** [modules] Fel 2
bengt@debian:~/linuxcnc$
Please Log in or Create an account to join the conversation.
30 Aug 2018 14:56 #116873
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
int actual, message;
solved and complies
solved and complies
Please Log in or Create an account to join the conversation.
30 Aug 2018 15:35 #116878
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
OK so now time for HAL
loadrt GB_2speed
loadrt message
loadrt bitslice
addf GB_2speed.0 servo-thread
addf message.0 servo-thread
addf bitslice.0 servo-thread
# gearbox signals
# gearbox Hi/Lo
net high-gear-signal => GB_2speed.0.gear-high <= hm2_7i76e.0.7i76.0.0.input-14
# Motor High
setp motor-high-signal <= GB_2speed.0.motor-high
net motor-high-signal => hm2_7i76e.0.7i76.0.0.output-10
# gearbox A - B - C - D - E
net input-a-signal => GB_2speed.0.gear-A <= hm2_7i76e.0.7i76.0.0.input-09
net input-b-signal => GB_2speed.0.gear-B <= hm2_7i76e.0.7i76.0.0.input-10
net input-c-signal => GB_2speed.0.gear-C <= hm2_7i76e.0.7i76.0.0.input-11
net input-d-signal => GB_2speed.0.gear-D <= hm2_7i76e.0.7i76.0.0.input-12
Is above somewhat OK?
loadrt GB_2speed
loadrt message
loadrt bitslice
addf GB_2speed.0 servo-thread
addf message.0 servo-thread
addf bitslice.0 servo-thread
# gearbox signals
# gearbox Hi/Lo
net high-gear-signal => GB_2speed.0.gear-high <= hm2_7i76e.0.7i76.0.0.input-14
# Motor High
setp motor-high-signal <= GB_2speed.0.motor-high
net motor-high-signal => hm2_7i76e.0.7i76.0.0.output-10
# gearbox A - B - C - D - E
net input-a-signal => GB_2speed.0.gear-A <= hm2_7i76e.0.7i76.0.0.input-09
net input-b-signal => GB_2speed.0.gear-B <= hm2_7i76e.0.7i76.0.0.input-10
net input-c-signal => GB_2speed.0.gear-C <= hm2_7i76e.0.7i76.0.0.input-11
net input-d-signal => GB_2speed.0.gear-D <= hm2_7i76e.0.7i76.0.0.input-12
Is above somewhat OK?
Please Log in or Create an account to join the conversation.
30 Aug 2018 17:21 - 30 Aug 2018 17:23 #116883
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
#*******************
# SPINDLE S
#*******************
setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output
# ---Encoder feedback signals/setup---
setp hm2_7i76e.0.encoder.04.counter-mode 0
setp hm2_7i76e.0.encoder.04.filter 1
setp hm2_7i76e.0.encoder.04.index-invert 0
setp hm2_7i76e.0.encoder.04.index-mask 0
setp hm2_7i76e.0.encoder.04.index-mask-invert 0
# setp hm2_7i76e.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
net spindle-revs <= hm2_7i76e.0.encoder.04.position
net spindle-vel-fb-rps <= hm2_7i76e.0.encoder.04.velocity
net spindle-index-enable <=> hm2_7i76e.0.encoder.04.index-enable
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm <= motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable
# ---Setup spindle at speed signals---
# sets spindle-at-speed true
# setp hm2_7i76e.0.7i76.0.0.spinout-scalemax 2400
# setp hm2_7i76e.0.7i76.0.0.spinout-maxlim 2500
# net spindle-enable hm2_7i76e.0.7i76.0.0.spinena
# net spindle-vel-cmd-rpm-abs hm2_7i76e.0.7i76.0.0.spinout
# net spindle-ccw hm2_7i76e.0.7i76.0.0.spindir
# ---Setup spindle at speed signals via GB_2speed.comp---
sets spindle-at-speed true
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax 2400
setp hm2_7i76e.0.7i76.0.0.spinout-maxlim 2500
net spindle-enable => GB_2speed.0.spindle-enable-in
net spinenable => GB_2speed.0.spindle-enable-out => hm2_7i76e.0.7i76.0.0.spinena
net spindle-vel-cmd-rpm-abs => GB_2speed.0.motor-speed-in
net spindlespeed <= GB_2speed.0.motor-speed-out => hm2_7i76e.0.7i76.0.0.spinout
net spindle-ccw hm2_7i76e.0.7i76.0.0.spindir
Last edit: 30 Aug 2018 17:23 by tecno. Reason: added data
Please Log in or Create an account to join the conversation.
30 Aug 2018 23:32 #116895
by andypugh
About right, but my comp has the motor speed as an input pin (to say which way you have set the relay) rather than setting the relay itself.
It's only a small change to make it drive an output, but I am cautious about doing it because switching the relay with the VFD active is probably a rather bad idea.
Replied by andypugh on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
net high-gear-signal => GB_2speed.0.gear-high <= hm2_7i76e.0.7i76.0.0.input-14
# Motor High
setp motor-high-signal <= GB_2speed.0.motor-high
net motor-high-signal => hm2_7i76e.0.7i76.0.0.output-10
Is above somewhat OK?
About right, but my comp has the motor speed as an input pin (to say which way you have set the relay) rather than setting the relay itself.
It's only a small change to make it drive an output, but I am cautious about doing it because switching the relay with the VFD active is probably a rather bad idea.
Please Log in or Create an account to join the conversation.
31 Aug 2018 08:36 #116902
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Andy as you know I am not a programmer so I am having problems to understand all this but I am trying to learn.
Please Log in or Create an account to join the conversation.
31 Aug 2018 10:32 #116905
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Please Log in or Create an account to join the conversation.
02 Sep 2018 09:48 #116970
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Is this way to setup SETP OK?
setp GB_2speed.0.min1 80
setp GB_2speed.0.max1 125
setp GB_2speed.0.min33 126
setp GB_2speed.0.max33 160
setp GB_2speed.0.min2 161
setp GB_2speed.0.max2 215
setp GB_2speed.0.min34 216
setp GB_2speed.0.max34 270
setp GB_2speed.0.min4 271
setp GB_2speed.0.max4 360
setp GB_2speed.0.min36 361
setp GB_2speed.0.max36 450
setp GB_2speed.0.min8 451
setp GB_2speed.0.max8 595
setp GB_2speed.0.min40 596
setp GB_2speed.0.max40 750
setp GB_2speed.0.min16 751
setp GB_2speed.0.max16 1000
setp GB_2speed.0.min72 1001
setp GB_2speed.0.max72 1190
setp GB_2speed.0.min104 1191
setp GB_2speed.0.max104 1500
setp GB_2speed.0.min80 1501
setp GB_2speed.0.max80 2000
setp GB_2speed.0.min112 2001
setp GB_2speed.0.max112 2500
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Time to create page: 0.130 seconds