Procedures
3-2-8
Copying and Editing Function Block Definitions
3-2-9
Checking the Source Function Block Definition from an Instance
1,2,3...
3-2-10 Checking the Size of the Function Block Definition
3-2-11 Compiling Function Block Definitions (Checking Program)
1,2,3...
Use the following operation to copy and edit the function block definition that
has been created.
1. Select the function block to copy, right-click, and select Copy from the pop-
up menu.
2. Position the cursor over the function block item under the PLC in the
project directory, right-click and select Paste from the pop-up menu.
3. The function block definition will be copied ("copy" is indicated before the
name of the function block definition at the copy source).
4. To change the function block name, left-click or right-click and select Re-
name from the pop-up menu.
5. Double-click the function block definition to edit it.
Use the following procedure to check the function block definition from which
an instance was created.
Right-click the instance and select Go To - Function Block Definition from
the popup menu. The function block definition will be displayed.
CX-Programmer can be used to check the size of the function block definition
being created using a similar method to checking the program capacity. The
procedure is as follows:
1. Select Memory View from the View Menu.
2. The function block definition size and number of function block definitions
will be displayed in the Memory View Dialog Box as shown below.
• The Used FB, Free FB, and Total fields under Function Block refer to the
size of the function block definitions. The values are displayed in step
units. 1 step = 4 bytes, so the function block source memory capacity (K
bytes) in the CPU Unit's internal flash memory is the value multiplied by
1,024 and divided by 4.
• The Used #, Free #, and Max # fields under Function Block refer to the
number of function block definitions.
A function block definition can be compiled to perform a program check on it.
Use the following procedure.
Select the function block definition, right-click, and select Compile from the
popup menu. (Alternately, press the Ctrl + F7 Keys.)
The function block will be compiled and the results of the program check will
be automatically displayed on the Compile Table Page of the Output Window.
Section 3-2
131
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?
Questions and answers