Call Robot in Your Program

Overview

You must call the robot in your project.

PacDrive 3 Template

Step

Action

1

Copy the code snippets of the Code snippets tab (refer to Robot Explorer) to the desired location in your application code.

2

If you are using PacDrive 3 Template, it is typically inside SubModules_Action (of SR_MainMachine or equivalent in a node module) which typically uses the FBD language. To use the code snippets of Configuration Data, you can use the EXECUTE box to add code in structured text.

3

Add the in/out variables specific to your application. The variables used are only an example.

Non Template

Step

Action

1

Copy the code snippets of the Code snippets tab (refer to Robot Explorer) to the desired location in your application code.

NOTE: The Add Robot... dialog box for Non Template robot type objects provides the option Generate POU instance.

If you select Yes for this option, the program call and the corresponding task call is generated by the system. Refer to Code generation option for Non Template robots.

NOTE: If you add VAR_INPUT, VAR_OUTPUT or VAR_INPUT_OUTPUT to the ModuleInterface you must update the call of the robot (see example in Calibration).