Instantiation and Usage Example

Instantiation and Usage Example

This figure shows an instance of the FB_PID function block:

G-SA-0044726.2.gif

 

 

oA square signal is generated using the GEN, key parameters are SqrPeriod and SignalAmplitude.

oThe system to control is a simple first order filter, key parameters are SystemResponseTime and SystemStaticGain.

oA trace is done in open loop SystemResponse_1 and in closed loop using FB_PID function block.

Data of this example are:

G-SE-0005697.2.gif

 

 

Using the previous setting, the setpoint/open loop/closed loop answer is:

G-SE-0005698.1.gif

 

 

The input i_tCyclTime of the first order filters System_1 and System_2 (dataCyclTime) must have exactly the same value as the period of the POU in the MAST, here 50 milliseconds.

G-SE-0005699.1.gif-high.gif

 

 

When the GEN MODE is changed from RECTANGLE to SINUS with the same other parameters, the Sinus answer is:

G-SE-0005700.1.gif

 

 

This figure shows the visualization of the FB_PID function block:

G-SA-0046359.2.gif-high.gif

 

 

Detected Error State

This table describes some general detected errors:

Issue

Cause

Solution

Detected error state

Invalid input parameter

Enter valid parameter, then reset detected error

NOTE: If the function block is disabled, outputs are set to zero.