# Robot Program Post Processor (downloader)

**URL:** <https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166>\
**Category:** Visual Components Add-on Samples\
**Created:** [March 13, 2017, 1:01pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166 "2017-03-13T13:01:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emeritus](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@emeritus](https://forum.visualcomponents.com/u/emeritus)\
**Post date:** [March 13, 2017, 1:01pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/1 "2017-03-13T13:01:10Z")

</div>

This addon allows converting robot programs from Visual Components to native robot language. The addon is constructed so that new translators e.g. for other robot brands or controller versions can be added.

- Translators included in this package:
  - ABB
  - Comau
  - Doosan
  - Epson
  - Fanuc
  - Hyundai
  - Igus
  - Kassow
  - Kawasaki
  - Kuka
  - Kuka Sunrise
  - Mitsubishi
  - Techman/Omron
  - Universal Robots
  - Yaskawa
  - IRL (VC Example)

Install the addon by extracting the zip file to “My Commands\Python 2” folder. Then restart the application and the “Post Process” button shows up on the _Program_ ribbon tab. Be sure to read ReadMe.txt included in the package for more information.

The post processor command includes the post processor launcher and separate translators for different robot languages. The translators can be found in a sub folder called “Translators”. New translators can be added to the “Translator” folder. New translator will automatically show up in the Post Processor save dialog as a new file type. The translator must be named with following naming convention so that it shows up in the save dialog properly:

- Naming convention:
  - ROBOTBRAND\_FILETYPE.py

- For example:
  - ABB\_mod.py

Post processors calls a function named "postProcess" in the chosen translator. That function must be defined in the translator and following arguments are passed for it:
- app (of type vcApplication)
- program (of type vcProgram)
- uri (file uri of type string)

See existing translators for a reference. IRL translator is the simplest example. It doesn't support control flow (like while, if, break, etc statements).

The command tries to match robot model with a correct post-processor by searching manufacturer on BOM Description or by matching a controller name with known names (e.g. IRC5 =\> ABB). If match is not found user chooses PP on action panel settings.

version\_history.txt shows changes in the add-on.

[RobotPostProcessor.zip](https://forum.visualcomponents.com/uploads/short-url/4BBDvOT5T3rgMxKLQouUktHq6rw.zip) (98.8 KB)  
[version\_history\_2024\_08\_06.txt](https://forum.visualcomponents.com/uploads/short-url/m8y4iAXbUJLwLrqbUjERFUPAdJ8.txt) (3.4 KB)

---

<div class="post-metadata">

**Author:** ![lahne\_dalex](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/l/f19dbf/32.png) [@lahne\_dalex](https://forum.visualcomponents.com/u/lahne_dalex)\
**Post date:** [May 9, 2017, 8:57am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/2 "2017-05-09T08:57:59Z")

</div>

Hello  
The export works very well. Thank you.  
Is it possible to extend this exporter to Motoman / Yaskawa?  
In 3D Automate, this was already present.

---

<div class="post-metadata">

**Author:** ![harizon9](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/h/b38774/32.png) [@harizon9](https://forum.visualcomponents.com/u/harizon9)\
**Post date:** [February 7, 2018, 2:39pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/3 "2018-02-07T14:39:04Z")

</div>

Hi,

Do you have some documentation for this? We would also like to know if you have done something similar for Yaskawa Translator?

Thank you,

Regards,

Hari

---

<div class="post-metadata">

**Author:** ![evenau](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@evenau](https://forum.visualcomponents.com/u/evenau)\
**Post date:** [February 28, 2018, 6:37pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/4 "2018-02-28T18:37:33Z")

</div>

The Yaskawa Post Processor is also available. If you are interested please contact DUALIS IT Solution [edietrich@dualis-it.de](mailto:edietrich@dualis-it.de)

&nbsp;

---

<div class="post-metadata">

**Author:** ![anon35917896](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@anon35917896](https://forum.visualcomponents.com/u/anon35917896)\
**Post date:** [March 2, 2018, 11:52am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/5 "2018-03-02T11:52:08Z")

</div>

Post Process button doesn’t appear, any suggestions why?

UPD: fixed.

---

<div class="post-metadata">

**Author:** ![anon99590980](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@anon99590980](https://forum.visualcomponents.com/u/anon99590980)\
**Post date:** [August 9, 2018, 4:16pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/6 "2018-08-09T16:16:45Z")

</div>

Hi! Do you possibly have useful post processor for ABB-scara robots?

Main problem is that scara has four axes and this one seems to work only with 6-axis (Quaternion orientation does not match)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![evenau](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@evenau](https://forum.visualcomponents.com/u/evenau)\
**Post date:** [August 13, 2018, 11:16am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/7 "2018-08-13T11:16:34Z")

</div>

Yes ABB PP is also available, please contact [edietrich@dualis-it.de](mailto:edietrich@dualis-it.de)

---

<div class="post-metadata">

**Author:** ![anon73592989](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@anon73592989](https://forum.visualcomponents.com/u/anon73592989)\
**Post date:** [September 13, 2018, 12:41pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/8 "2018-09-13T12:41:12Z")

</div>

I am also looking for DX100 motoman/Yaskawa translator, has one been written?

Thanks

---

<div class="post-metadata">

**Author:** ![rdohndorf](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/9fc348/32.png) [@rdohndorf](https://forum.visualcomponents.com/u/rdohndorf)\
**Post date:** [September 13, 2018, 1:44pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/9 "2018-09-13T13:44:04Z")

</div>

Hi RJCRobotics,

feel free to contact evenau ([edietrich@dualis-it.de](mailto:edietrich@dualis-it.de)) - DUALIS is providing a post-processor add-on that also supports yaskawa/motoman (DX100).

br/Ralle

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [November 5, 2018, 2:55pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/10 "2018-11-05T14:55:55Z")

</div>

Hi,

Attachment contains the same translators as OP but also a new translator for Yaskawa Motoman robots (DX100/DX200 controller).

Check the header in Yaskawa Motoman\_JBI.py file to see detailed info about the scope of the translator. By default it produces rectangular coordinate jobs but pulse format is supported if pulse ratios and zero positions are added on the robot model.

-Keke

&nbsp;

[RobotPostProcessor.zip](https://forum.visualcomponents.com/uploads/short-url/g7mBjvhcZmtbaYHGyp53Nep8hLu.zip) (21 KB)

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [December 4, 2018, 11:01am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/11 "2018-12-04T11:01:19Z")

</div>

Hi,

Attachment contains translators with new KUKA translator added into the pack.

Kuka translator was written and tested with fairly new KRC4 controlled robot so it may or may not be compatible with older controller version. Translator has few different options that affect the format in .src and .dat file. Options are boolean variables that can be changed in “setPostProcessorOptions” method in KUKA\_src.py source file. These options are:

- use\_spline\_motions: True=SLIN/SPTP motions, False=LIN/PTP motions
- use\_inline\_form: True=Wrap commands into folds, False=Pure KRL without folds
- comment\_out\_frames: True=base/tool frame assignments are commented out at the beginning of main, False=base/tool frames are assigned at the beginning of main (beware that this will override current frames)

-Keke

&nbsp;

[RobotPostProcessor.zip](https://forum.visualcomponents.com/uploads/short-url/8TXUBOedHfhcfWQxvPVrAL9tyQA.zip) (29.1 KB)

---

<div class="post-metadata">

**Author:** ![anon32062628](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@anon32062628](https://forum.visualcomponents.com/u/anon32062628)\
**Post date:** [January 28, 2019, 9:21am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/12 "2019-01-28T09:21:28Z")

</div>

Hello,

i will testing the Kuka Post Processor but i get this error:

Mapping Null to BASE\_DATA[1].  
Mapping Null to TOOL\_DATA[1].  
Mapping Mitte\_Greifer to TOOL\_DATA[2].  
Mapping Magazin to BASE\_DATA[2].  
Mapping Maka1\_li to BASE\_DATA[3].  
Mapping Maka1\_re to BASE\_DATA[4].  
Mapping Maka2\_li to BASE\_DATA[5].  
Mapping Maka2\_re to BASE\_DATA[6].  
Mapping Monostanze to BASE\_DATA[7].  
Mapping Aufstechst to BASE\_DATA[8].  
Mapping Datron to BASE\_DATA[9].  
Traceback (most recent call last):  
File “file:///C:\Users\Public\Documents\OCTOPUZ2.0\Commands\OctopuzCore\PostProcessLauncher.py::”, line 73, in firstState  
File “C:\Users\Public\Documents\OCTOPUZ2.0\Commands\OctopuzCore\Translators\KUKA\_src.py”, line 70, in postProcess  
writeRoutine(routine, routine.Name)  
File “C:\Users\Public\Documents\OCTOPUZ2.0\Commands\OctopuzCore\Translators\KUKA\_src.py”, line 118, in writeRoutine  
write\_statementstatement.Type  
File “C:\Users\Public\Documents\OCTOPUZ2.0\Commands\OctopuzCore\Translators\KUKA\_src.py”, line 547, in writeLinMotion  
writeMotion(pos\_name)  
File “C:\Users\Public\Documents\OCTOPUZ2.0\Commands\OctopuzCore\Translators\KUKA\_src.py”, line 661, in writeMotion  
% (ldat, motiontarget.CartesianSpeed / 1000.0, motiontarget.CartesianAcceleration, motiontarget.AccuracyValue))  
NameError: Attribute or method ‘CartesianAcceleration’ not found.

&nbsp;

Can you Help me?

OCTOPUZ ᵀᴹ 2.0.3.1088 (2.0.3

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [January 28, 2019, 9:46am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/13 "2019-01-28T09:46:41Z")

</div>

Hi @sebastian7777,

Thanks for feedback. I tested KUKA PP on VC 4.1 family and it seems that on 4.0 vcMotionTarget doesn’t have that property CartesianAcceleration and that why it failed. I modified the PP and now it should work also with 4.0 series products. New version 1.01 of KUKA PP is attached to the zip file on the original post.

-k

---

<div class="post-metadata">

**Author:** ![anon73592989](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@anon73592989](https://forum.visualcomponents.com/u/anon73592989)\
**Post date:** [February 15, 2019, 1:15pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/14 "2019-02-15T13:15:32Z")

</div>

Thanks so much Keke, I’m making good progress in generating the robot code, my pulse values are way off though (I’m guessing the RC1G980 is the 980th value under the ‘///RCIG’ notation in ‘ALL.prm’ file? I think it’s just a matter of calibration if you have anything to help with that? Also, it would be really helpful if I could take a program from the robot controller (programmed on the pendant) and load it into the simulation (an inverse post processor I guess) I found this really helpful when using other software.

Thanks Again

Richard

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [February 15, 2019, 1:28pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/15 "2019-02-15T13:28:54Z")

</div>

No problem Richard. We don’t have uploaders yet for any brand but that is something that is asked a lot so it is in the wishlist so to speak.

Yes those parameters are like you mentioned in ALL.prm. Usually I just open a notepad++ and copy paste all the values under the header into a new file and then I can track those specific entries using line numbers. So RC1G972-977 are on line 98 and RC1G980-985 are on line 99. See the picture below. You can see that the non-zero values are the used joints.

![](https://vc-forum-files.s3-eu-west-1.amazonaws.com/uploads/hm_bbpui/12218/zq73gdw8bxjgzw7s1i2rqaafaicnx0fn.PNG)

-k

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [February 15, 2019, 1:36pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/16 "2019-02-15T13:36:43Z")

</div>

Also sometimes you need to fiddle with joint signs and zero offsets. Try to post some basic poses such as home position to get a grasp of what is wrong in the calibration. But start with the ratios and then fix signs and offsets if needed.

-k

---

<div class="post-metadata">

**Author:** ![anon34189336](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@anon34189336](https://forum.visualcomponents.com/u/anon34189336)\
**Post date:** [March 22, 2019, 12:39pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/17 "2019-03-22T12:39:53Z")

</div>

Hi, is there also a pre-processor that converts files from existing KUKA programs (e.g. .src and .dat) to VC?  
Thanks for effort  
-Hsm02000

---

<div class="post-metadata">

**Author:** ![plop](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/p/d9b06d/32.png) [@plop](https://forum.visualcomponents.com/u/plop)\
**Post date:** [April 12, 2019, 9:51am UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/18 "2019-04-12T09:51:22Z")

</div>

I added the files to My Commands (including the translators) and the Post Process button does appear, however my generated output files are always empty and only contain the template data, but no points etc.

For example, this is what all my generated UR programs looks like:

```
def Testprogram():
end #Testprogram

Testprogram()
```

How do I fix this? Is it related to the fact that I use KUKA.Sim Pro instead of VC?

---

<div class="post-metadata">

**Author:** ![engsaqer84](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/e/ac91a4/32.png) [@engsaqer84](https://forum.visualcomponents.com/u/engsaqer84)\
**Post date:** [April 16, 2019, 5:51pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/19 "2019-04-16T17:51:22Z")

</div>

Great work

Hoping to get it for KAWASAKI ROBOTICS .

---

<div class="post-metadata">

**Author:** ![keke](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/keke/32/762_2.png) [@keke](https://forum.visualcomponents.com/u/keke)\
**Post date:** [April 17, 2019, 2:06pm UTC](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166/20 "2019-04-17T14:06:06Z")

</div>

@Hsm02000, We currently don’t have pre-processors (uploaders) for any brands yet. But those are requested a lot so they are on the wishlist so to speak.

@Plop, Kuka.Sim uses different motion statements (custom statement type) so those are not supported by these Post-Processors.

-k

[Next page](https://forum.visualcomponents.com/t/robot-program-post-processor-downloader/166.md?page=2)
