- Posts: 32
- Thank you received: 0
How to set the execution order of G-codes and o-word or remaps
- Cornflakes
- Offline
- Junior Member
-
Less
More
5 years 9 months ago #193824
by Cornflakes
How to set the execution order of G-codes and o-word or remaps was created by Cornflakes
Hi!
How to set the execution order of G-codes and o-word or remaps proc?
I have remapped M400 on python
Then i run program:
G0 ...
M400
G0 ...
M400
G0 ...
M400
M2
Before LCNC execute all M400 commands
Then LCNC execute G0, G0, G0
But i need execute commands step by step
What i should do?
How to set the execution order of G-codes and o-word or remaps proc?
I have remapped M400 on python
Then i run program:
G0 ...
M400
G0 ...
M400
G0 ...
M400
M2
Before LCNC execute all M400 commands
Then LCNC execute G0, G0, G0
But i need execute commands step by step
What i should do?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
5 years 9 months ago #193829
by cmorley
Replied by cmorley on topic How to set the execution order of G-codes and o-word or remaps
Please Log in or Create an account to join the conversation.
- Cornflakes
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
5 years 9 months ago #193831
by Cornflakes
Replied by Cornflakes on topic How to set the execution order of G-codes and o-word or remaps
I was read docs
But i can't find the answer (
But i can't find the answer (
Please Log in or Create an account to join the conversation.
- Cornflakes
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
5 years 9 months ago #193835
by Cornflakes
Replied by Cornflakes on topic How to set the execution order of G-codes and o-word or remaps
I think, that commands must be executed sequentially line by line.
Commands are on different lines.
There are no modals groups
All M400 on Python are executed first
And only after that all G0 run
But i need G0, M400, G0, M400, G0, M400 sequentially
Commands are on different lines.
There are no modals groups
All M400 on Python are executed first
And only after that all G0 run
But i need G0, M400, G0, M400, G0, M400 sequentially
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
5 years 9 months ago #193841
by cmorley
Replied by cmorley on topic How to set the execution order of G-codes and o-word or remaps
Sorry i get it now.
Is this in remap?
Can you give more info? maybe the relevant files?
Is this in remap?
Can you give more info? maybe the relevant files?
Please Log in or Create an account to join the conversation.
- Cornflakes
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
5 years 9 months ago - 5 years 9 months ago #193860
by Cornflakes
Replied by Cornflakes on topic How to set the execution order of G-codes and o-word or remaps
In my files:
.ini:
[RS274NGC]
REMAP=M440 modalgroup=10 python=m440
remap.py:
def m440(self, **words):
print "Test call M440"
return INTERP_OK
.ngc:
o109 if [#<_task> NE 1.0]
m2
o109 endif
o110 repeat [3]
(MSG,Paused)
m0
M440
o110 endrepeat
m2
I see in terminal window, that message "Test call 440" prints three times first.
And then i press resume 3 times
The same situation is with G0
I think, that after M0 program must stop and wait
.ini:
[RS274NGC]
REMAP=M440 modalgroup=10 python=m440
remap.py:
def m440(self, **words):
print "Test call M440"
return INTERP_OK
.ngc:
o109 if [#<_task> NE 1.0]
m2
o109 endif
o110 repeat [3]
(MSG,Paused)
m0
M440
o110 endrepeat
m2
I see in terminal window, that message "Test call 440" prints three times first.
And then i press resume 3 times
The same situation is with G0
I think, that after M0 program must stop and wait
Last edit: 5 years 9 months ago by Cornflakes.
Please Log in or Create an account to join the conversation.
Time to create page: 1.547 seconds