PipeNetwork_FFLD
Description
This function is used to call the PNCode Function BlockA function block groups an algorithm and a set of private data. It has inputs and outputs. in FFLD POUs. It starts and initializes the Pipe Network, based on the command specified by cmdID
. 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 PNCode.
This is a special function that should only be used in Pipe Network applications that contain FFLD POUs that call PNCode. Calling this function instead of PNCode in 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’s will eliminate the following compile error that occurs after modifying the Pipe Network using the Pipe Network editor.
Controller:PLC"Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events:Main: NW1(1,14): PNCode: Invalid block height
-
-
The compile error is generated because the number of outputs on PNCode can vary. This occurs after modifying the original Pipe Network using the Pipe Network editor. The new PNCode Function Block is not automatically updated in any FFLD POU, reflecting the new outputs. You need to manually update each PNCode Function Block call in any FFLD POU to correct this problem.
Figure 7-222: PipeNetwork_FFLD
See also: Design Motion with Pipe Network, Initialize and Start up a Pipe Network, PLCopen 2-Axes Template with 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 Pipe Network applications that contain FFLD POUs that call PNCode.
- To use this Function, PipeNetwork must be declared as a global variable in the dictionary.
-
-
The Pipe Network FFLD Application Template is a good example of how to use this Function. See Pipe Network 2-Axes Template with FFLD only.
Example
FFLD