background image

• A response message from the slave in abnormal status (When a value out of the setting range 

is set.) 

 

 
 

 (Fig. 

6.2-7) 

        The function code MSB is set to 1 for the response message in abnormal status (86H). 

                The abnormal code (03H: Value out of the setting range) is returned as contents of error. 
 

6.3

 

RTU mode 

8-bit binary data in command is transmitted as it is. 
Data format 

Start bit 

: 1 bit 

 

Data bit 

: 8 bits 

 

Parity   

: Even/No/Odd (Selectable) 

 

Stop bit 

: 1 bit/2 bits (Selectable) 

 

Error detection : CRC-16 (Cyclic Redundancy Check) 

 

Data interval  : 3.5 characters transmission time or less 

(1)

 

Message configuration

 

RTU mode is configured to start after idle time is processed for more than 3.5 character transmission 

and end after idle time is processed for more than 3.5 character transmission. (See Fig. 6.3-1) 
 

 
 (Fig. 

6.3-1) 

(2) Slave address 

Slave address is an individual instrument number on the slave side and is set within the range   
00H to 5FH (0 to 95). 
The master identifies slaves by the slave address of the requested message. 
The slave informs the master which slave is responding to the master by placing its own address 
in the response message. 
[Slave address 00H (broadcast address) can identify all the slaves. However slaves do not respond.]

 

(3)

 

Function code 

The function code is the command code for the slave to undertake the following action types (Table   
6.3-1). 
(Table 6.3-1) 

Function code 

Contents 

03 (03H) 

Reading the setting value and information from slaves 

06 (06H) 

Setting to slaves 

Function code is used to discern whether the response is normal (acknowledgement) or if any error 

(negative acknowledgement) is occurred when the slave returns the response message to the master. 

When acknowledgement is returned, the slave simply returns the original function code. 
When negative acknowledgement is returned, the MSB of the original function code is set as 1 
for the response. 
(For example, when the master sends request message setting 10H to function code by mistake, 
slave returns 90H by setting the MSB to 1, because the former is an illegal function.) 
For negative acknowledgement, abnormal code (Table 6.3-2) below is set to the data of response 
message and returned to the master in order to inform it that what kind of error has occurred. 

(Table 6.3-2) 

Abnormal code 

Contents 

  1 (01H) 

Illegal function (Non-existent function) 

  2 (02H) 

Illegal data address (Non-existent data address) 

  3 (03H) 

Illegal data value (Value out of the setting range) 

17 (11H) 

Illegal setting (Unsettable status) 

18 (12H) 

Illegal setting (During setting mode by keypad operation, etc) 

(4) Data 

Data depends on the function code. 
A request message from the master side is composed of data item, number of data and setting data. 
A response message from the slave side is composed of number of bytes, data and abnormal code 
in negative acknowledgement. Effective range of data is –32768 to 32767 (8000H to 7FFFH). 

3.5 idle

characters

Slave

address

Function

code

Data

Error check

CRC

3.5 idle

characters

Slave

address

Function

code

Abnormal

code

Error check

LRC

Delimiter

Header

2

Number of
characters

2

2

2

2

1

(3AH)

(30H 31H)

(38H 36H)

(30H 33H)

(37H 36H)

(0DH 0AH)

Summary of Contents for GT120 Series

Page 1: ...ck 1 System configuration RS 485 multi drop connection communication Option Fig 1 1 Fig 1 2 2 Wiring connection When using line converter SC8 10 Connector D sub 25 pin Connection RS 232C RS 485 Communication speed 2400 4800 9600 19200bps Fig 2 1 Host computer GT120 No 0 No 1 No 30 GT8 CDD GT8 CDM Shield wire SD 2 RD 3 SG 7 FG 1 RS 4 CS 5 DR 6 ER 20 CD 8 Host computer D sub connector 25 pin 4 3 RS ...

Page 2: ...For the instrument number setting and communication speed selection refer to the instruction manual for GT120 4 Communication procedure Communication starts with command transmission from the host computer hereafter Master and ends with the response of the GT120 hereafter Slave Response with data When the master sends the reading command the slave responds with the corresponding setting value or c...

Page 3: ...ata in command is transmitted as ASCII characters Data format Start bit 1 bit Data bit 7 bits Parity Even Stop bit 1 bit Error detection Checksum 5 2 Command configuration All commands are composed of ASCII The data setting value decimal number is represented with hexadecimal number and ASCII code is used The negative numbers are represented with 2 s complement 1 Setting command Fig 5 2 1 2 Readin...

Page 4: ...ter side as well to calculate the checksum of the response data from the slaves so that the communication errors can be checked The ASCII code hexadecimal which corresponds to the characters ranging from the address to that before the checksum is converted to binary notation and the total value is calculated The lower 2 digits of the total value are converted to 2 s complements and then to hexadec...

Page 5: ...en No Odd Selectable Stop bit 1 bit 2 bits Selectable Error detection LRC Longitudinal Redundancy Check Data interval 1 second or less 1 Message configuration ASCII mode message is configured to start by colon 3AH and end by CR carriage return 0DH LF Line feed 0AH See Fig 6 2 1 Fig 6 2 1 2 Slave address Slave address is an individual instrument number on the slave side and is set within the range ...

Page 6: ...ead and it is fixed as 30H 30H 30H 31H A response message from the slave in normal status When SV 100 Fig 6 2 3 The number of response bytes means the number of bytes of the data which has been read and it is fixed as 30H 32H A response message from the slave in abnormal status When non existent data item is sent Fig 6 2 4 The function code MSB is set to 1 for the response message in abnormal stat...

Page 7: ... 06H Setting to slaves Function code is used to discern whether the response is normal acknowledgement or if any error negative acknowledgement is occurred when the slave returns the response message to the master When acknowledgement is returned the slave simply returns the original function code When negative acknowledgement is returned the MSB of the original function code is set as 1 for the r...

Page 8: ... as 02H Response message from the slave in abnormal status When data item is mistaken Fig 6 3 4 The function code MSB is set to 1 for the response message in abnormal status 83H The abnormal code 02H Non existent data address is returned as contents of error 2 Setting Instrument number 1 SV 100 Request message from the master Fig 6 3 5 Response message from the slave in normal status Fig 6 3 6 Res...

Page 9: ...ction 1 0000H Unlock 0002H Lock 2 0001H Lock 1 0003H Lock 3 20H 50H 03H 06H 0013H Not used 20H 50H 03H 06H 0014H Not used 20H 50H 03H 06H 0015H Sensor correction value setting Setting value 20H 50H 03H 06H 0016H Not used 20H 50H 03H 06H 0017H Not used 20H 50H 03H 06H 0018H Scaling high limit setting Setting value 20H 50H 03H 06H 0019H Scaling low limit setting Setting value 20H 50H 03H 06H 001AH D...

Page 10: ...000BH Pt100 199 9 to 850 0 000CH JPt100 199 9 to 500 0 000DH Pt100 200 to 850 000EH JPt100 200 to 500 000FH K 320 to 2500 0010H K 199 9 to 750 0 0011H J 320 to 1800 0012H R 0 to 3200 0013H S 0 to 3200 0014H B 0 to 3300 0015H E 320 to 1500 0016H T 199 9 to 750 0 0017H N 320 to 2300 0018H PL 0 to 2500 0019H C W Re5 26 0 to 4200 001AH Pt100 199 9 to 999 9 001BH JPt100 199 9 to 900 0 001CH Pt100 300 t...

Page 11: ...git Converter function 0 Controller 1 Converter 214 digit Not used Always 0 215 digit Key operation change 0 No 1 Yes 20H 03H 0086H Not used 20H 03H 0087H Not used 20H 03H 00A0H Not used 20H 03H 00A1H Instrument information reading 0000 0000 0000 0000 215 to 20 20 digit Not used Always 0 21 digit Not used Always 0 22 digit Alarm function 0 Not applied 1 Applied 23 digit Not used Always 0 24 digit ...

Page 12: ...y check Checksum LRC CRC Data format Start bit 1 Data bit 7 8 Parity Even Odd No parity Stop bit 1 9 Troubleshooting If any malfunctions occur refer to the following items after checking the power supply to the master and the slave Problem If it is unable to communicate Check the following The connection or wiring of communication is not secure Burnout or imperfect contact on the communication cab...

Reviews: