You are not logged in.
Pages: 1
Topic closed
I am trying to get a control to read the A value in the line
M221A1
but I never see the message that I have in
SUPERGROUP "Registers" {
WORD_VALUE "A" {
[snip]
COND_AND "M" "221"
COND_STATE_AND "SUBSYSTEM" "1" {
MACRO "MessageMacro" {
OVERRIDE_VALUE 3 TEXT_OVERRIDE_VALUE "Z1/A1 axis exchanging on"
}
}
Does not matter what I put under SUPERGROUP "M_Misc" for M221, IgnoreMacro, NullMacro, or nothing at all, it still never gets there.
I don't want to get into axis exchange or swapping just yet what I am trying to do is get it past this line without a move of the A axis (normally VAxisMotion) so I can proceed to other things.
Do M values automatically preempt reading of the rest of the line?
If I try it under SUPERGROUP "M_Misc" and include under "M221" COND_AND "A" "1" then is there a way to temporarily suspend the VAxisMotion movement called for in register A?:
SUPERGROUP "Registers" {
WORD_VALUE "A" {
[snip]
}
COND_STATE_AND "SUBSYSTEM" "1"
COND_VAR_AND "CGT_CLAMP_PART_SPINDLE1" "1" {
MACRO "VAxisMotion"
MACRO "ProcessMotion"
}
Thanx,
-plh
I keep pressing "Esc"...
but I'm still here!
Offline
As far as I can tell, the .ctl file is processed Sequentially, top to bottom for each G, M code etc. Supergroup etc. is just labeling/documentation convenience.
When processing M221A1, if anything under A catches the 1condition before getting to the M221 condition check, it will end A processing there.
If you want to capture M221A1in the A processing, you must put the conditional checks for M221 first under the A entry, before any other A input conditionals that cause A to process the 1.
Hope this helps.
Offline
This topic is also posted in <!-- l --><a class="postlink-local" href="http://www.cgtech.com/forum/viewtopic.php?f=2&t=1088">viewtopic.php?f=2&t=1088</a><!-- l --> refer to that post for any replies
Offline
Pages: 1
Topic closed