Comau Translators

This section provides basic information about the Comau PDL2 programming language. This supports all the features that have equivalents within the program structure.

This page discusses:

Supported Features

Basic Features Advanced Features
Feature Download Upload NRL Teach Safety Controller System Files
Motion Motion Parameters Joint / Cartesian Targets Circular Motion Coordinated Motion 7 DOF Robots
Tool / Object Frames Fixed TCP Aux Axes Conveyors Offsets
Feature Set IO Run Task Loops Parallel Position Variables
Wait IO Pulse IO If / Case Arrays
Application Spot Paint Arc Sealing
Tested Controller Versions C5G
This table displays if the feature is:
  • available
  • not available

Instruction Support

Comau Instruction Support

The Comau translator supports the upload and download of instructions in the DELMIA Robotics language that are available in the Comau PDL2 language. This supports all features that have an equivalence in the Comau PDL2 program structure.

The Comau translator outputs a .pdl program for each main program, and includes subroutines in these programs based on the main program it is associated with. The tool and object frames download to TT_TOOL.lsv and TU_FRAME.lsv files respectively. The positions used by the program download in a .lsv file with the same name as the program. TB_BASE.lsv cannot download to or upload from as there is no equivalent in the DELMIA robotics language. The translator creates DELMIA Programs from the program .pdl and .lsv file, along with the TT_TOOL.lsv and TU_FRAME.lsv files. On upload any unsupported instruction uploads as a custom instruction.

Function Capabilities Overview

The Comau translator is a VSTA macro, which you can access by the Robot Programming apps Import/Export commands to translate between DELMIA tasks and Comau PDL2 robot programs. This supports the following instructions:

DELMIA Instruction Level of Support Comau Instructions Comments
Goto Supported GOTO <label>
Condition Supported

If <Boolean_expression> THEN

…

ENDIF
For Supported

FOR <Assign_Expression> TO <Const_Int> DO

…

ENDFOR
This does not support incrementing by values other than 1.
While do Supported

WHILE <Boolean_expression> DO

…

ENDWHILE
Return Not Supported N/A
Break Not Supported N/A
Run (service) Not Supported N/A
Run (procedure) Supported

CALL <Program_Name>

CALLS (“<Program_Name>”[,”<Subroutine_Name>”]) [(<Arg1>, <Arg2>,…)]

<Subroutine_Name> [(<Arg1>, <Arg2>,…)]
Note:

A subroutine can be called without CALL or CALLS in Comau if it is declared included like:

ROUTINE <Routine_Name> [(<Arg1>, <Arg2>,…)] EXPORTED FROM <Program_Name>

A run is downloaded as CALLS if CALLS is present in the CustomNRLTeach text. Otherwise run <Program_Name> downloads as CALL <Program_Name> and run <Subroutine_Name> downloads as <Subroutine_Name> [(<Arg1>, <Arg2>,…)] and adds the EXPORTED FROM <Program_Name> for this program.
Procedure Supported ROUTINE This uploads with “\” by default, to denote the routine’s parent task.
Custom Supported

Comments, unsupported commands

TOOLFRAME([<Tool_Num>], [<Frame_Num>],[<Base_Num>])

$<SysVar/MotionParam> := <Value>
Assigns for system variables and TOOLFRAME() calls upload as custom instructions but are properly taken care of on upload and download.
Grab/Release Not supported N/A E
Tool attach/detach Not Supported N/A
Assign Supported

<VariableName> := <Value>

$<IoName> := <Value>
Wait Supported

WAIT FOR <IO_Boolean_Expression>

DELAY <Time_Value>
Robot motion Supported

MOVE <JOINT|LINEAR|CIRCULAR> TO <Position> [VIA <Position>]

MOVEFLY <JOINT|LINEAR> TO <Position> ADVANCE
Spot Operation Supported

MOVE <Motion Type> TO <Position>,

WITH CONDITION[spot(<Spot_ID>)],

ENDMOVE
Note: Spot operations can upload and download. The spot parameters cannot be uploaded or downloaded yet.
Arc Operation Not supported N/A
Dispense/Sealant Operation Not supported N/A
Paint Operation Not supported N/A
-- (Comment) Supported

Supported Motion Options

Comau Motion Option Support Level DELMIA Equivalent Description Comment
LINEAR, JOINT, CIRCULAR Supported Linear, Joint, Circular Motion Type
$SPD_OPT,$SPD_EMT Partial Support N/A This controls the management of the speed of the arm.

This partially supports SPD_CONST,SPD_ROT,SPD_JNT, SPD_LIN. This does not support all other SPD_OPTS. SPD_OPT controls the speed of motions. Describes each SPD_<Name> with the motion commands that use it.

Note: Emotion is not supported, so SPD_EMT and SPD_OPT are treated the same.

See the Comau PDL2 manual for more information.

$LIN_SPD Supported TCP Speed Linear Linear speed of the arm in MM/s Used when $SPD_OPT = SPD_LIN
$ARM_SPD_OVR Partially Supported Arm speed override in % Only used when $SPD_OPT= SPD_JNT. Apply to all motions throughout.
$LIN_SPD_LIM Supported Max linear speed of the controlled arm in MM/s This does not change DELMIA controller settings. Used for $SPD_OPT = SPD_CONST
$ROT_SPD Supported Angular Speed Angular speed of arm in Rad/s Used when SPD_OPT is any option except the earlier three.
$ARM_ACC_OVR Supported TCP Acceleration Linear/Angular Arm acceleration override in % Use to limit the acceleration of all motions by a percentage.
$FLY_DIST Supported Fly-Move distance Fly move distance in MM Used if $FLY_TYPE = FLY_CART
$FLY_PER Supported Fly-Move percentage Fly move distance in % Used if $FLY_TYPE = FLY_NORM
$FLY_TYPE Supported Specifies, which fly parameters to use. Specify to either FLY_NORM or FLY_CART.
AWAY, RELATIVE, ABOUT, BY, FROM, FOR, or NEAR Not Supported DELMIA does not support these positions.
With … CONDITION[]|MotionOptionAssign Partially Supported Spot Operation Specify a condition to follow during a motion. Based on example programs these are not common and would be difficult to support. CONDITION[spot(<ID>)] is, however supported.

[1] Comau, C5G, and PDL2 are or may be trademarks or registered trademarks of Comau or its subsidiaries in the U.S. and in other countries.