Hello Guest it is April 17, 2024, 10:05:30 PM

Author Topic: Can you use Inputs with Macro B Programming.  (Read 6269 times)

0 Members and 1 Guest are viewing this topic.

Re: Can you use Inputs with Macro B Programming.
« Reply #20 on: November 21, 2017, 12:10:30 PM »
Okay thanks for the update and the info.  Getting ready to try this Macro B Programming out on a little setup.
Chad Byrd
Re: Can you use Inputs with Macro B Programming.
« Reply #21 on: November 21, 2017, 12:53:36 PM »
I've run into a problem.

I'm trying to link the DRO to a #VAR.  On the hobby version I can change the DRO's "Parameter" and it updates the #VAR. 

In the industrial version I change the same settings and it does not change the #VAR. 

I've been starting at #500 on the Hobby version.  On the industrial I've tried several ranges and no luck. 
Chad Byrd

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Can you use Inputs with Macro B Programming.
« Reply #22 on: November 21, 2017, 01:12:47 PM »
Same build number for both Hobby and Industrial? 
Re: Can you use Inputs with Macro B Programming.
« Reply #23 on: November 21, 2017, 01:31:41 PM »
Yes.  3481.  Downloaded it about an hour ago. 11-21-17
Chad Byrd

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Can you use Inputs with Macro B Programming.
« Reply #24 on: November 21, 2017, 01:58:39 PM »
Should work the same then.  There really is no different in the GUI between Hobby and Industrial other than industrial features are turned on in the Demo mode. 
Re: Can you use Inputs with Macro B Programming.
« Reply #25 on: November 21, 2017, 02:15:39 PM »
Here is something weird.  I can manually change the numbers in the Reg File and it updates the DRO, but not the other way around.  In the industrial version.
Chad Byrd
Re: Can you use Inputs with Macro B Programming.
« Reply #26 on: November 21, 2017, 02:48:49 PM »
I went back and double checked that the hobby version #VARS were updating with the DRO, as expected. 

I jump into the Industrial version and it is not working correctly.  I again tried several ranges of #VARS with no change.  But again, I could changed the #VAR in the Reg Diagnostics and it would update the corresponding DRO.

For a bit of good news.  I got the Loops working in Macro B like I need them to.  I can post the code when I get more accomplished.
Chad Byrd
Re: Can you use Inputs with Macro B Programming.
« Reply #27 on: November 21, 2017, 05:35:01 PM »
In this snippet of code; the first Rough Grind operates as expected.  But then the Rough Finish Grind will sometimes not continue to the next operation.  It stops on the M98 line.

(Rough Grind)
WHILE [#5042 GE [#100 + [#101 + .001]]] DO 1
G90 G01 X 0.0 F #105 (Traverse Start to End)
G91 G01 Y -[#101] F #104
G90 G01 X 0.5 F #106 (Traverse End to Start)
M98 1
END 1

(Rough Finish Grind)
WHILE [#5042 GE [#100 + [#102 + .0005]]] DO 2
G90 G01 X 0.0 F #105 (Traverse Start to End)
G91 G01 Y -[#102] F #104
G90 G01 X 0.5 F #106 (Traverse End to Start)
M98 2
END 2

Any ideas why it is doing this?
Chad Byrd

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Can you use Inputs with Macro B Programming.
« Reply #28 on: November 21, 2017, 06:35:35 PM »
Remove the M98s.  END 1 and END 2 should be sufficient. 

M98 will return you to the specified N label (which you don't have).  Unexpected results should be expected.  :)

N1 WHILE [#5042 GE [#100 + [#101 + .001]]] DO1
G90 G01 X 0.0 F #105 (Traverse Start to End)
G91 G01 Y -[#101] F #104
G90 G01 X 0.5 F #106 (Traverse End to Start)
END1

(Rough Finish Grind)
N2WHILE [#5042 GE [#100 + [#102 + .0005]]] DO2
G90 G01 X 0.0 F #105 (Traverse Start to End)
G91 G01 Y -[#102] F #104
G90 G01 X 0.5 F #106 (Traverse End to Start)
END2

Steve

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Can you use Inputs with Macro B Programming.
« Reply #29 on: November 21, 2017, 06:44:26 PM »
Technically, the numbers for the DO and END is all you need. 

WHILE [condition] DOx
...
ENDx

Where x is a unique number.