1 TOHO ELECTRONICS INC. Operation Manual, Communications (TOHO protocol and MODBUS) Model: TRM-006A Series Designation: Digital Indicator
10 3.4 Composition of a response message (transmitted from this product to a high-level computer) n For codes ① to ⑩, see "3.5 Description
11 3.5 Description of codes n The codes from ① STX, ② address to ⑩ ERR type as indicated below are expressed in ASCII codes. n For the ASCII
12 ⑧ ACK It is an acknowledge code. If a message received by this product is error-free, this code will be incorporated in the "response mes
13 3.6 Communications precautions 3.6.1 Communications timing Set a sufficient response delay to make sure that this product is switched over fr
14 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
15 4. Examples of TOHO communications 4.1 Examples of communications to be read Example: Request message: This requests this product set at addres
16 4.2 Examples of communications to be written Example: Request message: This requests this product set at address 03 to set "the E1F settin
17 5. Settings regarding MODBUS communications 5.1 Overview Before communications is performed, initial settings must be made on this product. E
18 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 v
19 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
2 Thank you very much for purchasing a TRM-006A Series (with communications). Please read this operation manual carefully and use this product correct
20 6. MODBUS communications control 6.1 Communications procedure This product returns a "response message" in response to a "requ
21 6.3 Composition of an RTU request message (transmitted from a high-level computer to this product) n For codes a) through i), see "6.5 Des
22 6.3.3 Composition of a store request message a) Slave address 03H b) Function code 10H High level 02H c) Register address Low level 0EH F
23 6.4.3 Response message in the case of an error a) Slave address 1BH b) Function code 83H h) Error code 02H High level E1H e) CRC-16 Low le
24 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 deci
25 6.6 Precautions on RTU communications 6.6.1 Communications timing Set a sufficient response delay to make sure that this product is switched
26 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
27 6.8 Composition of an ASCII request message (transmitted from a high-level computer to this product) n For the codes a) through g), see "6
28 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” ,
29 6.9.2 Response message for a write/store request message a) Start code “:” b) Slave address “0” , “3” c) Function code “1” , “0” High le
3 6. MODBUS communications control... 20 6.1 Communications procedur
30 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
31 j) Error code If a message from a high-level computer is error-ridden, it will be incorporated in the "response message" from this
32 6.11.4 Errors in address specification This product will not respond to any "request message" that specifies an address other than tha
33 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 ca
34 7. Specifications 7.1 Communications standard category Compliant with EIA standard RS-485 7.2 Communications specifications 7.2.1 Communi
35 8. Connections T/R(A)T/R(B)T/R(A)T/R(B)T/R(A)T/R(B)T/R(A)T/R(B) Install an end of line resistor at both of the farthest devices in the pare
36 9. Table of identifiers (codes) ¢ For the setting range, options, initial values, and similar parameters, see the operation manual for this sys
37 MODBUS address Identifier Low-level W High-level W Character Name R/W Description □DP 30 31 ^ QF Set a decimal position R/W R/W the decimal
38 MODBUS address Identifier Low-level W High-level W Character Name R/W Description TRH 164 165 ^oQF Set an upper limit for transmission output
39 10. Table of ASCII codes ASCII code 00H 01H 02H 03H 04H 05H 06H 07H Code used NUL SOH STX ETX EOT ENQ ACK BEL ASCII code 08H
4 1. Before using the product 1.1 On this operation manual This is an operation manual regarding communications with a TRM-006A Series (hereinafte
40 TOHO ELECTRONICS INC. Head office: 1-13-21, Tanashioda, Sagamihara Kanagawa 229-1125 Japan. Phone
5 2. Settings regarding TOHO communications 2.1 Overview Before communications is performed, initial settings must be made on this product. Ente
6 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 &qu
7 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
8 3. TOHO communications control 3.1 Communications procedure This product returns a "response message" in response to a "request
9 3.3 Composition of a request message (transmitted from a high-level computer to this product) n For codes ① to ⑩, see "3.5 Description of
Commentaires sur ces manuels