9. Table of identifiers (codes) ................................................................................................ 38
10. Table of ASCII codes ......................................................................................................... 41
3
1. Before using the product
1.1 On this operation manual
This is an operation manual regarding communications with a TTM-000 Series (hereinafter referred
to as "this product").
1.2 Conditions for communications
The communications function of this product is optionally specified. For that reason, you should
specify a communications option (RS-485) in purchasing this product.
1.3 What can be done with communications
With this product, users can write and read items specified in "9. Table of identifiers (codes)," such
as "reconfiguring, starting, or stopping items that are operable with the front keys" and "reading
information displayable on the display."
However, reading and writing with ordinary commands are performed with regarding to the RAM in
this product. Written data can be turned back into the values before the writing (the values stored on
the EEPROM) by turning power off and on again. To store the written data on the EEPROM of this
product, execute a store request message. (See "Communications precautions." in chapter 3.6, 6.6
and 6.11.)
Settings regarding options not added and other unnecessary settings cannot be read or written.
1.4 Positioning communications (priority ranking)
Data and parameters in this product can be changed with keys while in operation in the
communications mode.
While this product is in operation in the RO (read-only) mode, no data or parameter setting can be
changed by communications. (Provided that communications modes can be changed.)
1.5 Setting before communications
Before performing communications, this product must be set. See "2. Settings regarding TOHO
communications" and "5. Settings regarding MODBUS communications."
4
2. Settings regarding TOHO communications
2.1 Overview
Before communications is performed, initial settings must be made on this product. Enter such
settings with the keys on the front panel.
To switch to a series of setting screens, take the steps described below.
For details, see the operation manual furnished with this product.
Power ON
Initial setting
MODE key at least 2 seconds
▲ ▼key
MODE Key
MODE Key
MODE Key
(For 4 seconds)
Operation mode screen
(Setting mode selection
screen)
Select a communications
setting mode
Set a communications protocol
: TOHO communications protocol
Select a communications
parameters
Select a communications
speed
MODE Key
Select a communications
MODE Key
MODE Key
MODE Key
Back to communications mode selection
address
Select a communications
response delay
Select communications
mode switchover
When the settings are over, press the MODE key at least 2 seconds to go back to the operation mode.
The parameters indicated above are initial values.
5
2.2 Setting a data length
Stop bit 1
Stop bit 2
No parity
O
dd parity
Even parity
Data length, 7 bits
Data length, 8 bits
BCC check disabled
BCC check enabled
1200 BPS
2400 BPS
4800 BPS
9600 BPS
19200 BPS
2.3 Setting a stop bit length
2.4 Setting a parity
2.5 Setting whether to conduct a BCC check
While in the "Set a communications parameter" screen on the preceding page, operate the ▲ and ▼
keys to make the settings. The initial value is .
****
2.6 Setting a communications speed
While in the "Set a communications speed" screen on the preceding page, operate the ▲ and ▼ keys
to make the settings. The initial value is .
****
2.7 Setting an address
While in the "Set a communications address" screen on the preceding page, operate the ▲ and ▼
keys to make the settings. The initial value is .
Setting range: 1 to 99 stations (It cannot be set to a 0.)
6
2.8 Setting a response delay
Read and write
Read
-only
Set a time from the time when the high-level computer finished sending a "request message" until
the time when it delivers the line and enters an input state.
While in the "Set a response delay" on the preceding page, operate the ▲ and ▼ keys to make the
settings. The initial value is 0.
Setting range: 0 to 250msec
* If the response delay is set to a short setting, the communications may not be conducted normally.
* In a real operation, the processing time for this product will be added, in addition to the response
delay.
2.9 Switching communications mode
While in the "Set communications mode switchover" screen on the preceding page, operate the ▲
and ▼ keys to make the settings.
****
7
3. TOHO communications control
3.1 Communications procedure
This product returns a "response message" in response to a "request message" from a high-level
computer. It therefore does not initiate a transmission.
3.2 Message types
Messages are roughly divided into the following types:
Request message (transmitted
from a high-level computer)
Read request message
Write request message
Response message (transmitted
from this product)
Receipt acknowledgement and data
response
Write complete response
Reception error and error description
response
Store request message
: Response when a normal "request message" is received
: When a received "request message" contains an error
Store complete response
All codes (except for BCC) from STX and data to ETX are expressed in ASCII codes.
In assembling a program for a high-level computer, see "9. Table of identifiers (codes)" and "10.
Table of ASCII codes" at the end of the book.
8
3.3 Composition of a request message
(transmitted from a high-level computer to this product)
For codes ① to ⑩, see "3.5 Description of codes."
For specific examples of request messages, see "4.1 Examples of communications to be read"
and "4.2 Examples of communications to be written."
3.3.1 Composition of a read request message
S
□
□
T
□
R
X
①
Start code②Address③Contents of the
|
request: read/write
Identifier
3.3.2 Composition of a write request message
S
□
□
□
□
□
T
W
□
X
①
Start code②Address③Contents of the
request: read/write
|
④
|
Identifier
|
B
E
□
□
C
T
C
X
|
④
⑥
End code⑦BCC data
B
□
□
⑤
|
Numerical data
E
□
□
C
T
C
X
⑥
|
|
End code⑦BCC data
3.3.3 Composition of a store request message
S
□
□
T
W
S
X
①
Start code②Address③Contents of the
|
request: read/write
9
B
RET
|
X
⑥
End code⑦BCC data
CC
T
④
Identifier
3.4 Composition of a response message
(transmitted from this product to a high-level computer)
For codes ① to ⑩, see "3.5 Description of codes."
For specific examples of request messages, see "4.1 Examples of communications to be read"
and "4.2 Examples of communications to be written."
3.4.1 Response message in response to a read request message
STX
A
□
□
□
□
□
□
□
□
C
□
K
B
E
□
C
T
C
X
①
Start code②Address
⑧
Acknowledge code
|
④
|
Identifier
⑤
|
|
Numerical data
⑥
|
|
End code⑦BCC data
3.4.2 Response message in response to a write/store request message
STX
①
Start code②Address
A
B
□
E
□
C
C
T
K
C
X
⑥
⑧
End code⑦BCC data
Acknowledge code
3.4.3 Response message in the case of an error
STX
N
□
□
AK
B
E
□
C
T
C
X
①
Start code②Address
acknowledge code
Negative
10
⑥
⑨
⑩
End code⑦BCC data
Error code
3.5 Description of codes
The codes from ① STX, ② address to ⑩ ERR type as indicated below are expressed in
ASCII codes.
For the ASCII codes, see "10. Table of ASCII codes."
For conversion to ASCII codes, see "4. Examples of TOHO communications."
① STX
This code is needed for the receiver to detect the top of the message. It is affixed to the top
of a character string to be sent.
② Address
This is the address of the party (this product) with whom a high-level computer
communicates. The address in the response message from this product indicates the sender
of the response message.
③ Contents requested
Enter a code R or W.
R: to read data from this product
W: to write or store data in this product
④ Identifier
An identifier is a classification code (identifier) for data to be read or written and expressed
in a three-digit alphanumerical ASCII code. See "9. Table of identifiers (codes)."
⑤ Numerical data
These are data to be read or written, and are all expressed in five digits regardless of the
type.
Negative data: The "-" (minus) sign is in a single digit at the largest digit.
Position of the decimal point: 5-digit data does not include a decimal point.
Example: The table below indicates the significances of 5-digit numerical data -9999.
The data of which the
decimal point position
can be changed
(PV/SV)
Setting Meaning of Value
When decimal point position [_dP *] is 0
When decimal point position [_dp *] is 0.0
When decimal point position [_dp *] is 0.00
When decimal point position [_dp *] is 0.000
-9999
-999.9
-99.99
-9.999
11
⑥ ETX
Error No.
Error contents in the "request message" received by this product
0
Instrument error (memory error or A/D conversion error)
1 The numerical data deviated from the "range of settings desi
gnated specifically with setting
items."
2
The change of requested items is disabled or there are no items to be read.
3 An ASCII code other than the numerical data was specified in the field of numerical data.
An ASCII code other than "0" and "
-
" was sp
ecified in the field of codes.
4 Format error
5
BCC error
6 Overrun error
7 Framing error
8
Parity error
9 A PV error occurred during AT. Or AT will not end 3 hours later.
This code is needed for the receiver to detect the end of a message. It is affixed to the end of
a character string to be sent (except for BCC).
⑦ BCC
This is a check code for error detection and is the exclusive OR (EX-OR) of all characters
from STX to ETX.
If the BCC check is set to "Disabled" in the communications settings in this product, this
code (BCC) will not be incorporated in the response message. See "2. Settings regarding
TOHO communications."
⑧ ACK
It is an acknowledge code. If a message received by this product is error-free, this code will
be incorporated in the "response message" from this product and returned.
⑨ NAK
It is a negative acknowledge code. If a "request message" received by this product is
error-ridden, this code will be incorporated in the "response message" from this product and
returned.
If the "request message" received is error-ridden, the error contents (⑩ ERR type) will be
incorporated in the "response message" from this product, following NAK.
⑩ ERR type
If a "request message" received from this product is error-ridden, the error contents (either
of the numbers in the table below) will be incorporated in the "response message" from this
product, following "⑨ NAK."
The error number 0 is an instrument error (memory error or A/D conversion error). It will
be incorporated in the "response message" regardless of whether there is an error in the
"request message."
The error number 9 is an AT error. It will therefore be incorporated in the "response
message" regardless of whether there is an error in the "request message." Remove the
cause of the error immediately and start the AT again.
If there are two or more errors occurring at the same time, the largest error number will be
incorporated.
The table below indicates the error contents and classifications.
12
3.6 Communications precautions
3.6.1 Communications timing
Set a sufficient response delay to make sure that this product is switched over from transmission to
reception with regard to a high-level computer in using an RS-485.
See the figure in "3.1 Communications procedure" and "2.8 Setting a response delay."
3.6.2 Interval between requests
In transmitting a series of "request messages" from a high-level computer, allow for an interval of
1msec or more from the reception of a "response message" from this product to a next
transmission.
3.6.3 Response conditions
This product will not return a "response message" unless it receives a "request message" containing
an STX and ETX (BCC).
If, therefore, the "request message" is error-ridden, this product will not return a "response
message" (error reply) containing a NAK and ERR unless the conditions mentioned above are met.
Therefore, the high-level computer transmits the necessary "request message" again if a "request
message" is sent to this product but the latter does not return a "response message" at the end of an
appropriate period.
The moment this product receives an STX, it clears all codes received before that.
3.6.4 Errors in address specification
This product will not respond to any "request message" that specifies an address other than that
specified for itself. If, therefore, the address portion of a "request message" is error-ridden, none of
the mobile units will return a "response message."
Therefore, the high-level computer transmits the necessary "request message" again if a "request
message" is sent to this product but the latter does not return a "response message" at the end of an
appropriate period.
The moment this product receives an STX, it clears all codes received before that.
3.6.5 Number of digits in data and the decimal position
See "3.5 Description of codes, ⑤ Numerical data."
3.6.6 Operation after receiving a store request message
This product starts to store data after correctly receiving a store request message from a high-level
computer.
This product only stores data different from the contents of the EEPROM (data that is changed).
The time (TW) required for storing data is within 6 seconds.
This product transmits a storage-complete reply (ACK) when the data is stored.
This product will not guarantee that the data is stored if this product is turned off during a storage
operation. Do not turn off this product for 6 seconds after transmitting a store request message.
3.6.7 Operation after turning on the power
This product will not perform communications (no response) for about 4 seconds after it is turned
on. Allow for a delay until communications is started after this product is turned on.
13
3.6.8 Storing data other than a store request message
Store all parameters in the EEPROM in either of the two cases described below, even if no store
request message is received.
1) If a parameter is changed by key operation
2) If auto-tuning is started and ends normally.
3.6.9 Changing the settings (SV or SV2) by communications during auto-tuning
Even if the settings (SV or SV2) used in control for auto-tuning are changed by communications,
the settings (SV or SV2) will not be changed until the auto-tuning ends.
14
4. Examples of TOHO communications
Code Code, data
ASCII
code, note 2)
①
Start code
STX 02H
②
Address
27
32H 37H
③
Request contents
R (Read)
52H
④
Identifier, note 1)
PV1 50H 56H 31H
⑤
Numerical data
00777
30H 30H 37H 37H 37H
⑥
End code
ETX 03H
⑦
BCC data request
61H
response
02H
⑧
Acknowledg
e code
ACK 06H
4.1 Examples of communications to be read
Example: Request message: This requests this product set at address 27 to read the PV.
(High-level computer)
In response to that,
Response message: This returns PV data (00777).
(This product)
Read request message (transmitted from the high-level computer)
ST
2
7
R
P
V
X
①
②
③
④
|
B
E
C
T
1
C
X
|
⑥
⑦
STX
①
Note 1): See "9. Table of identifiers (codes)."
Note 2): For the ASCII codes, see "10. Table of ASCII codes."
AC
2
7
P
V
1
0
0
7
7
7
K
②
⑧
|
④
|
|
|
|
|
⑤
B
E
C
T
C
X
⑥
⑦
15
4.2 Examples of communications to be written
Code Code, data
ASCII code, note 2)
①
Start code
STX 02H
②
Address
03
30H 33H
③
Request contents
W (Write)
57H
④
Identifier, note 1)
E1F 41H 34H 46H
⑤
Numerical data
00135
30H 30H 30H 31H 31H
⑥
End code
ETX 03H
⑦
BCC data request
53H
response
04H
⑧
Acknowledge code
ACK 06H
Example: Request message: This requests this product set at address 03 to set "the E1F setting to
(High-level computer) 011" (write 011).
(This sets the function in event 1 to the deviation upper and lower
limits + hold.)
In response to that,
Response message: This returns a notice that the request message has been received.
(This product)
*Check that it has been written by reading the data separately.
Write request message (transmitted from a high-level computer)
S
0
3
W
E
1
F
0
0
0
T
1
X
①
②
③
|
④
|
|
|
⑤
|
B
E
1
C
T
C
X
⑥
⑦
|
STX
①
Note 1): See "9. Table of identifiers (codes)."
Note 2): For the ASCII codes, see "10. Table of ASCII codes."
A
0
②
E
3
C
T
K
X⑥⑦⑧
BCC
16
5. Settings regarding MODBUS communications
: MODBUS (RTU) (Initial value: )
: MODBUS (ASCII) (Initial value: )
5.1 Overview
Before communications is performed, initial settings must be made on this product. Enter such
settings with the keys on the front panel.
To switch to a series of setting screens, take the steps described below.
For details, see the operation manual furnished with this product.
For MODBUS (RTU) For MODBUS (ASCII)
Power ON
↓↓
↓↓
↓ MODE key at least 2 seconds↓ MODE key at least 2 seconds
↓▲▼key↓ ▲▼key
↓ MODE key↓ MODE key
↓ MODE key↓ MODE key
Initial setting (for 4 seconds)
Operation mode
Setting mode selection screen
Communications setting mode
Set a communications protocol
Set a communications parameter
Power ON
Initial setting (for 4 seconds)
Operation mode
Setting mode selection screen
Communications setting mode
Set a communications protocol
Set a communications parameter
↓ MODE key↓ MODE key
↓ MODE key↓ MODE key
↓ MODE key↓ MODE key
↓ MODE key↓ MODE key
↓ MODE key↓ MODE key
Back to communications setting mode Back to communications setting mode
Set a communications speed
Set a communications address
Set a communications response delay
Set communication mode changeover
*The changeover setting is disabled.
Set a communications speed
Set a communications address
Set a communications response delay
Set communication mode changeover
*The changeover setting is disabled.
When the settings are over, press the MODE key at least 2 seconds to go back to the operation mode.
17
5.2 Setting a data length
Stop bit 1
Stop bit 2
No parity
Odd parity
Even parity
Data length, 7 bits
Data length, 8 bits
1200 BPS
2400 BPS
4800 BPS
9600 BPS
19200 BPS
5.3 Setting a stop bit length
5.4 Setting a parity
5.5 Setting a BCC check
The BCC check is disabled.
Initial value of MODBUS (RTU):Initial value of MODBUS (ASCII):
***
* The RTU mode settings come only in three types:
The ASCII mode settings come only in three types:
、、
、、
.
.
5.6 Setting a communications speed
While in the "Set a communications speed" screen on the preceding page, operate the ▲ and ▼ keys
to make the settings. The initial value is .
****
5.7 Setting an address
While in the "Set a communications address" screen on the preceding page, operate the ▲ and ▼
keys to make the settings. The initial value is .
Setting range: 1 to 247 stations (It cannot be set to a 0.)
18
5.8 Setting a response delay
Read/Write
Read-only
Set a time from the time when the high-level computer finished sending a "request message" until
the time when it delivers the line and enters an input state.
While in the "Set a response delay" on the preceding page, operate the ▲ and ▼ keys to make the
settings. The initial value is 0.
Setting range: 0 to 250msec
* If the response delay is set to a short setting, the communications may not be conducted normally.
* In a real operation, the processing time for this product will be added, in addition to the response
delay.
5.9 Switching communications mode
While in the "Set communication mode changeover" screen on page 17, operate the ▲ and ▼ keys
and make a setting.
* The changeover setting is disabled.
19
6. MODBUS communications control
6.1 Communications procedure
This product returns a "response message" in response to a "request message" from a high-level
computer. It therefore does not initiate a transmission.
6.2 Message types
Messages are roughly divided into the following types:
Request message (transmitted
from a high-level computer)
Read request message
Write request message
Response message (transmitted
from this product)
Receipt acknowledgement and data
response
Write complete response
Reception error and error description
response
Store request message
: Response when a normal "request message" is received
: When a received "request message" contains an error
Store complete response
In RTU codes, the data is binary.
In ASCII codes, all codes are expressed in ASCII codes.
In assembling a program for a high-level computer, see "9. Table of identifiers (codes)" and "10.
Table of ASCII codes" at the end of the book.
20
6.3 Composition of an RTU request message (transmitted from a high-level computer
a) Slave address
1BH b)
Function code
03H
High level
00H
Low level
00H
High level
00H
Low level
02H
Low level 31H High level C6H
a) Slave address
03H
b) Function code
10H
High level
00H
Low level
C0H
High level
00H
Low level
02H
f) Number of data items
04H Number of registers
2
High level
00H
③
When writing
, and ④
Low level
6FH
④
High level
00H
① Low level
00H
②
Low level 5AH
High level C4H
a) Slave address
03H b)
Function code
10H
High level
02H
Low level
0EH
High level
00H
Low lev
el 02H f) Number of data items
04H Number of registers
2
High level
00H
Low level
00H
Hi
gh level
00H
Low level
00H
Low level FBH High level 60H
to this product)
For codes a) through i), see "6.5 Description of RTU codes."
6.3.1 Composition of a read request message
c) Register address
d) Number of registers
e) CRC-16
6.3.2 Composition of a write request message
c) Register address
d) Number of registers
Data for the first register
(a low-level word)
g)
Data for the first register + 1
(a high-level word)
First register address
Fixed at 2
First register address
Fixed at 2
①, ②, ③
H in the data, write them in the
order described on the left-hand
side. (① represents 1 byte.)
e) CRC-16
6.3.3 Composition of a store request message
c) Register address
d) Number of registers
Data for the first register
(a low-level word)
g)
Data for the first register + 1
(a high-level word)
e) CRC-16
First register address
Fixed at 2
The data about the storage of settings is
arbitrary.
21
6.4 Composition of an RTU response message
a) Slave address
1BH b)
Function code
03H d)
Number of data items
04H Number of registers
2
High level
03H
③
When writing
, and ④
Low level
09H
④
High level
00H
①
Low level
00H
②
Low level B4H
High level 91H
a) Slave address
03H b)
Function code
10H
High level
00H
Low level
00H
High level
00H
Low level
02H
Low level 2AH High level 40H
a) Slave address
1BH b)
Function code
83H
In the case of an error, the function
h) Error
code 02H
Low level 36H
High level E1H
(transmitted from this product to a high-level computer)
For codes a) through h), see "6.5 Description of RTU codes."
6.4.1 Response message for a read request message
Data for the first register
(a low-level word)
g)
Data for the first register + 1
(a high-level word)
e) CRC-16
6.4.2 Response message for a write/store request message
c) Register address
d) Number of registers
e) CRC-16
6.4.3 Response message in the case of an error
H in the data, write them in the
①, ②, ③
order described on the left-hand
side. (① represents 1 byte.)
First register address
Fixed at 2
code for the request message + 80H is
entered.
e) CRC-16
22
6.5 Description of RTU codes
The codes from a) slave address to b) function code to h) error code shown below are expressed
in 8-bit binary numbers.
a) Slave address
This is the address of the party (this product) with which the high-level computer
communicates. The address in the response message from this product represents the source
of the response message. Note that, when CH2 is used, 2 addresses are occupied. (When the
ADR is set to 1, addresses 1 and 2 are occupied.)
b) Function code
Enter a code 03H or 10H.
03H: To read data from this product
10H: To write or store data in this product
c) Register address
The locations of the data to be read or that to be written are specified in 2 bytes.
For the addresses of the commands, see "9. Table of identifiers (codes)."
The data is written in the holding register.
d) Number of registers
This specifies the number of registers to be written in. Since this product has a fixed number
of registers (which is 2), specify 0002H.
e) CRC-16
This error check code is for detecting message errors. This transmits a CRC-16 (tour
redundancy code).
The multinomial for generating a CRC-16 used in this product is X16+X15+X2+1.
To learn how to calculate the CRC-16, see "6.7 Example of CRC-16 calculations."
To affix an error code at the end of the message, affix the low-level byte first, then the
high-level byte of the CRC.
f) Number of data
This specifies the number of registers to be read and written x 2. Since the number of
registers in this product is fixed at 2, specify 04H here.
23
g) Data portion
Example
Significance of the value
Proportional band (P) = 1.0 %
0 0 00 0 0 0A H
PV = 1200.0
C 0 0 00 2E E0 H
SV =
-
10.00
C F F FF FC 18 H
Error No.
Error contents in the "request message" receive
d by this product
01
Received an unsupported function code.
02 Received an address other than the specified one.
03 The numerical data deviated from the "range of settings designated specifically with
setting items."
04
Instrument error (memory error o
r A/D conversion error, AT error)
This specifies data to be written in the register. The data is fixed at 4 bytes. This product
will write data without the decimal point.
Example: In the case of numerical data
Example: In the case of text data, write the ASCII code "□" (□ is a space)
Content of Communication HEX Data
Priority Screen 0-1 =□INP
Priority Screen 0-2 =□MV1
Priority Screen 0-3 =□□P1
20494E50H
204D5631H
20205031H
h) Error code
If a message from a high-level computer is error-ridden, it will be incorporated in the
"response message" from this product and returned.
The error number "04" is an instrument error (memory error or A/D conversion error, AT
error). It will be incorporated in the "response message" regardless of whether there is an
error in the "request message."
If there are two or more errors occurring at the same time, the largest error number will be
incorporated.
The table below indicates the error contents and classifications.
24
6.6 Precautions on RTU communications
6.6.1 Communications timing
Set a sufficient response delay to make sure that this product is switched over from transmission to
reception with regard to a high-level computer in using an RS-485.
See the figure in "6.1 Communications procedure" and "5.8 Setting a response delay."
6.6.2 Interval between requests
In transmitting a series of "request messages" from a high-level computer, allow for an interval of
1msec or more or 3.5 character minutes, whichever the longer, from the reception of a "response
message" from this product to a next transmission.
6.6.3 Response conditions
If there is a time interval of 3.5 characters or more between data items constituting a "request
message," this product cannot recognize it as a "request message." It will therefore not return a
"response message." If, therefore, the "request message" contains an error, this product will not
return a "response message" (error reply) containing an ERR unless the above conditions are met.
Therefore, the high-level computer transmits the necessary "request message" again if a "request
message" is sent to this product but the latter does not return a "response message" at the end of an
appropriate period.
The moment a period of 3.5 characters or more has elapsed, it clears all codes received before that.
6.6.4 Errors in address specification
This product will not respond to any "request message" that specifies an address other than that
specified for itself. If, therefore, the address portion of a "request message" is error-ridden, none of
the mobile units will return a "response message."
Therefore, the high-level computer transmits the necessary "request message" again if a "request
message" is sent to this product but the latter does not return a "response message" at the end of an
appropriate period.
6.6.5 Number of digits in data and the decimal position
See "6.5 Description of RTU codes, g) Data portion."
6.6.6 Operation after receiving a store request message
This product starts to store data after correctly receiving a store request message from a high-level
computer.
This product only stores data different from the contents of the EEPROM (data that is changed).
The time (TW) required for storing data is within 6 seconds.
This product transmits a storage-complete reply after the data is stored.
This product will not guarantee that the data is stored if this product is turned off during a storage
operation. Do not turn off this product for 6 seconds after transmitting a store request message.
6.6.7 Operation after turning on the power
This product will not perform communications (no response) for about 4 seconds after it is turned
on. Allow for a delay until communications is started after this product is turned on.
25
6.6.8 Storing data other than a store request message
This product will store all parameters in the EEPROM in either of the two cases described below,
even if no store request message is received.
1) If a parameter is changed by key operation
2) If auto-tuning is started and ends normally.
6.6.9 Changing the settings (SV or SV2) by communications during auto-tuning
Even if the settings (SV or SV2) used in control for auto-tuning are changed by communications,
the settings (SV or SV2) will not be changed until the auto-tuning ends.
6.7 Example of CRC-16 calculations
Following is an example of calculating CRC-16 with VisualBasic6.0.
Variables are declared as shown below.
VisualBasic6.0 cannot use code-free variables. It therefore uses code-equipped 16-bit integer
variables as data. Similarly, the CRC calculation results are entered into code-equipped 32-bit
integer variables.
Dim CRC As Long
Dim i, j, arry_count As Integer
Dim c_next, c_carry As LongDim crc_arry(64) As Integer
Then enter calculable data into the crc_arry(), and enter the number of data items into the arry_count.
After that, run the following program to cause the calculation results to enter the CRC.
i = 0
CRC = 65535
For i = 0 To arry_count
c_next = crc_arry(i)
CRC = (CRC Xor c_next) And 65535
For j = 0 To 7
c_carry = CRC And 1
CRC = CRC ¥ 2
If c_carry Then
CRC = (CRC Xor &HA001) And 65535
End If
Next
Next
To affix an error code to the end of the message, affix first the low-level byte and then the high-level
byte of the CRC.
26
6.8 Composition of an ASCII request message
a) Start code
“:” b)
Slave address
“1” , “B”
c) Function code
“0” , “3”
High level
“0” , “0”
Low level
“0” , “0”
High level
“0” ,
“0”
Low level
“0” , “2”
f)
LRC “E” , “0”
g) End code
CR, LF
a) Start code
“:”
b) Slave address
“0” , “3”
c) Function code
“1” , “0”
High level
“0” , “0”
Low level
“C” , “0”
High level
“0” , “0”
Low level
“0” , “2”
h) Number of data items
“0” , “4”
Number of registers
2
High level
“0” , “0”
③
When writing
, and ④
Low level
“6” , “F”
④
High level
“0” , “0”
①
Low level
“0” , “0”
②
f) LRC “E” , “0”
g) End code
CR, LF
(transmitted from a high-level computer to this product)
For the codes a) through g), see "6.10 Description of ASCII codes."
6.8.1 Composition of a read request message
d) Register address
e) Number of registers
6.8.2 Composition of a write request message
d) Register address
e) Number of registers
Data for the first register
(a low-level word)
i)
Data for the first register + 1
(a high-level word)
First register address
Fixed at 2
First register address
Fixed at 2
①, ②, ③
H in the data, write them in the
order described on the left-hand
side. (① represents 1 byte.)
27
6.8.3 Composition of a store request message
a) Start code
“:” b)
Slave address
“0” , “3”
c) Function code
“1” , “0”
High level
“0” , “2”
Low level
“0” , “E”
High level
“0” , “0”
Low level
“0” , “2”
h)
Number of data items
“0” , “4”
Number of registers
2
High level
“0” , “0”
Low level
“0” , “0”
High level
“0” , “0”
Low level
“0” , “0”
f) LRC “D” , “7”
g)
End code
CR, LF
d) Register address
e) Number of registers
Data for the first register
(a low-level word)
i)
Data for the first register + 1
(a high-level word)
First register address
Fixed at 2
The data about the storage of settings is
arbitrary.
28
6.9 Composition of ASCII response messages
a) Start code
“:” b)
Slave address
“1” , “B”
c) Function code
“0” , “3”
h) Number of data items
“0” , “4” Number of registers
2
High level
“0” , “3”
③
When writing
, and ④
Low level
“0” , “9”
④
High level
“0” , “0”
①
Low level
“0” , “0”
② f)
LRC “D” , “2”
g)
End code
CR, LF
a) Start code
“:”
b) Slave address
“0” , “3”
c)
Function code
“1” , “0”
High level
“0” , “0”
Low level
“0” , “0”
High level
“0” , “0”
Low level
“0” , “2”
f) LRC “E” , “B”
g) End code
CR, LF
a) Start code
“:”
b) Slave address
“1” , “B”
h) Function code
“8” , “3”
In the case of an error, the function
j) Error code
“0” , “2”
f)
LRC “6” , “0”
g) End code
CR, LF
(transmitted from this product to a high-level computer)
For the codes a) through g), see "6.10 Description of ASCII codes."
6.9.1 Response message for a read request message
Data for the first register
(a low-level word)
i)
Data for the first register + 1
(a high-level word)
6.9.2 Response message for a write/store request message
d) Register address
e) Number of registers
6.9.3 Response message in the case of an error
H in the data, write them in the
①, ②, ③
order described on the left-hand
side. (① represents 1 byte.)
First register address
Fixed at 2
code for the request message + 80H is
entered.
29
6.10 Description of ASCII codes
The codes from a) start code to b) slave address to j) error type described below are expressed
in ASCII codes.
For ASCII codes, see "10. Table of ASCII codes."
For converting to ASCII codes, see 6.8 and 6.9 "Message composition."
a) Start code
The receiver side is the code required for detecting the top of the message. It is affixed to
the top of a character string to be transmitted.
b) Slave address
This is the address of the party (this product) with which the high-level computer
communicates. The address in the response message from this product represents the
source of the response message. Note that, when CH2 is used, 2 addresses are occupied.
(When the ADR is set to 1, addresses 1 and 2 are occupied.)
c) Function code
Enter a code 03H or 10H.
03H: To read data from this product
10H: To write or store data in this product
d) Number of registers
This specifies the number of registers to be written in. Since this product has a fixed
number of registers (which is 2), specify 0002H.
e) Register address
The locations of the data to be read or that to be written are specified in 2 bytes.
For the addresses of the commands, see "9. Table of identifiers (codes)."
f) LRC
LRC is an error check code for detecting message errors. An LRC is transmitted. The LRC
used in this product is the 2-complement of the sum of the data portions without a carry,
except for the start code and end code of the message.
The parts of the data portions expressed as a "1" and "B" are considered as "1BH."
To learn how to calculate the LRC, see "6.12 Example of LRC calculations."
If 12H is calculated as an error code, affix a "1" or "2" at the end of the message.
g) End code
This code is required for the receiver to detect the end of a message. Affix CR (0DH) and
LF (0AH) at the end of a character string to be transmitted.
h) Number of data
This specifies the number of registers to be read and written x 2. Since the number of
registers in this product is fixed at 2, specify 04H here.
30
i) Data portion
Example
Significance of the v
alue Proportional band (P) = 1.0 %
0 0 00 0 0 0A H
PV = 1200.0
C 0 0 00 2E E0 H
SV =
-
10.00
C F F FF FC 18 H
Err
or No.
Error contents in the "request message" received by this product
01 Received an unsupported function code.
02 Received an address other than the specified one.
03 The numerical data deviated from the "range of settings designated specifically wit
h
setting items."
04
Instrument error (memory error or A/D conversion error, AT error)
This specifies data to be written in the register. The data is fixed at 4 bytes. This product
will write data without the decimal point.
Example: In the case of numerical data
Example: In the case of text data, write the ASCII code "□" (□ is a space)
Content of Communication HEX Data
Priority Screen 0-1 =□INP
Priority Screen 0-2 =□MV1
Priority Screen 0-3 =□□P1
20494E50H
204D5631H
20205031H
j) Error code
If a message from a high-level computer is error-ridden, it will be incorporated in the
"response message" from this product and returned.
The error number "04" is an instrument error (memory error or A/D conversion error, AT
error). It will be incorporated in the "response message" regardless of whether there is an
error in the "request message."
If there are two or more errors occurring at the same time, the largest error number will be
incorporated.
The table below indicates the error contents and classifications.
31
6.11 Precautions on ASCII communications
6.11.1 Communications timing
Set a sufficient response delay to make sure that this product is switched over from transmission
to reception with regard to a high-level computer in using an RS-485.
See the figure in "6.1 Communications procedure" and "5.8 Setting a response delay."
6.11.2 Interval between requests
In transmitting a series of "request messages" from a high-level computer, allow for an interval of
1msec or more or 3.5 character minutes, whichever the longer, from the reception of a "response
message" from this product to a next transmission.
6.11.3 Response conditions
This product will not return a "response message" unless the "request message" contains a start
code and end code.
If, therefore, the "request message" contains an error, this product will not return a "response
message" (error reply) containing an error code unless the above conditions are met.
Therefore, high-level computer transmits the necessary "request message" again if a "request
message" is sent to this product but the latter does not return a "response message" at the end of
an appropriate period.
The moment a start code is received, this product clears all codes received before that.
6.11.4 Errors in address specification
This product will not respond to any "request message" that specifies an address other than that
specified for itself. If, therefore, the address portion of a "request message" is error-ridden, none
of the mobile units will return a "response message."
Therefore, the high-level computer transmits the necessary "request message" again if a "request
message" is sent to this product but the latter does not return a "response message" at the end of
an appropriate period.
The moment a start is received, this product clears all codes received before that.
6.11.5 Number of digits in data and the decimal position
See "6.10 Description of ASCII codes, i) Data portion."
6.11.6 Operation after receiving a store request message
This product starts to store data after correctly receiving a store request message from a
high-level computer.
This product only stores data different from the contents of the EEPROM (data that is changed).
The time (TW) required for storing data is within 6 seconds.
This product transmits a storage-complete reply after the data is stored.
This product will not guarantee that the data is stored if this product is turned off during a storage
operation. Do not turn off this product for 6 seconds after transmitting a store request message.
6.11.7 Operation after turning on the power
This product will not perform communications (no response) for about 4 seconds after it is turned
on. Allow for a delay until communications is started after this product is turned on.
32
6.11.8 Storing data other than a store request message
This product will store all parameters in the EEPROM in either of the two cases described below,
even if no store request message is received.
1) If a parameter is changed by key operation
2) When the auto-tuning is activated and ends normally, only PID constant will be written.
6.11.9 Changing the settings (SV or SV2) by communications during auto-tuning
Even if the settings (SV or SV2) used in control for auto-tuning are changed by communications,
the settings (SV or SV2) will not be changed until the auto-tuning ends.
33
6.12 Example of LRC calculations
Following is an example of calculating LRC with VisualBasic6.0.
Variables are declared as shown below.
VisualBasic6.0 cannot use code-free variables. It therefore uses code-equipped 16-bit integer
variables as data. Similarly, the LRC calculation results are entered into code-equipped 16-bit
integer variables.
Dim LRC As Integer
Dim i, arry_count As Integer
Dim lrc_arry(128) As Integer
Then enter calculable data into the 1rc_arry(), and enter the number of data items
into the arry_count
After that, run the following program to cause the calculation results to enter the LRC.
For i = 0 To arry_count
LRC = (LRC + lrc_arry(i)) And &HFF
Next
LRC = ((Not LRC) + 1) And &HFF
If the error code is calculated as 12H as an example, affix a "1" or "2" at the end of the message.
34
7. Specifications
7.1 Communications standard category
Compliant with EIA standard RS-485
7.2 Communications specifications
7.2.1 Communications system
Network: ........................................ Multi-drop system (up to 1 pair, 31 stations)
Direction of information: ............... Half duplex
Transmission code: ........................ ASCII, 7 bit code, except for BCC data
(highest-level bit = 0 in 8-bit code)
7.2.2 Interface system
Signal line: ..................................... 2 lines for transmission and reception
Communications speed: ................. 1,200, 2,400, 4,800, 9,600 and 19,200 bps and this product is
set to it.
Communications distance: ............. 500m maximum
Provided that it varies somewhat depending on the cable and other ambient conditions.
7.2.3 Character
1) TOHO communications protocols
Start bit length: ......................... Fixed at 1 bit
Stop bit length: ......................... Either 1 or 2 bit is selected and this product is set to it.
Data length: .............................. Either 7 or 8 bit is selected and this product is set to it.
Parity: ....................................... No. Either odd or even is selected and this product is set to it.
BCC check:............................... Yes or no is selected and this product is set to it.
Communications address: ......... 1-99
2) MODBUS communications (RTU) protocols
Start bit length: ......................... Fixed at 1 bit
Stop bit length: ......................... Either 1 or 2 bit is selected and this product is set to it.
(If parity-equipped, fixed at 1 bit.)
Data length: .............................. Fixed at 8 bit.
Parity: ....................................... No. Either odd or even is selected and this product is set to it.
CRC-16 check: ......................... Fixed at yes.
Communications address: ......... 1-247
3) MODBUS communications (ASCII) protocols
Start bit length: ......................... Fixed at 1 bit
Stop bit length: ......................... Either 1 or 2 bit is selected and this product is set to it.
(If parity-equipped, fixed at 1 bit.)
Data length: .............................. Fixed at 7 bit.
Parity: ....................................... No. Either odd or even is selected and this product is set to it.
LRC check: ............................... Fixed at yes.
Communications address: ......... 1-247
4) MODBUS communications (RTU/ASCII) function codes
03H (reading the contents of the holding register)
10H (writing the contents of two or more holding registers)
35
8. Connections
Host Computer
(Master Station)
A(+)
B(-)
Cable①
terminating
resistor
①
Cable②
Cable③
Unit1
(Slave Station)
A(+)
B(-)
Unit2
(Slave Station)
A(+)
B(-)
Unit3
(Slave Station)
A(+)
terminatin
g resistor
②
○Above drawing shows example of connecting 1 to 3 slave stations to a master station.
◇ Use cables with the same characteristic impedance for cables ① to ③.
- For slave station nos. 1 to 3, connect them dependently as shown in the drawing.
The same characteristic impedance cables are used for the connections between
the slave stations.
◇ Attach terminating resistor to both the master station side ① and the farthest ② ones among the
slave stations (no. 3).
◇ Make sure to select terminating resistor in order that the [Characteristic Impedance from cables ①
to ③] = [Resistance Value of ①] = [Resistance Value of ②]
- Furthermore, use characteristic impedance cable whose [Resistance Value of ①] // [Resistance
Value of ②] (parallel combination resistance value) becomes above 75-ohms.
B(-)
36
9. Table of identifiers (codes)
Relative
address
Absolute
address
When underscale: LL
LLL
Example:
INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Example: □□INP (identifier)
Decimal point: 00001
For the setting range, options, initial values, and similar parameters, see the operation manual for
this system.
a) Identifier: This code represents an item. Enter this code in the identifier field in the
message. The □ in the frame represents an SP (ASCII code: 20H).
b) Character: The character to be displayed on the system screen.
c) Name: Item name
d) R/W: This specifies which is possible: reading, writing, or both.
e) Description:
Note: The R/W to characters that do not meet the display conditions responds with "NAK2."
Example: If no EV2 option is selected, the R/W to the EV2 character becomes "NAK2."
Identifier
PV1 0000h 40001 Setting value (PV) R Use it as monitor for measurements (PV).
SV1 0002h 40003
PR1 0004h 40005
PR2 0006h 40007
PR3 0008h 40009
PR4 000Ah 40011
PR5 000Ch 40013
PR6 000Eh 40015
PR7 0010h 40017
PR8 0012h 40019
PR9 0014h 40021
INP 0016h 40023
PVG 0018h 40025
PVS 001Ah 40027
PDF 001Ch 40029
□DP001Eh 40031
Character
Setting value (SV) R/W R/W the setting value (SV)
Setting for 1st Priority display R/W RW the priority screen function setting 1
Setting for 2nd Priority display R/W RW the priority screen function setting 2
Setting for 3rd Priority display R/W RW the priority screen function setting 3
Setting for 4th Priority display R/W RW the priority screen function setting 4
Setting for 5th Priority display R/W RW the priority screen function setting 5
Setting for 6th Priority display R/W RW the priority screen function setting 6
Setting for 7th Priority display R/W RW the priority screen function setting 7
Setting for 8th Priority display R/W RW the priority screen function setting 8
Setting for 9th Priority display R/W RW the priority screen function setting 9
Input type setting R/W R/W the input type setting
PV correction gain R/W R/W the PV corrected gain setting
Zero point setting for PV correction R/W R/W the PV corrected zero point setting
Filter input R/W R/W the input filter setting
Position for decimal point R/W R/W the decimal position setting
Name R/W
Description
When overscale: HHHHH
No decimal point: 00000
□FU0020h 40033
LOC 0022h 40035
SLH 0024h 40037
SLL 0026h 40039
FUNC key setting R/W R/W the function key function setting
Key lock setting R/W R/W the key lock setting
High limit setting in SV limiter R/W R/W the SV limiter upper limit setting
Low limit setting in SV limiter R/W R/W the SV limiter lower limit setting
37
Relative
address
Absolute
address
□MD 0028h
40041
Control mode
setting
R/W R/W the control mode setting
Auto-tuning in progress:
00003
CNT 002Ah
40043
S
election of
control type
setting
R/W R/W the control type se
tting DIR 002Ch
40045
Change of normal or reverse
R/W R/W the forward/reverse operation
switchover setting
MV1 002Eh
40047
Manipulated value
for o
utput 1
R/W R/W the output 1 operation amount
TUN 0030h
40049
Set
for PID
tuning type
R/W R
/W the tuning type setting
ATG 0032h
40051
AT
coefficient setting
R/W R/W the AT factor
ATC 0034h
40053
AT sensitivity
setting
R/W R/W the AT sensitivity
□P1 0036h
40055
P
roportional band
set
ting
for
output
1
R/W R/W the output 1 proporti
onal band setting
□I1 0038h
40057
I
ntegral time
setting
R/W R/W the integral time setting
□D1 003Ah
40059
D
erivative time
setting
R/W R/W the derivative time setting
□T1 003Ch
40061
P
roportional
cycle setting
For
output 1
R/W R/W the out
put 1 proportional frequency
setting
ARW 003Eh
40063
ARW(
Anti-reset windup
) setting
R/W R/W the anti
-
reset windup
MH1 0040h
40065
High limit setting of manipulated
value for output 1
R/W R/W the amount
-of-
operation limiter upper
limit setting
ML1 0042h
40067
Low limit setting of manipulated
value for output 1
R/W R/W the amount
-of-
operation limiter lower
limit setting
□C1 0044h
40069
C
ontrol sensitivity
set
ting
for output 1
R/W R/W the output 1 control sensitivity setting
CP1 0046h
40071
OFF
position
setting for
output 1
R/W R/W the output 1 off
-
point position setting
MV2 0048h
40073
Manipulated value for o
utput 2
R/W R/W the output 2 operation amount
□P2 004Ah
40075
P
roportional band
set
ting
for
output
2
R/W R/W t
he output 2 proportional band setting
□T2 004Ch
40077
P
roportional
cycle setting for
output
2
R/W R/W the output 2 proportional frequency
setting
MH2 004Eh
40079
High limit setting of manipulated
value for output 2
R/W R/W the amount
-of-
operati
on limiter upper
limit setting
ML2 0050h
40081
Low limit setting of manipulated
value for output 2
R/W R/W the amount
-of-
operation limiter lower
limit setting
□C2 0052h
40083
C
ontrol sensitivity
setting
for output
2
R/W R/W the output 2 contro
l sensitivity setting
CP2 0054h
40085
OFF
position
setting
for
output
2
R/W R/W the output 2 off
-
point position setting
PBB 0056h
40087
Manual reset
setting
R/W R/W the manual reset
□DB 0058h
40089
D
ead band
setting
R/W R/W the dead band
setting
RP1 005Ah
40091
SV Ramp variation setting
R/W R/W the SV lamp time setting
RP2 005Ch
40093
SV2 Ramp variation setting
R/W R/W the SV2 lamp time setting
E1F 005Eh
40095
F
unction
setting for EV1
R/W R/W the PV event output 1 functi
on setting
E1H 0060h
40097
High limit setting for EV1
R/W R/W the event output 1 upper limit setting
E1L 0062h
40099
Low limit setting for EV1
R/W R/W the event output 1 lower limit setting
E1C 0064h
40101
Control
sensitivity
setting
R/W R/W the event output 1 sensitivity setting
E1T 0066h
40103
D
elay time
setting for EV1
R/W R/W the event output 1 delay timer setting
Identifier
Character
Name R/W
Description
Control execution: 00000
Manual control: 00001
Control stop: 00002