Table of Commands V3.4

Table of Commands V3.4
Mnemomics
Parameters
Code
Description
System commands
Inf Frame
CMD_ECHO
CMD_INFO
CMD_GetVer
CMD_GetInfo
CMD_SetInfo
CMD_SetAdr
0x02 s
0x03
0x04
0x05
0x06 s
0x07 uc
// send echo
// send device identifier
// send device firmware version
// send device information
// write device information
// set network address
s
hhhh
s
s
CMD_StTel
CMD_get_PRM
CMD_set_PRM
CMD_I2C
0x40 uc hh hh
0x41
0x42
0x44 uc hh hhhh hh
// set telemetry status
// send parameters stored in FLASH (backup)
// receive parameters stored in FLASH (recovery from backup)
// operations with bus I2C
hh hh
uc
hh hh hh hh hh hh
1 №I2C HHHH Num – Read dev #I2C with address HHHH number Num bytes
hh hh
0 №I2C HHHH Num – Writ dev #I2C with address HHHH of one byte equal Num
CMD_Prog_T
0x45 0- W
Pg Ln
1- R
Pg Ln
2- Wst Pg St
3- Rst Pg St
// Managing of programs of change in time
Pg-number of program 0-15
Ln-nymber of line 0-49
St-program status 0-yes
elsewhise-no
uc uc uc f ud hh uc
CMD_get_Tel
CMD_Krt_OK
CMD_St_HW
CMD_Infs_Wk
CMD_Dig_Out
CMD_Dig_In
0x46
0x49
0x4a
0x4b
0x4d
0x4e
CMD_ClbrADC
CMD_ClbrK_ADC
CMD_Wr_K_ADC
CMD_Kfiltr
CMD_AskKADC
CMD_AskOfst
CMD_StartADC
CMD_Only_1
CMD_Sever
CMD_PGA
CMD_Polinom
№
№
№
№
№
№
№
№
hh
№
№
№
№
uc
uc
uc
f
e
uc
CMD_ask_Pol
CMD_saveTerm
CMD_loadTerm
CMD_get_TBL
CMD_set_TBL
0x10
0x11
0x12
0x13
0x14
0x15
0x16
0x17
0x18
0x19
0x1a
0x1a
0x1b
0x1c
0x1d
0x1e
0x1f
CMD_set_DAC
CMD_seth_DAC
CMD_Wr_K_DAC
CMD_AskKDAC
CMD_DAC_max
CMD_U_Treg
0x21
0x22
0x23
0x24
0x25
0x26
№
№
№
№
№
№
f
ud
ff
CMD_Pol_TEC
CMD_set_PID
CMD_ask_PID
CMD_setCurrT
CMD_askT_PID
CMD_strt_PID
CMD_tun_PID
0x30
0x31
0x32
0x33
0x34
0x35
0x36
№
№
№
№
№
№
№
uc
fff
№ uc uc f
uc uc uc
uc
uc hh
1/0
uc
uc
uc f
uc
uc
f
f
uc
[f]
uc f
hex
0x37
0x38
0x39
0x39
0x3b
0x3c
0x3d
0x3e
0x3f
0x51
0x53
0x54
№ uc uc
f
№ uc f ud
№ min max time
№
№
№
[#screen]
/ \
Mode
Pg
0 Interdiction of regulation
2 Т-regulation
3 Temperature maintenance (PID)
4 Constant voltage
// send telemetry line
// criterion of signal of settling
// status of devices in system
// set status to interface 0-232 0-BIN 0…4 9600-19200-38400-57600-115200
// enable of digital output
// control of digital intput
Commands of Work with ADC
// hardware calibration of ADC
// calibration of ADC (calculation of calibrating ADC coefficients)
// writing calibrating ADC coefficients
// writing ADC filter coefficient
// sending ADC conversion coefficient and filter coefficient
// sending ADC register of offset
// starting measurement in ADC channel
// measurements of one ADC channel (fast measurement)
// mask on ADC channels
// PGA of ADC thermistor channel
// writing thermistor polynomial order
// writing thermistor polynomial coefficients
// sending thermistor polynomial coefficient
// Save the Current Settings of Thermistor Input
// Restore Thermistor Input Settings
// Save Table of Thermistor Settings (backup)
// Restore Table of Thermistor Settings (Backup)
Commands of work with DAC
// setting DACs in Volts
// setting DACs directly (no control of limitations)
// writing DAC calibrating coefficients
// sending convertion coefficient and DAC max values
// writing max voltage
// voltage of T-regulation
Commands of work with PID controller
// setting of TEC polarity Off-0 Hot-1 Cool-2
// writing parameters of PID controller Kp Ki Kd
// sending parameters of PID controller Kp Ki Kd
// current thermistor 0-10uA 1-93uA
// sending/set setpoints of PID controller
// starting controll
// output parameters of PID controller (bits)
PID_tun_U
PID_tunTlmtr
PID_tunTc_rl
CMD_Zmetr
CMD_Zprmtr
CMD_Z_I
CMD_Z_I
CMD_Boot
CMD_set_LimT
CMD_get_LimT
CMD_ResZmtr
CMD_TecZmtr
CMD_PID_tun
CMD_REST
CMD_EKR
At the end the program line:
Temp Time hh Ln
0
1
2
uc uc uc f2 ud hh uc
hh hh hh
uc
uc hh
hh hh
hh e6 uc hh
hh hh hh hh
hh hhhhhhhh e6 e6
hh
hh
hh uc uc e6
hh
hh ud
hh ud
hh e6 e6 f2
hh f2
hh f6 f6 f6
hh uc
hh f2 f2 uc uc
hh hh
// (output either U or just polarity)
// (telemetry PID output)
// (T-regulation)
// starting Z-meter (number of channel; time of measurement; 1-only R)
// storage of Z-metering parameters (as reference)
// sending Z-meter current
// storage of Z-meter current (f-resistance on canal 0)
// start of regulation after restarting
mode; (PRG, U, T); time
// writing limiting temperatures
// sending limiting temperatures
// sending Z-metering results
// sending Z-metering parameters
// auto tuning PID
// reset controller
// control of indication board
s
e6
hh hh f2 ud
hh f2 f2 uc
hh f2 e2 f2
hh f2 e2 f2
s
Continuous
HL1
HL2
HL3
HL4
HL3
115200
57600
38400
57600
38400
9600
19200
3 1
4 2
Rate
(baud)
9600
SYM
19200
BIN
RS485
115200
WAKE
I2C
Light is off
Light is on
Pulsed
Off
The device is waiting for the reception of
commands (WAKE protocol) via the
interface RS-485
The device is waiting for the reception of
commands (WAKE protocol) via the
interface RS-232
The unprocessed data has arrived in the
device via the interfaces RS-232 or RS485 and there was an overflow of the
buffer intended for their storage
For the description of commands the command code and its parameters are specified. The following designations are used:
№ - number of ADC or number of TEC channel (of PID regulator) or number of DAC can be «0» or «1».
The following abbreviations are used for the of parameters depending on their:
ADC numbers measured parame
description
types
0
Supply voltage
uc unsigned char
integer decimal number
1
TEC1 voltage
ud
unsigned int
integer decimal number
2
TEC2 voltage
ul
unsigned long
integer decimal number
3
TEC1 current
e
float
floating point number
4
TEC2 current
f
float
floating point number
5
TEC1 temperature
s
string
line of symbols
6
TEC2 temperature
h
hex
hexadecimal number (0…9, A…F)
For the symbol mode these abbreviations determine a type and form of parameters. For the binary mode they only do a type of
parameters. The figure after "e" and "f" indicates a number of digits after the point (comma).
The LSB status byte (the last byte) value:
0x01
error EEPROM
0x02
unknown command
0x04
no ready data for telemetry (response)
0x08
ТЕС voltage at Z-metering does not drop for too long
0x10
error in parameters or command format
0x20
reception RS-232 buffer overfilling
0x40
reception RS-485 buffer overfilling
0x80
voltage supply error
Attention!!! The error of supply voltage (0x0080) is accompanied by switching-off of voltage converters. The error remains even after
voltage returning to allowable limits 12±10%.
0x01
0x02
0x04
0x08
0x10
:
The MSB status byte value
TEC1 temperature is beyond the limitations
TEC2 temperature is beyond the limitations
TEC1 temperature is within the setting
TEC2 temperature is within the setting
Command performance is interrupted