Home

ModBus RTU - Comet System, s.r.o.

image

Contents

1. AOK Device response error lt old address gt Err lt CR gt example BErr lt address gt character from A to Z or a to z except of T and t lt CR gt character OxD or 13 dec End Of Line 22 IE SNC ProtocolsTxxxx 08 Address change with using of command T lt new address gt is permitted for first ten seconds after power up only Trying to change address latter brings write error message protection of random address change during activity This command can be used when the communication bus is connected with one device only no other devices connected to bus Device identification Request for device type T lt address gt example TA Device response lt address gt lt Identification gt lt cr gt example A T7410 0233 23 lt Identification gt Txxxx device type 0233 FW version lt CR gt character OxD or 13 dec End Of Line IE SNC ProtocolsTxxxx 08 Setting of device with Hyperterminal There is possible to set some settings of device with digital communication interface RS232 RS485 with Hyperterminal without user s software Each new setting of device parameters is stored in its internal memory If modification of device setting is needed communication protocol its parameters setting of LCD display it is recommended to use of User s software available at www cometsystem cz providing all settings of the device parameters or proceed in following w
2. device type gt 0 gt pe temperature temperature relative humidity computed value temperature pressure temperature relative humidity computed value pressure pressure ID COD ID EICH D Zi D lt Cora oa l t ro ale ae ron SIE Alp Berle WIB wlw Jumper e Its placement is described at user s manual of the device If jumper is closed and the button is pressed for longer than six seconds then factory default of communication protocol is done it is Modbus RTU protocol device 21 IE SNC ProtocolsTxxxx 08 address 01 and communication speed 9600Bd dEF text is blinking at LCD after button is pressed six second latter it stays on communication factory default is done Description of supported commands Examples are for device with measuring of temperature relative humidity computed value and pressure with address set to A Read temperature Request for temperature T lt address gt I example TAI Device response lt address gt lt teplota gt lt CR gt example A 020 5C Device response error lt address gt Err lt CR gt example AErr lt address gt character from A to Z or a to z except of T and t lt CR gt character OxD or 13 dec End Of Line lt temperature gt syntax A 020 5C Read humidity Request for humidity T lt address gt I example TBI Device response lt address gt lt humidity gt lt CR gt example B062 1 De
3. its function is the following e If jumper during switching ON the power is closed device always communicates with following parameters regardless stored setting in the device communication speed 9600 Bd without check sum device address 00h e If jumper during switching ON the power is not closed device communicates in accordance with stored setting e Ifjumper is closed during device operation device temporarily changes its address to OOh it will communicate in the same communication speed as before closing jumper and will communicate without check sum After jumper is opened setting of address and check sum is reset in accordance with values stored in device e Communication speed and check sum are possible to change only if jumper is closed see chapter Configuration of device e Since firmware version 02 31 included devices support temperature measurement in C or F and all with pressure measurement Jumper closed and button pressed for longer than six seconds causes restoring of manufacturer setting of communication protocol i e sets Modbus RTU communication protocol device address sets to 01h and communication speed to 9600Bd after button press there is dEF message blinking at LCD display Six seconds later message dEF stays shown it means manufacturer setting of communication protocol is done Older FW versions DON T support this feature e Since firmware version 02 60 ADAM AA command support added
4. 10 code of command setting more 16 bit registers 20 00 initial address 00 40 number of write registers 80 number of Bytes of sent data 61 22 CRC of Modbus After successful writing to the device device responds 01 10 20 00 00 40 CA 39 still with old address at original communication speed and after response it sets to new values In case of different number of data or incorrect check sum of the entire area writing to device is not performed Exception Responses After sending query to the device master device waits for normal response After master device query one of the following events can occur 1 If device receives a query without communication error and query is possible to process master device receives response 11 IE SNC ProtocolsTxxxx 08 2 If device does not receive all queries due to communication error no response is sent Main program is able to process condition of exceeding of time for query 3 If device receives a query but detects communication error CRC no response is sent Main program is able to process condition of exceeding of time for query 4 If device receives a query without communication error but cannot process it master device receives exception response which informs master device on error nature Exception Response has two fields to distinguish it from normal response 1 Function code field 2 Data field ad1 Function code field In normal response of slave device function code o
5. at once Command supported since FW version 02 60 used i e in ADAM OPC Server version 3 01 Syntax command AAcr Response gt temperature relative humidity dew poin temperature absolute humidity specific humidity mixing ratio specific enthalpy pressure CO gt concentration cr if the value is supported used units by device configuration Data format gt EXxx xOEXXXx XOEXXX XOEXXX XOEXXX XOEXXX XOEXXX XO Cr Respectively for devices with pressure or CO concentration PEXXX XOEXXX XOEXXX XOEXXX XOEXXX XOEXXX XOEXXX X0 XXXX X hPa XX XXx PSI LO vr inHg xxxx x mBar XXXx X 0z in2 XXXx xX mmHg xxxx x inH20 xxx xx kPa xxxxx C02 Response example for request 01 cr gt 030 20 033 90 012 60 010 40 009 40 009 50 054 70 0969 8 cr 14 IE SNC ProtocolsTxxxx 08 Reading of the temperature Syntax command AA0 cr Response gt temperature cr e g gt 012 30 cr Data format gt xxx x0 cr Reading of humidity Syntax command AAlcr Response gt humidity cr e g gt 044 30 cr Reading of computed value Syntax command AA2cr Response gt computed value cr e g gt 004 30 cr Data format gt xxx x0 cr Reading of atmospheric pressure Syntax command AA3cr Response gt atmospheric pressure cr e g gt 1013 2 cr Attention Atmospheric pressure is stored in next format depends on selected unit Unit Format Example h
6. for multi channel devices It returns all measured values at once It is used by ADAM OPC server 3 01 module 4017 in example General syntax of commands distinguishing character device address command data check sum CR Valid distinguishing characters towards to device are Device address contents 2 ASCII bytes in hexadecimal code upper case letters representing one byte of binary address e g 3 F corresponds to address 3Fh i e 63 is sent as 0x33 0x46 Check sum enabled to switch ON switch OFF CR 1 byte ODh 13 IE SNC ProtocolsTxxxx 08 Description of supported functions Command for devices with temperature OR atmospheric pressure OR CO measurement ONLY Reading of temperature OR atmospheric pressure Syntax command AAcr Response gt temperature pressure CO gt cr e g gt 012 30 cr Data format temperature humidity computed value gt xxx x0 cr pressure Unit Format Example hPa gt xxxx x cr gt 1013 1 PSI gt xXx xxx cr gt 14 123 inHg gt xXxx xx cr gt 028 12 mBar gt xxxx x cr gt 1013 1 oz in gt XxXxx x cr gt 0225 1 mmHg gt xXxxx x cr gt 0728 1 inH O gt xXxxx x cr gt 0380 1 kPa gt xxx xx cr gt 101 12 CO gt xxxxx cr Commands for combined devices with temperature and or relative humidity and or atmospheric pressure and or CO measurement Reading of all measured values
7. 00 31 00 01 D5 C5 Received response from device 01 03 02 01 6C B9 F9 device address OI reading 16 bit registers 03 Number Byte 02 State of register Hi Ol State of register Lo 6C 0x016C i e 364 i e 36 4 WRH Modbus CRC Lo B9 Modbus CRC Hi F9 Reading of computed value address 0x0033 Modbus command device address 01 reading 16 bit registers 03 initial address Hi 00 initial address Lo 33 number read registers Hi 00 number read registers Lo ol Via link is physically sent 01 03 00 32 00 01 25 C5 Received response from device 01 03 02 FF 3E 78 64 device address ol reading 16 bit registers 03 Number Byte 02 State of register Hi FF State of register Lo 3E OXFF3E i e 194 i e 19 4 Modbus CRC Lo 78 Modbus CRC Hi 64 Reading of all values at once address block 0x0031 to 0x0033 Modbus command device address 01 reading 16 bit registers 03 initial address Hi 00 initial address Lo 31 number read registers Hi 00 number read registers Lo 03 Via link is physically sent 01 03 00 30 00 03 05 C4 7 IE SNC ProtocolsTxxxx 08 Received response from device 01 03 06 FF C4 01 14 FF 38 C5 71 device address 01 reading 16 bit registers 03 Number Byte 06 State of register Hi FF State of register Lo C4 OXFFC4 i e 60 i e 6 0 C State of register Hi ol State of register Lo 14 0x0114 i e 276 i e 27 6 RH State of register Hi FF State of register Lo 38 0xFF38 i e 200 i e 20 0 C Modbus CRC L
8. 1 to 819 0 limit values are reserved for over range or error states indication where 819 2 Error2 819 1 Errorl Application setup follows Bipolar converter Yes Range 8192 EIMin 8192 ElMax 8191 PhysMin 819 2 PhysMax 819 1 0x58 8 analog values by 21 bit Similarly as 0x56 range of values is from 999 9 to 999 9 except of atmospheric pressure Limit values are reserved for over range or error states indication For atmospheric pressure there is the 999 9 right value no error and corresponds to atmospheric pressure There is not necessary to add any offset to pressure value maximal value is 1999 9 For detailed protocol description see ARION protocol description at www amit cz Actual adjusted address of device is available by press of button next to connection terminals jumper should be opened Then device displays its address on LCD display at decimal base Next press of button exits this mode and actual measured values are displayed While address shown device don t communicate 7 Selection of computed value type is provided by User s Software 20 IE SNC ProtocolsTxxxx 08 Communication with HWg Poseidon units This communication protocol is supported by Txxxx series since Firmware version 02 33 included and newer Protocol restrictions Measured temperature is transferred always at C doesn t support F next conversion from C to F is possible inside of HWg Poseidon unit Computed val
9. 24 cr Example 2 Reading of temperature from device with temperature measurement only without closed jumper device address Olh without check sum without check sum Command 01 cr Response gt 020 50 cr with check sum Command 01 84 cr where it is sent 23 30 31 38 34 0D calculation of CRC 23h 30h 31h 84h then CRC 84h it is sent as 0x38 0x34 Response gt 020 50 8E cr where it is sent 3E 2B 30 32 30 2E 35 30 38 45 0D calculation of CRC 3Eh 2Bh 30h 32h 30h 2Eh 35h 30h 18Eh then CRC 8Eh then it is sent as 0x38 0x45 Example 3 Reading of temperature from combined device temperature and relative humidity measurement without closed jumper device address 01h without check sum Command 010 cr Response gt 020 50 cr with check sum Command 010 B4 cr where it is sent 23 30 31 30 42 34 0D calculation of CRC 23h 30h 31h 30h B4h then CRC B4h it is sent as 0x42 0x34 Response gt 020 50 8E cr where it is sent 3E 2B 30 32 30 2E 35 30 38 45 0D calculation of CRC 3Eh 2Bh 30h 32h 30h 2Eh 35h 30h 18Eh then CRC 8Eh then it is sent as 0x38 0x45 Example 4 Setting of device to address OP communication speed remains 9600 Bd check sums are switched ON jumper should be closed because setting of CRC will be changed with jumper device always reports from address 00 without CRC Command 009F2C0640 cr Response 100 After jumper is opened device address changes t
10. A cr this state appears if we try to change communication speed and check sum and jumper is not closed 3 If command is executed device responds AA cr Check sum CRC It is the sum of all characters before it its lowest byte is applied How to read device s unit setting from master device If you have installed devices into your system and you need to read device s unit setting for temperature C or F or for pressure hPa PSI inHg mBar oz in mmHg inH O or kPa it is possible with Modbus protocol only It is necessary to read from Modbus address 0x203F 8255 dec Received value can discover unit setting by next rules e Combination of the two lowest bits Bit and Bit describes temperature setting 0 C 1 F 2 and 3 not used yet e Combination of Bits 2 3 and 4 describes pressure unit 0 hPa 1 PSI 2 inHg 3 mBar 4 oz in 5 mmHg 6 inH2O 7 kPa For example received value is 0x0000 it means hPa and C 0x0015 it means mmHg and F 0x001C it means kPa and C Examples of communication Example 1 Change of device address during operation without closed jumper CRC switched OFF Device which had address 23h is configured to address 24h speed 9600 Bd without CRC setting of communication speed and CRC must not change setting 17 IE SNC ProtocolsTxxxx 08 of communication speed and CRC is not possible to change without closed jumper Command 23242C0600 cr Response 1
11. Description of communication protocols of Tx3xx and Tx4xx transmitters with RS232 and RS485 communication interface Description for firmware version 02 60 Table of content DESCRIPTION OF COMMUNICATION PROTOCOLS ccssssssssoeee 4 MODBUS CNN E 4 SUpport ed Eed eege Eet Eeer 4 EE 4 Modbus E 5 Example of commumi cation se usriosiieonassonii eiet oiei ea iai aen eiii aiaiai 6 Reading of temperature address OUT 6 Reading of relative humidity address SOU 7 Reading of computed value address UO 7 Reading of all values at once address block 0x0031 to OX0033 00 eee eeeeseecneecneecneeceseeneeens 7 Description of supported JURCHON st zcn ccs cri Wer caeiienca tt copier mealies ates amp 03 0x03 Reading of 16 bit registers Read Holding Register 8 04 0x04 Reading 16 bit input gates Read Input Regteterz eee eseesecseecesecesecnseeeeeens 9 16 0x10 Setting of several 16 bit registers Write Multiple Registers 0 0 0 eeeeeeeeseeeeee 9 Exception RESPONSES EE 11 EXCeptlon COdES 223355 sss ra ole hoes eae Eed ee SR ea Le ei ets 12 deen ee ee 12 Procedure during calculation of Modbus CRU 12 PROTOCOL COMPATIBLE WITH ADVANTECH ADAM STANDARD 13 ENEE ee 13 General syntax EE 13 Description of supported functions e ee EE Ee 14 Command for devices with temperature OR atmospheric pressure OR CO measurement DII D EE 14 Reading of temperature OR atmospheric pressure eeseseeseeseseesseesreseesreste
12. Pa gt XXxx x cr gt 1013 1 PSI gt XX xxx cr gt 14 123 inHg gt xXxx xx cr gt 028 12 mBar gt XxXxx x cr gt 1013 1 oz in gt xxxx x cr gt 0225 1 mmHg gt xXxxx x cr gt 0728 1 inH O gt Xxxx x cr gt 0380 1 kPa gt XxXxX xx cr gt 101 12 Reading of CO Syntax command AA3cr Response gt CO concentration cr e g gt 01200 cr Data format gt XXXXX cr Depends on the device type and setting If the value is not supported returns still AA cr Depends on device setting Use User s software TSensor Error states gt 0000 cr lower limit of temperature error in measurement of humidity computed value atmospheric pressure CO2 measurement or startup initialization is in progress up to 20s after power up gt 9999 cr upper limit of temperature error in measurement of humidity and computed value Is NOT used for atmospheric pressure and CO error alarm 15 IE SNC ProtocolsTxxxx 08 Commands common for all device types Query to adjusted configuration Syntax command AA2 cr Response AATTCCFF cr symbols correspond with paragraph Configuration of device Reading of device name Syntax command AAM cr Response AATxxxx cr 01T3411 er accordingly with device model Reading of firmware version Syntax command AAF cr Response AA version cr reads version number of device firmware Configuration of device Syntax of command AANNTTCCFF cr Meaning of symbols AA
13. S steet gege e ee gees 22 Read temperature coner eire ee eet EE e RE EE O A E E E a a bitters 22 Read mcdo oie eae ee ee e E ne ey ee eee 22 Read computed valu nenii enn Seine cle ais Gi lal eet ee 22 Read pressures ue NES 22 Change of device address csatorna scent anea ee posed Gani oon eet ated Ee 22 Kee ua lee EE 23 SETTING OF DEVICE WITH HYPERTERMINAL essessesseesseneeee 24 3 IE SNC ProtocolsTxxxx 08 Description of communication protocols Devices of Txxxx series with RS485 and RS232 serial interface support to select one of the communication protocols described lower Devices are preset from the manufacturer to Modbus RTU communication protocol If you would like to use different communication protocol then Modbus RTU it is necessary preset them through user s software Use user s software Tsensor for setting of all device parameters recommended It is free to download at www cometsystem cz It supports make the adjustment of the device too This procedure is described at file Calibration manual pdf which is installed commonly with the software Change of some parameters is possible to do without user s software with Windows Hyperterminal change of communication protocol its parameters LCD display setting It is described at the end of this document Modbus RTU Control units communicate on master slave principle in half duplex operation Only master can send request and only addressed device respo
14. a Modify content corresponding to addresses 0x2001 and 0x2002 in master device as required Setting of the other values should not be changed Calculate new check sum of entire area i e sum of 16bit values corresponding to values at addresses 0x2001 to 0x2039 and store lowest 16 bits to position corresponding to address 0x2040 Write such modified area together from master device to addresses 0x2001 to 0x2040 Open jumper Example Device with address 01h communication speed 9600Bd to change to address 9Fh and 115200Bd For data area reading the following is sent via link 01 03 20 00 00 40 4F FA 0l device address 03 command for reading of 16 bit registers 20 00 initial address sent address is indexed from zero during Modbus request for reading of address 0x2001 physically is sent 0x2000 via link 00 40 read 64 registers 0x40 i e 128 Byte 4F FA CRC of Modbus response of the device is 01 03 80 00 01 01 B5 00 00 30 30 3B 4B 77 D3 BD 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 70 00 00 86 2A 00 00 84 44 AA 80 85 07 A8 DO 57 7E 5F 94 F3 DC 00 12 2E DD 78 OC 40 AA 77 D3 F2 C4 00 12 17 78 77 F5 F3 EC 00 12 ED BF 77 D5 4F 10 77 D8 FF FF FF FF 40 DE 77 D3 2E F7 78 OC 06 5C 00 01 00 00 00 00 F3 DC 00 12 42 9F 53 2D 2C 8C 10 IE SNC ProtocolsTxxxx 08 0l device address 03 code of command reading 16 bit registers 80 number of Bytes of response 0x80 i e 128 By
15. ay support only basic setting e Connect device with PC for devices with RS485 interface use converter RS485 RS232 with automatic switching control e Run program HyperTerminal on your computer it is a part of Windows operating system Start Program Files Accessory Communication HyperTerminal and set transmission parameters Le enter name of new connection e g Transmitter press button OK window Connect appears In field Connect by means of select COM port which device is connected to e g COM1 and press OK In following window COM1 Features enter to field Port Settings Bits per second 9600 Bits per second 3600 DI Data bits 8 Data bits fe H Parity None Parity None zs Number of stop bits 1 Stopbits 1 o Flow control None Flow control DES Continue by pressing OK Restore Defaults e Select item File Features in menu Select bookmark Setup in the window click on ASCII Setup and modify all items in accordance with following figure and press OK During writing to device memory no power failure should appear Such failure can cause damage of other settings stored in the device 24 IE SNC ProtocolsTxxxx 08 25 ASCII Sending l Send line ends with line feeds MV Echo typed characters locally Line delay fo milliseconds Character delay fo milliseconds ASCII Receiving Ap
16. current address of device 00 FF hexadecimal NN new address of device 00 FF hexadecimal TT code of device 2Bh devices with temperature OR atmospheric pressure measurement ONLY 2Ch combined devices of temperature and or humidity and or atmospheric pressure CC code of communication speed FF data format and check sum D7 D6 Ds D4 lo D2 D1 DO xxxx XxX00 format Engineering units xOxx xx00 check sum switched OFF x1xx xx00 check sum switched ON e Communication speed and check sum are possible to change only if jumper is closed o Change in communication speed activates only after device power is switched OFF and switched ON again 16 IE SNC ProtocolsTxxxx 08 o Change in setting of check sum activates immediately after jumper is opened e If address is changing o and jumper is closed device responds with address 00h again and newly set address will be activated after jumper is opened o and jumper is not closed change is activated immediately e If attempt occurs to write incorrect data to the device and syntax is correct device responds with error message Response of the device 1 If syntax of command is not correct device does not respond at all e g no check sum is received though it is switched ON check sum is not correct string is not complete or contents invalid character 2 If syntax is correct but required operation is not correct device returns error message in format A
17. epeat steps 3 and 4 as long as eight shifts proceed After eight shifts eight bit Byte is processed 6 Repeat steps 2 to 5 to the next of eight bit Byte of message as long as all Bytes are proceeded 7 In the end after processing of all message Bytes check sum value is stored in CRC register 8 During connection of check sum to the message lower Byte of CRC register is sent as first then upper Byte of CRC register 12 IE SNC ProtocolsTxxxx 08 Protocol compatible with Advantech ADAM standard Control units communicate on master slave principle in half duplex operation Only master can send requests and only addressed device responds During sending request any of slave devices should respond During communication data is transferred in ASCII format in characters Each Byte is sent as two ASCII characters value Ox2F is sent as pair of characters 0x32 0x46 i e characters 2 and Ei All commands and values MUST be entered in CAPITAL LETTERS Device supports communication speed from 1200Bd to 115200Bd parameters of communication link are 1 start bit eight bit data word LSB first 1 stop bit without parity Commands for reading of measured values are different for devices with temperature measurement only and for combined devices with temperature and relative humidity measurement see later Jumper Its location is described into User s manual If communication protocol compatible with standard Advantech ADAM is selected
18. f original query corresponds to function code of response All function codes have most significant bit MSB equal to 0 In exception response slave device sets most significant bit of function code to 1 Main station recognizes exception response by means of this bit and can check data field for exception code ad2 Data field Device returns exception code in exception response in data field Event causing exception is determined this way Exception codes 0x01 Invalid function Function code in query is not allowed action for device 0x02 Invalid data address Data address received in query is not allowed address for device Modbus CRC Check sums of entire Modbus messages are mostly automatically inserted to the end of request by communication programs themselves In case there is a need to insert to generate Modbus CRC to program itself the way of calculation is as follows Procedure during calculation of Modbus CRC 1 To fill 16 bit register with value OxFFFF all bits set to 1 Let us call this register CRC register 2 Perform logic function Exclusive OR with first eight bit message Byte with lower eight bits of CRC register Store result to CRC register 3 Shift content of CRC register of one bit to the right towards to LSB enter 0 as upper bit of CRC Memorize values of lowest shifted bit LSB 4 If LSB was 0 then repeat step 3 other shift If LSB was 1 then perform Exclusive OR CRC register with value 0xA001 5 R
19. nalog values by14 bit 0x58 data 8 analog values by 21 bit 0x80 Address Response Request 0x80 Since firmware version 02 31 included Stop Jumper and button Start of frame End of frame devices support temperature measurement in C or F and all with pressure measurement 19 IE SNC ProtocolsTxxxx 08 Jumper closed and button pressed for longer than six seconds causes restoring of manufacturer setting of communication protocol i e sets Modbus RTU communication protocol device address sets to 01h and communication speed to 9600Bd after button press there is dEF message blinking at LCD display Six seconds later message dEF stays shown it means manufacturer setting of communication protocol is done Older FW versions DON T support this feature Supported function description 0x24 MODE Set mode Device supports next modes 0x00 0x01 Simplex 0x02 0x03 Half Duplex over RS232 RS485 line Lost of connection detection Guard time is always set to zero it means lost of connection is not detected guard time value sent by command is not important it is not checked 0x56 24 analog values by 14 bit The values are sent in data sequence temperature relative humidity computed value the rest values are always zero Range of all values is restricted from 819 2 to 819 1 For atmospheric pressure value it is necessary to add 300hPa offset to read value Right values are into range from 819
20. nds During sending of request no other slave station should respond During communication data transfer proceeds in binary format Each Byte is sent as eight bit data word in format 1 start bit data word 8 bit LSB first 2 stop bits without parity Device supports communication speed from 110Bd to 115200Bd Available address range is from 0 to 255 address 0 is reserved for broadcast and device doesn t send reply for it For more detailed communication protocol description see www modbus org Supported functions 03 0x03 Reading of 16 bit registers Read Holding Registers 04 0x04 Reading of 16 bit input gates Read Input Registers 16 0x10 Setting of more 16 bit registers Write Multiple Registers Jumper and button Jumper and button are located next to connection terminals If communication protocol Modbus is selected the function of jumper and button is as follows e Jumper opened device memory is protected from writing from device side it is only enabled to read measured value writing to memory is disabled no change of device address communication speed and LCD setting is enabled e Jumper closed writing to device memory is enabled by means of User s software or function 76 0x10 Setting of several 16 bit registers Write Multiple Registers e Up to device firmware version 02 30 devices support temperature measurement in C only don t support F o Jumper closed and button pressed for longer
21. o 9Fh 18 IE SNC ProtocolsTxxxx 08 Format of data Device uses data format Engineering units i e fixed decimal point Temperature humidity and computed value are displayed with 2 digits behind decimal point second digit behind decimal point is always zero Atmospheric pressure display depends on selected pressure unit see command description for Reading of atmospheric pressure on page 15 CO values are at gt xxxxx format General writing gt xxx x0 cr except of pressure and CO2 Examples gt 050 20 cr gt 000 00 cr gt 025 80 cr ARION communication protocol AMiT company The device supports communication protocol ARION version 1 00 simplex and half duplex modes and communication speeds 9600 19200 38400 and 57600 Baud There is NOT supported CO measurement Supported frames 0x20 ACK Positive response 0x21 NAK Negative response 0x22 STRQ Resp req must be 1 Status request 0x23 STT Slave status mode guard time 0x24 MODE Set Mode 0x26 VRRQ Resp req must be 1 Request for firmware and protocol version 0x27 VER Response of firmware and protocol version 0x28 IDRQ Resp req must be 1 Module identification request 0x29 MID Module identification 0x2A FTRQ Resp req must be 1 Request for list of supported frames 0x2B FTL List of supported frames 0x2C CLRQ Resp req must be 1 Request for class of module 0x2D CLS Class of module 0x30 DTRQ Resp req must be 1 Data request 0x56 data 24 a
22. o C5 Modbus CRC Hi 71 Computed value is preset by factory to Dew Point Temperature to choice use User s software Description of supported function 03 0x03 Reading of 16 bit registers Read Holding Registers Function serves for reading of values from device Addresses of available registers are listed in chapter Modbus registers of the device on page 5 Request FUNCTION Function code 0x03 DATA Initial address Hi Ox Initial address Lo Ox Number of registers Hi Ox Number of registers Lo Ox Response FUNCTION Function code 0x03 DATA Number of Bytes Ox States of register Hi Ox States of register Lo Ox States of register Hi 0x States of register Lo 0x 8 IE SNC ProtocolsTxxxx 08 During sending of query to device initial register address and number of registers to read are sent Register addresses are indexed from zero register 0x31 is physically sent as value 0x30 0x32 as 0x31 zero based addressing 04 0x04 Reading 16 bit input gates Read Input Registers This function is also possible to use for reading values from device syntax is the same as with function 03 0x03 Reading of 16 bit registers Addresses of available registers are specified in chapter Modbus registers of the device on page 5 16 0x10 Setting of several 16 bit registers Write Multiple Registers Setting of device address and communication speed is possible to perform by writing to device registers rest of parameter
23. pend line feeds to incoming line ends T Force incoming data to 7 bit ASCII Je Wrap lines that exceed terminal width For industrial device types unscrew 4 screws of device cover and remove it For indoor device types remove the front part see Instruction manual of the device Then plug in the jumper Keep the button inside the device pressed only now you can connect power voltage and then release the button If device is powered directly from PC communication port for interface RS232 it is necessary first to disconnect communication cable then to keep the button pressed to connect communication cable and also power and only now release the button LCD display of the device displays PC IE SNC ProtocolsTxxxx 08 e Running HyperTerminal displays main menu Sensor HyperTerminal Oo sl File Edit view Call Transfer Help Del 213 ala ei Dt Dt DE Dt DE DE DE DE DE DE DE DE DE DE OE OE DE DE ss MAIN MENU Protocol Info Config Protocols LCD Display Setting On Off Factory default EXIT 4 gt Connected 0 00 56 Auto detect Auto detect SCROLL CAPS NUM Captui 4 Select required items to set the device 0 ng D aay Displays actual setting of the device Selection of communication protocol and setting of its parameters device address communication speed For entering numeric values use digits 0 to 9 and characters A to F upper case letters device address is entered al
24. rmware Lo 0x3002 12290 BCD BINI16 R And next only for combined devices with relative humidity measurement Variable Unit Address hex Address dec Format Size Status Ee 0x0032 50 Int 10 BINI6 R umidity Computed value C F 0x0033 51 Int 10 BINI6 R Since firmware version 02 44 there is support of all computed values at once read registers Dew point temperature C F 0x0035 53 Int 10 BINI6 R absolute humidity g m 0x0036 54 Int 10 BINI6 R specific humidity g kg 0x0037 55 Int 10 BINI6 R mixing ratio g kg 0x0038 56 Int 10 BINI6 R specific enthalpy KJ kg 0x0039 57 Int 10 BINI6 R And next only for combined devices with atmospheric pressure measurement Variable Unit Address hex Address dec Format Size Status hPa Int 10 PSI Int 1000 inHg Int 100 H ES Atmospheric e 0x0034 52 Int 10 BIN16 R pressure oz in Int 10 mmHg Int 10 inH O Int 10 kPa Int 100 IE SNC ProtocolsTxxxx 08 And next only for combined devices with carbon dioxide measurement a d Adress Adress R Variable Unit hex dec x Format Size Status CO2 concentration Fast mode value nonaveraged POE IAs E Wl Ere E CO2 concentration Slow mode value averaged PON ADS mt PANIG R CO2 concentration as shown al LCD non averaged value by device DPEN ROIs 22 lnt BOIG R setting Explanation Note depends on device type and setting User s
25. s is possible to set only with User s software Attention During writing to device registers it is not enabled to write any number of registers Always below procedure should be strictly followed If procedure is not followed undoable loss of important settings stored in device can occur It is strongly recommended to use User s software called TSensor to set all device parameters It is free to download at www cometsystem cz Request FUNCTION Function code 0x10 DATA Initial address Hi 0x Initial address Lo 0x Number of registers Hi 0x Number of registers Lo 0x Number of Bytes 0x of sent data Response FUNCTION Function code 0x10 DATA Initial address Hi 0x Initial address Lo 0x Number of registers Hi 0x Number of registers Lo 0x For detailed description see next chapter 9 IE SNC ProtocolsTxxxx 08 Procedure during writing to device registers device address is stored at Modbus address 0x2001 as binary number code of communication speed is stored at Modbus address 0x2002 Communication Code of speed Bd communication speed hex 300 600 BAF Close jumper located next to connection terminals of the device 2 Read entire area 0x2001 to 0x2040 to master device At address 0x2040 check sum of 5 6 entire area is stored It is calculated as sum of 16bit values from addresses 0x2001 to 0x2039 Stored are lowest 16 bits of this sum enables to check correct reading of the are
26. software Int 10 register is in format integer 10 R register is designed only for reading W register is designed for writing for details see description function Jo 0x10 Setting of several 16 bit registers Write Multiple Registers register addresses are indexed from zero register 0x31 is physically sent as value 0x30 0x32 as 0x31 zero based addressing In case there is a need for reading of measured values from device with higher resolution than one decimal measured values in device are stored also in Float format which is not directly compatible with IEEE754 Example of communication In all examples communication with device at address 01h is supposed Reading of temperature address 0x0031 Modbus command device address 01 reading 16 bit registers 03 initial address Hi 00 initial address Lo 31 number read registers Hi 00 number read registers Lo ol Via link is physically sent 01 03 00 30 00 01 84 05 Received response from device 01 03 02 00 F4 B9 C3 device address 0l reading 16 bit registers 03 Number Byte 02 State of register Hi 00 State of register Lo F4 0x00F4 i e 244 i e 24 4 C Modbus CRC Lo B9 Modbus CRC Hi C3 IE SNC ProtocolsTxxxx 08 Reading of relative humidity address 0x0032 Modbus command device address 01 reading 16 bit registers 03 initial address Hi 00 initial address Lo 32 number read registers Hi 00 number read registers Lo ol Via link is physically sent 01 03
27. sresresserrreseesersreses 14 Commands for combined EE 14 Reading of all measured values at ONCE 000 lee eeceeeeseeeeeeeeseeeaeeeaeecsaecsaecaecnaecnseeeseeeneeeeneeees 14 Reading of the temperature ici s ceiecisscechs plseckbes slesetishaceetsssidebedciscenseletuewsccescderadeudebnaclseatisdelees 15 Readins of humidity erena deed 15 Reading of computed v let AA 15 Reading of atmospheric pressure sce eesceeeceseceseeeseeeeceeeseeeseecseecsaecsaecaecaecsseeeseeeseeenneeees 15 Reading Of COT geseet 15 PEPE OV SI OR ste ct eene ere Eege eeh 15 Commands common for all device EI edel dE gere 16 Query to adjusted configuration ee eee eeeeeseeeseeeeeeseecssecsaecaecsecsseeeseeeeeeseeseaeeeaeeeaeeenaeenaes 16 Reading Of device Manne liegen selects aaee Eesen iesen aeaea a er eee eaeh 16 Reading of firmware Verein eeh Eet ees gech Bebe lieth eege ig 16 Configuration EE ee Ee EE Ee 16 Response of the device sive osibegeessece Ee EES Bee eee Sein a 17 CRE CREEK C9 EE 17 How to read device s unit setting from master device ssssssssseseessessrsseesseesreseesseesee 17 Examples ER 17 Format of dda a a caida Gia a a a e ee 19 ARION COMMUNICATION PROTOCOL AMIT COMPANY cc cesceseesseeseesecsseeseeseees 19 SE EE EE 19 TUMOR EE EE 19 2 IE SNC ProtocolsTxxxx 08 Supported function e eeleren 20 COMMUNICATION WITH HWG POSEIDON UNITS ssssseseeeeeseeeeeseseeresrerirererersesressesrese 21 RE 21 Description of supported COMIMONE
28. te 0001 address content 0x2001 i e original address of device Olh 01 B5 address content 0x2002 i e code of corresponding communication speed 9600Bd 53 2D check sum of entire area 0x2001 to 0x2039 0001 01B5 0000 3030 0012 429F 0x532D 2C 8C CRC of Modbus Modification of data from read area 00 9F 00 24 00 00 30 30 3B 4B 77 D3 BD 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 70 00 00 86 2A 00 00 84 44 AA 80 85 07 A8 DO 57 7E 5F 94 F3 DC 00 12 2E DD 78 OC 40 AA 77 D3 F2 C4 00 12 17 78 77 F5 F3 EC 00 12 ED BF 77 D5 4F 10 77 D8 FF FF FF FF 40 DE 77 D3 2E F7 78 0C 06 5C 00 01 00 00 00 00 F3 DC 00 12 42 9F 52 3A 00 9F new address of the device original address was 00 01 0024 new code of corresponding communication speed 115200Bd original was 01B5 52 3A new check sum of entire area 009F 0024 0000 0012 429F 0x523A Write such modified area together from master device to the device area 0x2001 to 0x2040 01 10 20 00 00 40 80 00 9F 00 24 00 00 30 30 3B 4B 77 D3 BD 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 70 00 00 86 2A 00 00 84 44 AA 80 85 07 A8 DO 57 7E 5F 94 F3 DC 00 12 2E DD 78 OC 40 AA 77 D3 F2 C4 00 12 17 78 77 F5 F3 EC 00 12 ED BF 77 DS 4F 10 77 D8 FF FF FF FF 40 DE 77 D3 2E F7 78 0C 06 5C 00 01 00 00 00 00 F3 DC 00 12 42 9F 52 3A 61 22 0l original device address is still valid i e Olh
29. than three seconds causes restoring of manufacturer setting of communication protocol i e sets device address to Olh and communication speed to 9600Bd Device sends two stop bits for receive one stop bit is enough See detailed description of this function Since firmware version 02 31 included devices support temperature measurement in C or F and all with pressure measurement o Jumper closed and button pressed for longer than six seconds causes restoring of manufacturer setting of communication protocol i e sets Modbus RTU communication protocol device address sets to Olh and communication speed to 9600Bd after button press there is dEF message blinking at LCD display Six seconds later message dEF stays shown it means manufacturer setting of communication protocol is done Modbus registers of the device Jumper opened and button shortly pressed device goes to Info mode Variable Unit Address hex Address dec Format Size Status Measured temperature C F 0x0031 49 Int 10 BIN16 R Address of device 0x2001 8193 Int BIN16 R W EECHER ae 0x2002 8194 Int BIN16 R W speed T SHEET e 0x1035 4150 BCD BIN16 R T EE o 0x 1036 4151 BCD BINI6 R Version of Firmware Hi 0x3001 12289 BCD BIN16 R Version of Fi
30. ue is selectable between dew point temperature and absolute humidity Rest of computed values aren t supported by this communication protocol Selection is provided by user s software Tsensor Pressure value is transferred at kPa with one decimal point resolution There is NOT supported CO2 measurement Possible device address range is from A to Z and from a to z There is possible to show actual device address on LCD display with using of Info mode see User s manual of device Device address is shown as number corresponding with ASCII code of address It is first address used by the device Device occupies next number of addresses by device type number of measured values Addresses T and t are reserved and can t be used as device address These addresses are skipped Address change with using of command T lt new address gt is permitted for first ten seconds after power up only Trying to change address latter brings write error message protection of random address change during activity Next table shows four examples of address assignment to each measured values according to device type number of measured values First column shows example when address of device is A second column address R third address h and fourth address k Example of address assignment by device types to each measured value Presets address see Info mode Values measured by the device
31. vice response error lt address gt Err lt CR gt example BErr lt address gt character from A to Z or a to z except of T and t lt CR gt character 0xD or 13 dec End Of Line lt humidity gt syntax B062 1 Read computed value Type of computed value is described by one character placed at the end of response d for dew point temperature and h for absolute humidity Request for value T lt address gt I example TCI Device response lt address gt lt value gt lt CR gt example C 0 3 3d for dew point temperature example C 01 1 6h for absolute humidity Device response error lt address gt Err lt CR gt example CErr lt address gt character from A to Z or a to Zz except of T and t lt CR gt character 0xD or 13 dec End Of Line lt computed value gt syntax C 0 3 3d C 011 6h Read pressure Request for pressure T lt address gt I example TDI Device response lt address gt lt pressure gt lt CR gt example D 01 3P Device response error lt address gt Err lt CR gt example DErr lt address gt character from A to Z or a to z except of T and t lt CR gt character 0xD or 13 dec End Of Line lt pressure gt syntax D 101 3P i e 101 3kPa Change of device address Assign new address T lt new address gt example T A Device response lt new address gt OK lt CR gt example
32. ways as two digits hexadecimal number no decimal e g address 11 i e Bh must be entered as OB Setting of LCD display of the device display switched ON switched OFF selection of displayed values Setting communication to default value from manufacturer Modbus address 01 9600 Bd End of setting All changes in setting are continuously stored automatically e If needed close device again with cover 26 IE SNC ProtocolsTxxxx 08

Download Pdf Manuals

image

Related Search

Related Contents

BakkerElkhuizen FlexDesk 630  航空法の一部改正に伴う農薬散布等の無人航空機利用に関する説明会  documento di valutazione dei rischi  Cancelas - INOVAPORT  2516507 Flat Panel VGA Webcam with Microphone USER MANUAL  Medion AKOYA P5353 F  

Copyright © All rights reserved.
Failed to retrieve file