Simulation Instruction Example
The Simulation_DT_1st Add-On Instruction adds a dead time and a first-order lag to an input variable.
Figure 10 - Simulation Example Definition Editor General Tab
Figure 11 - Simulation Example Definition Editor Parameter Tab
Figure 12 - Simulation Example Logic
Ladder Diagram Configuration
In this example, the instruction simulates a deadtime and lag (first order) process.
The Simulation_DT_1st instruction reads the control variable from the PID instruction. The PID instruction reads the SimOutput Parameter of the Simulation_DT_1st instruction.
Function Block Diagram Configuration
The PIDE instruction sends the control variable to the Simulation_DT_1st instruction. The Simulation_DT_1st instruction calculates an output and sends it to the PIDE instruction as the process variable
Structured Text Configuration
Simulation_DT_1st( Sim_DT_ST, My_PIDE_ST.CVEU, DT_Array_ST );
My_PIDE_ST.PV := Sim_DT_ST.SimOutput;
PIDE(My_PIDE_ST );
The Simulation_DT_1st instruction reads the control variable from the PIDE instruction and calculates an output.
The output goes to the process variable of the PIDE instruction.
Figure 10 - Simulation Example Definition Editor General Tab
Figure 11 - Simulation Example Definition Editor Parameter Tab
Figure 12 - Simulation Example Logic
Ladder Diagram Configuration
In this example, the instruction simulates a deadtime and lag (first order) process.
The Simulation_DT_1st instruction reads the control variable from the PID instruction. The PID instruction reads the SimOutput Parameter of the Simulation_DT_1st instruction.
Function Block Diagram Configuration
The PIDE instruction sends the control variable to the Simulation_DT_1st instruction. The Simulation_DT_1st instruction calculates an output and sends it to the PIDE instruction as the process variable
Structured Text Configuration
Simulation_DT_1st( Sim_DT_ST, My_PIDE_ST.CVEU, DT_Array_ST );
My_PIDE_ST.PV := Sim_DT_ST.SimOutput;
PIDE(My_PIDE_ST );
The Simulation_DT_1st instruction reads the control variable from the PIDE instruction and calculates an output.
The output goes to the process variable of the PIDE instruction.
0 comments :