Hello Guest it is April 25, 2024, 08:13:32 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ART

431
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 12:09:20 PM »
Sage:

 No, almost all printer ports have pullup resistors... though Ive seen them with pulldown ones. But Ive never seen one that actually floats..

Art

432
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 12:08:24 PM »
Sage:

  The empty buffer mean M4 isnt calling Darwin to trigger a change in its IO.. Thats good. It means all is normal there..

Im thinking... In Mach3, the port gets initialized and all pins are set to low, even if unused. Darwin isnt doing that,
if a pin is not specifically listed as used, it is left alone. So..when after loading the port is reset, the pins go to whatever default state they
wish to be at. It may be that is toggling things when the charge pump comes on. The charge pump starts when the program does and the port
gets reset at the same time. So Im wondering if this is simply a case of the pin is getting toggled to a low as a static reset state and triggering
the relay. Darwin doesnt care or touch any pin reported as unused, so it will be high or low depending on the type of printer port and its designers
reset state. Normally I think this is the pin getting pulled high.. So if you then enable a signal on that pin and dont use it, the pin will get pulled
to whatever inactive state is called for ( depends on the "negate" setting ). Could this be what your seeing?

Art


433
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 12:01:11 PM »
Peter:

   I allow 4 ports. Each is filled with a simple loop and each has its own data registers.. kinda like..

for( int x = 0; x < 4; x++ ) Port
  • .Data = FillFromPort(x);


   so each port is separate entirely, and its data is separate. So if one screws up, the theory goes all ports should
screw up. Now Im willing to believe the resource address can be wrong, and that WOULD explain a great deal, but it would beg
the question as to how Mach3 works with that address. THATS whats confusing me..

Art

434
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 11:41:25 AM »
Peter:

 lol.. I definitely agree that an exorcism is needed. Thats the damn weirdest thing Ive ever seen. I wish I knew if it happens
only on port2.. I have a port 1 only and it behaves very well. I honestly cant see where the port number would matter..

Still considering..

Art

ps: history button is at the screen bottom in wxMach program..

435
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 10:08:52 AM »
Hi All:

  OK, heres a version that will log every signal getting activated or deactivated. Sage, can you tell me whatthe history button
shows when you enable?

(only the plugin needs to be replaced..)

Art

436
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 09:22:33 AM »
Sage:

 Thx, Ill look deeper... I cant understand how a signal is getting jumpered that way. Cant seem to repeat it here either.

Anyway, Ill keep trying to think of what coudl cause yours and Peters troubles, they seem related...

Art

437
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 06:55:31 AM »
This version should fix Sage's toggling on enable.. I would hope anyway.
I doubt it will fix yours Peter, Im still struggling with where a signal can replicate itself
on another pin..

Just the plugin needs replacing on this version..

Art

438
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 19, 2014, 06:51:14 AM »
Peter:

  Np, your forgiven.

  My next step.. and dont feel compelled. Would be to bring up the ports tab so you can see the result,
remove the plug from port 2, and jumper pin 5 to pin 25. Does pin 5 change and does pin 15 duplicate the change?

  What Im wondering is if your wiring is doing this. Mach3 didnt show the data Darwin does, so you'd never know. Of
course if you use pin 15 for something then youd think itd be noticable. SO at this point, what doesnt work? Just the
encoder on pin 1? Or does the system work but the mirroring is just strange? Various breakout baord Ive seen can
 do weird things, and feeding back an input on multiple pins wouldnt be the stangest thing Ive ever seen...



Art

439
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 18, 2014, 10:04:20 PM »
Sage:

  Enable was turned off in Darwin, but I didnt see if it was in M4, its a bit harder to tell what signals m4 has mapped..

Art

440
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 18, 2014, 09:35:17 PM »
Sage:

 Thx, I did find the issue. If you had a signal disabled in Darwin, but mapped in M4, Darwin would toggle it anyway assuming
there was an error in config. Ive stopped that behaviour for future versions as its confusing .. SO , only one rule, neve ruse Low Active in M4 for an output
signal mapping. If a signal is backwards always use Darwins Negate to do the fix..

Art