Using the C200H Temperature Sensor Unit with CS1-series PCs Appendix E
38
Programming Example
The following example shows how to set the temperature specification code us-
ing the ladder program, when using the C200H-TS001.
In this example, the temperature specification code of the temperature sensing
element is programmed. For this example a thermocouple K (CA), 0° through
800°C (Code 07) is used and the unit number of the Temperature Sensor Unit is
set to 0.
OFF: Thermocouple K (CA).
ON: Temperature specification selector.
DIP Switch Setting
1234ON
Set the temperature specification code 07 (word data #0700) for K (CA), 0°
through 800°C to word 2000 (word n). The specified data (code 07) is trans-
ferred to word 2000.
Unit 0 Restart Flag
Turns ON the restart flag and turns ON the Temperature Sensor Unit after one
scan at startup or when starting input “a” is ON.
Temperature Specification Setting Flag
(Sets Code to 07 when this Flag Rises)
Confirms that the signal setting on standby (200506) is ON. Provided the alarm
setting error flag (200500) is OFF, turns the temperature specification setting
flag (200015) ON, and executes the setting. After the setting, the signal setting
on standby turns OFF, the temperature specification setting flag turns OFF, and
the temperature specification setting process ends. If a setting error (200500)
occurs, the FAL instruction will be executed, and a user-defined non-fatal error
will be generated.
ON
Always ON
A 20011
ON
200506
(Word n + 5, bit 06)
20015 (Word n, bit 15)
A 50200
MOV (021)
#0700
2000 (Word n)
Always ON Signal setting
on standby
Setting error
200500
(Word n + 5, bit 00)
FAL (006)
#0001
#0000
ON after 1
scan at startup
Starting input a
Unit 0 restart flag
200500
(Word n + 5, bit 00)
Setting error
Temperature specification
setting flag