[solved] when it is update the _hal - pin

More
09 Jan 2015 02:17 - 09 Jan 2015 16:47 #54798 by bkt
every cycle of while ....#22 etc. #99 is increment of one unit. if greater than 1 it is reset to 0.
M175 ---> setp ethloop.request 1 /// M176 ----> setp ethloop.request 0
M169 ---> setp ethloop.refresh 1 /// M179 setp ethloop.refresh 0

in ethloop.comp........

if (request)
{
     requestnew(); -----> this function read from ethernet a string of coord from visionsystem server
}

if (refresh)
{
        fpxuno = ix;  
        fpyuno = ypsilon;
        fpauno = angle;     ----->(ix, ypsilon and angle si variabile on requestnew)
}


there are quite simple, and dont' see the difference if Mcode is in or out if statement......i think the difference is for interpreter or trajectory planner. isn't ?

I think the same of your "short answer" ... I try another trik.
Last edit: 09 Jan 2015 16:47 by bkt.

Please Log in or Create an account to join the conversation.

More
12 Jan 2015 16:50 #54918 by bkt
as I showed Mr Dewey Garrett #<_hal[pinname]> never updated during the motion ..... I had not really understood ... so of course need a break or a sync signal but also make a break in the cycle. ( like M66 or similar Mcustom code).

Tanks a lot At all.

Please Log in or Create an account to join the conversation.

Time to create page: 0.285 seconds
Powered by Kunena Forum