B4-1
IM 34M06H62-02E 2nd Edition : June 2008-00
B4. Sample Program
This chapter describes a sample program that uses the module for controlling
temperatures. It sets the power supply frequency, input type, input range, set point
and other parameters, as well as runs the module and starts the auto-tuning
function. If it detects an error, it reads the error status. The program assumes that
the module is installed in slot 5 of the main unit.
Table B4.1 lists the internal relays used in this sample program, along with their
intended usage.
Table B4.1 Internal Relays Used in the Sample Program
Relay
Number
Name and Usage Remarks
I00001 Execute setup
All parameters set by this program are stored internally in
the module and thus do not need to be setup after each
power up. These relays therefore need to be operated only
when the module is replaced or when parameter values
are modified.
Run/stop and automatic/manual, however, need to be
selected at the beginning of each operation, as these
settings are not stored in the module.
I00011 Write operation parameters
I00102 Backup SP values
I00201 Run/Stop
I00202 Auto/Manual
I00205 Start AT
I00206 Stop AT
You need to execute a specific procedure every time to update stored set point values.
Otherwise, stored set points will not be updated so the parameters revert to their last
stored values whenever the module is turned off and then on again. For details, see
Section B2.4, "How to Back up SP Values to EEPROM."
Figure B4.1 Sample Program (Component for Setting Setup Parameters) (1/5)
CAUTION