how to create program to control robot plugin

how to create program to control robot plugin

chenzhaoxiang2013
Participant Participant
1,919 Views
7 Replies
Message 1 of 8

how to create program to control robot plugin

chenzhaoxiang2013
Participant
Participant

hello,

 

currently, i am following the user guide of Powermill API and trying create program in Visual Studio with c#. I am attempting to create a command to control the robot plugin (robot program) to generate the .LS toolpath file. does anyone know the tips for creating the program to use robot plugin in Powermill?

0 Likes
Accepted solutions (1)
1,920 Views
7 Replies
Replies (7)
Message 2 of 8

VitorMartinsAugusto
Advocate
Advocate

You cannot control PRI as it is a plugin itself.

However, you can use the different specific PowerMILL commands that PRI uses.

Use the PowerMILL console to see what commands PRI is launching.

 

0 Likes
Message 3 of 8

chenzhaoxiang2013
Participant
Participant

hello vma,

thank you for your reply. 

could you interpret more details about how to use the PowerMILL console to see what commands PRI is launching?

do you mean by checking the Macro echo command in powermill?

0 Likes
Message 4 of 8

VitorMartinsAugusto
Advocate
Advocate

Hello,

 

Yes, you use ECHO COMMAND and then use a function of PRI. The relevant commands will be listed in the console.

 

You then need to try to understand what each command does...

 

Regards,

Vitor

 

example.png

0 Likes
Message 5 of 8

chenzhaoxiang2013
Participant
Participant

hello Vitor,

not all function of PRI can correspond to a valid ECHO COMMAND, for instance, for 'robot program' plugin, the corresponding ECHO COMMAND does not work properly.

0 Likes
Message 6 of 8

VitorMartinsAugusto
Advocate
Advocate

Hi,

 

Of course, PRI has its own algorithms, which do not correspond to plain PM commands.

You won't have access to those...

Your only way is to reprogram those algorithms yourself (lots of work, I know). But at least in theory it is possible to do everything that PRI does from your own application - you have access to the same core PM commands.

 

Regards,

Vitor

 

0 Likes
Message 7 of 8

chenzhaoxiang2013
Participant
Participant

indeed, that is lots of work to reprogram those algorithms.

however, in the reference 'autodesk.prodectinterface.powermill' of visual studio, there exists many commands to access the parameters and functions of powermill. is it possible to access the plugin as well? or if there is any reference (.dll file) helpful with that?

0 Likes
Message 8 of 8

VitorMartinsAugusto
Advocate
Advocate
Accepted solution
however, in the reference 'autodesk.prodectinterface.powermill' of visual studio,
there exists many commands to access the parameters and functions of powermill.
is it possible to access the plugin as well?

That is not possible.

 

Think of it like that:

 

POWERMILL <- OLE -> PLUGIN

 

PLUGIN is what YOU are programming. You get access to PowerMILL's function set.

 

In case of PRI, PRI is the plugin!

 

You cannot do this:

 

POWERMILL <- OLE -> PRI <-> PLUGIN

 

Why? Because PRI is itself a plugin and it does not offer any further interface to other applications to attach to it.

 

If you do a simple plugin, other programmers won't have access to your functions, either, unless you program a specific interface.

 

Hope this clears this up.

 

Regards,

Vitor

0 Likes