
Data structure
Start bit
: 1 bit
Data
bit
:
7-bit
Parity bit
: Even/ None/ Odd (Selectable)
Stop bit
: 1 bit/ 2-bit (Selectable)
Error detection : LRC (Longitudinal redundancy check)
Data interval : 1 second or less
[RTU mode]
8-bit binary data in command is sent as it is.
Data structure
Start bit
: 1 bit
Data
bit
:
8-bit
Parity bit
: Even/ None/ Odd (Selectable)
Stop
bit
: 1 bit/2-bit (Selectable)
Error detection: CRC-16 (Cyclic redundancy check)
Data interval : 3.5 characters transmission time or less
6.2 Message configuration
ASCII mode message is configured to start by [: (colon)(3AH)] and end by [CR (carriage return)
(0DH) + LF (Line feed)(0AH)]. (Fig. 6.2-1)
(Fig. 6.2-1)
RTU mode is configured to start after idle time processing more than 3.5 character transmission
time and end after idle time processing more than 3.5 character transmission time (Fig. 6.2-2)
(Fig. 6.2-2)
6.3 Slave address
Slave address is set within the range 0 to 95 by the individual instrument number of slave side.
The master identifies slaves by the slave address of the requested message.
The slaves inform the master which slave is responding to the master adding their own slave
address to the response message.
(Slave address 0, broadcast address can identify all the slaves. However slaves do not respond.)
6.4 Function code
The function code is the command code what action to take. (Table 6.4-1)
(Table 6.4-1)
Function code
Contents
03 (03H)
Reading setting value and information of slaves
06 (06H)
Setting to slaves
Function code is used as a pointer whether it is a normal response (acknowledgement) or an error
(negative acknowledgement) when the Slave returns responsive message to the Master.
When acknowledgement is returned, original function code is returned with its response.
When negative acknowledgement is returned, MSD of the original function code with 1 is returned.
(For example, when the Master sends request message setting 10H to function code by mistake,
Slave returns 90H setting 1 to the MSD, because it is illegal function.)
For negative acknowledgement, abnormal code (Table 6.4-2) below is set to the data of response
message and returned to the Maser in order to inform it that what kind of error has occurred.
(Table 6.4-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)
Shinko error code 4 (Unsettable status)
18 (12H)
Shinko error code 5 (During setting by key operation mode, etc)
6.5 Data
Data differs depending on the function code.
A request message from master side is composed of data item, number of data and setting data.
A response message is composed of number of bytes, data and abnormal code in negative
acknowledgement from slave side. Effective range of data is -32768 to 32767 (8000H to 7FFFH).
Slave
address
Function
code
Data
Error check
LRC
Delimiter
(CR)
Header
(:)
Delimiter
(LF)
3.5 idle
characters
Slave
address
Function
code
Data
Error check
LRC
3.5 idle
characters