TOHO ELECTRONICS INC.
Thank you very much for purchasing a TTM-000 Series (with communications). Please read this operation manual carefully and use this product correctly. Contents 1. Before using the product ...................................................................................................... 4 1.1 On this operation manual 1.2 Conditions for communications 1.3 What can be done with communications 1.4 Positioning communications (priority ranking) 1.5 Setting before communications 2.
6. MODBUS communications control ................................................................................... 20 6.1 Communications procedure 6.2 Message types 6.3 Composition of an RTU request message (transmitted from a high-level computer to this product) 6.4 Composition of an RTU response message (transmitted from this product to a high-level computer) 6.5 Description of RTU codes 6.6 Precautions on RTU communications 6.7 Example of CRC-16 calculations 6.
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.
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.
2.2 Setting a data length 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 . **** Stop bit 1 Stop bit 2 No parity Odd parity Even parity Data length, 7 bits Data length, 8 bits BCC check disabled BCC check enabled 2.
2.8 Setting a response delay 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.
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.
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 BCC ETX □ □ □ R □ □ ⑦ BCC data ⑥ End code | ④ Identifier | ③ Contents of the request: read/write ② Address STX ① Start code 3.3.
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 BCC ETX □ □ □ □ □ □ □ □ ACK □ □ STX ⑦ BCC data ⑥ End code | | ⑤ Numerical data | | | ④ Identifier | ⑧ Acknowledge code ② Address ① Start code 3.4.
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.
⑥ ETX 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.
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.
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.
4. Examples of TOHO communications 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).
4.2 Examples of communications to be written 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.
5. Settings regarding MODBUS communications 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.
5.2 Setting a data length 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): *** Stop bit 1 Stop bit 2 No parity Odd parity Even parity Data length, 7 bits Data length, 8 bits * The RTU mode settings come only in three types: The ASCII mode settings come only in three types: 5.6 、 、 、 、 . .
5.8 Setting a response delay 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.
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.
6.3 Composition of an RTU request message (transmitted from a high-level computer to this product) For codes a) through i), see "6.5 Description of RTU codes." 6.3.1 Composition of a read request message a) Slave address 1BH b) Function code 03H c) Register address d) Number of registers e) CRC-16 High level 00H Low level 00H High level 00H Low level 02H Low level 31H High level C6H First register address Fixed at 2 6.3.
6.4 Composition of an RTU response message (transmitted from this product to a high-level computer) For codes a) through h), see "6.5 Description of RTU codes." 6.4.
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.
g) Data portion 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 Proportional band (P) = 1.0 % PV = 1200.0 C SV = -10.
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.
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.
6.8 Composition of an ASCII request message (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 a) Start code “:” b) Slave address “1” , “B” c) Function code “0” , “3” d) Register address e) Number of registers f) LRC g) End code High level “0” , “0” Low level “0” , “0” High level “0” , “0” Low level “0” , “2” First register address Fixed at 2 “E” , “0” CR, LF 6.
6.8.
6.9 Composition of ASCII response messages (transmitted from this product to a high-level computer) For the codes a) through g), see "6.10 Description of ASCII codes." 6.9.
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.
i) Data portion 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 Proportional band (P) = 1.0 % PV = 1200.0 C SV = -10.
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.
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.
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.
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 Synchronization system: ................ Asynchronous Transmission code: ........................ ASCII, 7 bit code, except for BCC data (highest-level bit = 0 in 8-bit code) 7.2.
8. Connections Host Computer (Master Station) Unit1 (Slave Station) Cable① A(+) A(+) B(-) terminating resistor ① B(-) Unit2 (Slave Station) Cable② A(+) B(-) Cable③ Unit3 (Slave Station) A(+) terminatin g resistor ② B(-) ○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.
9. Table of identifiers (codes) 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.
Identifier Relative Absolute address address Character Name R/W Description □MD 0028h 40041 Control mode setting R/W R/W the control mode setting Control execution: 00000 Manual control: 00001 Control stop: 00002 Auto-tuning in progress: 00003 CNT 002Ah 40043 Selection of control type setting R/W R/W the control type setting DIR 002Ch 40045 Change of normal or reverse R/W R/W the forward/reverse operation switchover setting MV1 002Eh 40047 Manipulated value for output 1 R/W R/W the
Identifier Relative Absolute address address Name Character R/W Description E1B 0068h 40105 Abnormal for EV1 R/W R/W the special event output 1 function setting E1P 006Ah 40107 Polarity setting for EV1 R/W R/W the event output 1 polarity setting CM1 006Ch 40109 CT input monitor for EV1 CT1 006Eh 40111 Abnormality current value of heater for EV1 R/W R/W the event output 1 current abnormality setting E2F 0070h 40113 Function setting for EV2 R/W R/W the PV event output 2 function s
Identifier Relative address Absolute address TRP 00A2h 40163 Transfer output normal/reverse switch setting R/W R/W the forward/reverse operation switchover setting for transmission output TRH 00A4h 40165 Transfer output scaling high limit setting R/W R/W the upper limit setting for transmission output scaling TRL 00A6h 40167 Transfer output scaling low limit setting R/W R/W the lower limit setting for transmission output scaling TST 00A8h 40169 Timer start/stop R/W R/W the timer st
10.
TOHO ELECTRONICS INC. Head office: 1-13-21, Tanashioda, Chuo-ku, Sagamihara-shi, Kanagawa 252-0245 Japan.