ProfilesCode_FFLD
Description
This function is used to call the Profiles Code Function BlockA function block groups an algorithm and a set of private data. It has inputs and outputs. in FFLD POUs. Internally this function calls the FunctionA function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. Block ProfilesCode.
This is a special function which should only be used in applications that contain FFLD POUs that call ProfilesCode. Calling this function instead of ProfilesCode in FFLD POUs will eliminate the following compile error that occurs after adding a new Profile to the project tree.
Controller:PLC:Main:NW1(1,14):ProfilesCode:Invalid block height
The compile error is generated because the number of outputs on ProfilesCode can vary. This occurs after adding a new profile to the project tree. The ProfilesCode Function Block is not automatically updated in any FFLD POU"Programmable Organization Unit" An application is a list of programs. Programs are executed sequentially within the target cycle according to the order defined by the user and displayed in the Project View, reflecting the new outputs. You needed to manually update each ProfilesCode Function Block call in any FFLD POU to correct this problem. If you use this new Function instead, you no longer need to manually update each ProfilesCode Function Block in FFLD.
Figure 8-231: ProfilesCode_FFLD
Arguments
Inputs
En | Description | Request to initialize the Pipe Network |
Data type | BOOL | |
Range | 0,1 | |
Unit | N/A | |
Default | — | |
cmdID | Description |
Commands used to start and initialize the Pipe Network
|
Data type | DINT | |
Range | N/A | |
Unit | N/A | |
Default | — |
Outputs
OK | Description | Returns TRUE when the function has completed |
Data type | BOOL | |
Unit | N/A |
Usage
- This is a special function that should only be used in applications that contain FFLD POUs that call ProfilesCode.
- To use this function, Profiles must be declared as a global variable in the dictionary.
-
-
The Pipe Network and PLCopenA vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML 2 Axis FFLD Application Templates are two examples of how to use this function. See Pipe Network 2-Axes Template with FFLD only and PLCopen 2-Axes Template with FFLD.
Example
FFLD