Delta Tau Forums
Pointing to program buffer results in strange behavior - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Turbo PMAC (http://forums.deltatau.com/forumdisplay.php?fid=6)
+--- Thread: Pointing to program buffer results in strange behavior (/showthread.php?tid=2796)



Pointing to program buffer results in strange behavior - TSV - 12-05-2018

When I point to some of downloaded motion programs from Terminal, I get the value back, as if I ask for a variable value.

For example:
"&1B1" returns "0" and subsequent R/S doesn't start prog.
"&1B2" returns "150"... What the value it is?

But "&1B5" (B6, B7 etc.) returns nothing and I can start the prog using "R" or "S" as usual.

Have attached screenshots below...


RE: Pointing to program buffer results in strange behavior - curtwilson - 12-11-2018

Have you made #define assignments for B1 and B2 as variables?


RE: Pointing to program buffer results in strange behavior - steve.milici - 12-11-2018

You can disable the "Macro name" reporting in the terminal widow with a right mouse click - deselect "Show Macro Names".


RE: Pointing to program buffer results in strange behavior - TSV - 12-11-2018

(12-11-2018, 03:27 PM)curtwilson Wrote: Have you made #define assignments for B1 and B2 as variables?

I have just searched one more time through all the header files in last two projects and really found definitions for b1, b2, b3 as follows:

#define k1 q221
#define b1 q222

#define k2 q223
#define b2 q224

#define k3 q225
#define b3 q226

Did I get the values of Q-vars?

But when I point to B100, B1101 buffers I get ERR003 error.
Sometimes I get ERR003, when point to B5, B6 buffers.
There aren't any definitions #define for them, and programs are downloaded to pmac.

I have reinstalled the PMAC Suite and all have been ok for one day.
Then I got this problem again.
My colleague connects to the same pmac and doesn't have this problem.
He does not have source files for this project on his PC.

I will change the macro names tomorrow and see what happen.

Thank you!


RE: Pointing to program buffer results in strange behavior - TSV - 12-11-2018

(12-11-2018, 04:04 PM)steve.milici Wrote: You can disable the "Macro name" reporting in the terminal widow with a right mouse click - deselect "Show Macro Names".

Does pmac try to search for definitions, when reporting is enabled?