VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2008-09-26 22:57:25

arobustus
Member
From: Providence, RI
Registered: 2006-05-13
Posts: 18

Can I read "A" value when it follows an "M" value?

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

#2 2008-09-30 15:26:13

vhubbard
Beta User
From: Dallas, TX
Registered: 2004-11-11
Posts: 222
Website

Re: Can I read "A" value when it follows an "M" value?

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

#3 2008-10-02 21:33:53

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: Can I read "A" value when it follows an "M" value?

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

Board footer