Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 12:31:26 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Properly doing "Run Frome Here"
Pages: « 1 2 3 4 5   Go Down
Print
Author Topic: Properly doing "Run Frome Here"  (Read 2347 times)
0 Members and 3 Guests are viewing this topic.
renatom
Active Member

Offline Offline

Posts: 29


View Profile
« Reply #40 on: July 03, 2010, 07:06:45 PM »

Hello Peter

Thanks for spending time running a test on the current problem that I am having.

Thanks
Renato
Logged
PeterF
Active Member

Offline Offline

Posts: 42


View Profile
« Reply #41 on: July 04, 2010, 03:15:18 AM »

Renato, I apreciate it. The test was easy and just a few minutes. It sounds still unlogical that RFH turns your device off, because the first M71 in RFH is executed isolated.

(Please be aware that RFH seems only preparatory, and after that two RUN are required. The prompts are written  in the message windows. The line for RFH is selected with the arrow keys, not by clicking with the mouse on the line. Did you take all  this into account?)
Logged
PeterF
Active Member

Offline Offline

Posts: 42


View Profile
« Reply #42 on: July 04, 2010, 01:59:48 PM »

renato wrote:
Macro M71 turns on a Solinoid Pneumatic Valve and its turning on and OFF during the run of RFH.

Peter writes:
this seems correct behaviour, as there are in fact several M71 and M70 above the RFH line.
RFH seems preparatory. After RFH, one has to start the program using RUN twice. First RUN is again preparatory, second RUN actually starts from the line.
Logged
PeterF
Active Member

Offline Offline

Posts: 42


View Profile
« Reply #43 on: July 04, 2010, 02:05:59 PM »

Actually should maybe clarify what I said above,  Custom User macros should be over m100. It is quite OK to have custom versions of standard m-codes such as tool change (M6), Coolant(m7,m8,m9) etc.
Hood

From the Mach3 customization Wiki, chapter 2:
Mach3 macros. As already mentioned, a macro is a piece of VB Script. Each macro has a name like M134. The M is used at the start of every macro name and the number can be any integral value up to 99999 that is not used to define a built-in M-code. These built-in numbers are listed in chapter 11. Thus for example, M12, M50, M16543 are all valid macro names; while M3, M-56, M0234, M567.4 are not valid names. Standard macros will use the number range up to M999, Original Equipment Manufacturers (OEMs) are advised to use M1000 to M89999 and end-users can avoid naming conflicts by using M90000 to M99999.

edited for readability.
« Last Edit: July 04, 2010, 02:09:03 PM by PeterF » Logged
Hood
Active Member

Offline Offline

Posts: 17,339


Carnoustie, Scotland


View Profile
« Reply #44 on: July 04, 2010, 04:06:38 PM »

Every day is a school day Smiley

Hood
Logged
PeterF
Active Member

Offline Offline

Posts: 42


View Profile
« Reply #45 on: July 04, 2010, 04:21:26 PM »

Renato:
The other similar command, Set Next Line, lets abbreviate it as SNL, doesn't preparatory scans. But it wouldn't do either other preparatory state changes (G20/G21 and more, see any documentation on G Code for the modal states)

Hood has been right in one of his earlier posts on page 2 of this thread:
The checkbox, Ignore M Calls While Loading in the third column of Config->General Config, inhibits Macros only when Loading G Code. It does not inhibit macros during RFH.  Hood also mentioned SNL in that earlier post.
(http://www.machsupport.com/forum/index.php/topic,14579.msg101852.html#msg101852)
« Last Edit: July 04, 2010, 04:27:31 PM by PeterF » Logged
renatom
Active Member

Offline Offline

Posts: 29


View Profile
« Reply #46 on: July 11, 2010, 10:03:03 PM »

Hi Peter, Hood.

Sorry for the late reply. We were busy the whole week moving to a new Factory. Anyway I have tried SNL which Hood and you suggested. I have notice that the feedrate is not taken into account when running SNL.

Thanks
Renato
Logged
Hood
Active Member

Offline Offline

Posts: 17,339


Carnoustie, Scotland


View Profile
« Reply #47 on: July 12, 2010, 01:03:20 AM »

I dont use the Set Next Line but I would have thought the feedrate should be taken into account as long as it is on or after the line you are starting from. Possibly your code is written with the feedrate only at the beginning of code? If that is the case then have you tried entering the feedrate into the DRO before you do the SNL?
Hood
Logged
renatom
Active Member

Offline Offline

Posts: 29


View Profile
« Reply #48 on: July 12, 2010, 01:08:05 AM »

Hello Hood,

That might be the case.  Anyway thank you very much for your support

Thanks
Renato
Logged
Pages: « 1 2 3 4 5   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!