TOHO ELECTRONICS INC.
Thank you very much for purchasing a TTM-200 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 ................................................................................... 17 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-200 Series (hereinafter referred to as "this product"). 1.2 Conditions for communications The communications function of this product incorporates loader communications as standard equipment. RS-485 communications, however, is optional. If you need RS-485 communications, therefore, you should specify a communication option (RS-485). 1.
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 2.3 2.4 2.5 Setting a data length Setting a stop bit length Setting a parity 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 b8N2. 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.
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. Transmitted by a highlevel computer High-level computer Transmitted by this product Request message Transmitted by a highlevel computer Request message Response message This product Transmitted by this product Response delay: 0-250ms Response message 2ms or more See "3.6.
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 EB T□□R□□□TC X XC request: BCC dataread/write End code of the Identifier Contents ③|④| ⑥ ⑦ Address code Start ① ② 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 S A EB T□□C□□□□□□□□TC X K XC BCC data Numerical code data End Identifier Acknowledge code Address code Start ① ② ⑧ |④| ||⑤|| ⑥ ⑦ 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 "11. 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 communications. See the figure in "3.1 Communications procedure" and "2.8 Setting a response delay." 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. Communication parameter Stop bit 1 Stop bit 2 No parity Odd parity Even parity Data length, 7 bits Data length, 8 bits 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 9.6. Communication parameter 2400 BPS 4800 BPS 9600 BPS 19200 BPS 38400 BPS 5.
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. Transmitted by a highlevel computer High-level computer Transmitted by this product Request message Transmitted by a highlevel computer Request message Response message This product Transmitted by this product Response delay: 0-250ms Response message 2 ms or more See "6.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 01H 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 0BH High level C4H 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. b) Function code Enter a code 03H or 10H.
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. 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. Error 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.
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.
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.
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.
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 "11. 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.
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. 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. Error No. Error contents in the "request message" received by this product 01 An unsupported function code was received. 02 An unspecified address was received.
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.
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. Loader communications 7.1 Communication procedure This product receives “request messages” from a high-level computer and returns “response messages.” This product therefore does not start to transmit a message. The timing for communications and similar matters are the same as those of TOHO and MODBUS communications. Those depend on the way this product is set. 7.2 Message types The configuration of messages and similar aspects are the same as in TOHO and MODBUS communications.
3) A screen as follows will then pop up. Select “No, not this time.” and click “Next >.” 4) Next, a screen as follows will pop up. Select “Install from a list or specific location (Advanced)” and click “Next >.” 5) Next, a screen as follows will pop up. Select “Include this location in the search”. Click “Next >.
6) When a screen as follows pops up, click “Finish” 7) Next, a screen as follows will pop up. Select “No, not this time” and click “Next >.” 8) Next, a screen as follows will pop up. Select “Install from a list or specific location (Advanced)” and click “Next >.
9) Next, a screen as follows will pop up. Select “Include this location in the search”. Click “Next >” 10) When a screen as follows pops up, click “Finish”. The installation is now complete.
11) To know to which number communication port the loader cable has been allocated, refer to the port on the device manager.
8. Specifications 8.1 Communications standard category Compliant with EIA standard RS-485 8.2 Communications specifications 8.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 BBC data (highest-level bit = 0 in 8-bit code) 8.2.
8.3 Types of loader communication standards: TTL 8.4 Loader communications specifications 8.4.1 Communication system Network: ........................................ Point-to-point system (1 to 1 station) Direction of information: ............... Half duplex Synchronization system: ................ Asynchronous Transmission code: ........................ ASCII, 7 bit code, except for BBC data (highest-level bit = 0 in 8-bit code) 8.4.2 Interface system Signal line: .....................................
9. Connections 9.1 RS-485 communications Host Computer (Master Station) Unit1 (Slave Station) Cable① A(+) A(+) terminating resistor ① B(-) B(-) Cable② Unit2 (Slave Station) 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.
10. Table of identifiers (codes) For the setting range, options, initial values, and similar parameters, see the operation manual for this system. Note: 1. The R/W to characters that do not meet the display conditions responds with "NAK2." 2. □in the identifier table indicates a space (ASCII code:20H). 3. L/B is not applicable during MODBUS communications. (L/B is usable only with TOHO communications.
Input 1 setting mode (set1) toho INP FSH FSL modbus Absolute (DEC) 40257 40259 40261 PVF Identifier Screen Name Relative (hex) character Command 0100 0102 0104 INP1 Set an input 1 input type FSH1 Set an input 1 scaling upper limit FSL1 Set an input 1 scaling lower limit RWLB RWLB RWLB 40273 0110 PVF1 PV compensation function setting RWLB PVG PVS 40263 40265 0106 0108 PVG1 Set an input 1 PV correction gain PVS1 Set an input 1 PV correction zero RWLB RWLB PX1 40275 0112 PX1 Lower limit s
Control setting mode (set4) toho modbus Absolute Identifier (DEC) BNK 41025 Screen Name Relative (hex) character 0400 BKH 41139 0472 SV1 SLH SLL 41027 41029 41031 0402 0404 0406 Command bANK Switch to another bank bANKH Bank upper limit setting SV Control set SLH SV limiter upper limit SLL SV limiter lower limit RWLB RWLB 41033 0408 CNT TYP BMD DIR MV1 M1G TUN ATG ATC 41035 41037 41039 41041 41043 41045 41047 41049 41051 040A 040C 040E 0410 0412 0414 0416 0418 041A □AT 41053 041C □P1 □I1
Control setting mode (set4) toho modbus Absolute Identifier (DEC) FA2 41099 Screen Name Relative (hex) character 044A Command FAL2 Set an auxiliary control anomaly Set an auxiliary control loop anomaly PV tS2 threshold Set an auxiliary control loop anomaly MV MS2 threshold Set an auxiliary control loop anomaly PV PS2 change threshold LoP2 Set an auxiliary control loop anomaly time C2 Set an auxiliary control sensitivity CP2 Set an auxiliary control OFF point RWLB RWLB Pay attention to MODBUS address.
Out1 setting mode (set5) toho modbus Absolute Identifier (DEC) O1F 41281 E11 41283 E1H 41285 E1L 41287 E1C 41289 E1T 41291 E12 41293 E13 41295 E14 41297 E1P 41299 TR1 41301 TH1 41303 TL1 41305 Remark Screen Name Relative (hex) character 0500 0502 0504 0506 0508 050A 050C 050E 0510 0512 0514 0516 0518 o1F E1F1 E1H E1L E1C E1t E1F2 E1F3 E1F4 E1P tRN1 tRH1 tRL1 Command Set an out1 destination Set an out1 event function 1 Set an out1 event upper limit Set an out1 event upper limit Set an out1 event sensit
Out4 setting mode (set8) toho modbus Absolute Identifier (DEC) O4F 42049 E41 42051 E4H 42053 E4L 42055 E4C 42057 E4T 42059 E42 42061 E43 42063 E44 42065 E4P 42067 Screen Name Relative (hex) character 0800 0802 0804 0806 0808 080A 080C 080E 0810 0812 o4F E4F1 E4H E4L E4C E4t E4F2 E4F3 E4F4 E4P Command Set an out4 destination Set an out4 event function 1 Set an out4 event upper limit Set an out4 event upper limit Set an out4 event sensitivity Set an out4 event delay timer Set an out4 event function 2 Set
CT setting mode (set12) toho Identifier CI1 CM1 CT1 CI2 CM2 CT2 modbus Absolute (DEC) 43073 43075 43077 43079 43081 43083 Screen Name Relative (hex) character 0C00 0C02 0C04 0C06 0C08 0C0A CI1 CM1 Ct1 CI2 CM2 Ct2 Command Set a CT1 detection destination Monitor the CT1 current Set a CT1 abnormal current Set a CT2 detection destination Monitor the CT2 current Set a CT2 abnormal current RWLB RLB RWLB RWLB RLB RWLB Remark HHHHH: Overscale HHHHH: Overscale DI setting mode (set13) toho Identifier modbu
Communication setting mode (set17) toho modbus Absolute Identifier (DEC) PRT 44353 Screen Name Relative (hex) character Command 1100 PRt Set a communication protocol RWLB COM 44355 1102 CoM Set a communication parameter RWLB BPS 44357 1104 bPS Set a transmission speed RWLB ADR AWT MOD 44359 44361 44363 1106 1108 110A AdR Set a communication address AWt Set a response delay time Mod Set communication switchover RWLB RWLB RWLB Remark Read/write communication parameter settings Example:
Priority screen setting mode (set19) toho Identifier modbus Absolute (DEC) Screen Name Relative (hex) character Command Remark PR1 44865 1300 PRI01 Set a priority screen 1 RWLB Read/write priority screen 1 settings Example: □INP1 (screen character) PR2 44867 1302 PRI02 Set a priority screen 2 RWLB Read/write priority screen 2 settings Example: □INP1 (screen character) PR3 44869 1304 PRI03 Set a priority screen 3 RWLB Read/write priority screen 3 settings Example: □INP1 (screen chara
Bank setting mode (set20) toho Identifier modbus Absolute (DEC) Screen Name Relative (hex) character Command Remark B01 45121 1400 bNK01 Set bank selection 1 RWLB Read/write bank selection 1 settings Example: □INP1 (screen character) B02 45123 1402 bNK02 Set bank selection 2 RWLB Read/write bank selection 1 settings Example: □INP1 (screen character) B03 45125 1404 bNK03 Set bank selection 3 RWLB Read/write bank selection 2 settings Example: □INP1 (screen character) B04 45127 1406
Program function setting mode (set21) toho modbus Absolute Identifier (DEC) C/P 45377 PMD 45379 POC 45381 HMP 45383 WAI 45385 Relative (hex) 1500 1502 1504 1506 1508 Screen Name character C/P PGMd PoC H/MP WAIt Command Operating type setting Program mode setting Power failure compensation range setting Time unit setting WAIT range setting Remark RWLB RWLB RWLB RWLB RWLB Program setting mode (set22) toho modbus Absolute Identifier (DEC) SPN 45633 SB1 45635 SS1 45637 ST1 45639 SB2 45641 SS2 45643 ST2
toho Identifier modbus Absolute (DEC) Relative (hex) Screen Name character Command TST 48193 2000 Start/stop timer 1 RW TT2 48195 2002 Start/stop timer 2 RW TT3 48197 2004 Start/stop timer 3 RW OM1 OM2 48199 48201 2006 2008 Output monitor 1” Output monitor 2” R R 00000 ||| ||+--out5 |+---out6 +----out7 R 00000 |||| |||+--DI1 ||+---DI2 |+----DI3 +-----DI4 48203 200A DI monitor BM1 48205 200C Bank monitor R STR 48207 200E Store instruction W 001 Input 1 setting m
11.
TOHO ELECTRONICS INC. Head Office: 1-13-21 Tanashioda, Chuo-ku, Sagamihara-shi, Kanagawa 252-0245 Japan TEL: +81-42-777-3311 Tokyo Office: FAX: +81-42-777-3751 Chyuo No.