Call Axis in Your Program

Overview

You must call the axis in your project.

PacDrive 3 Template

Step

Action

1

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

G-SE-0078435.1.png

 

 

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.

G-SE-0078437.1.png

 

 

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 Explorer) to the desired location in your application code.

G-SE-0078434.1.png

 

 

NOTE: The Add Axis dialog for Non Template axis type objects provides the option Generate POU instance.

G-SE-0065885.1.png

 

 

If you select Yes for this option, the program call and the corresponding task call are generated by the system. Refer to Code Generation Option for Non-Template Axes.