Spinx1 to 7i85

More
11 Nov 2015 17:30 #65124 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
How do I invert the gpio? I get an error.

# 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.

More
11 Nov 2015 17:49 #65126 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

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.

More
11 Nov 2015 18:54 - 11 Nov 2015 18:56 #65132 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Sorry, I'm still confused with the logic.

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?
Last edit: 11 Nov 2015 18:56 by OT-CNC. Reason: typo

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

More
11 Nov 2015 19:04 #65133 by andypugh
Replied by andypugh on topic Spinx1 to 7i85
The direct-to-FPGA IO pins can read their own status as an input.

So it sounds like things are working.

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

More
11 Nov 2015 20:59 #65137 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
According to the spinx manual, the enable must be present in order to get a cw/ccw signal.
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.

More
11 Nov 2015 21:22 - 11 Nov 2015 21:24 #65140 by andypugh
Replied by andypugh on topic Spinx1 to 7i85
Pin 1 has a square rather than round solder pad. (generally, on Mesa boards)

(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.
Last edit: 11 Nov 2015 21:24 by andypugh.

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

More
11 Nov 2015 23:13 #65148 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
I rewired the spinx to get power from the 7i85 for now. Also, it looks like I tied into pin2 i/o 018, so now I get the enable.to work now. The enable and pwm leds are lit when I command a m04 s1500 etc, so that seems to work.
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 :cheer:

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

More
11 Nov 2015 23:38 #65149 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

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.

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 :cheer:


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.

More
11 Nov 2015 23:51 #65150 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Negative values into the PWM component (ie in HAL) should set the DIR pin.
Sorry, I'm still not fully catching on...do you have an example of the neg value for the dir on the pwm component?
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.

More
12 Nov 2015 00:03 #65151 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

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.

Moderators: PCWjmelson
Time to create page: 0.167 seconds
Powered by Kunena Forum