PipeNetwork_FFLD - Special FFLD Function

Pipe Network motion icon

 Function - Calls the PNCode function block in FFLD POUs.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

0 to 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

FALSE, TRUE

N/A

Returns TRUE when the function successfully executes.

Remarks

  • It starts and initializes the Pipe Network, based on the command specified by cmdID.
    • Internally this function calls the Function Block PNCode.
  • 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:PLC: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 1: PipeNetwork_FFLD

FBD Language Example

Not available.

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Not available.

See Also