manuals.online logo
Brands
  1. Home
  2. •
  3. Brands
  4. •
  5. Shinko
  6. •
  7. Controllers
  8. •
  9. Shinko DCL-33A Use and care manual

Shinko DCL-33A Use and care manual

1
COMMUNICATION INSTRUCTION MANUAL DCL-33A (C5)
No.DCL32CE1 2016.06
This manual contains instructions for the communication functions, operations and notes when operating the
DCL-33A.
To prevent accidents arising from the misuse of this controller, please ensure the operator receives this
manual.
Warning
Turn the power supply to the instrument off before wiring or checking. Working on or touching the
terminal with the power switched on may result in severe injury or death due to electrical shock.
1. System Configuration
1.1 When Using USB Communication Cable CMC-001-3 (Sold Separately)
(Fig. 1.1-1)
1.2 When Using Communication Converter IF-400 (Sold Separately)
(Fig. 1.2-1)
USB communication
cable CMC-001-3
(sold separately)
Host computer
DCL-33A
No. 0
DCL-33A
No. 1
DCL-33A
No. 30
DCL-33A
No. 0
DCL-33A
No. 1
DCL-33A
No.
-
30
Communication converter
IF-400 (sold separately)
RS-232C RS-485
Host computer
Regulatory temperatury na szynęDIN z serii DCL-33A
http://acse.pl
2
USB communication
cable CMC-001-3
(sold separately)
Host computer
USB port
2. Wiring
2.1 When Using USB Communication Cable CMC-001-3 (Sold Separately)
(Fig. 2.1-1)
2.2 When Using Communication Converter IF-400 (Sold Separately)
•D-sub 9-pin connector
(Fig. 2.2-1)
DCL-33A bottom
CMC-001-3 CDD or CPP (sold separately)
DCL-33A (Max. 31 units)
Host computer
D-sub 9-pin computer
DCL-33A (Max. 31 units)
IF-400
(sold separately)
CDD or CPP (sold separately)
Bottom of IF-400, DCL-33A
Shield
wire FG
3
Shield wire
Be sure to ground only one end of the shield wire to avoid a ground loop. If both ends of the shield
wire are grounded, the circuit will be closed, resulting in a ground loop. This may cause noise.
Recommended cable: OTSC-VB 2PX0.5SQ (made by Onamba Co., Ltd.) or equivalent
(Use a twisted pair cable.)
Terminator (Terminal resistor)
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 DCL-33A has built-in pull-up
and pull-down resistors.
3. Setting Method for Communication
Press and hold the and keys (in that order) together for approx. 3 seconds in the PV/SV
Display. The unit enters Auxiliary function setting mode 1.
Press the key twice.
“Communication protocol” will appear.
Use the or key for settings or selections, and register them by pressing the key.
Characters,
Factory Default Setting Item, Function, Setting Range (Selection item)
Communication protocol
• Selects the communication protocol.
• : Shinko protocol
: Modbus ASCII mode
: Modbus RTU mode
: Shinko protocol (Block read)
: Modbus ASCII mode (Block read)
: Modbus RTU mode (Block read)
Instrument number
• Sets the instrument number.
The instrument numbers should be set one by one when multiple instruments are
connected in Serial communication, otherwise communication is impossible.
• Setting range: 0 to 95
Communication speed
• Selects a communication speed equal to that of the host computer.
• : 2400 bps
: 4800 bps
: 9600 bps
: 19200 bps
: 38400 bps
Parity
• Selects the parity.
• Not available if Shinko protocol or Shinko protocol (Block read) is selected in
[Communication protocol].
• : No parity
: Even
: Odd
Stop bit
• Selects the stop bit.
• Not available if Shinko protocol or Shinko protocol (Block read) is selected in
[Communication protocol].
• : 1 bit
: 2 bits
Press the key. The unit reverts to the PV/SV Display.
Now settings are complete.
4
4. Communication Procedure
Communication starts with command transmission from the host computer (hereafter Master), and
ends with the response of the DCL-33A (hereafter Slave).
• 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 the
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:
• Global address (Shinko protocol) is set.
(Fig. 4-1) • Broadcast address (Modbus protocol) is set.
• Communication error (framing error, parity error)
• Checksum error (Shinko protocol), LRC discrepancy (Modbus
ASCII mode), CRC-16 discrepancy (Modbus RTU mode)
Communication timing between the master and slave
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 the
command 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
from the 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
to provide an idle status (mark status) transmission period of 1 or more characters before sending the
response to ensure synchronization on the receiving side.
The slave is arranged so as to disconnect the transmitter from the communication line within a 1
character transmission period after sending the response.
Command
Data
Command
Acknowledgement
Command
Negative
acknowledgement
Command
No response
Master Slave
5
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 Selectable
Parity: Even Selectable
Stop bit: 1 bit 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
1 1 1 1 4
Data Checksum Delimiter
(03H)
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
6
• Response to ‘Read multiple pieces of data’
Header
(06H) Address
Sub
address
(20H)
Command
type
(24H)
Data
item
1 1 1 1 4
Data Checksum Delimiter
(03H)
4 x n 2 1
n: Amount of data
(4) Acknowledgement
Header
(06H) Address Checksum Delimiter
(03H)
1 1 2 1
(5) Negative acknowledgement
Header
(15H) Address Error
code Checksum Delimiter
(03H)
1 1 1 2 1
Header: Control code to represent the beginning of the command or the response.
ASCII is used.
Write command, Read command: STX (02H) fixed
Response with data, Acknowledgement: ACK (06H) fixed
Negative acknowledgement: NAK (15H) fixed
Instrument number (Address): Numbers by which the master discerns each slave.
Instrument number 0 to 94 and Global address 95.
ASCII (20H to 7FH) is used by adding 20H to instrument numbers 0 to 95 (00H to 5FH).
95 (7FH) is called Global address, which is used when the same command is sent to
all the slaves connected. However, the response is not returned.
Sub address: 20H fixed
Command type: Codes for Write command and Read command.
Command
Type Contents Description
20H Read (A single piece of data) Reads a single piece of data.
24H Read (Multiple pieces of data) Reads consecutive multiple pieces
of data. (Amount of data: Max. 100)
50H Write (A single piece of data) Writes a single piece of data.
54H Write (Multiple pieces of data) Writes consecutive multiple pieces
of data. (Amount of data: Max. 100)
Notes about Read/Write multiple pieces of data
When reading or writing multiple pieces of data, as it takes time until slave sends
response data, the master determines no response based on the timeout period below
after sending a command.
Timeout period calculation: 6 ms x Amount of data
Data item: Classification of the command object.
Composed of 4-digit hexadecimal numbers, using ASCII.
Refer to Section ‘7. Communication Command Table’ (pp.23 - 38).
Data: The contents of data (values) differ depending on the Write command.
Composed of 4-digit hexadecimal numbers, using ASCII.
Refer to Section ‘7. Communication Command Table’ (pp.23 - 38).
Checksum: 2-character data to detect communication errors.
7
Delimiter: Control code to represent the end of command.
ASCII code ETX (03H) fixed
Error code: Represents an error type using ASCII.
Error Code Contents
1 (31H) Non-existent command
2 (32H) Not used
3 (33H) Setting outside the setting range
4 (34H) Status unable to be written (e.g. AT is performing.)
5 (35H) During setting mode by keypad operation
5.3 Checksum Calculation
Checksum is used to detect receiving errors in the command or data.
Set the program for the master side as well to calculate the checksum of the response data from the
slaves so that communication errors can be checked.
The ASCII code (hexadecimal) corresponding to the characters which range from the address to that
before the checksum is converted to binary notation, and the total value is calculated.
The lower one byte of the total value is converted to 2’s complement, and then to hexadecimal
numbers, that is, ASCII code for the checksum.
• 1’s complement: Reverse each binary bit. 0 will become 1 and vice versa.
• 2’s complement: Add 1 to 1’s complement.
[Example of checksum calculation]
Write SV1 (0001H) to 600 (0258H). See (Fig. 5.3-1).
Address (instrument number): 0 (20H)
(Fig. 5.3-1)
20H
20H
50H
30H
30H
30H
31H
30H
32H
35H
38H
0010 0000
0010 0000
0101 0000
0011 0000
0011 0000
0011 0000
0011 0001
0011 0000
0011 0010
0011 0101
0011 1000
+
10 0010 0000
[Hexadecimal] [Binary]
1101 1111
1
+
1110 0000
E 0
45H 30H
[1's complement]
[2's complement]
[Hexadecimal]
[ASCII]
Checksum
STX ETX
P 0 0 0 1 0 2 5 8
02H 20H 20H 50H 30H 30H 30H 31H 30H 32H 35H 38H 03H
[Characters above are represented in ASCII.]
Checksum
Checksum calculation range
[e.g.]
E
45H 30H
0
8
5.4 Command Example
Numerals written below the command represent number of characters.
(1) Read [Address 1, PV]
• Read command from the master
Header
(02H)
Address
(21H)
Sub
address
(20H)
Command
type
(20H)
Data item
[0080H]
(30H 30H 38H 30H)
Checksum
(44H 37H)
Delimiter
(03H)
1 1 1 1 4 2 1
• A response from the slave in normal status [When PV=25 (0019H)]
Header
(06H)
Address
(21H)
Sub
address
(20H)
Command
type
(20H)
Data item
[0080H]
(30H 30H 38H 30H)
Data
[0019H]
(30H 30H 31H 39H)
Checksum
(30H 44H)
Delimiter
(03H)
1 1 1 1 4 4 2 1
(2) Read [Address 1, SV1]
• Read command from the master
Header
(02H)
Address
(21H)
Sub
address
(20H)
Command
type
(20H)
Data item
[0001H]
(30H 30H 30H 31H)
Checksum
(44H 45H)
Delimiter
(03H)
1 1 1 1 4 2 1
• A response from the slave in normal status [When SV1=600 (0258H)]
Header
(06H)
Address
(21H)
Sub
address
(20H)
Command
type
(20H)
Data item
[0001H]
(30H 30H 30H 31H)
Data
[0258H]
(30H 32H 35H 38H)
Checksum
(30H 46H)
Delimiter
(03H)
1 1 1 1 4 4 2 1
(3) Write [Address 1, SV1 600 (0258H)]
• Write command from the master
Header
(02H)
Address
(21H)
Sub
address
(20H)
Command
type
(50H)
Data item
[0001H]
(30H 30H 30H 31H)
Data
[0258H]
(30H 32H 35H 38H)
Checksum
(44H 46H)
Delimiter
(03H)
1 1 1 1 4 4 2 1
• A response from the slave in normal status
Header
(06H)
Address
(21H)
Checksum
(44H 46H)
Delimiter
(03H)
1 1 2 1
9
(4) Read [Address 1, 25 commands from SV1]
• Read command from the master
Header
(02H)
Address
(21H)
Sub
address
(20H)
Command
type
(24H)
Data item
[0001H]
(30H 30H 30H 31H)
Amount of read data
25 [0019H]
(30H 30H 31H 39H)
Checksum
(31H 30H)
Delimiter
(03H)
1 1 1 1 4 4 2 1
• A response from the slave in normal status
Header
(06H)
Address
(21H)
Sub
address
(20H)
Command
type
(24H)
Data item
[0001H]
(30H 30H 30H 31H)
1 1 1 1 4
Data
[00000000055A
•••
0000]
(
30H 30H 30H 30H 30H 30H 30H 30H 30H 35H 35H 41H • • • 30H 30H 30H 30H)
Checksum
(43H 38H)
Delimiter
(03H)
100 (4 x 25) 2 1
Response data becomes as follows.
Data Item Data Data
(Converted to Hexadecimal)
0001H SV1 0 0000H
0002H Input type K [-200 to 1370 ] 0000H
0003H Scaling high limit 1370 055AH
0004H Scaling low limit -200 FF38H
0005H Decimal point place No decimal point 0000H
0006H A1 type No alarm action 0000H
0007H A2 type No alarm action 0000H
0008H A3 type No alarm action 0000H
0009H A4 type No alarm action 0000H
000AH Reserved 0 0000H
000BH Reserved 0 0000H
000CH Reserved 0 0000H
000DH Reserved 0 0000H
000EH SV1 0 0000H
000FH SV2 0 0000H
0010H Reserved 0 0000H
0011H Reserved 0 0000H
0012H A1 value 0 0000H
0013H A1 high limit alarm value 0 0000H
0014H A2 value 0 0000H
0015H A2 high limit alarm value 0 0000H
0016H A3 value 0 0000H
0017H A3 high limit alarm value 0 0000H
0018H A4 value 0 0000H
0019H A4 high limit alarm value 0 0000H
10
(5) Write [Address 1, 25 commands from SV1]
(e.g.) The data (25 commands from SV1) is shown below.
Data Item Data Data
(Converted to Hexadecimal)
0001H SV1 2000 07D0H
0002H Input type K [-199.9 to 400.0 ] 0001H
0003H Scaling high limit 4000 0FA0H
0004H Scaling low limit 0 0000H
0005H Decimal point place XXX.X (1 digit after
decimal point)
0001H
0006H A1 type High/Low limits
independent alarm
000AH
0007H A2 type High limit alarm 0001H
0008H A3 type Low limit alarm 0002H
0009H A4 type No alarm action 0000H
000AH Reserved 0 0000H
000BH Reserved 0 0000H
000CH Reserved 0 0000H
000DH Reserved 0 0000H
000EH SV1 2000 07D0H
000FH SV2 0 0000H
0010H Reserved 0 0000H
0011H Reserved 0 0000H
0012H A1 value 1000 03E8H
0013H A1 high limit alarm value 500 01F4H
0014H A2 value 1000 03E8H
0015H A2 high limit alarm value 0 0000H
0016H A3 value -1500 FA24H
0017H A3 high limit alarm value 0 0000H
0018H A4 value 0 0000H
0019H A4 high limit alarm value 0 0000H
• Write command from the master (When writing the above data)
Header
(02H)
Address
(21H)
Sub
address
(20H)
Command
type
(54H)
Data item
[0001H]
(30H 30H 30H 31H)
1 1 1 1 4
Data
[07D000010FA0 • • • 0000]
(30H 37H 44H 30H 30H 30H 30H 31H 30H 46H 41H 30H • • • 30H 30H 30H 30H)
Checksum
(45H 46H)
Delimiter
(03H)
100 (4 x 25) 2 1
• Response from the slave in normal status
Header
(06H)
Address
(21H)
Checksum
(44H 46H)
Delimiter
(03H)
1 1 2 1
11
6. Modbus Protocol
6.1 Transmission Mode
There are 2 transmission modes (ASCII and RTU) in Modbus protocol.
6.1.1 ASCII Mode
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 (Selectable)
Parity: Even (No parity, Odd) (Selectable)
Stop bit: 1 bit (2 bits) (Selectable)
Error detection : LRC (Longitudinal Redundancy Check)
Data communication interval: 1 second or less
6.1.2 RTU Mode
8-bit binary data in command is transmitted as it is.
Data format Start bit: 1 bit
Data bit: 8 bits
Parity: No parity (Even, Odd) (Selectable)
Stop bit: 1 bit (2 bits) (Selectable)
Error detection: CRC-16 (Cyclic Redundancy Check)
6.2 Data Communication Interval
6.2.1 ASCII Mode
No communication interval limit between characters
6.2.2 RTU Mode
1.5 character transmission times or less
(Communication speed 2400, 4800, 9600, 19200 bps: 1.5 character transmission times,
Communication speed 38400 bps: 750 s)
To transmit continuously, an interval between characters which consist of one message, must be
within 1.5 character transmission times.
If an interval lasts longer than 1.5 character transmission times, the DCL-33A assumes that
transmission from the master is finished, which results in a communication error, and will not return
a response.
6.3 Message Configuration
6.3.1 ASCII Mode
ASCII mode message is configured to start by Header [: (colon) (3AH)] and end by Delimiter
[CR (carriage return) (0DH) + LF (Line feed) (0AH)].
Data section: Max. 2 x 252 characters
Header
(:)
Slave
address
Function
code Data Error check
LRC
Delimiter
(CR)
Delimiter
(LF)
6.3.2 RTU Mode
RTU mode is configured to start after idle time is processed for more than 3.5 character
transmissions, and end after idle time is processed for more than 3.5 character transmissions.
(Communication speed 2400, 4800, 9600, 19200 bps: 3.5 character transmission times,
Communication speed 38400 bps: 1.75 ms)
Data section: Max. 252 bytes
3.5 idle
characters
Slave
address
Function
code Data Error check
CRC-16
3.5 idle
characters
12
(1) Slave Address
Slave address is an individual instrument number on the slave side, and is set within the range
0 to 95 (00H to 5FH). 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 Code
The function code is the command code for the slave to undertake one of the following actions.
(Table 6.3-1)
Type Function Code Sub-Function Code Contents
03 (03H) Reads a single or multiple piece(s) of
data from slave(s).
04 (04H) Reads information from slave(s).
06 (06H) Writes a single piece of data to slave(s).
Data access
16 (10H) Writes multiple pieces of data to slave(s).
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 for
the response.
For example, if the master sends request message setting 10H to the function code by mistake,
slave returns 90H by setting the MSB to 1, because the former is an illegal function.
For negative acknowledgement, the exception codes below (Table 6.3-2) 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.
(Table 6.3-2)
Exception 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 protocol error code 4
(Status unable to be written. (e.g.) AT is performing.)
18 (12H) Shinko protocol error code 5
(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 number of bytes, data and exception codes
in negative acknowledgements, corresponding to the request message.
The effective range of data is -32768 to 32767 (8000H to 7FFFH).
Refer to Section “7. Communication Command Table” (pp.23 - 38).
(4) Error Check
ASCII Mode
A
fter calculating LRC (Longitudinal Redundancy Check) from the slave address to the end of data,
the calculated 8-bit data is converted to two ASCII characters, and are appended to the end of message.
How to Calculate LRC
1Create a message in RTU mode.
2Add all the values from the slave address to the end of data. This is assumed as X.
3Make a complement for X (bit reverse). This is assumed as X.
4Add a value of 1 to X. This is assumed as X.
5Set X as an LRC to the end of the message.
6Convert the whole message to ASCII characters.
13
RTU Mode
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)
1Initialize the CRC-16 data (assumed as X) (FFFFH).
2Calculate exclusive OR (XOR) with the 1st data and X. This is assumed as X.
3Shift X one bit to the right. This is assumed as X.
4When a carry is generated as a result of the shift, XOR is calculated by X of 3and the
fixed value (A001H). This is assumed as X. If a carry is not generated, go to step 5.
5Repeat steps 3and 4until shifting 8 times.
6XOR is calculated with the next data and X. This is assumed as X.
7Repeat steps 3to 5.
8Repeat steps 3to 5up to the final data.
9Set X as CRC-16 to the end of message in sequence from low order to high order.
6.4 Message Example
6.4.1 ASCII Mode
Numerals written below the command represent the number of characters.
(1) Read [Slave address 1, PV (0100H)]
• A request message from the master
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Data item
[0100H]
(30H 31H 30H 30H)
Amount of data
[0001H]
(30H 30H 30H 31H)
Error check
LRC
(46H 41H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 4 4 2 2
• Response message from the slave in normal status [When PV=600 (0258H)]
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Number of
response bytes
[02H]
(30H 32H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(41H 30H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 2 4 2 2
(2) Write [Slave address 1, SV1 (0001H)]
• A request message from the master [When writing SV1 to 600 (0258H)]
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 36H)
Data item
[0001H]
(30H 30H 30H 31H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(39H 45H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 4 4 2 2
• Response message from the slave in normal status
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 36H)
Data item
[0001H]
(30H 30H 30H 31H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(39H 45H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 4 4 2 2
• Response message from the slave in exception (error) status (When a value out of the setting range
is written)
The function code MSB is set to 1 for the response message in exception (error) status [86H (38H 36H)].
The exception code 03H (30H 33H: Value out of the setting range) is returned (error).
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(38H 36H)
Exception code
[03H]
(30H 33H)
Error check
LRC
(37H 36H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 2 2 2
14
(3) Read [Slave address 1, SV1 (0001H)]
• A request message from the master
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Data item
[0001H]
(30H 30H 30H 31H)
Amount of data
[0001H]
(30H 30H 30H 31H)
Error check
LRC
(46H 41H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 4 4 2 2
• Response message from the slave in normal status [When SV1=600 (0258H)]
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Number of
response bytes
[02H]
(30H 32H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(41H 30H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 2 4 2 2
• 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 [83H (38H
33H)].
The exception code 02H (30H 32H: Non-existent data address) is returned (error).
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(38H 33H)
Exception code
[02H]
(30H 32H)
Error check
LRC
(37H 41H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 2 2 2
(4) Read [Slave address 1, 25 commands from SV1]
• A request message from the master
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Data item
[0001H]
(30H 30H 30H 31H)
Amount of data
[0019H]
(30H 30H 31H 39H)
Error check
LRC
(45H 32H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 4 4 2 2
• Response message from the slave in normal status
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Number of
response bytes
[32H]
(33H 32H)
1 2 2 2
Data
[00000000055A • • • 0000]
(30H 30H 30H 30H 30H 30H 30H 30H 30H 35H 35H 41H • • • 30H 30H 30H 30H)
Error check
LRC
(33H 34H)
Delimiter
CR+LF
(0DH 0AH)
100 (4 x 25) 2 2
Response data section is shown below.
Data Item Data Data
(Converted to Hexadecimal)
0001H SV1 0 0000H
0002H Input type K [-200 to 1370 ] 0000H
0003H Scaling high limit 1370 055AH
0004H Scaling low limit -200 FF38H
0005H Decimal point place No decimal point 0000H
0006H A1 type No alarm action 0000H
0007H A2 type No alarm action 0000H
0008H A3 type No alarm action 0000H
0009H A4 type No alarm action 0000H
000AH Reserved 0 0000H
000BH Reserved 0 0000H
000CH Reserved 0 0000H
000DH Reserved 0 0000H
000EH SV1 0 0000H
000FH SV2 0 0000H
15
0010H Reserved 0 0000H
0011H Reserved 0 0000H
0012H A1 value 0 0000H
0013H A1 high limit alarm value 0 0000H
0014H A2 value 0 0000H
0015H A2 high limit alarm value 0 0000H
0016H A3 value 0 0000H
0017H A3 high limit alarm value 0 0000H
0018H A4 value 0 0000H
0019H A4 high limit alarm value 0 0000H
(5) Write (Slave address 1, 25 commands from SV1)
(e.g.) The data (25 commands from SV1) is shown below.
Data Item Data Data
(Converted to Hexadecimal)
0001H SV1 2000 07D0H
0002H Input type K [-199.9 to 400.0 ] 0001H
0003H Scaling high limit 4000 0FA0H
0004H Scaling low limit 0 0000H
0005H Decimal point place XXX.X (1 digit after
decimal point)
0001H
0006H A1 type High/Low limits
independent alarm
000AH
0007H A2 type High limit alarm 0001H
0008H A3 type Low limit alarm 0002H
0009H A4 type No alarm action 0000H
000AH Reserved 0 0000H
000BH Reserved 0 0000H
000CH Reserved 0 0000H
000DH Reserved 0 0000H
000EH SV1 2000 07D0H
000FH SV2 0 0000H
0010H Reserved 0 0000H
0011H Reserved 0 0000H
0012H A1 value 1000 03E8H
0013H A1 high limit alarm value 500 01F4H
0014H A2 value 1000 03E8H
0015H A2 high limit alarm value 0 0000H
0016H A3 value -1500 FA24H
0017H A3 high limit alarm value 0 0000H
0018H A4 value 0 0000H
0019H A4 high limit alarm value 0 0000H
• A request message from the master (when writing the above data)
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(31H 30H)
Data item
[0001H]
(30H 30H 30H 31H)
Amount of data
[0019H]
(30H 30H 31H 39H)
Number of bytes
[32H]
(33H 32H)
1 2 2 4 4 2
Data
[07D00001
•••
0000
(30H 37H 44H 30H 30H 30H 30H 31H
•••
30H 30H 30H 30H)
Error check
LRC
(34H 45H)
Delimiter
CR+LF
(0DH 0AH)
100 (4 x 25) 2 2
• Response message from the slave in normal status
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(31H 30H)
Data item
[0001H]
(30H 30H 30H 31H)
Amount of data
[0019H]
(30H 30H 31H 39H)
Error check
LRC
(44H 35H)
Delimiter
CR+LF
(0DH 0AH)
1 2 2 4 4 2 2
16
6.4.2 RTU Mode
Numerals written below the command represent number of characters.
(1) Read [Slave address 1, PV (0100H)]
• A request message from the master
3.5 idle
characters
Slave
address
(01H)
Function
code
(03H)
Data item
(0100H)
Amount of data
(0001H)
Error check
CRC-16
(85F6H)
3.5 idle
characters
1 1 2 2 2
• Response message from the slave in normal status [When PV is 600 (0258H)]
3.5 idle
characters
Slave
address
(01H)
Function
code
(03H)
Number of
response bytes
(02H)
Data
(0258H)
Error check
CRC-16
(B8DEH)
3.5 idle
characters
1 1 1 2 2
(2) Write [Slave address 1, SV1 (0001H)]
• A request message from the master [When 600 (0258H) is written to SV1]
3.5 idle
characters
Slave
address
(01H)
Function
code
(06H)
Data item
(0001H)
Data
(0258H)
Error check
CRC-16
(D890H)
3.5 idle
characters
1 1 2 2 2
• Response message from the slave in normal status
3.5 idle
characters
Slave
address
(01H)
Function
code
(06H)
Data item
(0001H)
Data
(0258H)
Error check
CRC-16
(D890H)
3.5 idle
characters
1 1 2 2 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 is
returned.
The Exception code 03H (Value out of the setting range) is returned (error).
3.5 idle
characters
Slave
address
(01H)
Function
code
(86H)
Exception code
(03H)
Error check
CRC-16
(0261H)
3.5 idle
characters
1 1 1 2
(3) Read [Slave address 1, SV1 (0001H)]
• A request message from the master
3.5 idle
characters
Slave
address
(01H)
Function
code
(03H)
Data item
(0001H)
Data
(0001H)
Error check
CRC-16
(D5CAH)
3.5 idle
characters
1 1 2 2 2
• Response message from the slave in normal status [When SV1 is 600 (0258H)]
3.5 idle
characters
Slave
address
(01H)
Function
code
(03H)
Number of
response bytes
(02H)
Data
(0258H)
Error check
CRC-16
(B8DEH)
3.5 idle
characters
1 1 1 2 2
• 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).
3.5 idle
characters
Slave
address
(01H)
Function
code
(83H)
Exception code
(02H)
Error check
CRC-16
(C0F1H)
3.5 idle
characters
1 1 1 2
17
(4) Read [Slave address 1, 25 commands from SV1]
• A request message from the master
3.5 idle
characters
Slave
address
(01H)
Function
code
(03H)
Data item
(0001H)
A
mount of
data
(0019H)
Error check
CRC-16
(D5C0H)
3.5 idle
characters
1 1 2 2 2
• Response message from the slave in normal status
3.5 idle
characters
Slave
address
(01H)
Function
code
(03H)
Number of
response byte
(32H)
Data
(00000000055A
•••
0000H)
Error check
CRC-16
(60D9H)
3.5 idle
characters
1 1 1 50 (2 x 25) 2
Response data section is shown below.
Data Item Data Data
(Converted to Hexadecimal)
0001H SV1 0 0000H
0002H Input type K [-200 to 1370 ] 0000H
0003H Scaling high limit 1370 055AH
0004H Scaling low limit -200 FF38H
0005H Decimal point place No decimal point 0000H
0006H A1 type No alarm action 0000H
0007H A2 type No alarm action 0000H
0008H A3 type No alarm action 0000H
0009H A4 type No alarm action 0000H
000AH Reserved 0 0000H
000BH Reserved 0 0000H
000CH Reserved 0 0000H
000DH Reserved 0 0000H
000EH SV1 0 0000H
000FH SV2 0 0000H
0010H Reserved 0 0000H
0011H Reserved 0 0000H
0012H A1 value 0 0000H
0013H A1 high limit alarm value 0 0000H
0014H A2 value 0 0000H
0015H A2 high limit alarm value 0 0000H
0016H A3 value 0 0000H
0017H A3 high limit alarm value 0 0000H
0018H A4 value 0 0000H
0019H A4 high limit alarm value 0 0000H
18
(5) Write [Slave address 1, 25 commands from SV1]
(e.g.) The data (25 commands from SV1) is shown below.
Data Item Data Data
(Converted to Hexadecimal)
0001H SV1 2000 07D0H
0002H Input type K [-199.9 to 400.0 ] 0001H
0003H Scaling high limit 4000 0FA0H
0004H Scaling low limit 0 0000H
0005H Decimal point place XXX.X (1 digit after
decimal point)
0001H
0006H A1 type High/Low limits
independent alarm
000AH
0007H A2 type High limit alarm 0001H
0008H A3 type Low limit alarm 0002H
0009H A4 type No alarm action 0000H
000AH Reserved 0 0000H
000BH Reserved 0 0000H
000CH Reserved 0 0000H
000DH Reserved 0 0000H
000EH SV1 2000 07D0H
000FH SV2 0 0000H
0010H Reserved 0 0000H
0011H Reserved 0 0000H
0012H A1 value 1000 03E8H
0013H A1 high limit alarm value 500 01F4H
0014H A2 value 1000 03E8H
0015H A2 high limit alarm value 0 0000H
0016H A3 value -1500 FA24H
0017H A3 high limit alarm value 0 0000H
0018H A4 value 0 0000H
0019H A4 high limit alarm value 0 0000H
• A request message from the master (When writing the above data)
3.5 idle
characters
Slave
address
(01H)
Function
code
(10H)
Data item
(0001H)
Amount of
data
(0019H)
Number
of bytes
(32H)
1 1 2 2 1
Data
(07D000010FA0
•••
0000H)
Error check
CRC-16
(5C89H)
3.5 idle
characters
50 (2 x 25) 2
• Response message from the slave in normal status
3.5 idle
characters
Slave
address
(01H)
Function
code
(10H)
Data item
(0001H)
Amount of
data
(0019H)
Error check
CRC-16
(5003H)
3.5 idle
characters
1 1 2 2 2
19
6.5 Diagnostics Function
Modbus protocol has the following diagnostics functions.
• Echoes back the request message.
• Reads device identification information.
6.5.1 Message Configuration
ASCII mode
Header
(:)
Slave
address
Function
code Data Error check
LRC
Delimiter
(CR)
Delimiter
(LF)
RTU mode
3.5 idle
characters
Slave
address
Function
code Data Error check
CRC-16
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
95 (01H to 5FH).
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.
Diagnostics function is disabled for the Slave address 0 (00H, broadcast address).
(2) Function code
The function code is the command code for the slave to undertake the following action types.
Type Function Code Sub-Function Code Contents
08 (08H) 00 (0000H) Echoes back the request message.
Diagnostics 43 (2BH) 14 (0EH) Reads device identification information.
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 Code Contents
1 (01H) Illegal function (Non-existent function)
Sub-function code is not correct.
2 (02H) Illegal data address (Non-existent data address)
For function code 43: Object ID is any value other than 00, 01, 02.
3 (03H)
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 the Function code 08 (08H), a request message from the master side is composed of
‘Sub-function code 2 Bytes (0000H)’ and ‘Data n x 2 Bytes’. [n: Amount of data (Max. 100)]
In normal status, a response message from the slave side is the same as the request message.
Function code 1 Byte 08H
Sub-function code 1 Byte 0000H fixed
Data n x 2 Bytes Random value (Max. 100)
20
For Function code 43 (2BH), the request message from the master side is composed of
Sub-function code 14 (0EH), Read Device ID code and Object ID.
Function code 1 Byte 2BH
Sub-function code (MEI type) 1 Byte 0EH
Read Device ID code
(Corresponds to Basic category)
1 Byte 01H/04H
Object ID 1 Byte 00 Vendor name
SHINKO TECHNOS CO., LTD.
01 Product code (model)
(e.g.) DCL-33A-R/M
02 Version number (D, T, MP)
(e.g.) Dxx-xxxx-xx, MPxxxx-xx
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 Byte 2BH
Sub-function code (MEI type) 1 Byte 0EH
Data Read Device ID code 1 Byte 01H/04H
Conformity level 1 Byte 01H/81H
More Follows 1 Byte 00H/FFH
Next Object ID 1 Byte Object ID number
Number of Objects 1 Byte
List of Object ID 1 Byte
List of Object length 1 Byte
List of Object value Object length
For the response message (negative acknowledgement), an exception code is set and returned.
Function code 1 Byte ABH
Exception code 1 Byte 01H/02H/03H
(4) Error check
16-bit data to detect communication errors.
Refer to Section ‘6.3 Message Configuration (4) Error Check (pp.12, 13).
6.5.2 Message Example
Message example in RTU mode are shown below.
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)]
3.5 idle
characters
Slave
address
(01H)
Function
code
(08H)
Sub-function
code
(0000H)
Data
(00C8003C000AH)
Error check
CRC-16
(E7D9H)
3.5 idle
characters
1 1 2 n x 2 2
• Response message from the slave in normal status (Echoes back the same message.)
3.5 idle
characters
Slave
address
(01H)
Function
code
(08H)
Sub-function
code
(0000H)
Data
(00C8003C000AH)
Error check
CRC-16
(E7D9H)
3.5 idle
characters
1 1 2 n x 2 2

Other manuals for DCL-33A

7

Other Shinko Controllers manuals

Shinko JCD-33A-R/M User manual

Shinko

Shinko JCD-33A-R/M User manual

Shinko JCS-33A-R/M T6080 User manual

Shinko

Shinko JCS-33A-R/M T6080 User manual

Shinko PC-935 series Use and care manual

Shinko

Shinko PC-935 series Use and care manual

Shinko BCS2R Series User manual

Shinko

Shinko BCS2R Series User manual

Shinko DCL-33A User manual

Shinko

Shinko DCL-33A User manual

Shinko ACS-13A Use and care manual

Shinko

Shinko ACS-13A Use and care manual

Shinko JCL-33A Series Use and care manual

Shinko

Shinko JCL-33A Series Use and care manual

Shinko JCS-33A User manual

Shinko

Shinko JCS-33A User manual

Shinko FCR-13A User manual

Shinko

Shinko FCR-13A User manual

Shinko DCL-33A User manual

Shinko

Shinko DCL-33A User manual

Shinko PCA1 User manual

Shinko

Shinko PCA1 User manual

Shinko ACD-13A Use and care manual

Shinko

Shinko ACD-13A Use and care manual

Shinko DCL-33A-R/M User manual

Shinko

Shinko DCL-33A-R/M User manual

Shinko PCA1 User manual

Shinko

Shinko PCA1 User manual

Shinko JCR-33A User manual

Shinko

Shinko JCR-33A User manual

Shinko JCL-33A Series User manual

Shinko

Shinko JCL-33A Series User manual

Shinko DCL-33A User manual

Shinko

Shinko DCL-33A User manual

Shinko DCL-33A User manual

Shinko

Shinko DCL-33A User manual

Shinko JCL-33A Series User manual

Shinko

Shinko JCL-33A Series User manual

Shinko DCL-33A User manual

Shinko

Shinko DCL-33A User manual

Shinko DCL-33A User manual

Shinko

Shinko DCL-33A User manual

Shinko ACS-13A User manual

Shinko

Shinko ACS-13A User manual

Shinko PCD-33A User manual

Shinko

Shinko PCD-33A User manual

Shinko PCB1 User manual

Shinko

Shinko PCB1 User manual

Popular Controllers manuals by other brands

GameSir G7 SE user manual

GameSir

GameSir G7 SE user manual

ComAp IGS-NT Series installation guide

ComAp

ComAp IGS-NT Series installation guide

SUNFLOWER SR91 operating instructions

SUNFLOWER

SUNFLOWER SR91 operating instructions

Dwyer Instruments DCT1000DC Series Specifications-installation and operating instructions

Dwyer Instruments

Dwyer Instruments DCT1000DC Series Specifications-installation and operating instructions

Tecnosystemi Toolsplit TSC200012 user manual

Tecnosystemi

Tecnosystemi Toolsplit TSC200012 user manual

STIEBEL ELTRON E10-RKL Installation

STIEBEL ELTRON

STIEBEL ELTRON E10-RKL Installation

TC Electronic DYN 3000 NATIVE quick start guide

TC Electronic

TC Electronic DYN 3000 NATIVE quick start guide

Anaheim Automation MDC300-120151 Series user guide

Anaheim Automation

Anaheim Automation MDC300-120151 Series user guide

Siemens S7-1200 TELECONTROL Programming Guideline

Siemens

Siemens S7-1200 TELECONTROL Programming Guideline

Ace TC100 Quick Start Instruction

Ace

Ace TC100 Quick Start Instruction

Arlight LT3200-350 quick start guide

Arlight

Arlight LT3200-350 quick start guide

Irritrol LIFE-B-4 quick reference

Irritrol

Irritrol LIFE-B-4 quick reference

Lennox M0STAT61Q-1 Installation & operation instructions

Lennox

Lennox M0STAT61Q-1 Installation & operation instructions

E-MAGA Interconnect BaldurTouch II instructions

E-MAGA Interconnect

E-MAGA Interconnect BaldurTouch II instructions

Matelec FPC-30010 owner's manual

Matelec

Matelec FPC-30010 owner's manual

CAL Controls CALCOMMS 3300 Communications guide

CAL Controls

CAL Controls CALCOMMS 3300 Communications guide

SMC Networks PSE300 Series Operation manual

SMC Networks

SMC Networks PSE300 Series Operation manual

Newhaven Display International NHD-FT81x-SHIELD user guide

Newhaven Display International

Newhaven Display International NHD-FT81x-SHIELD user guide

manuals.online logo
manuals.online logoBrands
  • About & Mission
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Copyright 2025 Manuals.Online. All Rights Reserved.