SR90 Series Controller Communication Guide
SR90 Series Controller Communication Guide
Digital Controller
COMMUNICATION INTERFACE
(RS-232C/RS-485)
INSTRUCTION MANUAL
CONTENTS
1. Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
7. Supplementary explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7-1 Table of measuring range codes . . . . . . . . . . . . . . . . . . . . 15
7-2 Table of event types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
-1-
1. Outline
There are two types of communication systems, RS-232C and RS-485 employable as the SR90 series communication interface
(however, only RS-485 applies for SR91). Each of them is capable of setting various data for the SR90 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 SR90 controllers 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
-2-
3-2. RS-485
The input/output logical level of the SR90 controller is basically as follows:
In the mark state - terminal < + terminal
In the space state - terminal > + terminal
Until immediately before transmission, however, plus terminals and minus terminals of the controller have high impedance
and outputs at the above levels are produced immediately before starting transmission. (See 3-3. 3-state output control.)
Controller 2
+
–
SG
Controller N
+
– SR90 series terminal no.
SG SR91 SR92 SR93 SR94
SG [ 1] [ 1] [ 1] [ 1]
Terminal + [11] [ 2] [ 2] [ 2]
resistor (120Ω)
– [12] [ 3] [ 3] [ 3]
Note 1: In the case of RS-485, provide it with the attached terminal resistor of 1/2W, 120Ω across terminals
+ and if necessary. Nevertheless, it should be provided to only the last controller. If two or more
controllers are provided with terminal resistors, correct operation cannot be guaranteed.
Select communication mode. Front key operation allows only change from COM to LOC, though.
Code Effective command COM lamp
Loc Read Unlighted
Com Read, write Lighted
-3-
4-2. Setting of communication address
1-35 Initial value: 1
Setting range: 1 ~ 255
While one SR90 controller is connected to one host computer in the case of 232C, RS-485 employs
the multidrop system allowing it to be connected to a maximum of 32. Actually, however,
communication has to be carried out bilaterally. Therefore, each instrument is assigned an address
(machine No.) so that only the instrument with the designated address can answer.
Note 1: Although 1 to 255 addresses are available for setting, the number of connectable controllers
is 31 maximum.
Set the length of delay time from receipt of a communication command to transmission.
Delay time (msec) = Set value (count) × 0.512 (msec)
Note 1: When RS-485 is used, some converters take longer time for 3-state control than others and it may lead to signal
collision. This can be avoided by increasing delay time. Care should be taken particularly when the
communication rate is slow (1200bps or 2400bps).
Note 2: Actual delay time from receipt of a communication command to transmission is a total of the above-mentioned
delay time and command processing time by software. Particularly for writing commands, about 400 msec may
be taken for processing.
-4-
4-8. Communication memory mode selecting screen
1-41
Initial value: EEP
Selectable range: EEP, Ram, r_E
Since the number of writing cycles of volatile memory EEPROM used in SR90 series is fixed, the life of
EEPROM is shortened if SV data or the like are rewritten frequently by communication. To prevent this,
in case data are to be rewritten frequently by communication, set the RAM mode in which only RAM data
are rewritten without rewriting EEPROM, thereby maintaining the life of EEPROM as long as possible.
Code Description
EEP mode In this mode EEPROM data are also rewritten every time data are changed by
communication. Accordingly, data are maintained when power is turned off.
RAM mode In this mode only RAM data are rewritten but EEPROM data are not when data are
changed by communication. Therefore, RAM data are deleted when power is turned off. Upon
applying power again, operation starts with data stored in EEPROM.
r_E mode SV and OUT data are written in RAM. All other data are written in EEPROM.
The SR90 Series allows for a variety of 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."
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
STX 0 1 1 R 0 1 0 0 0 ETX D A CR
STX 0 1 1 W 0 1 8 C 0 , ETX E 7 CR
****
Basic format portion I Text portion Basic format portion II
-5-
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
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 on the types of commands, data addresses, responses, etc.
Example 1: In the case of a read command (R) with Add set for BCC
1 2 3 4 5 6 7 8 9 10 12 13 14 15
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
-6-
Example 2: In the case of a read command (R) with Add + 2's complement set for BCC
1 2 3 4 5 6 7 8 9 10 12 13 14 15
STX 0 1 1 R 0 1 0 0 0 ETX 2 6 CR
02H +30H +31H +31H +52H +30H +31H +30H +30H +30H +03H = 1DAH
Low position 1 byte of result of addition (1DAH)=DAH
Two's complement of low position 1 byte (DAH)=26H
13 : "2"=32H, 14 : "6"=36H
Example 3: In the case of a read command (R) with XOR set for BCC
1 2 3 4 5 6 7 8 9 10 12 13 14 15
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), though.
Hexadecimal numbers 0H 1H 8H CH
(Hex) "0" "1" "8" "C"
ASCII data 30H 31H 38H 43H
6 7 8 9
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
-7-
• 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.
Text portion
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 4 0 0 4
the front data address.
52H 30H 34H 30H 30H 34H
d e g
5 6 7 11
first data second data 5th data
R 0 0 , 0 0 1 E 0 0 7 8 0 0 0 3
52H 30H 30H 2CH 30H 30H 31H 45H 30H 30H 37H 38H 30H 30H 30H 33H
-8-
Data address Data
16 bits (1 word) 16 bits (1 word)
4 0404 0003 3
• To the above read command (R), the following data are returned one by one as response data:
Thus, the above data can be read.
d e
5 6 7
R 0 7
52H 30H 37H
To use a write command, the COM mode has to be selected on the 4-1 Communication mode selecting screen. As this
parameter is unable to be changed from LOC to COM by front key operation, however, the change should be made by the
following command transmission: (In the case of address=01, sub-address=1, start character=STX and BBC operation=addition)
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
Once the above command is transmitted and a normal response is returned, the COM LED lamp on the front panel lights and
mode is changed to communication.
Text Portion
d e f g
5 6 7 8 9 10 11
Data to be written
W 0 4 0 0 0 , 0 0 2 8
57H 30H 34H 30H 30H 30H 2CH 30H 30H 32H 38H
d e
5 6 7
W 0 0
57H 30H 30H
d e
5 6 7
W 0 9
57H 30H 39H
- 10 -
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 0001 "0", "1" : 30H, 31H Hardware error When a hardware error such as framing overrun or
in text portion parity error has been detected in data in the text portion.
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 of text portion, Data of text portion is not in fixed format,
data address or the number or data address or the number of data is different
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 1010 "0", "A" : 30H, 41H Execution command error Execution command (such as AT command) was
received in conditions where that execution
command is not acceptable.
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.
- 12 -
Data
address Parameter Setting range R/W
(hex)
0100 PV_W Measured value R
0101 SV_W SV value in execution R
0102 OUT1_W Control output 1 value R
0103 OUT2_W Control output 2 value (without option = 0000H) R
0104 EXE_FLG Action flag (bit without action = 0) R
0105 EV_FLG Event output flag (without option = 0000H) R
Data
address Parameter Setting range R/W
(hex)
0182 OUT1_W Control output 1, Set value in MAN operation W
0183 OUT2_W Control output2, Set value in MAN operation W
0184 AT 0=No execution, 1=Execution W
0185 MAN 0=AUTO, 1=MAN W
- 13 -
Data
address Parameter Setting range R/W
(hex)
0500 EV1_MD Event 1 mode See "7-2 Event type list." (option) R/W
0501 EV1_SP Event 1 set value See "7-2 Event type list." (option) R/W
A change to communication is also possible when , or is set for
the event mode but any change of event mode is followed by initialization.
(Writable range = –1999 ~ 9999)
0502 EV1_DF Event 1 hysteresis (option) R/W
0503 EV1_STB Event 1 stand-by actions (option) R/W
1: Alarm action without stand-by
2: Alarm action with stand-by (when power is plied)
3: Alarm action with stand-by
(when power is applied and when SV is changed)
4: Control action without stand-by
0508 EV2_MD Event 2 mode See "7-2 Event type list." (option) R/W
0509 EV2_SP Event 2 set value See "7-2 Event type list." (option) R/W
A change to communication is also possible when , or is set for
the event mode but any change of event mode is followed by initialization.
(Writable range = –1999 ~ 9999)
050A EV2_DF Event 2 hysteresis (option) R/W
050B EV2_STB Event 2 standby actions (option) R/W
1: Alarm action without standby
2: Alarm action with standby (when power is plied)
3: Alarm action with standby
(when power is applied and when SV is changed)
4: Control action without standby
05A0 A01_MD Analog output mode 0=PV, 1=SV, 2=dEV, 3=OUT1, 4=OUT2 (option) R/W
05A1 A01_L Anlog output scale on lower limit side (option) R/W
05A2 A01_H Analog output scale on higher limit side (option) R/W
05B0 COM_MEM Communication memory mode 0=EEP, 1=RAM, 2=r_E (option) R/W
- 14 -
Data
address Parameter Setting range R/W
(hex)
0704 UNIT Unit of input data 0: "˚C" 1: "˚F" R/W
0705 RANGE Refer to 7-1. Table of measuring range codes R/W
0706 Reserved R/W
0707 DP 0: None 1: 0.1 2: 0.01 3: 0.001 R/W
0708 SC_L –1999 ~ 9989 UNIT Unchangeable except linear input R/W
0709 SC_H –1989 ~ 9999 UNIT R/W
7. Supplementary explanation
7-1. Table of measuring range codes
Measuring range
Input Code Type of Input
°C °F
01 B *1 0 1800 0 3300
02 R 0 1700 0 3100
03 S 0 1700 0 3100
04 K -199.9 400.0 -300 750
05 K 0.0 800.0 0 1500
Thermocouple
06 K 0 1200 0 2200
07 E 0 700 0 1300
08 J 0 600 0 1100
09 T -199.9 200.0 -300 400
10 N 0 1300 0 2300
11 PLII 0 1300 0 2300
12 WRe5-26 0 2300 0 4200
Multi-input
83 0 2V
V
84 0 5V
85 1 5V
86 0 10 V
Current
91 0 20 mA
mA
92 4 20 mA
*1 Thermocouple B: Accuracy cannot be guaranteed on temperatures
below 400 °C and 752 °F.
b4 ~ b1 0 1 2 3 4 5 6 7
The contents of this instruction manual are subject to change without notice for improvement.
Temperature and Humidity Control Specialists
- 16 -