Padovani LE-200 Retrofit

More
14 May 2022 20:31 - 15 May 2022 07:26 #242976 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
have now the config folder on github, as a personal backup.
github.com/DoWerna/padovani_retrofit/

There is still some Hal logic to be written, but slowly the electronics can be mounted on the lathe.

btw
The wiring of the matrix was more work than I thought.

I think if I have to make a panel again, I'll get a PCB made that fits directly on the buttons from behind, with the matrix there fixed in traces.
You also have to draw it first but i think its the faster way...
 
Last edit: 15 May 2022 07:26 by DoWerna.

Please Log in or Create an account to join the conversation.

More
16 May 2022 17:02 #243089 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
Now I have connected 7 control lamps to 7 outputs of the 7i73.

Driven by a uln2003a...
Attachments:
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
17 May 2022 07:58 #243132 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
trying to write my HAL as far as possible already here, to have less worklather in the workshop.

Configure now my spindle.

What seems strange to me.
The index signal of the spindle seems to be connected to nothing.

hm2_7i92.0.encoder.05.input-index is not connected to anything in the hal.

this is the section in the hal
#*******************
#  SPINDLE
#*******************

setp   pid.s.Pgain     [SPINDLE_0]P
setp   pid.s.Igain     [SPINDLE_0]I
setp   pid.s.Dgain     [SPINDLE_0]D
setp   pid.s.bias      [SPINDLE_0]BIAS
setp   pid.s.FF0       [SPINDLE_0]FF0
setp   pid.s.FF1       [SPINDLE_0]FF1
setp   pid.s.FF2       [SPINDLE_0]FF2
setp   pid.s.deadband  [SPINDLE_0]DEADBAND
setp   pid.s.maxoutput [SPINDLE_0]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

# ---PWM Generator signals/setup---

setp   hm2_7i92.0.7i77.0.1.analogout5-scalemax  [SPINDLE_0]OUTPUT_SCALE
setp   hm2_7i92.0.7i77.0.1.analogout5-minlim    [SPINDLE_0]OUTPUT_MIN_LIMIT
setp   hm2_7i92.0.7i77.0.1.analogout5-maxlim    [SPINDLE_0]OUTPUT_MAX_LIMIT

net spindle-output      => hm2_7i92.0.7i77.0.1.analogout5
net spindle-enable      => hm2_7i92.0.7i77.0.1.spinena
net spindle-enable      => hm2_7i92.0.7i77.0.0.output-01

# ---Encoder feedback signals/setup---

setp    hm2_7i92.0.encoder.05.counter-mode 0
setp    hm2_7i92.0.encoder.05.filter 1
setp    hm2_7i92.0.encoder.05.index-invert 0
setp    hm2_7i92.0.encoder.05.index-mask 0
setp    hm2_7i92.0.encoder.05.index-mask-invert 0
setp    hm2_7i92.0.encoder.05.scale  [SPINDLE_0]ENCODER_SCALE

net spindle-revs             <=   hm2_7i92.0.encoder.05.position
net spindle-vel-fb-rps       <=   hm2_7i92.0.encoder.05.velocity
net spindle-vel-fb-rpm       <=   hm2_7i92.0.encoder.05.velocity-rpm
net spindle-index-enable     <=>  hm2_7i92.0.encoder.05.index-enable

# ---setup spindle control signals---

net spindle-vel-cmd-rps        <=  spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs    <=  spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm        <=  spindle.0.speed-out
net spindle-vel-cmd-rpm-abs    <=  spindle.0.speed-out-abs
net spindle-enable             <=  spindle.0.on
net spindle-cw                 <=  spindle.0.forward
net spindle-ccw                <=  spindle.0.reverse
net spindle-brake              <=  spindle.0.brake
net spindle-revs               =>  spindle.0.revs
net spindle-at-speed           =>  spindle.0.at-speed
net spindle-vel-fb-rps         =>  spindle.0.speed-in
net spindle-index-enable      <=>  spindle.0.index-enable

# ---Setup spindle at speed signals---

#sets spindle-at-speed true

net spindle-vel-cmd-rpm near.0.in1
net spindle-vel-fb-rpm near.0.in2
net spindle-at-speed <= near.0.out
setp near.0.scale 1.1





 

Please Log in or Create an account to join the conversation.

More
17 May 2022 16:09 #243176 by andypugh
Replied by andypugh on topic Padovani LE-200 Retrofit

net spindle-index-enable     <=>  hm2_7i92.0.encoder.05.index-enable
net spindle-index-enable      <=>  spindle.0.index-enable

Looks right to me. 
The following user(s) said Thank You: DoWerna

Please Log in or Create an account to join the conversation.

More
18 May 2022 07:39 #243251 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
thanks for checking.
My Maho has no spindle encoder, so I had no comparison.

The panel is now configured.

Also the simplehandwheel logic works.

now it goes to the lathe :-)

The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
04 Jun 2022 18:16 #244580 by DoWerna
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: piasdom
Time to create page: 0.169 seconds
Powered by Kunena Forum