APPX
Appendix 5 PID Control Program Examples
2063
A
Appendix 5
PID Control Program Examples
This section provides examples of PID control programs where PID control instructions are used.
The following system configuration is used.
I/O number of the R60AD4: X/Y80 to X/Y8F, I/O number of the R60DA4: X/YA0 to X/YAF
Program examples for PID control in automatic mode
The program performs PID operation using the digital value input from the R60AD4 as a process value (PV), and outputs the
obtained manipulated value (MV) from the R60DA4.
The program conditions are as follows:
Item
Inexact differential
Exact differential
Number of loops that performs PID operation
2
Sampling period
1 second
Device where PID control data are set
Common data
D500, D501
Loop 1 data
D502 to D515
D502 to D511
Loop 2 data
D516 to D529
D512 to D521
Device where I/O data are set
Common data
D600 to D609
Loop 1 data
D610 to D632
D610 to D627
Loop 2 data
D633 to D655
D628 to D645
Set value (SV)
Loop 1
600
Loop 2
1000
Device used to start/stop PID control
PID control start command
X0
PID control stop command
X1
Digital value of the R60AD4 and R60DA4
0 to 2000
R60AD4
MV
PV
PV
MV
R60DA4
CH.1
CH.1
CH.2
CH.2
CPU module
PID operation
PID operation
Loop 1
Loop 2
External device
External device
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......