COMMUNICATION FUNCTIONS General • This instrument provides a communication function through RS-485 interface, which allows data transmit to or receive from the host computer and other devices. • The communication system is comprised of a master station and slave stations. Up to 31 of slave station (present instrument) can be connected per master station (host computer, programmable controller, graphic display panel, etc.) through RS-485 interface.
SPECIFICATIONS Communication specifications RS-485 interface Item Specification Electrical specification Based on EIA RS-485 Transmission system 2-wire, semi-duplicate Synchronizing system Start-stop synchronous system Connection format 1 : N Maximum connectable units 31 units Transmission distance 500m max. (total extension distance) Transmission speed 38400bps Data format...
CONNECTION WARNING Do not turn on the power supply until all wiring have been completed to avoid electric shock and malfunctions. Terminal allocation RS-485 interface (RS-485 connector at the rear panel) Pin No. Signal name Pin connection Signal ground RTxD+ 9-pin D-Sub RTxD−...
Wiring RS-485 interface • Please use a shielded twist pair cable. (Recommended cable: KPEV-SB (made by The Furukawa Electric Co., Ltd.)) • The maximum cable length should be 500m. One master and up to thirty-one micro controllers (slaves) can be connected per circuit.
Page 7
• When using the micro controller in an area where the imposed noise level is expected to exceed 500V, we recommend using a noise filter on the master side as seen in the figure below. [Noise filter] (recommended): RSHN-2003 (made by TDK Corporation) Programmable controller Personal computer + RS-232C to RS-485 converter...
SETTING OF COMMUNICATION CONDITION In order that the master station and instrument can correctly communicate, following settings are required. • All communication condition settings of the master station are the same as those of instruments. • All instruments connected on a line are set to "Station Nos. (STno)" which are different from each other. (Any "Station No."...
MODBUS COMMUNICATION PROTOCOL General The communication system by the MODBUS protocol is that the communication is always started from the master station and a slave station responds to the received message. Transmission procedures is as shown below. 1) The master station sends a command message to a slave station. 2)...
Composition of message Command message and response message consist of 4 fields ; Station No., Function code, Data and Error check code. And these are send in this order. Station No. (1 byte) Function code (1 byte) Data (2 to 133 bytes) Error check code (CRC-16) (2 bytes) Fig.
Page 11
Error check code This is the code to detect message errors (change in bit) in the signal transmission. On the MODUBUS protocol (RTU mode), CRC-16 (Cycric Redundancy Check) is applied. For CRC calculation method, refer to section 5.5. INZ-TN5A1190-E...
Response of slave station Response for normal command To a relevant message, the slave station creates and sends back a response message which corresponds to the command message. The composition of message in this case is the same as in section 5.2. Contents of the data field depend on the function code.
Function code According to MODBUS protocol, register numbers are assigned by function codes. Each function code acts on specific register number. This correspondence is shown in Table 5-2, and the message length by function is shown in Table 5-3. Table 5-2 Correspondence between function codes and objective address Function code Resister No.
Calculation of error check code (CRC-16) CRC-16 is the 2-byte (16-bits) error check code. From the top of the message (station No.) to the end of the data field are calculated. The slave station calculates the CRC of the received message, and does not respond if the calculated CRC is different from the contents of the received CRC code.
Page 15
Start Explanation of variables CR:CRC error check data (2 bytes) I:Digits of calculation characters Set FFFF (hexadecimal number) in CR. in command message J:Check on the number of times of CR calculation Set 1 in I. Exclusive logical sum (XOR) is executed with CR and one character (1 byte) of #I of the message, and its results is set in CR.
Transmission control procedure Transmission procedure of master station The master station must proceed to a communication upon conforming to the following items. (1-1) Before sending a command message, provide 48 bits time or more vacant status. (1-2) For sending, the interval between bytes of a command message is below 24 bits time. (1-3) Within 24 bits time after sending a command message, the receiving status is posted.
Page 17
Space time of longer than 2.5ms is needed (longer than 5ms is recommended) Master station → Analyzer POL1 POL2 1 to 30msec Master station ← Analyzer POL1 response data POL1 Data on line POL1 response data POL2 INZ-TN5A1190-E...
DETAILS OF MESSAGE Read-out of word data [Function code:03 Function code Max. word number read-out in Relative data address Resister No. Contents one message User setting 64 words 0000 -009D 40001-40158 Message composition Command message composition (byte) Response message composition (byte) Station No.
Page 19
Message transmission (example) The following shows an example of reading out from No. 1 station the setting Ch2 (2nd component) range-1 zero and span calibration concentration. Relative address of Ch2 range-1 zero calibration concentration setting: 0004 Data number: 02 Command message composition (byte) Response message composition (byte) Station No.
Read-out of read only word data [Function code:04 Function Max. word number read-out in Relative data address Resister No. Contents code one message Measurement value and 0000 30001-30194 -00C1 status 64 words Fixed setting 0425 31062-31130 -0469 Message composition Command message composition (byte) Response message composition (byte) Station No.
Page 21
(3) Message transmission (example) The following shows an example of reading out from No. 1 station the Ch5 measurement concentration, decimal point position and measurement unit. Relative address of Ch5 measurement concentration: 000C Data number: 03 Command message composition (byte) Response message composition (byte) Station No.
Write-in of word data (1 word) [Function code:06 Function code Max. word number write-in Relative data address Resister No. Contents in one message User setting 0000 -009D 40001-40158 1 word Operation command 07D0 -07D4 42001-42005 Message composition Command message composition (byte) Response message composition (byte) Station No.
Write-in of continuous word data [Function code:10 Function code Max. word number write-in Relative data address Resister No. Kind of data in one message User setting 64 words 0000 -009D 40001-40158 Message composition Command message composition (byte) Response message composition (byte) Station No.
Page 24
Message transmission (example) The following shows an example of writing the Ch1 (1st component) alarm settings to No. 1 station. Ch1 range-1 high alarm setting = 1388 (= 5000 Ch1 range-1 low alarm setting = 000A (= 10 Ch1 range-2 high alarm setting = 03E8 (= 1000 Ch1 range-2 low alarm setting = 000A (= 10...
ADDRESS MAP AND DATA FORMAT Data format 7.1.1 Transmission data format The MODBUS protocol used in this instrument is RTU (Remote Terminal Unit) mode. Transmitted data is "numeric value" and not ASCII code". 7.1.2 Handling of decimal point position and measurement unit When transmitted, the calibration concentration setting, alarm's high and low limits, the data of measurement concentration value and range value have no decimal point nor measurement unit.
Page 26
(b) Measurement concentration (register No. 30001 to 30036) The decimal point position and measurement unit for each concentration are stored in registers following that of concentration, and can be known by reading them in. The meaning of decimal point position data and measurement unit data values are the same as in (a) above.
Address map For details of functions and settable ranges of different parameters, refer to the instruction manual for the analyzer. Word data [read-out/write-in]: Function code [03 , 06 , 10 User settings Relative Register Data Remarks or Memory contents Read-out/write-in data address type corresponding parameter...
Page 28
Word data [read-out/write-in]: Function code [03 , 06 , 10 User settings Relative Register Data Remarks or Memory contents Read-out/write-in data address type corresponding parameter 0014 40021 Word Ch1 auto calibration switch 0, 1 Auto calibration component 0015 40022 Word Ch2 auto calibration switch ( 0: Do not calibrate in auto calibration 0016...
Page 29
Word data [read-out/write-in]: Function code [03 , 06 , 10 User settings Relative Register Data Remarks or Memory contents Read-out/write-in data address type corresponding parameter 0037 40056 Word Ch1 alarm mode 0,1,2,3,4 Alarm setting (0: High limit alarm, 0038 40057 Word Ch2 alarm mode 1: Low limit alarm, 0039 40058 Word Ch3 alarm mode...
Page 30
Word data [read-out/write-in]: Function code [03 , 06 , 10 User settings Relative Register Data Remarks or Memory contents Read-out/write-in data address type corresponding parameter 005C 40093 Word Hold switch Output hold 0,1 (0: OFF, 1: ON) 005D 40094 Word Oxygen conversion reference 01H to 13H(1% to 19%) Oxygen conversion value...
Page 31
Word data [read-out/write-in]: Function code [03 , 06 , 10 User settings Relative Register Data Remarks or Memory contents Read-out/write-in data address type corresponding parameter 0082 40131 Word alarm-6 alarm mode same as alarm Ch1 to 5 0083 40132 Word alarm-6 alarm switch same as alarm Ch1 to 5 0084 40133 Word auto calibration gas flow time 1...
Page 32
Word data [read-out/write-in]: Function code [03 , 06 , 10 User settings Relative Register Data Remarks or Memory contents Read-out/write-in data address type corresponding parameter Interfernce compensation for ZPB,ZPG 00A6 40167 Word coefficient Ch2 renge1 Interfernce compensation 00A7 40168 Word coefficient Ch2 renge2 Interfernce compensation 00A8...
Page 33
Word data [write-in] : Function code [06 Operation command Relative Register Data Remarks or Memory contents Write-in data address type corresponding parameter 07D0 42001 Word Keying command 01H:MODE Sending a value simulates keying 02H: Side, 04H: Up, 08H: Down 10H: ESC、20H: ENT 40H: ZERO、80H: SPAN 1: Return to measurement Force to return to...
Page 34
Word data [read-out only] : Function code[04 Measurement value and status Relative Register Data Remarks or Memory contents Read-out data address type corresponding parameter 0000 30001 Word Ch1 concentration 0001 30002 Word Ch1 decimal point position Concentration: -9999 to 9999 0002 30003 Word Ch1 measurement unit (value corresponding to...
Page 35
Word data [read-out only] : Function code[04 Measurement value and status Relative Register Data Remarks or Memory contents Read-out data address type corresponding parameter 0024 30037 Word Peak count 0 to 100 times/hour 0025 30038 Word Ch1 current range 0, 1 0026 30039 Word Ch2 current range (0;...
Page 36
Word data [read-out only] : Function code[04 Measurement value and status Relative Register Data Remarks or Memory contents Read-out data address type corresponding parameter 0042 30067 Word The previous error No. -1 to 9 (Error No.-1) 0043 30068 Word The previous error DAY 1 to 31 (date) 0044 30069 Word The previous error HOUR...
Page 37
Word data [read-out only] : Function code[04 Measurement value and status Relative Register Data Remarks or Memory contents Read-out data address type corresponding parameter 30166 Word Ch1 auto zero calibration in 00A5 0,1 (0: No, 1: Yes) progress 00A6 30167 Word Ch1 auto span calibration in progress 00A7 30168 Word Ch1 hold in progress...
Page 38
Word data [read-out only] : Fuction code[04 Fixed setting Relative Register Data Remarks or Memory contents Read-out data address type corresponding parameter 0425 31062 Word Ch1 range numbers 1, 2 0426 31063 Word Ch2 range numbers (1: 1 range, 0427 31064 Word Ch3 range numbers 2: 2 ranges) 0428...
Page 39
Word data [read-out only] : Fuction code[04 Fixed setting Relative Register Data Remarks or Memory contents Read-out data address type corresponding parameter 0448 31097 Word Type: 1st digit 0449 31098 Word Type: 2nd digit 044A 31099 Word Type: 3rd digit A, B, G 044B 31100 Word Type: 4th digit...
Supplement to address map * (a) Register No. 30062 to 30131 (error log) Up to 14 errors logged can be read in the order from the latest to older ones. The contents are as follows. Error No.: No. of produced error. Stored value is error number minus 1. Error DAY: Date Error HOUR:...
TROUBLESHOOTING If the communication is unavailable, check the following items. Whether all devices related to communication are turned on. □ Whether connections are correct. □ □ Whether the number of connected instruments and connection distance are as specified □ Whether communication conditions coincide between the master station (host computer) and slave stations (instrument) Transmission speed 38400bps...
Need help?
Do you have a question about the ZPA and is the answer not in the manual?
Questions and answers