Creating a macro with DENSO WINCAPS III

Modified on Wed, 28 Apr 2021 at 05:04 PM

**Attention** : Read this resource material carefully and in its entirety before use, to ensure it is understood and used properly.  Failure to properly follow the instructions in the resource materials DPAM provides may result in damage to your equipment.  As a result, by using the resource materials, you are assuming the risks associated with modifying your equipment. DENSO holds no liability, implied or otherwise, for damage, injury or any legal responsibility incurred, directly or indirectly from the use of the resource materials, including any loss of data or damage to property which may occur by your use of the resource materials. The use of the resource materials are not recommended unless you have technical knowledge and functional experience with the equipment and related software. DENSO is unable to provide support, remote or otherwise, for the information included in the resource material, nor for the ancillary topics relating to the information included in the resource materials. Therefore, if you are not fully comfortable with it, we strongly recommend that you send your unit to one of our Regional Support Centers for repair.  The information contained in the resource materials are subject to change at the sole discretion of DPAM. 


Macros as found in PacScript and DENSO robot arms replaces a part of code with a defined name.  Macros have the potential to greatly assist in reading through code and intuitively understanding what is going on.

Video Tutorial

Step by Step Guide

Step 1

Enter the names you wish to use as Macros in the Macro section of either the IO or the Global Variable tables.

Step 2

Add and replace your Macro names into your variables. 

For Example: instead of P[1], you’ll type P[Pos_Home]. 

Instead of IO[24], you’ll type IO[Part_Processed].  Note the brackets are required to use Macros.

Step 3

After entering your Macro Names into your program(s), you’ll need to create a header file to define them.  This can be done easily by the following: Project → Create macro definition file → Variable

Step 4

This will create a header definition file, and add it to your program list.  You’ll now need to include that new header file in your program that has the Macros. 

Owner's Manual Reference

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article