Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change coordinate system definition on-the-fly
#1
How can we change coordinate system definition on-the-fly?

It seems that commands like:
&1#1->0
&2#1->2000X
are not permitted from a PLC.

We can of course change the scale factor with Motor[n].CoordSF but what about removing a motor from a coordinate system to put it on another coordinate system and how to change his name?
It seems that we cannot write into Motor[n].Coord

It seems that commands like:

&1#1->0
&2#1->2000X

are not permitted from a PLC.

Thanks.
Reply
#2
(11-27-2008, 03:48 AM)DT-Europe Wrote: How can we change coordinate system definition on-the-fly?

It seems that commands like:
&1#1->0
&2#1->2000X
are not permitted from a PLC.

We can of course change the scale factor with Motor[n].CoordSF but what about removing a motor from a coordinate system to put it on another coordinate system and how to change his name?
It seems that we cannot write into Motor[n].Coord

It seems that commands like:

&1#1->0
&2#1->2000X

are not permitted from a PLC.

Thanks.

At the moment the way to accomplish this is by using a CPLC. Have your motion program set a variable that tells the CPLC it is time to manipulate the CS then have the motion program pause itself. When the CPLC is done it can restart the program.

Here are some example files to do the job. I did not worry about lookahead buffers but the control of these could be added where the CS definitions are made.


.c   plcc.c (Size: 933 bytes / Downloads: 51)

.pmh   global definitions.pmh (Size: 230 bytes / Downloads: 26)

.pmc   prog1.pmc (Size: 317 bytes / Downloads: 29)


Attached Files
.pmc   subprog1.pmc (Size: 318 bytes / Downloads: 10)
Reply
#3
see thread http://forums.deltatau.com/showthread.php?tid=369 for a continuation of this topic.

Release firmware from Jan 2011 has this ability and nightly build firmware since August also has the ability.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)