SGFL, SGJLCOMMUNICATION INSTRUCTION MANUAL

No. SGxL2CE2

2018.11This manual contains instructions for communication functions of the SGFL and SGJL.
Serial communication and Console communication cannot be used together.
When performing Serial communication, remove the Tool Cable (CME-001) from the USB port of the PC andconsole connector of the SGFL and SGJL.
When performing Console communication, it is not required to remove the Serial communication cables.
However, do not send a command from the master side.

1. System Configuration
1.1

When Using USB Communication Cable CMC-001-3 (sold separately)
SGJL (Max. 31 units)
No. 1

No. 2

No. 31

Host computer
USB communication cable
CMC-001-3(sold separately))(Fig. 1.1-1)

1.2

When Using Communication Converter IF-400 (sold separately)
Host computer

SGJL (Max. 31 units)
Communication converter
IF-400 (sold separately)
RS-232C
RS-485No. 1(Fig. 1.2-1)

-1-

No. 2

No. 312. Wiring
2.1

When Using USB Communication Cable CMC-001-3 (sold separately)
SGJL (Max. 31 units)

Host computer

USB communication cable
CMC-001-3 (sold separately)

CDD or CPP (sold separately)

Bottom of SGJL
(Fig. 2.1-1)
2.2

When Using Communication Converter IF-400 (sold separately)
IF-400 (sold separately)
TXD

3

RXD 2

SGJL (Max. 31 units)

GND 5
DCD 1
DTR 4

Shield wire
FG

DSR 6
RTS

7

CTS

8

RI

9

CDD or CPP (sold separately)

Bottom of IF-400, SGJL
(Fig. 2.2-1)-2-

Shield wire
Connect only one end of the shield to the FG terminal to avoid a ground loop. If both ends of the shieldwire are connected to the FG terminal, the circuit will be closed, resulting in a ground loop. This may
cause noise. Be sure to ground the FG terminal.
Recommended cable: OTSC-VB 2PX0.5SQ (made by Onamba Co., Ltd.) or equivalent (Use a twisted paircable.)
Terminator (Terminal resistor)
Communication converter IF-400 (sold separately) has a built-in terminator.
The terminator is mounted at the end of the wire when connecting multiple peripheral devices to a personal
computer. The terminator prevents signal reflection and disturbance.
Do not connect a terminator to the communication line because each SGFL, SGJL has built-in pull-up
and pull-down resistors.

3. Setting Communication Parameters
Set communication parameters in Communication setting mode.
To enter Communication setting mode, refer to the following.
SGFL: Press and hold the SET key for approx. 5 seconds in the Default Display.
The unit will enter Input setting mode.
Press the SET key 3 times, then the unit will enter Communication setting mode.
SGJL: Press and hold the MODE key for approx. 5 seconds in the Default Display.
The unit will enter Input setting mode.
Press the MODE key 3 times, then the unit will enter Communication setting mode.
After the unit has entered Communication setting mode, key operations are the same for the SGFL and SGJL.
Press and hold the DISP key for approx. 3 seconds. The unit will enter [Instrument number].
To set (or select) each setting item, use the UP or DOWN key.
To register each setting item, use the DISP key.
Set each communication parameter following the procedure below.
SGJL
Default Display
MODE (5 seconds)
Input setting mode
MODE (3 times)
Communication setting mode
DISP (3 seconds)
Instrument number-3-

Instrument number
Sets the instrument number.
Setting Range

Indication

Factory Default

Multi-Display A Multi-Display B

1
1 to 247

Set value

Communication speed
Selects the communication speed,
Setting Range

Indication
Multi-Display A Multi-Display B

9600 bps
19200 bps
38400 bps

Factory Default
38400 bps

Data bit/Parity
Selects data bit and parity.
Setting Range

Indication
Multi-Display A Multi-Display B

8 bits/No parity
8 bits/Even
8 bits/Odd

Factory Default
8 bits/Odd

Stop bit
Selects the stop bit.
Setting Range

Indication
Multi-Display A Multi-Display B

Factory Default
1 bit

1 bit
2 bitsResponse Delay Time
Response from the instrument can be delayed after receiving command from the hostcomputer.
Indication
Setting Range
Factory Default
Multi-Display A Multi-Display B
10 ms
0 to 1000 ms
Set value

Save Settings
Selects whether the settings are saved (registered) or not.
Indication
Setting Range
Factory Default
Multi-Display A Multi-Display B
Save
Save
Not save
By pressing the DISP key, the unit reverts to the Default Display.
At this stage, settings are complete.
-4-4. Communication Procedure
Communication starts with command transmission from the host computer (hereafter Master) andends with the response of the SGFL or SGJL (hereafter Slave).
MasterCommand
Data

Slave

Command
Acknowledgement
Command
Negative
acknowledgement
Command
No response(Fig. 4-1)

• Response with data
When the master sends the Read command, the slave
responds with the corresponding set value or current status.
• Acknowledgement
When the master sends the Write command, the slave
responds by sending the acknowledgement after processing
is terminated.
• Negative acknowledgement
When the master sends a non-existent command or value
out of the setting range, the slave returns a negative
acknowledgement.
• No response
The slave will not respond to the master in the following cases:• Broadcast address is set.
• Communication error (framing error, parity error)• CRC-16 discrepancy

Communication timing of the RS-485
Master Side (Take note while programming)
When the master starts transmission through the RS-485 communication line, the master is arranged so as
to provide an idle status (mark status) transmission period of 1 or more characters before sending thecommand to ensure synchronization on the receiving side.
Set the program so that the master can disconnect the transmitter from the communication line within a 1
character transmission period after sending the command in preparation for reception of the response fromthe slave.
To avoid collision of transmissions between the master and the slave, send the next command after carefully
checking that the master has received the response.
If a response to the command is not returned due to communication errors, set the Retry Processing to send
the command again. (It is recommended to execute Retry twice or more.)
Slave Side
When the slave starts transmission through the RS-485 communication line, the slave is arranged so as toprovide an idle status (mark status) transmission period of 1 ms or more (*) before sending the response toensure synchronization on the receiving side.
The slave is arranged so as to disconnect the transmitter from the communication line within a 1 charactertransmission period after sending the response.
(*) Can be set in [Response delay time] within a range of 0 to 1000 ms. (See p.4.)-5-5. Modbus Protocol
5.1

Transmission Mode
Modbus protocol transmission mode is RTU mode.
8-bit binary data in command is transmitted as it is.
Data format Start bit: 1 bit
Data bit: 8 bits
Parity: Odd (No parity, Even) (Selectable)
Stop bit: 1 bit (2 bits) (Selectable)
Error detection: CRC-16 (Cyclic Redundancy Check)

5.2

Data Communication Interval
For communication speed 9600 bps, 19200 bps: To transmit continuously, an interval between characterswhich consist of one message, must be within 1.5 character transmission times.
For communication speed 38400 bps: To transmit continuously, an interval between characters which
consist of one message, must be within 750 s.
If an interval lasts longer than the above, the instrument assumes that transmission from the master isfinished, which results in a communication error, and will not return a response.

5.3

Message Configuration
For communication speed 9600 bps, 19200 bps: RTU mode message is configured to start after idle time isprocessed for more than 3.5 character transmissions, and end after idle time is processed for more than 3.5
character transmissions.
For communication speed 38400 bps: RTU mode message is configured to start after idle time is processed
for more than 1.75 ms, and end after idle time is processed for more than 1.75 ms.
Data section: Max. 252 bytes
Error check3.5 idle
3.5 idle
Slave
Function
Data
CRC-16characterscharacters addresscode(1) Slave Address
Slave address is an individual instrument number on the slave side, and is set within the range
1 to 247 (01H to F7H). 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 0 (00H, Broadcast address) can identify all the slaves connected. However, slaves
do not respond.
(2) Function CodeThe function code is the command code for the slave to undertake one of the following actions.
Function
Sub-Function
Type
Contents
Code
Code
Reads a single or multiple piece(s) of data
03 (03H)from slave(s).
(Max. 25 pieces of data)
Data
04 (04H)
Reads information from slave(s).
access06 (06H)
Writes a single piece of data to slave(s).
Writesmultiple pieces of data to slave(s).
16 (10H)(Max. 25 pieces of data)
08 (08H)
00
Echoes back the request message.
Diagnostics
43 (2BH)
14
Reads device identification information.
The function code is used to discern whether the response is normal (acknowledgement) or if any
error (negative acknowledgement) has 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 forthe response.
For example, if the master sends request message setting 13H to the function code by mistake,slave returns 93H by setting the MSB to 1, because the former is an illegal function.
-6-

For negative acknowledgement, the exception codes below are set to the data of the response
message, and returned to the master in order to inform it of what kind of error has occurred.
Exception CodeContents
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)
Status unable to be written.
18 (12H)
During setting mode by keypad operation(3) Data
Data differs depending on the function code.
A request message from the master is composed of a data item, amount of data and setting data.
A response message from the slave is composed of the byte count, data and exception codesin negative acknowledgements, corresponding to the request message.
The effective range of data is -32768 to 32767 (8000H to 7FFFH).
Refer to Section “6. Communication Command Table” (pp.15 to 19).
(4) Error Check
After calculating CRC-16 (Cyclic Redundancy Check) from the slave address to the end of the data,
the calculated 16-bit data is appended to the end of message in sequence from low order to high order.
How to calculate CRC-16
In the CRC-16 system, the information is divided by the polynomial series. The remainder is added
to the end of the information and transmitted. The generation of a polynomial series is as follows.
(Generation of polynomial series: X16 + X 15 + X 2 + 1)
1
2
3
4

5
6
7
8
9

Initialize the CRC-16 data (assumed as X) (FFFFH).
Calculate exclusive OR (XOR) with the 1st data and X. This is assumed as X.
Shift X one bit to the right. This is assumed as X.
When a carry is generated as a result of the shift, XOR is calculated by X of 3 and thefixed value (A001H). This is assumed as X. If a carry is not generated, go to step 5 .
Repeat steps 3 and 4 until shifting 8 times.
XOR is calculated with the next data and X. This is assumed as X.
Repeat steps 3 to 5 .
Repeat steps 3 to 5 up to the final data.
Set X as CRC-16 to the end of message in sequence from low order to high order.

-7-

5.4

Message Example
Numerals written below the command represent the number of characters.
(1) Read [Slave address 1, input value (00B0H)]• A request message from the master
Slave
Function
3.5 idle
addresscodecharacters
(01H)
(03H)
1
1

Data item

Amount of data

(00B0H)
2(0001H)
2

Error check
CRC-16(85EDH)2

3.5 idle
characters• Response message from the slave in normal status [When input value is 1200 (04B0H)]
Slave
Function Response byte
Data
Error check3.5 idle
3.5 idle
addresscode
countCRC-16characterscharacters
(01H)
(03H)
(02H)
(04B0H)(BB30H)11
122(2) Write [Slave address 1, Default Display/Manual mode (0001H)]• A request message from the master [When Manual mode (0001H) is written)]
Slave
Function
Data item
Data
Error check3.5 idle
addresscode
CRC-16characters
(01H)
(06H)
(0001H)(0001H)(19CAH)1
12
2
2

3.5 idle
characters• Response message from the slave in normal status
Slave
Function
Data item
3.5 idle
addresscodecharacters
(01H)
(06H)
(0001H)1
12

3.5 idle
characters

Data(0001H)
2

Error check
CRC-16(19CAH)2• Response message from the slave in exception (error) status (When a value out of the setting range is set)
The function code MSB is set to 1 for the response message in exception (error) status, and 86H isreturned.
The Exception code 03H (Value out of the setting range) is returned (error).
Slave
Function Exception code
Error check3.5 idle
3.5 idle
addresscode
CRC-16characterscharacters
(01H)
(86H)
(03H)
(0261H)1112(3) Read [Slave address 1, Default Display/Manual mode (0001H)]• A request message from the master
Slave
Function
Data item
Amount of
3.5 idle
addresscode
datacharacters
(01H)
(03H)
(0001H)(0001H)1
1
2
2

Error check
CRC-16(D5CAH)2• Response message from the slave in normal status [for Manual mode (0001H)]
Slave
Function Response byte
Data
Error check3.5 idle
addresscode
countCRC-16characters
(01H)
(03H)
(02H)
(0001H)(7984H)1
1
1
2
2

3.5 idle
characters

3.5 idle
characters• Response message from the slave in exception (error) status (When data item is incorrect)
The function code MSB is set to 1 for the response message in exception (error) status, and 83H
is returned. The Exception code 02H (Non-existent data address) is returned (error).
Slave
Function Exception code
Error check3.5 idle
3.5 idle
addresscode
CRC-16characterscharacters
(01H)
(83H)
(02H)
(C0F1H)
1
1
1
2
-8-

(4) Write [Slave address 1,(0010H)]

0010H
0011H
0012H
0013H
0014H
0015H
0016H

7 commands (multiple pieces of data) from Frequency range group

Data Item
Frequency range group
Frequency high limit
Reserved item
Decimal point place
Indication value for Input low
limit
Indication value for Input highlimit
Indication unit

Data
Frequency
100 kHz0
1 digit after decimal
point
0.0
100.0
No unit

When writing the above data, Data in the message becomes as follows.
Amount of data: 7 (0007H)
Byte count: 14 (0EH)
Data: The following Data is converted to hexadecimal.
Data Item
Data
Data (Converted to Hexadecimal)
0010H Frequency range group
Frequency
0002H
0011H Frequency high limit
100 kHz
0064H
0012H Reserved item
00000H
0013H Decimal point place
1 digit after decimal 0001H
point
Indication
value
for
Input
low
0014H
0.0
0000H
limit
0015H Indication value for Input high 100.0
03E8H
limit
0016H Indication unit
No unit
0000H• A request message from the master (When writing the above data)
Slave
Function
Data item
3.5 idle
addresscodecharacters
(01H)
(10H)
(0010H)
1
1
2
Data(00070E0002006400000001000003E80000H)
17• Response message from the slave in normal status
Slave
Function
Data item
3.5 idle
addresscodecharacters
(01H)
(10H)
(0010H)1
1
2-9-

Error check
CRC-16(7D69H)
2

Data(0007H)2

3.5 idle
characters

Error check
CRC-16(800EH)2

3.5 idle
characters(5) Read [Slave address 1,(0010H)]

7 commands (multiple pieces of data) from Frequency range group• A request message from the master (When reading the data on p.9)
Slave
Function
Data item
Amount of data
3.5 idle
addresscodecharacters
(01H)
(03H)
(0010H)(0007H)1
1
2
2

Error check
CRC-16(05CDH)2

3.5 idle
characters• Response message from the slave in normal status
Slave
Function Response byte
3.5 idle
addresscode
countcharacters
(01H)
(03H)
(0EH)
1
1
1
Data
(0002006400000001000003E80000H)
14Error check
CRC-16(93D6H)
2

Data in the response message becomes as follows.
Data Item
Data
0010H Frequency range group
Frequency
0011H Frequency high limit
100 kHz
0012H Reserved item
00013H Decimal point place
1 digit after decimal
point
Indication
value
for
Input
low
0014H
0.0
limit
0015H Indication value for Input high 100.0
limit
0016H Indication unit
No unit- 10 -

3.5 idle
characters

Data (Converted to Hexadecimal)
0002H
0064H
0000H
0001H
0000H
03E8H
0000H

5.5

Diagnostics Function

Modbus protocol has the following diagnostics functions.
• Echoes back the request message.
• Reads device identification information.
5.5.1

Message Configuration

3.5 idle
characters

Slave
address

Function
code

Error check
CRC-16Data

3.5 idle
characters(1) Slave address
Slave address is an individual instrument number on the slave side, and is set within the range
1 to 247 (01H to F7H).
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 addressin the response message.
Diagnostics function is disabled for the Broadcast address [0 (00H)].
(2) Function code
The function code is the command code for the slave to undertake the following action types.
Sub-Function
Contents
Type
Function Code
Code
Echoes back the request message.
08 (08H)
00 (0000H)
Diagnostics
Reads device identification information.
43 (2BH)
14 (0EH)
Function code is used to discern whether the response is normal (acknowledgement) or if any error(negative acknowledgement) has 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 0FH to the sub-function code by mistake,slave returns ABH by setting the MSB to 1, because the former is a non-existent sub-function code.
For negative acknowledgement, the exception codes below are set to the data of the response message,
and returned to the master in order to inform it of what kind of error has occurred.
Exception Code1 (01H)
2 (02H)
3 (03H)

Contents
Illegal function (Non-existent function)
Sub-function code is not correct.
Illegal data address (Non-existent data address)
For function code 43: Object ID is any value other than 00, 01, 02.
Illegal data value (Value out of the setting range)
For function code 08: Data is less than 1, or has exceeded 100.
For function code 43: Read Device ID code is any value other than 01, 04.

(3) Data
Data differs depending on the function code.
For Function code 08 (08H), a request message from the master is composed of ‘Sub-function
code 2 bytes (0000H)’ and ‘Data n x 2 bytes’.
[n: Amount of data (Max. 25)]
In normal status, a response message from the slave is the same as the request message.
Function code
1 byte08H
Sub-function code
1 byte0000H fixedDatan x 2 bytes
Random value (Max. 25)- 11 -

For Function code 43 (2BH), the request message from the master is composed of
Sub-function code 14 (0EH), Read Device ID code and Object ID.
Function code
2BH
1 byteSub-function code (MEI type)

0EH

1 byteRead Device ID code
1 byte(Corresponds to Basic category)Object ID
1 byte01/04H00
01
02

Vendor nameSHINKO TECHNOS CO., LTD.
Product code (model)(e.g.) SGJL-F01 -0-0
Version number (D, T, MP)(e.g.) D15-011-18-00MP3202-00

Response message from the slave is composed of Sub-function code 14 (0EH) (for request),
Read Device ID code and Object ID.
Function code
1 byte2BH
Sub-function code (MEI type)1 byte0EH
Data
Read Device ID code 1 byte
01/04H
Conformity level1 byte01/81HMore Follows
1 byte00/FFH
Next Object ID
1 byteObject ID number
Number of Objects
1 byteList of Object ID
1 byteList of Object length
1 byteList of Object value
Object length
For the response message (negative acknowledgement), an exception code is set and returned.
Function code
1 byteABH
Exception code
1 byte01/02/03H(4) Error check16-bit data to detect communication errors.
Refer to Section ‘5.3 Message Configuration (4) Error Check (p.7).
5.5.2

Message Example
Numerals written below the command represent the number of characters.

(1) Echo back Slave address 1, Request message• A request message from the master [Test data 200(00C8H), 60(003CH), 10(000AH)]
Slave
Function
Sub-function
Data
Error check3.5 idle
addresscode
code
CRC-16characters
(01H)
(08H)
(0000H)(00C8003C000AH)(E7D9H)1
12
62

3.5 idle
characters• Response message from the slave in normal status (Echoes back the same message.)
Slave
Function
Sub-function
Data
Error check3.5 idle
addresscode
code
CRC-16characters
(01H)
(08H)
(0000H)(00C8003C000AH)(E7D9H)1
12
62

3.5 idle
characters- 12 -

(2) Read [Slave address 1, Device identification information (Vendor name)]• A request message from the master
Slave
Function
Sub-function
Data
Error check3.5 idle
addresscode
code
CRC-16characters (01H)
(2BH)
(0EH)
(0400H)(7327H)1
1
1
2
2

3.5 idle
characters・Response message from the slave in normal status (SHINKO TECHNOS CO., LTD.)
Slave
Function
Sub-function
3.5 idle
addresscode
codecharacters (01H)
(2BH)
(0EH)
1
1
1
Data
(048100000100185348494E4B4F20544543484E4F5320434F2E2C204C54442EH)
31
Error check
CRC-16(1C54H)
2
Data in the response message becomes as follows.
Data
Read Device ID code 1 byte
Conformity level1 byteMore Follows
1 byteNext Object ID
1 byteNumber of Objects
1 byteList of Object ID
1 byteList of Object length
1 byteList of Object value
Object length- 13 -

04H
81H
00H
00H
01H
00H
24(18H)
S(53H)
H(48H)
I(49H)
N(4EH)
K(4BH)
O(4FH)(20H)
T(54H)
E(45H)C(43H)
H(48H)
N(4EH)
O(4FH)
S(53H)(20H)
C(43H)
O(4FH).(2EH),(2CH)(20H)
L(4CH)
T(54H)
D(44H).(2EH)

3.5 idle
characters(3) Read [Slave address 1, Device identification information (Product code)]• A request message from the master
Slave
Function
Sub-function
Data
Error check3.5 idle
addresscode
code
CRC-16characters (01H)
(2BH)
(0EH)
(0401H)(B2E7H)1
1
1
2
2

3.5 idle
characters• Response message from the slave in normal status (SGJL-F01 -0-0)
Slave
Function
Sub-function
3.5 idle
addresscode
codecharacters (01H)
(2BH)
(0EH)
1
1
1
Data
(0481000001010D53474A4C2D463031202D302D30H)
20
Data in the response message becomes as follows.
Data
Read Device ID code 1 byte
Conformity level1 byteMore Follows
1 byteNext Object ID
1 byteNumber of Objects
1 byteList of Object ID
1 byteList of Object length
1 ByteList of Object value
Object length

Error check
CRC-16(3A07H)2

3.5 idle
characters

04H
81H
00H
00H
01H
01H
13(0DH)
S(53H)G(47H)
J(4AH)
L(4CH)-(2DH)F(46H)
0(30H)
1(31H)Space (20H)-(2DH)
0(30H)-(2DH)
0(30H)• Response message from the slave in exception (error) status [when Sub-function code (MEI type) is
incorrect]
The function code MSB is set to 1 for the response message in exception (error) status, and ABH isreturned.
Exception code 01H (Non-existent function) is returned (error).
Error check
Function Exception code
Slave
3.5 idle
3.5 idle
CRC-16code
address
characterscharacters(9EF0H)
(ABH)
(01H)
(01H)
1
1
1
2

- 14 -

6. Communication Command Table
6.1 Communication Command Table
6.1.1 A Single Piece of Data Read/Write Command
Function
Data Item
Code
03/06H
0001H Default Display/Manual mode(*1)

03/06H

0002H

03/06H

0003H
0004H
:
000FH

6.1.2

Output 1 output value (SGFL)

Output 1 output value (SGJL)
Output 2 output value (SGFL)
Output 2 output value (SGJL)
Reserved (*3):
Reserved (*3)

Data0000H: Default Display
0001H: Manual mode
0000H: 0.1 Hz
0001H: 1 Hz
0002H: 2 Hz
0003H: 4 Hz
0004H: 8 Hz
0005H: 10 Hz
0006H: 20 Hz
0007H: 40 Hz
0008H: 80 Hz
0009H: 100 Hz
000AH: 200 Hz
000BH: 400 Hz
000CH: 800 Hz
000DH: 1 kHz
000EH: 2 kHz
000FH: 4 kHz
0010H: 8 kHz
0011H: 10 kHz
Set valueSame as Output 1 output value (SGFL) data
Set value

A Single/Multiple Piece(s) of Data Read/Write Command
Function
Data Item
Data
Code03/06/10H
0010H Frequency range group (*4)
0000H: Ultra-low frequency
0001H: Low frequency
0002H: Frequency
03/06/10H
0011H Frequency high limit
Ultra-low frequency: 10 to 9999 mHz
Low frequency: 1 to 9999 Hz
Frequency:
1 to 15 kHz (SGFL)
1 to 100 kHz (SGJL)
0012H Reserved (*3)
03/06/10H
0013H Decimal point place
0000H: No decimal point
0001H: 1 digit after decimal point
0002H: 2 digits after decimal point
0003H: 3 digits after decimal point
Indication
value
for
Input
low
03/06/10H
0014H
Set value
limit
03/06/10H
0015H Indication value for Input highSet value
limit
03/06/10H
0016H Indication unit
0000H: No unit
0001H: %0002H: mA
0003H: V
0004H:
0017H Reserved (*3)::
001FH Reserved (*3)
- 15 -

Function
Code
03/06/10H

0020H

Output 1 type (SGJL)(*4)

03/06/10H

0021H

03/06/10H

0022H

Output 1 division ratio(SGFL)(*4)
Output 1 decimal point place(SGJL)(*4)

03/06/10H

0023H

03/06/10H

0024H

03/06/10H

0025H

03/06/10H

0026H

03/06/10H

0027H

03/06/10H

0028H

Output 1 indication value at
output 0% (SGJL)(*4)
Output 1 indication value at
output 100% (SGJL)(*4)
Output 1 shutdown thresholdvalue (SGJL)(*4)
Output 1 output value atshutdown (SGJL)(*4)
Output 1 one-shot output pulse
width (SGFL)(*4)
Output 1 Normal/Reverse

03/06/10H

0029H
:
003FH
0040H

Reserved (*3):
Reserved (*3)
Output 2 type (SGJL)(*2)(*4)

03/06/10H

0041H

03/06/10H

0042H

Output 2 division ratio(SGFL)(*2)(*4)
Output 2 decimal point place(SGJL)(*2)(*4)

03/06/10H

0043H

03/06/10H

0044H

03/06/10H

0045H

Data Item

Data

Output 2 indication value at
output 0% (SGJL)(*2)(*4)
Output 2 indication value at
output 100% (SGJL)(*2)(*4)
Output 2 shutdown thresholdvalue (SGJL)(*2)(*4)- 16 -

0000H: 4 to 20 mA
0001H: 0 to 20 mA
0002H: 0 to 16 mA
0003H: 2 to 10 mA
0004H: 0 to 10 m A
0005H: 0 to 10 mV
0006H: 0 to 100 mV
0007H: 0 to 1 V
0008H: 0 to 5 V
0009H: 1 to 5 V
000AH: 0 to 10 V
000BH: -5 to 5 V
Set value
0000H: No decimal point
0001H: 1 digit after decimal point
0002H: 2 digits after decimal point
0003H: 3 digits after decimal pointSet value
Set value
Set value
Set value
Set value
0000H: Normal
0001H: Reverse

0000H: 4 to 20 mA
0001H: 0 to 20 mA
0002H: 0 to 16 mA
0003H: 2 to 10 mA
0004H: 0 to 10 mA
0005H: 0 to 10 mV
0006H: 0 to 100 mV
0007H: 0 to 1 V
0008H: 0 to 5 V
0009H: 1 to 5 V
000AH: 0 to 10 V
Set value
0000H: No decimal point
0001H: 1 digit after decimal point
0002H: 2 digits after decimal point
0003H: 3 digits after decimal pointSet value
Set value
Set valueFunction
Code
03/06/10H

0046H

03/06/10H

0047H

03/06/10H

0048H

Output 2 output value atshutdown (SGJL)(*2)(*4)
Output 2 one-shot output pulse
width (SGFL)(*2)(*4)
Output 2 Normal/Reverse (*2)

03/06/10H
03/06/10H

0049H
:
005FH
0060H
0061H

Reserved (*3):
Reserved (*3)
Indication time
Auto/Manual

0062H
0063H
:
006FH
0070H

Manual mode auto return time
Reserved (*3):
Reserved (*3)
Multi-Display A 1st digit

03/06/10H

03/06/10H

Data Item

Data- 17 -

Set value
Set value
0000H: Normal
0001H: Reverse

Set value
0000H: Auto
0001H: ManualSet value

0000H: A
0001H: B
0002H: C
0003H: D
0004H: E
0005H: F
0006H: G
0007H: H
0008H: I
0009H: J
000AH: K
000BH: L
000CH: M
000DH: N
000EH: O
000FH: P
0010H: Q
0011H: R
0012H: S
0013H: T
0014H: U
0015H: V
0016H: W
0017H: X
0018H: Y
0019H: Z
001AH: 0001BH: 1
001CH: 2
001DH: 3
001EH: 4001FH: 50020H: 60021H: 70022H: 80023H: 90024H: / (Slash)
0025H: - (Hyphen)
0026H: . (Period)
0027H: (Blank)

Function
Code
03/06/10H
03/06/10H
03/06/10H
03/06/10H
03/06/10H
03/06/10H
03/06/10H

6.1.3

Data Item

Data

03/06/10H
03/06/10H

0071H
0072H
0073H
0074H
0075H
0076H
0077H
0078H
:
007FH
0080H
0081H

Multi-Display A 2nd digit
Multi-Display A 3rd digit
Multi-Display A 4th digit
Multi-Display B 1st digit
Multi-Display B 2nd digit
Multi-Display B 3rd digit
Multi-Display B 4th digit
Reserved (*3):
Reserved (*3)
Instrument number (*5)
Communication speed (*5)

03/06/10H

0082H

Data bit/Parity (*5)

03/06/10H

0083H

Stop bit (*5)

03/06/10H

0084H
0085H
:
009FH

Response delay time
Reserved (*3):
Reserved (*3)

A Single Piece of Data Write Command
Function
Data Item
Code
06H
00A0H Key operation change flagclearing (*6)
00A1H Reserved (*3)::
00AFH Reserved (*3)

- 18 -

Same as Multi-Display A 1st digit data
Same as Multi-Display A 1st digit data
Same as Multi-Display A 1st digit data
Same as Multi-Display A 1st digit data
Same as Multi-Display A 1st digit data
Same as Multi-Display A 1st digit data
Same as Multi-Display A 1st digit data

Set value
0000H: 9600 bps
0001H: 19200 bps
0002H: 38400 bps
0000H: 8 bits/No parity
0001H: 8 bits/Even
0002H: 8 bits/Odd
0000H: 1 bit
0001H: 2 bits
Set value

Data
0001H: Clear key operation change flag

6.1.4

Read Command
FunctionCode
03/04H
00B0H
03/04H
00B1H
03/04H
00B2H

03/04H

03/04H
03/04H

00B3H
:
00C0H
00C1H
00C2H
:
00CFH
00D0H
00D1H
00D2H
00D3H
:
0138H

Data Item

Data

Input value
Output 1 output value
Status flag

Reserved (*3):
Reserved (*3)
Output 2 output value
Reserved (*3):
Reserved (*3)
Software version
Reserved (*3)
Key operation changed item
Reserved (*3):
Reserved (*3)

Read value, Decimal point ignored
Read value, Decimal point ignored
B0: Input error (High limit)
0: Normal
1: Error (Overscale)
B1: Input error (Low limit)
0: Normal
1: Error (Underscale)
B2: Not used:
B10: Not used
B11: USB connection
0: Standard connection
1: USB connection
B12: Unit status 1
0: Default Display
1: Setting mode
B13: Unit status 2
0: Default Display
1: Manual mode
B14: Lock status
0: Unlock
1: Lock
B15: Change in key operation
0: No
1: YesRead value, Decimal point ignored

Read value
Data item changed by key operation(*1) If Auto is selected in [Auto/Manual (0061H)], and if Manual mode is selected in [Default Display/Manual mode (0001H)],
Exception code 17 (11H) will be returned as a negative acknowledgement.
(*2) This item (Reserved) cannot be used as it is console software data area.
If a single/multiple piece(s) of data Read is executed, 0 (zero) will be returned (acknowledgement).
If a single/multiple piece(s) of data Write is executed, acknowledgement will be returned, and data will be discarded.
If a value out of the setting range is written, Exception code 3 (03H) will be returned as a negative acknowledgement.
(*3) This item (Reserved) cannot be used as it is data area for extension.
If a single/multiple piece(s) of data Read is executed, 0 (zero) will be returned (acknowledgement).
If a single/multiple piece(s) of data Write is executed, acknowledgement will be returned, and data will be discarded.
(*4) Available or unavailable depending on model.
For unavailable items,
if a single/multiple piece(s) of data Read is executed, 0 (zero) will be returned (acknowledgement).
if a single/multiple piece(s) of data Write is executed, acknowledgement will be returned, and data will be discarded.
(*5) If communication conditions are changed, please change communication conditions on the host side as well.
(*6) If a single/multiple piece(s) of data Read is executed, 0 (zero) will be returned (acknowledgement).
For a single/multiple piece(s) of data Write, and if data except 0001H is written, Exception code 3 (03H) will be
returned as a negative acknowledgement.

- 19 -

6.2

Data

6.2.1 Notes about Write/Read Command• The data (set value, decimal) is converted to a hexadecimal number.
Negative numbers are represented in 2's complement.
• When connecting multiple slaves, the address (instrument number) must not be duplicated.
• Do not use undefined Data items. If they are used, negative acknowledgement will be returned or arandom value will be written or read, resulting in malfunction.
• Modbus protocol uses Holding Register addresses. The Holding Register addresses are created asfollows. A data item is converted to decimal number, and the offset of 40001 is added. The result is theHolding Register address.
Using Data item 0001H (Default Display/Manual mode) as an example: Data item in the sending message
is 0001H, however, Modbus protocol Holding Register address is 40002 (1 + 40001).
6.2.2 Write Command• Up to 1,000,000 (one million) entries can be stored in non-volatile IC memory.
If the number of settings exceeds the limit, the data will not be saved. So, do not change the set values
frequently via software communication. (If a value set via software communication is the same as thevalue before the setting, the value will not be written in non-volatile IC memory.)• Setting range of each item is the same as that of keypad operation.
• When data (set value) has a decimal point, a whole number (hexadecimal) without a decimal point is used.
• Writings via software communication are possible while in Set value lock status.
• Even if options are not equipped, writing or reading via software communication will be possible.
However, their command contents will not function.
• When Write is executed using the Broadcast address (00H) command, the command is sent to all theconnected slaves. However, a response is not returned.
6.2.3 Read Command• When the data (set value) has a decimal point, a whole number (hexadecimal) without a decimal point isused for a response.
6.3

Negative Acknowledgement

6.3.1

Exception code 2 (02H)

The slave will return Exception code 2 (02H) in the following cases.
• When non-existent data address is read or written• When “Not used” item is read or written.
6.3.2

Exception code 3 (03H)

The slave will return Exception code 3 (03H) in the following case.
• When a value out of the setting range is written.
6.3.3

Exception code 17 (11H)

The slave will return Exception code 17 (11H) in the following case.
• When Auto is selected in [Auto/Manual (0064H)], and if Manual mode is selected in [Default Display/
Manual mode]
6.3.4

Exception code 18 (12H)

The slave will return Exception code 18 (12H) in the following case.
• During setting mode by keypad operation- 20 -

6.4 Notes on Programming Monitoring Software
6.4.1 How to Speed up the Scan Time
When monitoring multiple units of the instrument, set the program so that the requisite minimum pieces ofdata such as Data item 00B0H (Input value), Data item 00B1H (Output 1 output value), Data item 00B2H(Status flag), can be read.
For other data, set the program so that they can be read only when their set value has changed.
This will speed up the scan time.
6.4.2 How to Read the Set Value Changes Made by Front Keypad Operation
If any set value is changed by the keypad operation, the instrument sets the [00B2H (Status flag) B15:
Change in key operation] to 1 (Yes).
There are 2 methods of reading the set value changes made by front keypad.
(1) Reading method 1
1 On the monitoring software side, check that [00B2H (Status flag) B15: Change in key operation] hasbeen set to 1 (Yes), then read all set values.
2 Clear [00B2H (Status flag) B15: Change in key operation], by writing Data item 00A0H (Key operation
change flag clearing) to 0001H (Clear key operation change flag).
If 00A0H (Key operation change flag clearing) is written to 0001H (Clear key operation change flag)
during setting mode of the instrument, Exception Code 18 (12H) will be returned as a negative
acknowledgement. And [00B2H (Status flag) B15: Change in key operation] cannot be cleared.
Set a program so that all set values can be read when a negative acknowledgement is returned.
3 Read all set values again after acknowledgement is returned.
(2) Reading method 2
1 On the monitoring software side, check that [00B2H (Status flag) B15: Change in key operation] hasbeen set to 1 (Yes), then write the 00A0H (Key operation change flag clearing) to 0001H (Clear key
operation change flag).
2 Set the program depending on the acknowledgement or negative acknowledgement as follows.
When acknowledgement is returned;
Consider it as settings completed, and read all set values.
When Exception code 18 (12H) is returned as a negative acknowledgement;
Consider it as still in setting mode, and read the requisite minimum pieces of data such as 00B0H (Input
value), 00B1H (Output 1 output value), 00B2H (Status flag), then return to Step 1 .
Thus, programs which do not affect the scan time can be created using the methods described above, even
if set values on the monitoring software will not be updated until settings are complete.
6.5 When Communicating with a PLC
To communicate with a PLC, use a Shinko PLC Interface Unit SIF-600-S3.
No programming is needed for connection.
PLCs corresponding to the SIF-600-S3, its manufacturer and host link units:
PLC Manufacturer
Mitsubishi Electric Corp.

PLC Model, Series Name
MELSEC Q, QnA series (*)

Host Link Unit Model
AJ71UC24, A1SJ71UC24-R2/R4/PRF
A1SJ71C24-R2/R4/PRF, QJ71C24

MELSEC FX series (*)
Omron Corp.
Keyence Corp.
Yokogawa Electric Corp.
Fuji Electric Co., Ltd.

SYSMAC CJ/CS/CP series
KV series
FA-M3 series
MICREX-SX series(*) Models with compatible QR/QW communication commands- 21 -

CS1W-SCU21-V1
CJ1W-SCU21, CJ1W-SCU41
KV-L20V
F3LC11-2N, F3LC11-1F, F3LC12-1F
NP1L-RS1, NP1L-RS2, NP1L-RS3
NP1L-RS4

7. Specifications
Cable length
Communication line
Communication method
Communication speed
Synchronization method
Code form
Error detection
Error correction
Communication protocol
Data format

Number of connectableunits

1.2 km (Max.), Cable resistance: Within 50(Terminators are not necessary,or more on both sides.)but if used, use 120
EIA RS-485
Half-duplex communication
38400 bps (9600, 19200 bps) Selectable by keypadStart-stop synchronization
BinaryParity checking, CRC-16
Command request repeat system
Modbus RTU
Start bit: 1 bit
Data bit: 8 bits
Parity: Odd (No parity, Even) (Selectable by keypad)
Stop bit: 1 bit (2 bits) (Selectable by keypad)
Max 31 units to 1 host computer- 22 -

8. Troubleshooting
Check that power is being supplied to the master and slave that customers use. If communication failure still
occurs, check the following.
ProblemPossible Cause
Solution
Communication
Communication cable is not securely
Check the communication cable andfailureconnected, or is disconnected/defective.
connector.
Incorrect wiring of the communication
Check the communication cable andcable and/or connector
connector.
Refer to Section ‘2. Wiring’ (pp. 2, 3).
Check the communication cable andImperfect contact between thecommunication cable and the connector, connector.
or between the communication connector
and instrument port
Communication speed of the slave does
Set the same communication speed on
not match that of the master.
the master and the slave.
Refer to Section ‘3. Setting
Communication Parameters’ (pp. 3, 4).
Set the same data bit, parity and stop bit
The data bit, parity and stop bit of theon the master and the slave.
master do not correspond to those ofRefer to Section ‘3. Setting
the slave.
Communication Parameters’ (pp. 3, 4).
Check the instrument number (address)
The instrument number (address) of theof the slave and the command.
slave does not correspond to that ofRefer to Section ‘3. Setting
the command.
Communication Parameters’ (pp. 3, 4).
The instrument numbers (addresses) are Check that each slave has a different
duplicated in multiple slaves.
instrument number (address).
Refer to Section ‘3. Setting
Communication Parameters’ (pp. 3, 4).
Make sure that the program is
Check the program.
appropriate for the transmission timing.
Refer to Section ‘4. Communication
Procedure’ (p.5).
Check the command code.
Although communica- A non-existent command code has been
sent.
tion is occurring, theresponse is negative
The Write command data exceeds the
Check the setting range of the slave.
acknowledgement.
setting range of the slave.
No command can be written to theCheck the slave status.
slave.
The instrument is in front keypad
Return the instrument to the Default
operation setting mode.
Display.
For all other malfunctions, please contact our main office or dealers.

- 23 -SHINKO TECHNOS CO., LTD.
OVERSEAS DIVISION
Head Office : 2-5-1, Senbahigashi, Minoo, Osaka, Japan
http://www.shinko-technos.co.jp/e/
URL:
Tel : +81-72-727-6100
E-mail:overseas@shinko-technos.co.jp
Fax: +81-72-727-7006