On Wednesday 27 April 2016 12:12:22 adit bhargava wrote:

> Hello Andy,
>
> I checked the pins 4 and 17 on the 5i25 header, but there is no
> output.We do have a full set of wires connected to parallel port
> cable.I don't know how to proceed now.
>
> BRÁdit

In case you missed the read of the docs, those GPIO's so created are 
inputs. So to use as outputs, you need to add some hal file lines that 
turn them into outputs.

An example from my mills .hal file might be helpfull:
============================================
#*************************************************
# First - setup 5i25's p3-p17 for servo enable use
#*************************************************
setp hm2_5i25.0.gpio.007.is_output     true
setp hm2_5i25.0.gpio.007.invert_output false
net spindle-enable  <=  motion.spindle-on => boot.spindle.enable
net spindle-enable => hm2_5i25.0.gpio.007.out # pwmgen-enable on P3-17
============================================
This signal serves as the enabling input to one of the Pico Systems
PWM-Servo amplifiers that I am using as the spindle motor driver, a 1HP 
rated PM DC motor, from a 125 volt DC source good for about 2KW in ICAS.  
1500 watts CCS.  This enable signal is used because the PWMGEN facility 
in the 5i25 does not supply that enabling signal to the outputs, it only 
supply's the PWM and DIR.

The boot.spindle.enable is a module that goes with the PWM-Servo and it 
issues both fwd and reverse pulses to the PWM-Servo to properly 
pre-charge the output hexfets gate driving working voltages. They are so 
short the motor never moves but they do the job. You do not see its 
additional hal "wiring" in the above snippet as it contributes nothing 
to this lesson.

The same I assume must be done in order to use P3-pin 4, you'll need to 
get the GPIO numbers from the dmesg after running LCNC as their is 
little to zero relationship between the p2|3 pin number and the 3 digit 
GPIO numbers you see above.  The above is mine, get yours for the 
corresponding pin, like p3-17 FROM your dmesg output.  They will be 
consistent from run to run as long as the hal files loadrt line remains 
the same, and you don't mesaflash a different configuration into the 
5i25.

I hope this helps?

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to