7i95T spindle control via Modbus RS485 and SPINX1A

More
2 years 7 months ago #295470 by vmihalca
Thanks for the firmware, I just wrote it to the board.
I am a bit confused about the two PWMgens.
With this firmware, what are the pin functions for channels 4/5.
On my 7i97, I was using pwmgens to create that 0-10v analog signal.
Does it means that these pins now are providing an analog signal?
Do I still need that SPINX board if I wanna control an analog spindle vfd?

Regarding modbus, will I be using that mb2hal with the firmware that's on the board?

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

More
2 years 7 months ago #295471 by PCW
The pin functions are listed in the .pin file included
in 7i95t_2pwm_1pkt.zip

You still need the SPINX cards if your VFD needs an
analog voltage because the 7I95 Pins jus provide PWM
signals (some VFDs will take PWM though)
The following user(s) said Thank You: vmihalca

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

More
2 years 7 months ago #295472 by vmihalca
I was looking into that file and wondering why the pins TB4: 4,5 and TB5: 10,11 are not outputing a DIR

TB3-2,3 0 IOPort StepGen 0 Step/Table1 (Out)
TB3-4,5 1 IOPort StepGen 0 Dir/Table2 (Out)
TB3-8,9 2 IOPort StepGen 1 Step/Table1 (Out)
TB3-10,11 3 IOPort StepGen 1 Dir/Table2 (Out)
TB3-14,15 4 IOPort StepGen 2 Step/Table1 (Out)
TB3-16,17 5 IOPort StepGen 2 Dir/Table2 (Out)
TB3-20,21 6 IOPort StepGen 3 Step/Table1 (Out)
TB3-22,23 7 IOPort StepGen 3 Dir/Table2 (Out)
TB4-2,3 8 IOPort PWM 0 PWM (Out)
TB4-4,5 9 IOPort None
TB4-8,9 10 IOPort PWM 1 PWM (Out)
TB4-10,11 11 IOPort None


From what I can see, the SPINX1A board takes as input PWM, ENA, DIR.
Will I receive a direction on these pins? TB4: 4,5 and TB5: 10,11
From where should I provide the sigbal for the ENA pin of the SPINX board?

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

More
2 years 7 months ago #295473 by PCW
The direction pins have been left as GPIO since this is usually
more flexible, that is, you can always make GPIO pins direction output
pins in hal but if they were PWM direction pins that's all the can be.
So for example if you did not need direction on one PWM channel
a PWM direction pin would be wasted.

The additional enables could come from 7I95T SSR outputs or P1 pins

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

More
2 years 7 months ago #295476 by vmihalca
Direction pins left as GPIO what does actually mean. Does it mean that I need to use the outputs ssr for the dir and enable?
I am quite at the limit with just 6 outputs so consuming them on stuff like this is quite an issue for me.
It seems I have very limited understanding of mesa and that my configurations so far were pretty basic

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

More
2 years 7 months ago #295478 by PCW
It means that you use the GPIO pin in hal  to control the direction

Something like:

setp hm2_7i95.0.gpio.009.is_output true
net spindir spindle.0.forward hm2_7i96s.0.gpio.009.out

( gpio.009 is the dir pin for step4)

(you could of course also use the pin for enable)

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

Moderators: PCW, jmelson
Time to create page: 0.170 seconds
Powered by Kunena Forum