08-03-2005 11:03 AM
08-04-2005 06:33 PM
Laine,
Your breakpoints on the breakpoint line of the motion controller should be occurring from the way your VI is setup. You will not be able to "poll" the number of breakpoints occurred through the 'Read per Axis Status.vi' with Periodic breakpoints - it will only give a true once the first breakpoint has been reached - it will not change state for any subsequent breakpoints in this mode.
If you attach a scope or multi-meter (if you are going slow enough) to the proper breakpoint line, you will see that the line is toggling as expected.
08-05-2005 07:54 AM
08-09-2005 04:36 PM
08-10-2005 11:02 AM
Thanks for your response DJ.
This is from the 7350 manual:
(p. 5-1): "The motion I/O connectors contain all the signals required to control up to eight axes of servo and stepper motion, including the following features:
• Motor command analog and stepper outputs
• Encoder feedback inputs
• Forward, home, and reverse limit inputs
• Breakpoint outputs
• Trigger inputs
(p.5-10): "Trigger Input <1..8>—When enabled, an active transition on a high-speed position capture input causes instantaneous position capture of the corresponding encoder count value. You can use this high-speed position capture functionality for applications ranging from simple position tagging of sensor data to complex camming systems with advance/retard positioning and registration."
So maybe this trigger capability just exists on the 7350. Now is there a way to internally route the Breakpoint output of one axis to the Trigger input of another axis, or would a physical loopback connector be required?
Thanks,
Laine
08-11-2005 10:37 PM
08-12-2005 07:13 AM
Excellent, yes this is what I would like to do. My Axis 2 probe is essentially a quadrature encoder, so that should be no problem.
Just to be clear - a physical jumper wire from Breakpoint1 to Trigger2 is required (no internal signal routing is available)?
I find 3 undesirable phenomena in this setup:
1) I set up Axis 1 breakpoints as Periodic at 100 counts. The help documentation says that signals will begin 100 counts after the "initial encoder value", but when I initialize the board and make a move in MAX, there are no signals. I first have to enable the breakpoint output programatically in LabVIEW. Is there a way to do this in MAX automatically upon initialization? I think it has to be done in a LabVIEW program.
2) If I scope the breakpoint output with no jumper, output level is 5V. After the jumper to Trigger2 is connected, output drops to exactly 2V. Is there a problem? If I distribute the signal to Trigger2 and Trigger3 (my ultimate goal), the level is still 2V.
3) I have the Breakpoint Mode set to Toggle (square wave output) and Trigger Input set to Rising Edge. This should initiate a HSC every other breakpoint. However, I find that the Axis 2 Status HSC bit is high: a)constantly when breakpoint output is high and b)almost constantly (98%) when breakpoint output is low. Is there trigger level or deadband setting? I am essentially using the "Continuous HSC.vi" to monitor it. Today I will look for the "High-Speed Input Capture.VI" to see if that makes a difference.
Thanks for your time and input!
08-12-2005 09:25 AM
I tried this using the shipping example, modified to monitor then reenable the HSC when a signal is found (see attached). I am still getting the same result.
As a matter of fact, if I target my PXI real-time target and poll the HSC status, the HSC input is ALWAYS read high, no matter what the status of the actual Trigger2 input (low, high or transitioning up/down). (The 98% in my previous post was targeting WindowsXPOS).
I am sure I'm making a simple mistake, but can't discover it!
Thanks.
08-25-2005 12:00 AM
08-25-2005 07:51 AM
Hi DJ -
Thanks, this looks great. However, I have 2 issues preventing satisfactory operation now:
1) The motor drive is causing a high-frequency noise signal on the order of 8V @ 30kHz on the breakpoint output line. I have this routed directly to a trigger input, but there is a 30 kHz rising edge, so that is what is triggering the line. I have ordered a hardware filter to reduce this noise.
2) Aside from the noise, if I scope the breakpoint output without connecting it, it is switching 5V at each breakpoint OK. However, if I connect the breakpoint output to a separate axis trigger input, the switching level immediately drops to 2V. This will not be high enough to actuate the HSC after I eliminate the noise.
Issue 2 is what most concerns me. Any idea why the voltage level would drop to 40% by connecting the breakpoint and trigger? Is is something in the way these are set up in MAX (open collector v. totem pole)?
Thanks