- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
03 Nov 2021 17:04 #225120
by mlw19mlw91
I need a PWM generator for a spindle VFD. I don't have any options to change that in the PNCCONF wizard. Do I need to make some custom firmware for the board, or do I make some custom HAL files by hand? I would like to repurpose some of the STEP/DIR pins for this since I'm only using 3 axes outputs from the board.
my conversion
my conversion
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- d2inventory
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 10
04 Nov 2021 13:29 #225236
by d2inventory
Replied by d2inventory on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
Why not use the Spindle control the 7i76e offers?
Please Log in or Create an account to join the conversation.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
04 Nov 2021 15:35 - 04 Nov 2021 15:43 #225238
by mlw19mlw91
Replied by mlw19mlw91 on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
I had tried that but the VFD does not supply any voltage output. It is the original EMCO vfd and it does not have the most documentation available.
The original controls worked the VFD by supplying a PWM'ed signal, and it got a PWM signal in return for the spindle speed. It was beautiful how it all worked, really. If the two signals were the same the spindle was up to speed.
I had tried to use the built in spindle controller (the one in the mesa card) but with no luck. If I have to do lots of troubleshooting and such I figure I may as well make it work like it did originally as I have logic captures of how everything was working. There was no potentiometer signal.
The original controls worked the VFD by supplying a PWM'ed signal, and it got a PWM signal in return for the spindle speed. It was beautiful how it all worked, really. If the two signals were the same the spindle was up to speed.
I had tried to use the built in spindle controller (the one in the mesa card) but with no luck. If I have to do lots of troubleshooting and such I figure I may as well make it work like it did originally as I have logic captures of how everything was working. There was no potentiometer signal.
Last edit: 04 Nov 2021 15:43 by mlw19mlw91.
Please Log in or Create an account to join the conversation.
- d2inventory
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 10
04 Nov 2021 17:15 #225247
by d2inventory
Replied by d2inventory on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
The 7i76e_7i76x1pD bit file looks like what you want. It is the same as stock 7i76e but stepgen 5 is replaced with a pwm gen
You can download the source and already compiled firmwares here:
store.mesanet.com/index.php?route=produc...69_62&product_id=290
The Support Software is on the Specifications tab. If you unzip this file it containes the bitfile I mentioned above.
You can download the source and already compiled firmwares here:
store.mesanet.com/index.php?route=produc...69_62&product_id=290
The Support Software is on the Specifications tab. If you unzip this file it containes the bitfile I mentioned above.
The following user(s) said Thank You: mlw19mlw91
Please Log in or Create an account to join the conversation.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
05 Nov 2021 17:11 #225414
by mlw19mlw91
Replied by mlw19mlw91 on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
^ Thanks! ok one more odd thing is I need the (differential?) signals to enable the spindle. Or, atleast, that's how it was wired from the factory.
I suppose I can just use a regular GPIO? But I'd rather do it just like it is from the factory.
Is there anything I can do for that? Just about every signal to and from the VFD is this differential type, so I need the following all over two wires:
I suppose I can just use a regular GPIO? But I'd rather do it just like it is from the factory.
Is there anything I can do for that? Just about every signal to and from the VFD is this differential type, so I need the following all over two wires:
- On/Off
- Direction
- Clock (commanded speed)
- Actual Frequency (feedback to the PC)
- Strobe (My spindle is not equipped with anything directly for this, but it may actually work based off signal from VFD I guess)
- Servo Ready (signal to PC)
Please Log in or Create an account to join the conversation.
05 Nov 2021 18:02 #225418
by PCW
Replied by PCW on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
Direction and Clock sound more like a a variable frequency
than a PWM signal, If so, a normal stepgen should work
Do you have the spindle drive manual?
than a PWM signal, If so, a normal stepgen should work
Do you have the spindle drive manual?
Please Log in or Create an account to join the conversation.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
05 Nov 2021 18:53 - 05 Nov 2021 18:57 #225421
by mlw19mlw91
Replied by mlw19mlw91 on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
I do not have a spindle drive manual available, but I do have some documentation:
Pin out:
Wiring Diagram:
I Think this is the logic capture from the spindle. I may not have saved the best file from that but it appeared to be PWM,
Here's zoomed into the logic capture:
I do need to stress I did not do a perfect job organizing and storing my logic captures and I may have made a mistake but I am pretty sure that it was PWM, but without having access to the original controls anymore it's impossible for me to tell
if you zoom in on the signal from the CK pin this makes me believe it's PWM:
Pin out:
Wiring Diagram:
I Think this is the logic capture from the spindle. I may not have saved the best file from that but it appeared to be PWM,
Here's zoomed into the logic capture:
I do need to stress I did not do a perfect job organizing and storing my logic captures and I may have made a mistake but I am pretty sure that it was PWM, but without having access to the original controls anymore it's impossible for me to tell
if you zoom in on the signal from the CK pin this makes me believe it's PWM:
Attachments:
Last edit: 05 Nov 2021 18:57 by mlw19mlw91.
Please Log in or Create an account to join the conversation.
05 Nov 2021 19:09 #225422
by PCW
Replied by PCW on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
That looks like constant 50% duty cycle but variable frequency
so a standard stepgen should work.
so a standard stepgen should work.
Please Log in or Create an account to join the conversation.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
05 Nov 2021 19:36 #225423
by mlw19mlw91
Replied by mlw19mlw91 on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
^This makes sense, it is right at 50%.
I'm not confused about this part anymore, but, how on earth do I configure everything else? like the enable, how to I use the two wire signals to know theh servo is ready, etc? Do I work on a custom HAL file? Does the "actual frequency" go to an encoder, or do I just make some kindof input for it using two pins?
I'm not confused about this part anymore, but, how on earth do I configure everything else? like the enable, how to I use the two wire signals to know theh servo is ready, etc? Do I work on a custom HAL file? Does the "actual frequency" go to an encoder, or do I just make some kindof input for it using two pins?
Please Log in or Create an account to join the conversation.
05 Nov 2021 22:42 #225444
by PCW
Replied by PCW on topic 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
Enable could be driven by a spare step/dir output (if one more is free)
The driver ready can be read via the sserial RX input pair on the 7I76E
(assuming you are not using it for I/O expansion)
I don't think the "actual frequency" signal is of any use to LinuxCNC
The driver ready can be read via the sserial RX input pair on the 7I76E
(assuming you are not using it for I/O expansion)
I don't think the "actual frequency" signal is of any use to LinuxCNC
The following user(s) said Thank You: mlw19mlw91
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- 7i76e pin configuration, flash firmware, do it in HAL files, etc. ???
Time to create page: 0.140 seconds