7i47s Analog out

More
6 years 8 months ago - 6 years 8 months ago #156994 by dremeier
Replied by dremeier on topic 7i47s Analog out
yes, that was a try to revers the behavior but it is the same if the scale is +
Last edit: 6 years 8 months ago by dremeier.

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

More
6 years 8 months ago - 6 years 8 months ago #156996 by PCW
Replied by PCW on topic 7i47s Analog out
From the 7I78 manual:

"Spindle PWM is active low so if the 7I78 is used with HostMot2 firmware, the PWM output must be inverted."

on a 5I24 (and LinuxCNC 2.8 and above) you would:

setp hm2_5i24.0.pwmgen.00.out0.invert_output true
Last edit: 6 years 8 months ago by PCW.

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

More
6 years 8 months ago #157032 by dremeier
Replied by dremeier on topic 7i47s Analog out
ok, now I´ve it almost :-) !

here the HAL:
setp hm2_5i24.0.pwmgen.pwm_frequency [SPINDLE_0]PWM_FREQ
setp hm2_5i24.0.pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i24.0.pwmgen.00.output-type 1
setp hm2_5i24.0.pwmgen.00.offset-mode 0 # 1 wenn value +- dann bei 0 = 50%
setp hm2_5i24.0.pwmgen.00.out0.invert_output true # damit der PWM Ausgang bei steigendem Value auch ansteigt
setp hm2_5i24.0.gpio.016.is_output 1 # gpio 016 ist Aux (M4) - auf Ausgang setzen
setp hm2_5i24.0.gpio.016.invert_output 1

net spindle-speed-cmd spindle.0.speed-out-abs => hm2_5i24.0.pwmgen.00.value
net spindle-on spindle.0.on => hm2_5i24.0.pwmgen.00.enable # FU und PWM enable
net spindle-fwd => spindle.0.forward => hm2_5i24.0.gpio.016.out # gpio 016 / Aux (M3)
net spindle-rev => spindle.0.reverse => hm2_5i24.0.7i90.0.0.p1-out-02 # M4 - da DIR nicht ansprechbar -> 7i90

Then I figured out that the markings for the optocoupler outs on the 7i47s (EN, DIR, AUX) are vice versa, + is - and - is +. But that does no matter for me.

The only thing I can´t figure out how to set the DIR output? Probably gpio.017 is for that purpose, but the only opportunity is to set the Parameter setp hm2_5i24.0.pwmgen.00.out1.invert_output to 0 to get a state change. This is not a pin so not possible to connect with 'net'. A out-pin related to gpio.017 I couldn´t find.

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

More
6 years 8 months ago #157041 by PCW
Replied by PCW on topic 7i47s Analog out
Depending on firmware, DIR will be controlled by the sign of the PWM rather than a GPIO bit

What is reversed about the Optocoupler outputs?

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

More
6 years 8 months ago #157193 by dremeier
Replied by dremeier on topic 7i47s Analog out
|"Depending on firmware, DIR will be controlled by the sign of the PWM rather than a GPIO bit"
even if the spindle is turning fwd or rev the DIR pin does not change, also I don´t have this pin in halshow. ( pwmgen.00.output-type 1)

|"What is reversed about the Optocoupler outputs?"
because of that?: setp hm2_5i24.0.gpio.016.invert_output 1

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

More
6 years 8 months ago #157197 by PCW
Replied by PCW on topic 7i47s Analog out
OK they are not reversed but rather active low at the FPGA interface
(almost all mesa FPGA cards use active low since the outputs default to high at startup)

The DIR pin will only change if you set a negative PWM value

(This is probably not happening with your current setup)
The following user(s) said Thank You: dremeier

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

Time to create page: 0.338 seconds
Powered by Kunena Forum