Академический Документы
Профессиональный Документы
Культура Документы
ДОПОЛНЕНИЕ
ВВЕДЕНИЕ INTRODUCTION
Это дополнение к инструкции по эксплуатации This is the operative manual addendum for DMK
для мультиметров DMK с цифровыми выходами и multimeters with programmable digital outputs and
с изолированным серийным портом RS-485. insulated RS-485 serial interface.
Технические характеристики цифровых выходов и The technical characteristics for digital outputs and
интерфейса RS-485 описаны в инструкции по RS-485 interface are specified on the operative
эксплуатации. manual.
ПРОГРАММИРОВАНИЕ PROGRAMMING
Каждый цифровой выход может быть Each digital output can be assigned to one of the
запрограммирован в соответствии с величиной measures given by the instrument. Two thresholds
измерения. К измерению могут быть приложены 2 that will define the tripping point can then be applied
предела. Технический критерий зависит от to the measure. The operating criteria depends on
выбранной доступной функции, которые описаны the function selected among the four available that
ниже. will be explained in the sections below.
Программирование осуществляется уставкой All the settings are done by the specific setup
специфических параметров. parameters.
Заводская установка параметра P.31 –Выкл, что The factory setting for parameter P.31 is OFF, that
означает что данная функция отключена. Для means that the measure is disabled. To enable this
подключения этой функции установите корректные function , the user must set the correct rated
величины. values.
ТАБЛИЦА ПАРАМЕТРОВ
ПАР Функция Предел По умол PARAMETERS TABLE
P.41 Адрес 1 † 255 1 PAR Function Range Default
P.41 Address 1 - 255 1
OFF
1200 OFF
2400 1200
P.42 Скорость 9600
4800 2400
P.42 Baud rate 9600
9600 4800
19200 9600
19200
0 - нечет
P.43 Четность 1 - контр четности 0 0 - No parity
2 - не контроль P.43 Parity 1 - even parity 0
2 - odd parity
0 - ASCII
P.44 Протокол 1
1 - RTU 0 - ASCII
P.44 Protocol 1
0 – не автоответ. 1 - RTU
P.45 Модем 0
1 - автоответ. 0 - no auto response
P.45 Modem 0
0 – 7 бит 1 - auto response
P.46 Бит в байте 1
1 – 8 бит 0 – 7 bit
P.46 Bit for Байта 1
1 – 8 bit
ФУНКЦИЯ 04: ЧТЕНИЕ ВХОДНОГО РЕГИСТРА FUNCTION 04: READ INPUT REGISTER
Функция 04 позволяет читать одно или более The Modbus® function 04 allows to read one or
измерений с памяти прибора. В этом случае more consecutive measures from the slave
каждое измерение определено как длинное целое memory. In this case, each measure is defined as
число длиной 2 регистра (4 байта). Это позволяет „unsigned long‟, so it has a length of 2 registers (4
читать до 30 последовательных измерений. байтаs). It is possible to read up to 30 consecutive
Адрес каждого измерения показан в таблице 2. measures.
Согласно стандарту Modbus®, адрес в запросе The address of each measure is given in Table 2
должен быть уменьшен на один по сравнению с (see following pages). As for Modbus® standard,
реальным адресом указанным в таблице. the address in the query message must be
Если адрес измерения не включен таблицу или decreased by one from the effective address
превышает 30- мультиметр вернет сообщение с reported in the table.
кодом ошибки (см таблицу ошибок). If the measure address is not included in the table
or the number of requested measures exceeds 30
Запрос пользователя: the multimeter will return an error code (see error
Адрес прибора 08h table)
Функция 04h Master query:
MSB адрес 00h Slave address 08h
LSB адрес 09h Function 04h
MSB номер регистра 00h MSB address 00h
LSB номер регистра 08h LSB address 09h
MSB CRC 21h MSB register number 00h
LSB CRC 57h LSB register number 08h
В приведенном выше примере у прибора 08 MSB CRC 21h
запрашивается 8 последовательных регистров
начиная с адреса 10h. Таким образом регистры с LSB CRC 57h
10h по 17h будут возвращены. Ка к обычно In the above example slave 08 is requested for 8
сообщение заканчивается суммой CRC. consecutive registers beginning with address 10h.
Thus, registers from 10h to 17h will be returned. As
usual, the message ends with the CRC checksum.
Ответ также содержит адрес прибора,код The response is always composed of the slave
функции запрошенной пользователем и address, the function code requested by the master
содержание запрашиваемых регистров. В конце and the contents of the requested registers. The
стоит сумма CRC. answer ends with the CRC.
Сообщение пользователя:
Master message:
Адрес прибора 08h
Slave address 08h
Функция 06h
Function 06h
MSB адрес регистра 20h
MSB register address 20h
LSB адрес регистра 01h
LSB register address 01h
MSB данные 00h
MSB data 00h
LSB данные 0Ah
LSB data 0Ah
MSB CRC 53h
MSB CRC 53h
LSB CRC 54h
LSB CRC 54h
В этом сообщении пользователь хочет установить
регистр 2 (коэфф TA) величина 10 (т.е. 1.0). In the above message, the master wants to set the
register 2 (CT ratio) to value 10 ( i.e. 1.0).
Ответ прибора:
Отклик прибора происходит посылкой
пользователю сообщение с новой величиной Slave response:
измененных параметров. The slave response is an echo to the query, that is
the slave sends back to the master the address and
the new value of the variable.
В следующей таблице показаны режимы прибора The following table gives the meaning of the status
после запроса пользователя: байта sent by the multimeter as answer:
Запрос пользователя.
Адрес прибора 08h Master query.
Функция 11h Slave address 08h
MSB CRC C6h Function 11h
LSB CRC 7Ch MSB CRC C6h
LSB CRC 7Ch
Поле адреса содержит серийный адрес The Address field holds the serial address of the
назначенного прибора. slave destination device.
Поле функции содержит код функции которая The Function field holds the code of the function
должны быть выполнена. that must be executed by the slave.
Поле данных содержит данные посылаемые The Data field contains data sent to the slave or
или получаемые прибором. data received from the slave in response to a query
Поле LRC позволяет пользователю и
управляемому прибору проверять целостность The LRC field allows the master and slave
сообщения. Если сообщение испорчено помехами devices to check the message integrity. If a
или вмешательством, поле LRC опознает ошибку message has been corrupted by electrical noise or
и игнорирует сообщение. interference, the LRC field allows the devices to
recognize the error and thereby ignore the
Сообщение заканчивается контрольной message.
характеристикой CRLF (0D 0A). The message terminates always with CRLF
control character (0D 0A).
ФУНКЦИИ MODBUS®
Доступны следующие функции: MODBUS® FUNCTIONS
The la
Consente available functions are:
lettura delle
04 = Read input Позволяет чтение
misure 04
disponibili nel Allows to read the multimeter
register измерений мультиметра = Read input
multimetro. measures.
register
06 = Preset single Позволяет установку Permette di modificare i
register параметров 06 del
parametri = Preset
setup single Allows to set the setup
Позволяет чтение режима Permette register
di leggere lo stato parameters
07 = Read exception
прибора 07 = Read exception
dello strumento Allows to read the device
Permette di modificare più status
16 = Presetù multiple Позволяет установку более
parametri Allows to set more than one
register чем 1 параметра 16 del setup multiple
= Preset
contemporaneamente parameter at the same time.
register
Permette di leggere
Позволяет чтение
17 = Report slave ID informazioni relative al Allows to read information
информации о приборе 17 = Report slave ID
multimetro about the multimeter.
Пример:
Например, для чтения величины эквивалентного Example:
межфазного напряжения (10 Hex) на мультиметре For instance, to read the value of the equivalent
с адресом 08, сообщение выглядит следующим phase-to-phase voltage, which resides at location
образом: 16 (10 Hex) from the multimeter with serial address
08, the message to send is the following:
: 08 04 00 0F 00 02 E3 CRLF
: 08 04 00 0F 00 02 E3 CRLF
БИТ ЗНАЧЕНИЕ The following table gives the meaning of the status
байта sent by the multimeter as answer:
0 Нормальная работа
1 Базовые настройки BIT MEANING
2 Расширенные настройки 0 Normal operation
4 Полож реле 1 (0=off 1=on) 1 Basic setup enabled
5 Полож реле 2 (0=off 1=on) 2 Extended setup enabed
4 Relay 1 status (0=OFF, 1= ON)
5 Relay 2 status (0=OFF, 1= ON)
Запрос пользователя.
: Master query:
Адрес прибора 08 :
Функция 11 Slave Address 08
LRC C6 Function 11
CRLF LRC C6
CRLF
Ответ прибора:
: Slave response:
Адрес прибора 08 :
Функция 11 Slave Address 08
Номер байта 04 Function 11
Данные 1 20 Байта number 04
Данные 2 28 Data 1 20
Данные 3 21 Data 2 28
Данные 4 2B Data 3 21
LRC 4F Data 4 2B
CRLF LRC 4F
CRLF
Il Данные1 показывают тип прибора, Данные2 –
версия программного обеспечения. Data1 represents the multimeter type while Data 2
Il Данные 3 и 4 проверочная сумма . the software revision.
Data 3 and 4 represent checksum.
Эти измерения не видны на экране прибора These measures are not viewed on the multimeter displays.
Продолжение Continued
ТАБЛИЦА 3: TABLE 3:
ПАРАМЕТРЫ УСТАНОВКИ SETUP PARAMETERS
ТАБЛИЦА 4: TABLE 4:
КОМАНДЫ COMMANDS
Nr. АДРЕС WORDS КОМАНДА COMMAND VALORE FORMATO
No. ADDRESS VALUE FORMAT
Сброс счетчика энергии Clears energy meters 1
Сброс функции Выс Clears HIGH function values 2 Unsigned integer
1 2400h 1
Сброс функции Низ Clears LOW function values 3
Сброс функции Макс Clears MAX function values 4
Сброс выхода1 Resets digital output 1 1
2 2402h 1 Unsigned integer
Сброс выхода 2 Resets digital output 2 2
3 2404h 1 Сброс мультиметра Resets multimeter 1 Unsigned integer
4 2406h 1 Сохранение параметров в памяти Save parameters into Eeprom 1 Unsigned integer
5 2502h 1 Откат параметров Default parameters 1 Unsigned integer
Contaimpulsi
(Ingresso a contatto)
Counter 50ms
(Contact Input)
123456
Alimentazione
Supply esterna
External
supply
DMK61/62
Contaimpulsi
(Ingresso a contatto) SG B A TR SSR C NO NC
Counter 50ms
(Contact Input)
123456
Alimentazione
Supply esterna
External
supply
DMK31/32
PC
TR A B SG NC NO C TR A B SG NC NO C TR A B SG
RS485 RS485
RELAY AC-DC RELAY AC-DC
SSR SSR
PC
TR A B SG TR A B SG TR A B SG NC NO C TR A B SG TR A B SG TR A B SG NC NO C TR A B SG
RS485 RS485