Moxa IA3341-LX Инструкция по эксплуатации онлайн [69/72] 170917

Moxa IA3341-LX Инструкция по эксплуатации онлайн [69/72] 170917
IA3341 Linux User’s Manual Programmer’s Guide
6-14
AI mode setting. TC values are C/C++ short data types and in 0.1 data unit of Celsius or
Fahrenheit. A special TC value of 65535 (0xFFFF), which is -1 in C/C++ short data type, denotes
that nothing is connected to the TC channel while the TC channel is set to on. When the channel is
off, its channel value is meaningless. CJC (Cold-Junction Compensation) value could be read via
address 0x0006 of the Input Register and updated using CJC offset via address 0x0010 of the
Holding Register. The CJC value and offset value are in Celsius. A positive CJC offset value will
increment the CJC value and a negative one will decrement it. The CJC offset value is in C/C++
short data type to represent positive and negative values from -128 to 127. Once the CJC value is
updated via the CJC offset value, its effect is permanent. The CJC offset value gotten from
MODBUS TCP is reset at each boot.
(1) 3xxxx Input (Read Only) Registers (Function Code 4)
Address Data Type Description
0x0000 1 16-bit word Ch0 AI value in C/C++ float data type (Hi)
0x0001 1 16-bit word Ch0 AI value in C/C++ float data type (Lo)
0x0002 1 16-bit word Ch1 AI value in C/C++ float data type (Hi)
0x0003 1 16-bit word Ch1 AI value in C/C++ float data type (Lo)
0x0004 1 16-bit word Ch0 TC value in C/C++ short data type
Unit:0.1 (Celsius or Fahrenheit)
If the channel is set on, then its value 65535
(0xFFFF) denotes nothing connected to the channel.
0x0005 1 16-bit word Ch1 TC value in C/C++ short data type
Unit:0.1 (Celsius or Fahrenheit)
If the channel is set on, then its value 65535
(0xFFFF) denotes nothing connected to the channel.
0x0006 1 16-bit word CJC value in Celsius
(2) 4xxx Holding (Read/Write) Registers (Function Code 3, 6/16)
Address Data Type Description
0x0000 1 16-bit word Ch0 AI On/Off 0:Off 1:On (default)
0x0001 1 16-bit word Ch0 AI mode
0 : voltage mode (default) 1 : current mode
0x0002 1 16-bit word Ch1 AI On/Off 0:Off 1:On (default)
0x0003 1 16-bit word Ch1 AI mode
0 : voltage mode (default) 1 : current mode
0x0004 1 16-bit word Ch0 TC On/Off 0:Off 1:On (default)
0x0005 1 16-bit word Ch0 TC type
0:J type 1:K type (default) 2:T type 3:E type 4:R type
5:S type 6:B type 7:N type
0x0006 1 16-bit word Ch0 TC data unit
0: Celsius (default) 1: Fahrenheit
0x0007 1 16-bit word Ch1 TC On/Off 0:Off 1:On (default)
0x0008 1 16-bit word Ch1 TC type
0:J type 1:K type (default) 2:T type 3:E type 4:R type
5:S type 6:B type 7:N type
0x0009 1 16-bit word Ch1 TC data unit
0: Celsius (default) 1: Fahrenheit
0x0010 1 16-bit word Last CJC offset (Celsius) in C/C++ short data type
from -128 to 127 set since booted
Positive value to increment CJC and negative value
to decrement CJC

Содержание

Похожие устройства

Скачать