5-2
PID control setting parameter
5-2-1
Control table and the number of loops
The PID control of the SJ-Ether PLC is performed using the register table. Therefore, in KPP, there is no command for PID on
the ladder program. Instead, the CPU reads configuration parameters from the reserved register area. As shown in the table
below, put the start address of the register area in which the control parameter is stored in R7640. Then, the CPU puts the
number of loops in R7641 to be calculated by PID. If the above configuration information of R7640 and R7641 written in the
program is not correct, the setting error information is set to R7642.
Address
Setup
Parameter
Data type
Scope
Read/write
R7640
Controlling parameter
Table
Starting address
Octal number
R00400
~
R00640
R01400
~
R07340
R10000
~
R25740
Writing
R7641
Number of loops
BCD
0
~
16
Writing
R7642
Error flag
Binary
0 or 1
Reading
If the number of loops is "0", PID control is not performed while the ladder program is running. The PID control is performed in
order from 1. For example, loops 1 and 4 cannot be used without using 2 and 3. The control controller controls the number of
loops specified in R7641.
5-2-2
PID error flag
The CPU enters the error information to R7642 when the setting information of R7640 and R7641 is not appropriate.
When the CPU mode is changed from STOP to RUN, if there is an error in the setting,
the appropriate bit of R7642 is turned on.
Using the PID control settings dialog box for KPP automatically checks the range, so this setting error does not occur. However,
since the configuration parameters may be written in other ways, such as relay ladder logic, the error flag register is useful. The
following table shows a breakdown of the errors in R7642.
Bites
Error Description (0 = No Error, 1 = Error)
0
The start address (within R7640) is set to the lower limit of the register range.
1
The start address (within R7640) is set to the upper limit of the register range.
Alternatively, the border of the R27777 in the loop table is exceeded.
2
The specified number of loops (in R7641) exceeds 16.
3
The PID control table is beyond the border of R7377. The PID table uses one loop 32 words
Therefore, set the range to match the number of loops.
As a simple check, there is no program error if R7642=0000 when the CPU is in RUNNING mode.
When writing the PID control table (start address, number of loops, etc.) directly in a ladder, be careful about the setting range.
Note: DirectSOFT4 and DirectSOFT5 are not supported.
Be sure to use KPP Ver1. 5.0.0 or higher.
PID エラーフラグ , R7642
0
1
3
4
5
6
7
8
9
10
11
12
13
14
15
2
Bit
Error flag
Summary of Contents for Kostac SJ-Ether Series
Page 1: ...English version of the KOSTAC SJ Ether series user s manual SJ ETHER USER M...
Page 12: ......
Page 13: ...1...
Page 14: ......
Page 88: ......
Page 89: ......
Page 113: ...3 24 Note Refer to 6 3 3 Module Assembly for connections and locks between modules...
Page 153: ......
Page 156: ...flashing OFF Not sent H W RX Green flashing Receiving H W OFF Not received H W...
Page 161: ...4 8...
Page 221: ......
Page 310: ...Chapter 7 Maintenance...
Page 311: ......