Hello Guest it is September 16, 2019, 09:17:35 AM

Author Topic: Properly doing "Run Frome Here"  (Read 18395 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Properly doing "Run Frome Here"
« Reply #20 on: June 30, 2010, 02:50:12 AM »
Afraid not, It is getting closer to Beta release but impossible to say when, it is almost a total re-write of Mach so issues keep popping up and need fixed.
Hood
Re: Properly doing "Run Frome Here"
« Reply #21 on: June 30, 2010, 03:47:39 AM »
Hello Peterf

Thanks again for the help. Yes M71 executes properly when called on a GCODE program. But M71 turns on and OFF when RFH. I forgot to mention that M70 turns OFF M71.

Regards
Renato

Are you sure you don't have also M70 in your program?And I would believe you, if you told us that M71 does nothing, but a double effect on-OFF is not plausible. "race" means M71 does not work because it is too near to another M71 or something (perhaps M70), when RFH does the preflight. ("race condition" is a general word from computer programming where timing of operations is not right).
« Last Edit: June 30, 2010, 03:49:38 AM by PeterF »
Re: Properly doing "Run Frome Here"
« Reply #22 on: June 30, 2010, 05:02:53 AM »
Hi Peter,

M71 tuns on output1 and M70 turns off output1 in a Gcode program.

Thanks
Renato
Re: Properly doing "Run Frome Here"
« Reply #23 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?
Re: Properly doing "Run Frome Here"
« Reply #24 on: June 30, 2010, 06:08:24 AM »
Hi Peter,

Sorry I was not very attentive to the  Question, 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


Thanks
Renato
« Last Edit: June 30, 2010, 06:13:41 AM by renatom »
Re: Properly doing "Run Frome Here"
« Reply #25 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.
Re: Properly doing "Run Frome Here"
« Reply #26 on: June 30, 2010, 07:34:45 AM »
Hello Peter


I have attached a sample Gcode below. The code has been working for a long time on our 20 year Old CNC controller. Sorry about the mess. Once I get the right format that will work on Mach 3. The code will be cleaned up with labels and line numbers.


N9992
G90
G71
G0
M70
G53
X629.14Y297.00
M71
F5000
G1X352.50
G0
M70
X350.64Y296.00
M71
G1X319.64
G0
M70
X317.63Y297.00
M71
G1X41.12
G0
M70
X39.64Y296.00
M71
G1X9.14
G0
M70

Thanks
Renato
Re: Properly doing "Run Frome Here"
« Reply #27 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.
« Last Edit: June 30, 2010, 07:56:22 AM by PeterF »
Re: Properly doing "Run Frome Here"
« Reply #28 on: June 30, 2010, 08:04:01 AM »
Hi peter

Any RFH starting M71. Point taken on G53 thanks for the correction.

Thanks
Renato
Re: Properly doing "Run Frome Here"
« Reply #29 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.
« Last Edit: June 30, 2010, 08:25:17 AM by PeterF »