You are on page 1of 3

Downloading a Function Block

This document describes how to call a downloaded function block on the CX-Programmer.
For details on programming, refer to the user's manual and the specifications of the function block.

1. Download a function block from Omron website and save it in any folder on your PC.
The file name extension of the function block file is .cxf.
Save the function block file in the folder which you can access from the PC running the CX-Programmer.

2. Call the downloaded program on the CX-Programmer.


• Start the CX-Programmer version 9.72 or higher.
Select New from the File Menu and select CP2E (when using CP2E-S or CP2E-E) or CP2E-N.

• Insert the downloaded function block.


Right-click Function Blocks in the project workspace and select Insert Function Blocks - From File from the pop-up
menu.

Select the file downloaded from Omron website.


The function block is now added.

• Programming example using a function block


Enter an LD instruction.

Click the New Function Block Call icon.

Select the function block to use.


In the New Function Block Invocation Dialog Box, enter the function block instance name and click the OK Button.
The function block is inserted in the Ladder Window.

Place the cursor where the parameter is to be set and press the Enter Key. Input a value in the parameter.

End

You might also like