Omron DRT2 SERIES DEVICENET SLAVES - OPERATION MANUAL 04-2008 Operation Manual page 413

Devicenet slaves
Hide thumbs Also See for DRT2 SERIES DEVICENET SLAVES - OPERATION MANUAL 04-2008:
Table of Contents

Advertisement

Temperature Input Terminals
Sample Program
392
2. Consider the PLC's cycle time and communications time and make adjust-
ments if necessary so that the data read cycle is less than 125 ms. If the
data read cycle exceeds 125 ms, it will not be possible to read the correct
data.
Sample Program (for DRT2-TS04T or DRT2-TS04P)
The following sample program is a CS1 ladder program for use with a Temper-
ature Input Terminal operating in DRT1-compatible 1/100 display mode.
Temperature Input Terminal's Settings
Allocated words:
Display mode:
Operation
The input 0 temperature data is multiplied by 100 and stored in CIO 0030 to
CIO 0032, as shown in the following diagram.
15
to
12
×16
3
Word 30
×16
7
Word 31
Word 32
Degrees flag: 0 for ° C, 1 for ° F
Off-wire flag: 0 for normal, 1 for an off-wire error
The content of CIO 0030 and CIO 0031 is treated as 8-digit hexadecimal data.
330015
Leftmost digits
indicated.
330015
Rightmost digits
indicated.
04011
Negative data
indicated.
04011
Positive data
indicated.
CIO 3300 to CIO 3303
DRT1-compatible 1/100 display mode
11
to
8
7
to
4
×16
×16
2
1
×16
×16
6
5
MOV
Stores the leftmost 3 digits of data in CIO 0040.
3300
040
MOVD
3300
Transfers the rightmost 3 digits of data (16
#0020
2
030
16
digits) to CIO 0030.
MOVD
Transfers the 16
040
#0300
CIO 0030.
030
MOVD
Transfers the 16
040
#0011
through 7 of CIO 0031.
031
MOVD
If the data is negative, transfers FF to the
#00FF
#0210
leftmost two digits of CIO 0031.
031
MOVD
If the data is positive, transfers 00 to the
#0000
#0210
leftmost two digits of CIO 0031.
031
XFRB
Transfers the status of the degrees flag and
#021D
040
off-wire flag to CIO 0032.
032
Section 7-6
3
2
1
0
×16
0
×16
4
0
0
3
digit to bits 12 through 15 of
4
4
and 16
digits to bits 0
0
to

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Devicenet drt2-id08Devicenet drt2-id08-1Devicenet drt2-id16-1Devicenet drt2-od16Devicenet drt2-od08Devicenet drt2-md16 ... Show all

Table of Contents