Communication Interface: SD16 Series Digital Indicator
Communication Interface: SD16 Series Digital Indicator
Digital Indicator
COMMUNICATION INTERFACE
(RS-232C/RS-485)
INSTRUCTION MANUAL
CONTENTS
1. Outline.........................................................................................2
2. Specifications .............................................................................2
6. Supplementary description........................................................14
6-1 Measuring range list .........................................................14
SD16C-1BE
Aug. 2001
-1-
1. Outline
There are two types of communication systems, RS-232C and RS-485 employable as the SD16 series communication interface.
Each of them is capable of setting various data for the SD16 and reading through a personal computer or the like, using signals
which comply with EIA standards.
RS-232C and RS-485 are data communication standards established by the Electronic Industries Association of the U.S. (EIA).
The standards cover electrical and mechanical aspects, that is, matters related to applicable hardware but not the data
transmission procedure of software. Therefore, it is not possible to communicate unconditionally with an apparatus which has
the same interface. Hence, users need to have sufficient knowledge of specifications and transmission procedure.
When RS-485 is used, two or more of SD16 indicators can be connected to one another. There seems to be a limited number of
personal computers, etc., which support this interface, but the use of a line converter for RS-232C <---> RS-485 creates
stability.
2. Specifications
Signal level : Following EIA'S RS-232C and RS-485
Communication system : RS-232C 3-line half duplex system
RS-485 2-line half duplex multidrop (bus) system
Synchronization system : Half duplex start-stop synchronization system
Communication distance : RS-232C 15 m maximum
RS-485 maximum total of 500 m (differs depending on conditions.)
Communication rate : 1200, 2400, 4800, 9600 and 19200bps
Transmission procedure : No procedure
Data format : Data 7 bits, even parity, stop 1 bit
Data 8 bits, no parity, stop 1 bit
Communication code : ASCII codes
Isolation : Insulated between communication signals and various inputs, system and various outputs
3-1 RS-232C
3-2 RS-485
The input/output logical level of the SD16 indicator is basically as follows:
[RS-485]
In the mark state - terminal < + terminal
In the space state - terminal > + terminal
Until immediately before transmission, however, plus terminals and minus terminals of the indicator have high impedance
and outputs at the above levels are produced immediately before starting transmission. (See 3-4 Control of 3-state output.)
-2-
Host [RS-485] SD16
FG Indicator 1
+ + (16)
– – (17)
SG SG (15)
Indicator 2
+ (16)
– (17)
SG (15)
Indicator N
+ (16)
– (17)
SG (15)
-3-
4. Setting of parameters related to communication
As shown below, there are six communication-related parameters for SD16. It is not possible to set or change them through
communications, that is, setting or changing them should be carried by front key operation. For setting, follow the procedure
described in "4. Screen instruction" of the separate instruction manual of SD16.
On the basic screen, press the key continuously for 3 seconds to move to the screen, and set the
respective parameters related to communication by means of the key.
3 seconds
You can select and set either of the following two communication modes. However, only changing from Remote to Local
is possible by front key operation . Remote can be set only through communication.
While only one SD16 is allowed to the host computer in the case of RS-232C, as many as 31 SD16 (maximum) can be
connected for RS-485 which employs the multidrop system. Since actual communication is carried out between one
SD16 and the host computer, however, addresses (machine numbers) are assigned to the respective apparatuses so that
only one with a designated address can respond.
Note 1: Addresses, 1 to 255, can be set for 31 apparatuses maximum.
One of the following two communication data formats can be selected for setting.
Length of data Parity Stop bit
7bit EVEN 1bit
8bit None 1bit
-4-
4-5 Setting of communication rate
Setting range: 1200, 2400, 4800, 9600, 19200
Initial value: 1200
A communication rate is selected and set from 1200, 2400, 4800, 9600 and 19200 bps.
A minimum delay time from the reception of communication command to the transmission can be set.
Delay time (msec) = set value (count) × 0.1 (msec)
Note1: In the case of RS-485, some types of line converters take a longer time for 3-state control and signal
collision may occur. This can be avoided by increasing the delay time. Care should be taken particularly
for lower communication rates (for example, 1200 bps or 2400 bps).
Note2: Actual time of delay from the reception of a communication command to transmission is a total of the
above-described delay time and the time for software to process the command.
Processing write commands, in particular, may take about 400 msec in some cases.
The SD16 allows for some communication formats (start character, text end character, end character and BCC operating method)
and communication data formats (data bit length, whether or not of parity, and stop bit length) for easy compliance with other
protocols.
Nonetheless, the following serves as their basic format and you are encouraged to use them uniformly:
• Communication format
Control code (start character, text end character, end charactor) → STX_ETX_CR
Check sum (BCC operating method) → Add
• Communication data format (data bit length, whether or not of parity, stop bit length)→ 7E1 or 8N1
For setting a communication format and a communication data format, see "4. Setting of parameters related to communication."
-5-
(1) Outline of communication format
The communication format comprises the basic format portion I, the text portion and the basic format portion II.
a b c d e f g h i j
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
2) Response format
Text end character
Start character Sub-address
End character (delimiter)
Machine address Command type
Response code BCC data
Data
a b c d e g h i j
1 2 3 4 5 6 7 11 12 13 14 15 16
STX 0 1 1 R 0 0 , ETX 3 C CR __
STX 0 1 1 W 0 0 *_ *_ *_ *_ ETX 4 E CR __
Basic format portion I Text portion Basic format portion II
• The basic format portions I and II are common to read commands (R), write commands (W) and responses.
Nonetheless, in BCC data of i( 13 , 14 ) operation result data is inserted each time.
• The text portion differs depending
-6-
13 : ASCII data converted from high position 4 bits.
14 : ASCII data converted from low position 4 bits.
Example 1: BCC In the case of a read command (R) with "Add" set:
1 2 3 4 5 6 7 8 9 10 12 13 14 15 16
STX 0 1 1 R 0 1 0 0 0 ETX D A CR
02H +30H +31H +31H +52H +30H +31H +30H +30H +30H +03H = 1DAH
Example 2: BCC In the case of a read command (R) with "XOR" set:
1 2 3 4 5 6 7 8 9 10 12 13 14 15 16
STX 0 1 1 R 0 1 0 0 0 ETX 5 0 CR
02H 30H + 31H + 31H + 52H + 30H + 31H + 30H + 30H + 30H + 03H = 50H
+ : XOR (exclusive OR)
Binary numbers D15, D14, D13, D12 D11, D10, D9, D8 D7, D6, D5, D4 D3, D2, D1, D0
(16 bits) 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0
Hexadecimal numbers 0H 1H 8H CH
(Hex) "0" "1" "8" "C"
ASCII data 30H 31H 38H 43H
6 7 8 9
• For data addresses, refer to 5-6 Details of Communication data address list.
f : The number of data [ 10 : 1 digit ]
• For a read command (R) or a write command (W), designates the number of data to be read or written.
• The number of data is designated after converting binary 4-bit data into ASCII data.
• Designation is possible in the following range for read commands (R):
"0" (30H)(one) ~ "9" (39H)(ten)
For SD16, however, the range is from "0" to "2" (32H)(three).
• It is fixed to "0" (30H)(one) for write commands (W).
• The number of actual data is <a designated value + one>.
-7-
g : Data [ 11 : The number of digits depends on the number of data.]
• Designates data to be written (data to be changed) for write command (W) or data to be read for response to a
read command (R).
• The data format is as follows:
g ( 11 )
High position
High position
High position
Low position
Low position
Low position
2nd digit
2nd digit
2nd digit
3rd digit
3rd digit
3rd digit
4th digit
4th digit
4th digit
1st digit
1st digit
1st digit
","
2CH
• Data is always preceded by comma ("," 2CH) to show the subsequent portion is data.
• No punctuation code is used between data and data.
• The number of data is determined by the number of data (f: 10 ) of the communication command format.
• Each data is expressed by binary 16 bits (1 word), excluding a decimal point, as a unit. The position of decimal
point is fixed in each data.
• 16 bit data are split into 4 bit groups and respectively converted to ASCII data.
• For details of data, refer to 5-3 Details of read commands (R) and 5-4 Details of write command (W).
e : Response code [ 6 , 7 : 2 digits]
• Designates a response code to a read command (R) or a write command (W).
• Binary 8 bit data (0 ~ 255) are split to high position 4 bits and low position 4 bits and respectively converted to
ASCII data.
6 : ASCII data converted from high position 4 bits.
7 : ASCII data converted from low position 4 bits.
• In the case of normal response, "0" (30H), "0" (30H) is designated.
• In the case of abnormal response, abnormal code No. is converted to ASCII data and designated.
• For details of response codes, refer to 5-5 Details of response codes.
d e f
d: Indicates that it is a read command.
5 6 7 8 9 10 e: Designates the front data address of data to be read.
f: Designates how many data (words) are to be read from
R 0 5 0 0 2
the front data address.
52H 30H 35H 30H 30H 32H
g
d e 11
5 6 7 first data second data third data
R 0 0 , 0 0 0 3 0 0 6 E 0 0 1 4
52H 30H 30H 2CH 30H 30H 30H 33H 30H 30H 36H 45H 30H 30H 31H 34H
-8-
• d( 5): <R (52H)> indicating that it is a response to a read command (R) is inserted.
• e( 6, 7 ):The response code <0 0 (30H, 30H)> indicating that it is a normal response to the read command (R) is
inserted.
• g( 11 ): Response data to the read command is inserted.
The data format is as follows:
1. To begin with, <, (2CH)> indicating the head of data is inserted.
2. Then, data in the number according to <the number of data to be read> are inserted one by one,
starting from the <data of the front data address for reading>.
3. Nothing is inserted between the respective data.
4. The respective data comprise binary 16 bits (1 word) data, excluding a decimal point, and are
converted, 4 bits as a unit, to ASCII data and inserted.
5. The position of decimal point is fixed in the respective data.
6. The number of characters of response data is as follows:
Number of characters=1 + 4 × number of data to be read
Text Portion
d e
5 6 7
R 0 7
52H 30H 37H
To use a write command, the communication mode parameter has to be changed from Loc to Com but this is not possible by
front key operation. The change should be made by the following command transmission. (In case the start character is "STX,"
BCC=Add)
Command format
STX 0 1 1 W 0 1 8 C 0 , 0 0 0 1 ETX E 7 CR
02H 30H 31H 31H 57H 30H 31H 38H 43H 30H 2CH 30H 30H 30H 31H 03H 45H 37H 0DH
When the above command has been sent and a normal response has been returned, the COM LED lamp on the front panel lights
and the communication mode changes to COM.
d e f g
5 6 7 8 9 10 11
Data to be written
W 0 5 0 0 0 , 0 0 0 2
57H 30H 35H 30H 30H 30H 2CH 30H 30H 30H 32H
-9-
• The above command means the following:
Front data address of data to be written = 0500H (hexadecimal)
= 0000 0101 0000 0000 (binary)
The number of data to be written = 0H (hexadecimal)
= 0000 (binary)
=0 (decimal)
(The actual number of data) = one (0+1)
Data to be written = 0002H (hexadecimal)
= 0000 0000 0000 0010 (binary)
=2 (decimal)
Thus, writing (changing) of data address 0500H and one piece of data (2: decimal) is designated.
d e
5 6 7
W 0 0
57H 30H 30H
d e
5 6 7
W 0 9
57H 30H 39H
- 10 -
5-5 Details of response codes
(1) Types of response codes
• Communication responses to read commands (R) and write commands (W) always contains response codes.
• Response codes are divided broadly into two types:
Normal response codes
Response codes
Abnormal response codes
• A response code comprises 8 bits data of binary numbers (0 ~ 255).
• The types of response codes are listed below:
A List of Response Codes
Response code
Type of code Description
Binary numbers ASCII
0000 0000 "0", "0" : 30H, 30H Normal response Normal response to read command (R) or
write command (W)
0000 0111 "0", "7" : 30H, 37H Format error of text portion Format of text portion is different
from what was fixed.
0000 1000 "0", "8" : 30H, 38H Error in data format of text Data format of text portion is not in fixed format,
portion, data address or the or data address or the number of data is different
number of data from designated one.
0000 1001 "0", "9" : 30H, 39H Data error Data to be written get beyond range in which
setting is possible.
0000 1011 "0", "B" : 30H, 42H Write mode error Some types of data are unable to be changed at
certain points in time. Write command containing
such data was received at such a time.
0000 1100 "0", "C" : 30H, 43H Specification or Write command containing data of specification or
option error option which was not added was received.
(3) Data
• Since data comprise binary numbers (16 bit data) without a decimal point, the form of data, whether there is a
decimal point or not, etc., have to be confirmed. (See the instruction manual of the instrument itself.)
- 11 -
Example: How to express 16 bit data
0 0000 0 0000
1 0001 1 0001
~
~
32767 7FFF 32767 7FFF
-32768 8000 32768 8000
-32767 8001 32769 8001
~
~
-2 FFFE 65534 FFFE
-1 FFFF 65535 FFFF
(6) Parameters not shown in front panel displays owing to action specifications or setting specifications
• Even parameters which are not shown (used) on the front panel displays owing to action specifications or setting
specifications are possible to be read and written in communication.
Note: The example shown as supplement to the parameter list is the case of communication with the following
setting:
Start character →
Machine address → 01
Sub-address → 1
Check sum → Addition
Data
address Parameter Setting range R/W
(Hex)
0100 PV value Within measuring range R
- 12 -
Details of PV value
Example: When PV value is read (PV value = 14.50°C)
Read command format
STX 0 1 1 R 0 1 0 0 0 ETX D A CR
02H 30H 31H 31H 52H 30H 31H 30H 30H 30H 03H 44H 41H 0DH is sent.
Normal response format
STX 0 1 1 R 0 0 , 0 5 A A ETX 5 C CR
02H 30H 31H 31H 52H 30H 30H 2CH 30H 35H 41H 41H 03H 35H 43H 0DH is sent back.
• : 7FFFH
• : 8000H is returned.
Details of action flag and alarm flag
About action flag and alarm output flag, EXE_FLG and AL_FLG data are shown below in detail:
(When not in action → bit = 0, When in action → bit = 1)
0H 0H 0H 1H
STX 0 1 1 R 0 0 , 0 0 0 1 ETX 3 6 CR
02H 30H 31H 31H 52H 30H 30H 2CH 30H 30H 30H 31H 03H 33H 36H 0DH is sent back.
Data
address Parameter Setting range R/W
(Hex)
018C Operation 0: Loc, 1: Com W
Data
address Parameter Event/Do No. Setting range R/W
(Hex)
0500 Mode 1: Higher limit 2: Higher limit (standby)
3: Lower limit R/W
4: Lower limit (standby)
AL1
0501 Set Point Within measuring range R/W
0502 Diffrntl 1 ~ 999 unit R/W
Data
address Parameter Setting range R/W
(Hex)
05A1 Aol Sc_L R/W
Within measuring range but Ao1 Sc_L = Ao1 Sc_H
05A2 Aol Sc_H R/W
- 13 -
• Example: When PV Bias = -10.0°C (10.0 → -100 → FF9CH) is written
Write command format
STX 0 1 1 W 0 7 0 1 0 , F F 9 C ETX 1 A CR
02H 30H 31H 31H 57H 30H 37H 30H 31H 30H 2CH 46H 46H 39H 43H 03H 31H 41H 0DH
Data
address Parameter Setting range R/W
(Hex)
0704 UNIT 0: " °C " 1: " °F " R/W
0705 RANGE Thermocouple R/W
1: B 2: R 3: S 4: K1 5: K2 6: E
7: J 8: T 9: N 10: U 11: L 12: WRe5-26
R.T.D.
31: Pt1 32: Pt2
Voltage
71: 0 ~ 10mV 81: 0 ~ 5V
82: 1 ~ 5V 83: 0 ~ 10V
Current
95: 4 ~ 20mA
6. Supplementary description
6-1 Measuring range list
- 14 -
7. ASCII code list
b4 ~ b1 0 1 2 3 4 5 6 7
- 15 -
The contents of this manual are subject to change without notice.
Temperature and Humidity Control Specialists
- 16 -