520
Temperature Sensor Units
Section 9-5
Programming Example
1,2,3...
1.
The following programming example shows how to convert the input data
from 2 temperature sensor inputs to BCD and store the result in D0 and
D1.
CP1L-EM CPU Unit
with 40 I/O points
CP1W-TS001/101
Temperature Sensor Unit
Inputs
Outputs
CIO 0
CIO 1
CIO 100
CIO 101
CIO 2
CIO 3
None
Temperature unit setting:
0 (
°
C)
Two-decimal-place Mode:
0 (normal)
Input range setting:
1 (K: 0.0 to 500.0
°
C)
Input 0:
CIO 2
Input 1:
CIO 3
2
#7FFF
1000.00
CMP(020)
(P_EQ)
1000.00
2
#7FFE
Always ON
P_On
CMP(020)
(P_EQ)
1000.01
3
#7FFE
Always ON
P_On
CMP(020)
Detects completion of input 1 initialization.
(P_EQ)
100.00
2
#1388
CMP(020)
(P_GT)
100.01
(P_LT)
2
D0
BCD(024)
3
#7FFF
1000.01
CMP(020)
(P_EQ)
100.02
3
#1388
CMP(020)
(P_GT)
100.03
(P_LT)
3
D1
BCD(024)
Detects completion of input 0 initialization.
ON when input 0 has been initialized
ON when input 1 has been initialized
Execution condition
Detects an open-circuit alarm or Unit
error by checking converted temperature
data for the error code 7FFF.
ON when an open-circuit alarm or Unit
error has been detected for input 0.
Checks to see if the temperature data
in word 2 has exceeded 500.0
°
C (1388
hex without decimal point).
ON for an input 0 temperature error
Converts the temperature data for
input 0 to BCD and stores the result in
D0.
Execution condition
Detects an open-circuit alarm or Unit
error by checking whether the error
code 7FFF has been output
ON when an open-circuit alarm or Unit
error has been detected for input 1.
Checks to see if the temperature data
in word 3 has exceeded 500.0
°
C
(1388 hex without decimal point).
ON for an input 1 temperature error
Converts the temperature data for
input 1 to BCD and stores the result in
D1.
Содержание CP1L-EL20DR-D
Страница 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Страница 4: ...iv...
Страница 10: ...x...
Страница 22: ...xxii...
Страница 34: ...xxxiv Software Licenses and Copyrights 7...
Страница 178: ...144 Connecting the CX Programmer Section 5 1 Click the Connect button to connect and then connection online is completed...
Страница 192: ...158 Trial Operation and Debugging Section 5 3...
Страница 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Страница 666: ...632 Trouble Shooting Section 11 7...
Страница 696: ...662 Standard Models Appendix A...
Страница 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Страница 836: ...802 PLC Setup Appendix G...
Страница 838: ...804 TCP Status Transitions Appendix H...
Страница 840: ...806 Ethernet Network Parameters Appendix I...
Страница 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Страница 844: ...810 Ethernet Specifications Appendix K...
Страница 851: ...Index 817 work words 118 write protection 447...
Страница 852: ...818 Index...
Страница 854: ...820 Revision History...
Страница 855: ......