472
Temperature Sensor Units Section 7-5
Creating Ladder Program
Write temperature data command
Write temperature data command which read temperature data from input
word to CIO n+1.
Response confirmation
After CP1W-TS004 receives CIO n+1 read command and CP1W-TS004’s
internally specified input temperature data is ready, the value which is the
same as the read command will be stored in CIO m+1. The temperature
data will be stored in CIO m+2 at the same time.
Read temperature data
Store the temperature data from CIO m+2 in DM area.
Note (1) It takes about 2ms maximum until it is reflected to CIO m+1 and m+2 from
writing the read command to CIO n+1.
(2) It takes about 1s after the power is turned ON, till a read command initial
processing of CP1W-TS004 is completed, so a response to the read
command after power ON takes only about 1s. After the power is turned
ON, create a ladder program 1s later due to its control by temperature da-
ta.
(3) When writing a command other than that specified in the temperature
data read command, CIO m+1 and m+2 hold the previous value.
The power is ON
CIO m+2
Read temperature data
Store in DM area
CIO n+1
Write temperature data
command
Read command
matches response
CIO m+1
Response confirmation
Read command
and response are
unmatched
Response
CIO m+1
#9902
Temperature data
CIO m+2
Input 2
temperature data
2ms max. from writing read
command, response, to reading
temperature data
Approx. 1s
Approx. 2ms
Read command
CIO n+1
0000 #9901 #9902 #9903
Power ON Write input 1
temperature data
command
Write input 2
temperature data
command
7FFE
7FFE #9901
Input 1
temperature data