PipeNetwork_FFLD - Special FFLD Function

Pipe Network motion icon

 FunctionClosed A 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. - Calls the PNCode function block in FFLDClosed "Free Form Ladder Diagram" POUs.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

0, 1

N/A

No default

Request to initialize the Pipe Network.

cmdID

DINT

N/A

N/A

No default

Commands used to start and initialize the Pipe Network.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

 

N/A

Returns TRUE when the function successfully executes.

Remarks

  • It starts and initializes the Pipe Network, based on the command specified by cmdID.
  • This is a special function.
    • It should only be used in Pipe Network applications that contain FFLD POUs that call PNCode.
    • To use this function, Pipe Network must be declared as a global variable in the dictionary. 
  • Calling this function instead of PNCode in FFLD POUs eliminates this compile error that occurs after modifying the Pipe Network using the Pipe Network editor:
Controller:PLCClosed "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 POUs, reflecting the new outputs.
    • Manually update each PNCode function block call in any FFLD POUs to correct this problem.

Figure 6-112: PipeNetwork_FFLD

FBD Language Example

Not available.

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Not available.

See Also