Hello Guest it is April 25, 2024, 06:17:45 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 - rrc1962

521
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 04:04:28 PM »
You don't need "Sleep 10" inside the loop.  an empty IsMoving() while loop will just loop until IsMoving() = false.  

522
VB and the development of wizards / Re: macros, Is this the way to do it?
« on: December 24, 2010, 04:00:19 PM »
You could use a subroutine right in your G-code.  I don't do it enough to write one from memory, but it's not difficult.  

523
Brains Development / Re: Set modbus output in brain
« on: December 23, 2010, 07:56:41 PM »
That just inverts the output.  It doesn't prevent the 1 from being written.  When inverted, it sens a 1 when estop is deactivated and a 0 when it is activated.  There is a way.  You have to have more than one rung and do a comparison and only output if the value is 0.  I'll figure it out eventually.  For now, a macropump is doing the job.

524
Brains Development / Re: Set modbus output in brain
« on: December 23, 2010, 12:49:20 PM »
I was using the wrong estop.  I was using 19 and I should have been using 800.  One more question though.  How can I get it to only write a 1 to the modbus when the estop activates and not a 0 when it deactivates.  This brain is to disable PLC outputs when an estop is triggered.  What's happening is when the estop is triggered, the outputs deactivate because a 0 is sent, but then when the estop is reset, the outputs reactivate because a 1 is sent.  I need to only send the 0 and not the 1.

Thanks.

525
Brains Development / Re: Strange brain issue
« on: December 22, 2010, 06:48:55 PM »
What's the top of the range for user LED's?

526
Brains Development / Re: Set modbus output in brain
« on: December 22, 2010, 06:47:05 PM »
What are you selecting as in input for the rung?  When I select the estop input from the list, brain viewer shows the input active but it's state does not change when estop is triggered.  Everything else is working great.  I have lots of inputs and outputs.  Just can't get this estop rung to respond.

527
Brains Development / Re: Set modbus output in brain
« on: December 22, 2010, 03:41:03 PM »
Anyone?  This driving me nuts trying to do the equivalent of SetModOutput(8, 0) in a brain when the estop is triggered.  This should be simple. 

528
General Mach Discussion / Re: Input Triggers
« on: December 22, 2010, 11:57:14 AM »
What I had was one brain with about 20 or so rungs doing input and output.  I separated it into two brains based on function.  Now I have a brain that reads inputs and one that sends outputs.  It seems to be working now, but I'd love to know why it didn't work before.  Worked well yesterday, then this morning things headed south. 

I'd still like to map the inputs directly to pins.  Response time seems to be faster when it's done that way vs setting the LED's in a brain.  We need 15 or 20 more inputs in ports and pins. :)

529
General Mach Discussion / Re: Input Triggers
« on: December 22, 2010, 11:21:36 AM »
That's what I've been doing but it has been unreliable.  See my post in the brains forum.  Everything works fine when the modbus inputs are mapped to pins in ports and pins. 

530
General Mach Discussion / Input Triggers
« on: December 22, 2010, 10:59:57 AM »
Can input triggers be used to light LED's.  I have a bunch of status bit's coming in over the modbus and I want to map them to inputs in ports and pins, but there are only 4 INPUTS.  I tried setting up a trigger 1 to port0 pin 3 and then mapped the trigger to code 1050, which is an LED, but it didn't work.  The same thing mapped to one of the 4 inputs does work.  Any thoughts?

Thanks