87
Sample Programs
Appendix B
Performing Autotuning and Refreshing the PID Constants
Summary
This program performs autotuning for loop 1 and refreshes the Temperature Control Unit’s PID constants with
the calculated PID constants.
Example Unit Settings
• Unit:
CJ1W-TC001 Temperature Control Unit
• Unit number:
00
Note
The unit number switches are on the front of the Unit. Refer to
2-3-3 Unit Number Switches
for details.
Example Program
Note
1.
The Loop 1 AT Flag is bit 03 of CIO (n+8), the Loop 1 PID Constants Calculated Flag is bit 10 of
CIO (n+8), and the Loop 1 Save Completed Flag is bit 15 or CIO (n+8).
2.
The Loop 1 Start AT Bit is bit 02 of CIO (n+2) and the Loop 1 Change PID Constants Bit is bit 13 of
CIO (n+2).
3.
The PID Constants Calculated Flag will go OFF when the Change PID Constants Bit is turned ON.
4.
If pin 8 of the DIP Switch is set to ON so that the settings in the Unit’s EEPROM are transferred to the
CPU Unit during initialization, always turn ON the loop’s Save Bit to save the new settings to Temper-
ature Control Unit’s EEPROM.
XFER(070)
#0003
D20035
D20015
SET
200215
RSET
200215
Execution
condition
(Starts AT)
Loop 1 AT Flag
CIO 200803 (See note 1.)
Loop 1 Start AT Bit
CIO 200202 (See note 2.)
Loop 1 AT Flag
CIO 200803 (See note 1.)
AT in Progress
Indicator Flag
Loop 1 PID Constants Calculated Flag
CIO 200810 (See notes 1 and 3.)
Loop 1 Change PID
Constants Bit
CIO 200213
(See notes 2 and 3.)
Save
(See note 4.)
Save
(See note 4.)
Loop 1 Save Completed Flag
CIO 200815 (See notes 1 and 4.)
Summary of Contents for Sysmac CJ Series
Page 1: ...OPERATION MANUAL Cat No W396 E1 03 SYSMAC CJ Series CJ1W TC Temperature Control Units...
Page 2: ...CJ1W TC Temperature Control Units Operation Manual Revised December 2005...
Page 3: ...iv...
Page 5: ...vi...
Page 13: ...xiv...
Page 23: ......
Page 93: ......
Page 105: ......
Page 107: ......
Page 113: ......
Page 115: ......