Spinx1 to 7i85

More
10 years 11 months ago #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
10 years 11 months ago #65126 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

OT-CNC wrote: 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
Code:
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
10 years 11 months ago - 10 years 11 months ago #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: 10 years 11 months ago by OT-CNC. Reason: typo

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

More
10 years 11 months ago #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
10 years 11 months ago #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
10 years 11 months ago - 10 years 11 months ago #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: 10 years 11 months ago by andypugh.

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

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