Creating a macro with DENSO WINCAPS III

Modified on Thu, 10 Oct at 8:37 PM

Please read our Legal Disclaimer before executing any steps on this article


Overview

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

https://www.fa-manuals.denso-wave.com/en/usermanuals/000725/

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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article