Programming Example - Omron CP1E-E14SDR-A User Manual

Sysmac cp series cp1e series cpu unit hardware
Table of Contents

Advertisement

Example 4
Temperature: Open circuit (°F)
Temperature Data: 7FFFFF
Leftmost 3 Digits and Flags
Bits
Data
Rightmost 3 Digits and Flags
Bits
Data
Additional Information
• Leftmost digits are stored in the lower memory addresses. Treat the data in the lower memory
address as the leftmost digits when programming.
• Be sure that the data is read at least once every 125 ms to allow for the CPU Unit's cycle time
and communications time. Correct data may not be obtained if the read cycle is greater than
125 ms.

Programming Example

The following programming example shows how to use 2-decimal-place Mode for the following PLC
configuration.
CPU Unit
Inputs
CIO 000
CIO 001
Outputs
CIO 100
CIO 101
In this example, 100 times the temperature data for temperature input 0 (input to CIO 002) is stored
in binary form in D100 to D102.
Temperature input 0
CP1E CPU Unit Hardware User's Manual(W479)
8 Using Expansion Units and Expansion I/O Units
×16
×16
5
Flags
15
14
13
12
11 to 08
07 to 04
0
1
1
0
7
Error
°F
Leftmost
×16
×16
2
Flags
15
14
13
12
11 to 08
07 to 04
1
1
1
0
F
Error
°F
Rightmost
CP1W-TS001
Temperature Sensor Unit
Temperature unit setting:
Inputs
0 (°C)
CIO 002
CIO 003
Two-decimal-place Mode:
1 (2 digits after decimal point stored)
Outputs
None
CIO 2
Leftmost data
Rightmost data
Bit
15 14 13 12
×16
D100
3
×16
7
D101
D102
Always 0
Temperature Unit Flag (0: °C, 1: °F)
Open-circuit Flag (0: Normal, 1: Error)
×16
4
3
03 to 00
F
F
6
Flags
×16
1
0
03 to 00
F
F
E
Flags
W100
9
6
11 10
8
7
5
4
×16
×16
2
1
×16
×16
6
5
Always 0
Always 0
7
F
F
Temperature
data
F
F
F
Temperature
data
3
2
1
0
×16
0
×16
4
0
0
8
8-49

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents