Spinx1 to 7i85
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
# the SPINX1 has a /enable (low to enable)
setp hm2_5i25.0.7i84.0.0.output-00-invert 1
I'm going with the P2 internal connector for now:
setp hm2_5i25.0.gpio.017.out-invert 1 , also tried -not. Debug states setp requires 2 arguments, 1 given.
What do I need to change?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23558
- Thank you received: 4858
Debug states setp requires 2 arguments, 1 given.
You need to check the actual parameter names. From your parameter listing:
5 bit RW FALSE hm2_5i25.0.gpio.017.invert_output
5 bit RW FALSE hm2_5i25.0.gpio.017.is_opendrain
5 bit RW FALSE hm2_5i25.0.gpio.017.is_output
So
setp hm2_5i25.0.gpio.017.invert_output 1
setp hm2_5i25.0.gpio.017.is_output 1
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
Here is what I have:
net spindle-enable motion.spindle-on => hm2_5i25.0.gpio.017.out
setp hm2_5i25.0.gpio.017.invert_output 1
setp hm2_5i25.0.gpio.017.is_output 1
It loads and when I look at the hal configuration and toggle the spindle cw, stp, ccw I can see the status leds on pin 017 react. What confuses me is that hm2_5i25.0.gpio.017.in is corresponding correctly.
The hm2_5i25.0.gpio.017.out status is yellow (high) when cw/ ccw is active.
Am I reading into this too far? Can I assume this pin is working correctly and proceed with wiring?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23558
- Thank you received: 4858
So it sounds like things are working.
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
PCW, what is the pin 1 location on the p2 internal header on the 5i25? I assume upper left corner as viewed facing the board with notch on bottom on plastic connector, correct? I'm doing temporary wiring and don't have your db25/flat cable termination. Pin 1 should correspond to io17 correct?
I still can't get things to work. So far no connections are made at the vfd, I assume I should be able to get the status led's on the spinx to function regardless of final connection to vfd?
What voltage should the signal be on pin1 from internal p2 header for a low and a high? I'm getting a -8V??? I'm using separate 5v for the spinx and my 7i84 field i/o is at 24v.
The enable led comes on as expected with a -V, but the cw/ccw is not lit.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23558
- Thank you received: 4858
(edit)
The Spinx1 might well be a digital poteniometer rather than an analogue output, so without the VFD voltage applied it may not read anything sensible.
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
The direction is not working yet. Andy, the dir on the 2nd pwm pin, how is that configured to just give a high or low for cw/ccw?
Getting closer
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23558
- Thank you received: 4858
I am not sure you want to do that. It is intended to be between +10, COM and Control on the VFD.I rewired the spinx to get power from the 7i85 for now.
The direction is not working yet. Andy, the dir on the 2nd pwm pin, how is that configured to just give a high or low for cw/ccw?
Getting closer
Negative values into the PWM component (ie in HAL) should set the DIR pin.
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
Negative values into the PWM component (ie in HAL) should set the DIR pin.
I rewired the spinx to get power from the 7i85 for now.
I am not sure you want to do that. It is intended to be between +10, COM and Control on the VFD.
This is only on the input connection. Gnd, PWM, Ena, Dir and +5v. I had it powered with a separate 5v supply.
The output connector goes to the vfd and is not yet connected.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23558
- Thank you received: 4858
Sorry, I'm still not fully catching on...do you have an example of the neg value for the dir on the pwm component?.
If you look at motion.spindle-speed-out you should see 5000 for M5 S5000 and -5000 for M4 S5000
That goes to the mesa pwmgen, and if the value is negative then the pwmgen DIR pin is set.
Please Log in or Create an account to join the conversation.