Hello Guest it is December 01, 2021, 02:20:38 AM

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 - PeterF

Pages: « 1 2 3 4 5 6 7 8 9 »
41
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: July 04, 2010, 05: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)

42
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.

43
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: July 04, 2010, 02: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.

44
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: July 04, 2010, 04: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?)

45
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: July 03, 2010, 07:55:40 AM »
I tried a test, and Mach3 executes macros in preparation for RFH. When clicking "RFH", Mach3 does the macros up to before the RFH line. After that, Mach3 needs a click on Run for the preparatory move and another click on Run for running from the RFH line. Consequences for renatos problem to be discussed later.

Macro used was: (file M71.m1s in folder \mach3\macros\ your profile name \
'M71
public m71call

m71call=m71call+1
p = param1()

msgbox"in m71" & " m71call=" & m71call & ", p="&p


G Code was:
(beginn)
G0 X0  
m71 p10
M71 p15
G0 X1
m71 p20
G0 X2
%


To explain the test, p10, p15 and p20 are arguments to the macro. Reading them in the macro is thru the Param1() function. The arguments help to distinguish and identify the macro calls, in this test.

46
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: July 01, 2010, 07:07:35 AM »
someone should write a specific diagnostic M70 and M71 that just pops a message. (M70 M71 are not among the well-known like M0 thru M9. MAch3 cannot do special handling for them).

47
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: June 30, 2010, 08:20:23 AM »
In my opinion the preflight will turn off (M71+M70, with M70 as the last command), and RFH will turn on (M71).

However I believe Hood would be in a better position to tell whether your constellation is run correctly from Mach3's point of view. (correctly sequencing the several M70 and M71's in the preflight)

 I could imagine your external device does not like (enjoy) M70 and M71 within the same millisecond. You could try a dwell  G4 as the RFH point, just  before M71.

PS my manual reads: "Run From Here performs a dummy run of the program to establish what the modal state (G20/G21, G90/G91 etc.) should be..." I'm not sure if that is in the offical Mach3 documentation therefore I post it here.

48
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: June 30, 2010, 07:53:19 AM »
renato, which line is the RFH line, the first line to be executed in RFH?


PS G53 needs to be on the same line as X and Y to which it applies. You have it alone on one line, it will not be effective for the next line. This is a side notice.

49
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: June 30, 2010, 06:42:47 AM »
The Gcode contains Both M70 and M71  before RFH line. M71 will turn the output first then will run a line depending on the program then M70 will be called to disable the output



renato it seems clear why the signal is OFF, that is because you seem to have an M70 OFFing it (disabling it) before the RFH line.

However I'm not sure what is yet meant be "run a line depending on the program". GCode does not have conditional execution, and when you manage to have it, then the preflight of RFH might not handle conditional execution.

50
General Mach Discussion / Re: Properly doing "Run Frome Here"
« on: June 30, 2010, 05:49:12 AM »
M71 tuns on output1 and M70 turns off output1 in a Gcode program.

Hi renato, I'm sure M70 and M71 work as you described them ( twice).

Regarding my suggestion resp. your unsolved problem I'm not sure .... Does your GCode contain both M70 and M71 bevore the RFH line, and in what sequence, and in what distance?

Pages: « 1 2 3 4 5 6 7 8 9 »