7
5. Shinko Protocol
5.1 Transmission Mode
Shinko protocol is composed of ASCII.
Hexadecimal (0 to 9, A to F), which is divided into high order (4-bit) and low order (4-bit) out of 8-bit
binary data in command is transmitted as ASCII characters.
Data format Start bit: 1 bit
Data bit: 7 bits (8 bits) Selectable
Parity: Even (No parity, Odd) Selectable
Stop bit: 1 bit (2 bits) Selectable
Error detection: Checksum
5.2 Command Configuration
All commands are composed of ASCII.
The data (set value, decimal number) is represented by a hexadecimal number.
The negative numbers are represented in 2's complement.
Numerals written below the command represent number of characters.
(1) Write command
• Write a single piece of data
Header
(02H)
Address
Sub
address
(20H)
Command
type (50H)
Data
item
Data Checksum
Delimiter
(03H)
1 1 1 1 4 4 2 1
• Write multiple pieces of data
Header
(02H)
Address
Sub
address
(20H)
Command
type (54H)
Data
item
Data Checksum
Delimiter
(03H)
1 1 1 1 4 4 x n 2 1
n: Amount of data
(2) Read command
• Read a single piece of data
Header
(02H)
Address
Sub
address
(20H)
Command
type (20H)
Data
item
Checksum
Delimiter
(03H)
1 1 1 1 4 2 1
• Read multiple pieces of data
Header
(02H)
Address
Sub
address
(20H)
Command
type (24H)
Data
item
Amount of
Read data
n
Checksum
Delimiter
(03H)
1 1 1 1 4 4 2 1
(3) Response with data
• Response to ‘Read a single piece of data’
Header
(06H)
Address
Sub
address
(20H)
Command
type (20H)
Data
item
Data Checksum
Delimiter
(03H)
1 1 1 1 4 4 2 1
• Response to ‘Read multiple pieces of data’
Header
(06H)
Address
Sub
address
(20H)
Command
type (24H)
Data
item
Data Checksum
Delimiter
(03H)
1 1 1 1 4 4 x n 2 1
n: Amount of data
(4) Acknowledgement
Header
(06H)
Address Checksum
Delimiter
(03H)
1 1 2 1