Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Sample Programming
This sample performs temperature control with the optimum PID parameters for each step in the AC_-
StepProgram instruction.
Processing
This sample performs the following two processes.
• It calculates the optimum PID parameters for each step.
• It controls temperature according to the program pattern.
Both of these processes are described below.
 Calculating Optimum PID Parameters for Each Step
Before temperature is controlled according to the program pattern, the optimum PID parameters for
each step must be calculated. Autotuning with the PIDAT instruction is used to calculate the PID
parameters.
The calculated PID parameters are stored in the PIDbank[] array of structures with the step numbers
used as the array subscripts. The members of the elements of PIDbank[] give the proportional
bands, integration times, and derivative times.
The processing procedure is as follows:
1
The user changes the value of ACSP_Enable to the AC_StepProgram instruction to TRUE.
The AC_StepProgram instruction is executed and the value of present step number StepNo
changes to 0.
2
The user changes the value of execution condition Run to the PIDAT instruction to TRUE.
The PIDAT instruction is executed.
3
The user changes the value of autotuning execution condition StartAT to TRUE.
The value of Hold to the AC_StepProgram instruction changes to TRUE and holding is per-
formed. Autotuning for the PIDAT instruction is executed and the optimum PID parameters are
calculated for step 0.
4
Autotuning is completed.
The value of autotuning normal completion ATDone from the PIDAT instruction changes to
TRUE.
The calculated PID parameters are stored in PIDbank[0].
5
The user changes the value of Hold to the AC_StepProgram instruction to FALSE.
Holding for the AC_StepProgram instruction is canceled.
After a while, processing moves to the next step and the value of StepNo changes to 1.
6
The user repeats steps 3 to 5 for each step number.
The optimum PID parameters for all steps are stored in PIDbank[].
2-786

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents