Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Products
  • Software
  • CX-One

How to Import and Use Existing Function Blocks in CX-Programmer

Written by Nick Lim

Updated at December 14th, 2023

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Products
    Automation Systems Control Components Motion & Drives Quality control & Inspection Robotics Safety Sensing Services Software Switching Components
  • Amplify e-Store
    e-Store public
  • Public CSC
+ More

Function Blocks are modular, reusable pieces of code that encapsulate specific functionality. By importing and incorporating pre-built blocks into your CX-Programmer projects, you can save time, enhance code readability, and ensure consistency across different applications. This guide will walk you through the step-by-step process of importing Function Blocks, and integrating them into your PLC programs.

1.Import Existing Function Blocks

To import an existing function block into your program in CX-Programmer first you must insert custom function blocks into your project using the method below:

  1. Right click Function Blocks on the left hand menu
  2. Go to Insert Function Block 
  3. Click From File

4. Next select navigate and select the function block you wish to import:

5. The Function block should now appear in the left hand bar:

 
 

2.Using Imported Function Blocks

         1.To use the imported function block either press F on your keyboard or click the following button:

         2.You will then need to name the instance of the function block:

         3.Hit the P key or click the following button in the tool bar to insert parameters into the selected location:

 
 

 

cx-programmer import function

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • CX-One vs CX-One Lite
  • Trial Copy for CX-ONE
  • How To Change The IP Address Of The CP1W-CIF41 Ethernet Option Board With CX-Programmer?
  • Ethernet/IP Setup Guide Using Network Configurator

Definition by Author

0
0
Expand