From: Chris M. <gi...@gi...> - 2015-05-27 00:59:36
|
stepconf -fix invert of signals on pp2 during axis test They were ignored completely Signed-off-by: Chris Morley <chr...@ho...> http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=44e2352 --- src/emc/usr_intf/stepconf/stepconf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/emc/usr_intf/stepconf/stepconf.py b/src/emc/usr_intf/stepconf/stepconf.py index d4ee750..1c7a757 100755 --- a/src/emc/usr_intf/stepconf/stepconf.py +++ b/src/emc/usr_intf/stepconf/stepconf.py @@ -1326,6 +1326,16 @@ class StepconfApp: if inv: halrun.write("setp parport.0.pin-%(pin)02d-out-invert 1\n" % {'pin': pin}) + if self.d.number_pports > 1: + if self.d.pp2_direction:# Input option + out_list =(1,14,16,17) + else: + out_list =(1,2,3,4,5,6,7,8,9,14,16,17) + for pin in (out_list): + inv = getattr(self.d, "pp2_pin%dinv" % pin) + if inv: + halrun.write("setp parport.1.pin-%(pin)02d-out-invert 1\n" + % {'pin': pin}) if debug: halrun.write("loadusr halmeter sig cmd -g 275 415\n") |