ProfilesCode_FFLD

Description

This function is used to call the Profiles Code Function BlockClosedA function block groups an algorithm and a set of private data. It has inputs and outputs. in FFLD POUs. Internally this function calls the FunctionClosedA 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 POUClosed"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 7-198: 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.

Example

FFLD

Go back to the top of the page [Top]