- Home
- Domestic appliances
- Climate control
- Temperature & humidity sensors
- RKC INSTRUMENT
- SA201
- Instruction manual
advertisement
![RKC INSTRUMENT SA201 Instruction Manual | Manualzz RKC INSTRUMENT SA201 Instruction Manual | Manualzz](http://s2.manualzz.com/store/data/060170634_1-5ec2cb4fc503e68b1a8528c1ebe9d122-360x466.png)
Temperature Controller
SA201
Communication
Instruction Manual
®
RKC INSTRUMENT INC.
IMR01K02-E1
the respective companies.
All Rights Reserved, Copyright 2001, RKC INSTRUMENT INC.
Thank you for purchasing the RKC instrument. In order to achieve maximum performance and ensure proper operation of your new instrument, carefully read all the instructions in this manual. Please place this manual in a convenient location for easy reference.
SYMBOLS
WARNING
: This mark indicates precautions that must be taken if there is danger of electric shock, fire, etc., which could result in loss of life or injury.
CAUTION
: This mark indicates that if these precautions and operating procedures are not taken, damage to the instrument may result.
!
: This mark indicates that all precautions should be taken for safe usage.
: This mark indicates important information on installation, handling and operating procedures.
: This mark indicates supplemental information on installation, handling and operating procedures.
: This mark indicates where additional information may be located.
!
WARNING could result in damage to the instrument, equipment or injury to personnel.
shock, fire or damage to instrument and equipment.
fire or damage to instrument and equipment.
explosive gases.
to avoid electric shock.
disassembled by other than factory-approved personnel. Malfunction can occur and warranty is void under these conditions.
IMR01K02-E1 i-1
i-2
CAUTION
!
This is a Class A instrument. In a domestic environment, this instrument may cause radio interference, in which case the user may be required to take adequate measures.
!
This instrument is protected from electric shock by reinforced insulation. Provide reinforced insulation between the wire for the input signal and the wires for instrument power supply, source of power and loads.
!
Be sure to provide an appropriate surge control circuit respectively for the following:
- If input/output or signal lines within the building are longer than 30 meters.
- If input/output or signal lines leave the building, regardless the length.
!
This instrument is designed for installation in an enclosed instrumentation panel. All highvoltage connections such as power supply terminals must be enclosed in the instrumentation panel to avoid electric shock by operating personnel.
!
All precautions described in this manual should be taken to avoid damage to the instrument or equipment.
!
All wiring must be in accordance with local codes and regulations.
!
All wiring must be completed before power is turned on to prevent electric shock, instrument failure, or incorrect action.
The power must be turned off before repairing work for input break and output failure including replacement of sensor, contactor or SSR, and all wiring must be completed before power is turned on again.
!
To prevent instrument damage or failure, protect the power line and the input/output lines from high currents with a protection device such as fuse, circuit breaker, etc.
!
Prevent metal fragments or lead wire scraps from falling inside instrument case to avoid electric shock, fire or malfunction.
!
Tighten each terminal screw to the specified torque found in the manual to avoid electric shock, fire or malfunction.
!
For proper operation of this instrument, provide adequate ventilation for heat dispensation.
!
Do not connect wires to unused terminals as this will interfere with proper operation of the instrument.
!
Turn off the power supply before cleaning the instrument.
!
Do not use a volatile solvent such as paint thinner to clean the instrument. Deformation or discoloration will occur. Use a soft, dry cloth to remove stains from the instrument.
!
To avoid damage to instrument display, do not rub with an abrasive material or push front panel with a hard object.
!
Do not connect modular connectors to telephone line.
NOTICE
!
This manual assumes that the reader has a fundamental knowledge of the principles of electricity, process control, computer technology and communications.
!
The figures, diagrams and numeric values used in this manual are only for purpose of illustration.
!
RKC is not responsible for any damage or injury that is caused as a result of using this instrument, instrument failure or indirect damage.
!
Periodic maintenance is required for safe and proper operation of this instrument. Some components have a limited service life, or characteristics that change over time.
!
Every effort has been made to ensure accuracy of all information contained herein. RKC makes no warranty expressed or implied, with respect to the accuracy of the information. The information in this manual is subject to change without prior notice.
!
No portion of this document may be reprinted, modified, copied, transmitted, digitized, stored, processed or retrieved through any mechanical, electronic, optical or other means without prior written approval from RKC.
IMR01K02-E1
CONTENTS
Page
1. OUTLINE ...............................................................................1
2. SPECIFICATIONS.................................................................2
3. WIRING .................................................................................4
4. SETTING ...............................................................................6
4.1 Transfer to Communication Setting Mode .......................................................6
4.2 Setting the Communication Parameters ..........................................................7
4.3 Communication Requirements ......................................................................11
5. RKC COMMUNICATION PROTOCOL ...............................13
5.1 Polling............................................................................................................13
5.1.1 Polling procedures ............................................................................................14
5.1.2 Polling procedure example ...............................................................................17
5.2 Selecting........................................................................................................18
5.2.1 Selecting procedures ........................................................................................18
5.2.2 Selecting procedure example ...........................................................................21
5.3 Communication Identifier List ........................................................................22
6. MODBUS COMMUNICATION PROTOCOL .......................26
6.1 Message Format............................................................................................26
6.2 Function Code ...............................................................................................27
6.3 Communication Mode....................................................................................27
6.4 Slave Response.............................................................................................28
6.5 Calculating CRC-16 .......................................................................................29
6.6 Message Format............................................................................................31
6.6.1 Reading holding registers [03H]........................................................................31
6.6.2 Preset single resister [06H]...............................................................................32
6.6.3 Diagnostics (loopback test) [08H] .....................................................................33
IMR01K02-E1 i-3
Page
6.7 Data Configuration.........................................................................................34
6.7.1 Data range........................................................................................................34
6.7.2 Data processing precautions ............................................................................35
6.8 Communication Data List...............................................................................36
7. INPUT RANGE TABLES.....................................................40
8. TROUBLESHOOTING ........................................................44
9. ASCII 7-BIT CODE TABLE (RFERENCE)..........................47
i-4
IMR01K02-E1
1. OUTLINE
Temperature controller SA201 interfaces with the host computer via Modbus or RKC communication protocols. For reference purposes, the Modbus protocol identifies the host computer as master, the
SA201 as slave.
Host computer or
PLC, etc.
RS-485
SA201
SA201 or
Host computer or
PLC, etc.
SA201
RS-232C
RS-232C/RS-485 converter
SA201
SA201
SA201
IMR01K02-E1
1
2
2. SPECIFICATIONS
Interface:
Connection method:
Based on RS-485, EIA standard
2-wire system, half-duplex multi-drop connection
Communication distance: 1 km max.
The maximum communication distance will be affected by the surrounding conditions.
Synchronous method: Start/stop synchronous type
Communication speed: 2400 bps, 4800 bps, 9600 bps, 19200 bps
Data bit configuration: Start bit: 1
Data bit: 7 or 8
Parity bit: Without, Odd or Even
Stop bit: 1 or 2
Protocol:
Error control:
Communication code:
ANSI X3.28 subcategory 2.5, A4
Polling/selecting type
Vertical parity (With parity bit selected)
Horizontal parity (BCC check)
ASCII 7-bit code
Termination resistor:
Xon/Xoff control:
Externally connected
None
Maximum connections: 32 instruments maximum including a host computer
Signal logic: RS-485
Signal voltage
V (A) - V (B) ≥ 2 V
V (A) - V (B) ≤ -2 V
Logic
0 (SPACE)
1 (MARK)
Voltage between V (A) and V (B) is the voltage of (A) terminal for the
(B) terminal.
IMR01K02-E1
2. SPECIFICATIONS
Interface:
Connection method:
Communication speed:
Data bit configuration:
Based on RS-485, EIA standard
2-wire system, half-duplex multi-drop connection
Communication distance: 1 km max.
The maximum communication distance will be affected by the surrounding conditions.
Synchronous method: Start/stop synchronous type
2400 bps, 4800 bps, 9600 bps, 19200 bps
Data bit: 8 (Byte data corresponding to binary data or bit.)
Parity bit: Without, Odd or Even
Stop bit: 1
Protocol: Modbus
Signal transmission mode: Remote Terminal Unit (RTU) mode
Function code:
Error check method:
Error code:
03H (Read holding registers)
06H (Preset single register)
08H (Diagnostics: loopback test)
CRC-16
Termination resistor:
1: Function code error
2: When written to read only (RO) data, When any address other than
0000H to 001AH is specified, etc.
3: When the data written exceeds the setting range, When the specified number of data items in the query message exceeds the maximum number of data items available
4: Self-diagnostic error response
Externally connected
Maximum connections:
Signal logic:
32 instruments maximum including a master
RS-485
Signal voltage
V (A) - V (B) ≥ 2 V
V (A) - V (B) ≤ -2 V
Logic
0 (SPACE)
1 (MARK)
Voltage between V (A) and V (B) is the voltage of (A) terminal for the
(B) terminal.
IMR01K02-E1
3
4
3. WIRING
!
WARNING
To prevent electric shock or instrument failure, do not turn on the power until all the wiring is completed.
Terminal
No.
10
11
12
Signal name
Signal ground
Send data/Receive data
Send data/Receive data
Symbol
SG
T/R (A)
T/R (B)
SA201
(Slave)
SG
T/R (A)
T/R (B)
Communication terminal
$
$
$
SA201
(Slave)
SG
RS-485
Shielded twisted pair wire
Paired wire
Host computer (Master)
SG
T/R (A)
SD (TXD) : Send data
T/R (B)
* R
Send/Receive transfer signal
SD (TXD) and RD (RXD): Negative logic
T/R (A)
T/R (B)
Communication terminal
31 max.
* R
* R: Termination resistors (Example: 120 Ω 1/2
RD (RXD) : Receive data
IMR01K02-E1
3. WIRING
A RS-232C/RS-485 converter is required.
Paired wire
SA201
(Slave)
RS-485
SG
T/R (A)
T/R (B)
Communication connector
* R
SG
* R
T/R (A)
T/R (B)
Shielded twisted pair wire
RS-232C/RS-485 converter
RS-232C
Host computer
(Master)
* R: Termination resistors (Example: 120 Ω 1/2
When the host computer (master) uses Windows 95/98/NT , use a RS-232C/RS-485 converter with an automatic send/receive transfer function.
Recommended: CD485 , CD485/V manufactured by Data Link, Inc. or equivalent.
The cable is provided by the customer.
Device address
(Slave address)
Host computer (Master)
RS-485
1 2 or
SA201
(Slave)
3 4
Host computer (Master)
RS-232C
RS-232C/RS-485 converter
RS-485
Junction terminal
29 30
SA201
(Slave)
31
IMR01K02-E1
5
6
4. SETTING
To establish communication parameters between host computer (master) and SA201 (slave), it is necessary to set the device address (slave address), communication speed, data bit configuration and interval time on each SA201 (slave) in the communication mode.
Power ON
Input Type/Input Range Display (Display for approx. 4 seconds)
Display changes automatically
PV/SV Display Mode
Press and hold the
SET key and press the <R/S key at the same time
Communication Setting Mode
(Setting the communication parameters)
If the key is not pressed for more than one minute, the display will automatically return to the PV/SV display mode.
Power is turned on again
(Registration of set value)
4.1 Transfer to Communication Setting Mode
To go to the communication setting mode, you must be in PV/SV display. Press and hold the SET key and press the <R/S key at the same time to initiate communication settings. The first parameter to be displayed will be the device address (slave address), Add .
PV SV PV SV
SET
SA201
R/S
PV/SV display
AT
OUT1
OUT2
SV2
ALM1
ALM2
AT
OUT1
OUT2
SV2
ALM1
ALM2
SET
SA201
R/S
Device address (Slave address)
Communication setting mode
When let communication setting mode finish, press and hold the SET key and press the
<R/S key at the same time. The display changes to the PV/SV display.
IMR01K02-E1
3. WIRING
4.2 Setting the Communication Parameters
To select parameters in communication setting mode, press the SET key. The parameters are displayed and sequenced in the order of device address (slave address), Add , communication speed, bPS , data bit configuration, bIT and interval time set value, InT .
Setting procedure vary depending on the communication parameter.
• Device address Add , interval time InT
Operate UP, DOWN and <R/S key, and input numerals.
• Communication speed bPS , data bit configuration bIT
Operate UP, DOWN and <R/S key, and choose one among the displayed set value.
PV
PV
PV
Press the SET key.
PV
SV
Device address
(Slave address)
[ Add ]
Press the SET key.
SV
Communication speed
[ bPS ]
Press the SET key.
SV
Data configuration
[ bIT ]
Press the SET key.
SV
Interval time set value
[ InT ]
After completing all communication parameter settings, turn on the power again, and register the set value which changed.
IMR01K02-E1
7
3. WIRING
8
Symbol
(Add)
(bPS)
(bIT)
(InT)
Data bit configuration table
Set value Data bit
(7n1)
(7n2)
(7E1)
(7E2)
(7o1)
(7o2)
(8n1)
(8n2)
(8E1)
(8E2)
(8o1)
(8o2)
8
8
7
7
7
7
7
7
8
8
8
8
Name
Device address
(Slave address)
Communication speed
Data bit configuration
Interval time *
Setting range Description
0 to 99
240: 2400 bps
480: 4800 bps
960: 9600 bps
1920: 19200 bps
See data bit configuration table
0 to 250 ms
Please set it not to duplication in multi-drop connection.
If the slave address is set to 0 in Modbus, two-way communication cannot be performed.
Set the same communication speed for both the SA201
(slave) and the host computer
(master).
Set the same data bit configuration for both the
SA201 (slave) and the host computer (master).
The SA201’s interval time must match the specifications of the host computer.
Factory set value
0
960
8n1
10
Parity bit
Without
Without
Even
Even
Odd
Odd
Without
Without
Even
Even
Odd
Odd
Stop bit
1
2
1
2
1
2
1
2
1
2
1
2
Setting range of
Modbus
Setting range of
RKC communication
* The interval time for the SA201 should be set to provide a time for host computer to finish sending all data including stop bit and to switch the line to receive data. If the interval time between the two is too short, the SA201 may send data before the host computer is ready to receive it. In this case, communication transmission can not be conducted correctly. For a successful communication sequence to occur, the SA201’s interval time must match the specifications of the host computer.
IMR01K02-E1
3. WIRING
1. Go to the communication setting mode so that device address (slave address), Add , is displayed.
Present set value is displayed, and the least significant digit blinks.
PV SV
AT
OUT1
OUT2
SV2
ALM1
ALM2
SET
SA201
R/S
Device address (Slave address)
2. Set the device address. Press the UP key to enter 5 at the least significant digit.
Example: Setting the device address (slave address) to 15.
PV SV
AT
OUT1
OUT2
SV2
ALM1
ALM2
SET
SA201
R/S
3. Press the <R/S key to blink the tens digit.
PV SV
AT
OUT1
OUT2
SV2
ALM1
ALM2
SET
SA201
R/S
IMR01K02-E1
Continued on the next page.
9
3. WIRING
4. Press the UP key to enter 1 at the tens digit.
PV SV
AT
OUT1
OUT2
SV2
ALM1
ALM2
SET
SA201
R/S
5. Press the SET key to set the value thus set. The display changes to the next communication parameter. It the SET key is not pressed within 1 minute, the present display returns to the
PV/SV display mode and the value set here returns to that before the setting is changed.
PV SV
AT
OUT1
OUT2
SV2
ALM1
ALM2
SET
SA201
R/S
Communication speed
6. After completing all communication parameter settings, turn on the power again, and register the set value which changed.
Besides power on again, register of set value with RUN/ STOP transfer. In this case, have to change to STOP before setting communication parameter. Change to RUN after completing the communication parameter settings, the instrument performs the same operation as that at the time of power on again.
For the RUN/STOP transfer, see the SA201 Instruction Manual (IMR01K01-E % ) .
10
IMR01K02-E1
3. WIRING
4.3 Communication Requirements
The SA201 requires the following processing times during data send/receive.
Whether the host computer is using either the polling or selecting procedure for communication, the following processing times are required for SA201 to send data:
-Response wait time after SA201 sends BCC in polling procedure
-Response wait time after SA201 sends ACK or NAK in selecting procedure
RKC communication (Polling procedure)
Procedure details
Response send time after SA201 receives ENQ
Response send time after SA201 receives ACK
Response send time after SA201 receives NAK
Response send time after SA201 sends BCC
MIN
1.6
1.6
1.6
−
Time (ms)
TYP
4.0
−
−
−
MAX
12
10
10
1.0
RKC communication (Selecting procedure)
Procedure details
Response send time after SA201 receives BCC
Response wait time after SA201 sends ACK
Response wait time after SA201 sends NAK
Modbus
Procedure details
Read holding registers [03H]
Response transmission time after the slave receives the query message
Preset single register [06H]
Response transmission time after the slave receives the query message
Diagnostics (loopback test) [08H]
Response transmission time after the slave receives the query message
MIN
1.6
−
−
Time (ms)
TYP
3.0
−
−
Time (ms)
13 ms max.
6 ms max.
6 ms max.
MAX
10
1.0
1.0
Response send time is time at having set interval time in 0 ms.
IMR01K02-E1
11
3. WIRING
The sending and receiving of RS-485 communication is conducted through two wires; consequently, the transmission and reception of data requires precise timing. Typical polling and selecting procedures between the host computer and SA201 are described below:
Send data
(Possible/Impossible)
Possible
Impossible
Host computer
Sending status
E
O
T
- - - - -
E
N
Q
Send data
(Possible/Impossible)
Possible
Impossible a
Controller
Sending status
S
T
X a : Response send time after SA201 receives [ENQ] + Interval time b : Response send time after SA201 sends BCC c : Response send time after SA201 receives [ACK] + Interval time or
Response send time after SA201 receives [NAK] + Interval time
- - - - -
B
C
C b
A
C
K or
N
A
K c
Send data
(Possible/Impossible)
Possible
Impossible
Host computer
Sending status
S
T
X
- - - - -
B
C
C
Send data
(Possible/Impossible)
Possible
Impossible a b
Controller
Sending status
A
C
K or
N
A
K a: Response send time after SA201 receives BCC + Interval time b: Response wait time after SA201 sends ACK or Response wait time after SA201 sends NAK
To switch the host computer from transmission to reception, send data must be on line. To check if data is on line, do not use the host computer’s transmission buffer but confirm it by the shift register.
Whether the host computer is using either the polling or selecting procedure for communication, the following processing times are required for SA201 to send data:
-Response wait time after SA201 sends BCC in polling procedure
-Response wait time after SA201 sends ACK or NAK in selecting procedure
12
A transmission error may occur with the transmission line disconnected, shorted or set to the highimpedance state. In order to prevent the above error, it is recommended that the fail-safe function be provided on the receiver side of the host computer. The fail-safe function can prevent a framing error from its occurrence by making the receiver output stable to the MARK (1) when the transmission line is in the high-impedance state.
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
SA201 (hereafter, called controller) uses the polling/selecting method to establish a data link. The basic procedure is followed ANSI X3.28 subcategory 2.5, A4 basic mode data transmission control procedure (Fast selecting is the selecting method used in this controller).
controls the entire process. The host computer initiates all communication so the controller responds according to queries and commands from the host.
The transmission control characters are EOT (04H), ENQ (05H), ACK (06H), NAK (15H), STX
(02H) and ETX (03H). The figures in the parenthesis indicate the corresponding hexadecimal number.
5.1 Polling
Polling is the action where the host computer requests one of the connected controllers to transmit data. An example of the polling procedure is shown below:
E
O
T
(1)
Host computer send
[Address] [ ID ]
E
N
Q
(2)
Controller send
No response
(5)
S
T
X
E
O
T (4)
[ ID ] [ Data ]
E
T
X
[ BCC ]
(3)
Host computer send
Controller send
No
(8) response
(9)
Indefinite
A
C
(6)
K N
A
(7) K
Time out
E
O
T
Host computer send
E
O
T
(10)
ID: Identifier
IMR01K02-E1
13
5. RKC COMMUNICATION PROTOCOL
5.1.1 Polling procedures
(1) Data link initialization
Host computer sends EOT to the controllers to initiate data link before polling sequence.
(2) Data sent from host computer - Polling sequence
Host computer sends polling sequence with the format shown below:
1.
2.
3.
Example:
ENQ 0 2 M 1 ENQ
Device address
Identifier
1. Device address (2 digits)
The device address specifies the controller to be polled and each controller must have its own unique device address.
For details, see 4.2 Setting the Communication Parameters (P. 7) .
2. Identifier (2 digits)
The identifier specifies the type of data that is requested from the controller.
For details, see 5.3 Communication Identifier List (P. 22) .
3. ENQ
The ENQ is the transmission control character that indicates the end of the polling sequence. The
ENQ must be attached to the end of the identifier. The host computer then must wait for a response from the controller.
(3) Data sent from the controller
If the polling sequence is received correctly, the controller sends data in the following format:
1.
2.
STX Identifier
3.
Data
4.
ETX
5.
BCC
14
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
1. STX
STX is the transmission control character which indicates the start of the text transmission
(identifier and data).
2. Identifier (2 digits) For details, see 5.3 Communication Identifier List (P. 22) .
The identifier indicates the type of data (measured value, status and set value) sent to the host computer.
3. Data (6 digits [Expect model code.] )
Data is the information being sent from the controller. It is expressed in decimal ASCII code including a minus sign (-) and a decimal point. No zero suppression is made.
4. ETX
ETX is a transmission control character used to indicate the end of text transmission.
5. BCC
BCC (Block Check Character) detects error using horizontal parity and is calculated by horizontal parity (even number).
Calculation method of BCC: Exclusive OR all data and characters from STX through ETX, not including STX.
Example:
STX M 1 0 0 0 5 0 0 ETX
4DH 31H 30H 30H 30H 35H 30H 30H 03H
BCC
Hexadecimal numbers
BCC = 4DH ⊕ 31H ⊕ 30H ⊕ 30H ⊕ 30H ⊕ 35H ⊕ 30H ⊕ 30H ⊕ 03H = 7AH
Value of BCC becomes 7AH.
(4) EOT sent from the controller (Ending data transmission from the controller)
In the following cases, the controller sends EOT to terminate the data link:
• When the specified identifier is invalid
• When there is an error in the data type
• When all the data has been sent
(5) No response from the controller
The controller will not respond if the polling address is not received correctly. It may be necessary for the host computer to take corrective action such as a time-out.
IMR01K02-E1 15
5. RKC COMMUNICATION PROTOCOL
(6) ACK Acknowledgment
An acknowledgment ACK is sent by the host computer when data received is correct. When the controller receives ACK from the host computer, the controller will send any remaining data of the next identifier without additional action from the host computer.
For the identifier, see 5.3 Communication Identifier List (P. 22) .
When host computer determines to terminate the data link, EOT is sent from the host computer.
(7) NAK Negative acknowledge
If the host computer does not receive correct data from the controller, it sends a negative acknowledgment NAK to the controller. The controller will re-send the same data when NAK is received. This cycle will go on continuously until either recovery is achieved or the data link is corrected at the host computer.
(8) No response from host computer
When the host computer does not respond within approximately three seconds after the controller sends data, the controller sends EOT to terminate the data link.
(9) Indefinite response from host computer
The controller sends EOT to terminate the data link when the host computer response is indefinite.
(10) EOT Data link termination
The host computer sends EOT message when it is necessary to suspend communication with the controller or to terminate the data link due lack of response from the controller.
16
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
5.1.2 Polling procedure example
Host computer send
E
O
T
0 1 M 1
E
N
Q
Polling address
Identifier
Host computer send
A
C
K
S
T
X
M 1 0 0 1 0 .
0
E
T
X
B
C
C
S
T
X
A A 0 0 0 0 0 0
E
T
X
Host computer send
B
C
C
E
O
T
Identifier Data
Send data
Controller send
Next send data
Controller send
Host computer send
E
O
T
0 1 M 1
E
N
Q
Polling address
Identifier
Error data
S
T
X
M 1 0 0 1
Host computer send
N
A
K
.
0
E
T
X
B
C
C
S
T
X
M 1 0 0 1 0 .
0
Host computer send
E
T
X
B
C
C
A
C
K
Identifier Data
Send data
Controller send
Re-send data
Controller send
IMR01K02-E1 17
5. RKC COMMUNICATION PROTOCOL
5.2 Selecting
Selecting is the action where the host computer requests one of the connected controllers to receive data. An example of the selecting procedure is shown below:
E
O
T
(1)
[Address]
(2)
Host computer send
S
T
X
[ Identifier ] [ Data ]
E
T
X
[ BCC ]
(3)
Controller send
No response
(6)
A
C
K (4)
Host computer send
E
O
T
(7)
N
A
K (5)
5.2.1 Selecting procedures
(1) Data link initialization
Host computer sends EOT to the controllers to initiate data link before selecting sequence.
(2) Sending selecting address from the host computer
Host computer sends selecting address for the selecting sequence.
Device address (2 digits)
The device address specifies the controller to be selected and each controller must have its own unique device address.
For details, see 4.2 Setting the Communication Parameters (P. 7) .
18
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
(3) Data sent from the host computer
The host computer sends data for the selecting sequence with the following format:
1.
STX Identifier
2.
Data ETX BCC
For the STX, ETX and BCC, see 5.1 Polling (P. 13) .
1. Identifier (2 digits)
The identifier specifies the type of data that is requested from the controller, such as set value.
For details, see 5.3 Communication Identifier List (P. 22) .
2. Data (Maximum 6 digits)
Data is the information being sent to the controller. It is expressed in decimal ASCII code including a minus sign (-) and a decimal point (period).
The data that receipt of letter is possible
• Data with numbers below the decimal point omitted or zero suppressed data can be received.
<Example> When data send with -001.5, -01.5, -1.5, -1.50, -1.500 at the time of -1.5, controller can receive a data.
• When the host computer send data with decimal point to item of without decimal point, controller receives a message with the value which cut off below the decimal point.
<Example> When setting range is 0 to 200, controller receives as a following.
Send data
Receive data
0.5
0
100.5
100
• Controller receives value in accordance with decided place after the decimal point. The value below the decided place after the decimal point is cut off.
<Example> When setting range is -10.00 to +10.00, controller receives as a following.
Send data
Receive data
-.5
-0.50
-.058
-0.05
.05
0.05
-0
0.00
The data that receipt of letter is impossible
Controller sends NAK when received a following data.
.
-.
+
-
Plus sign and the data that gained plus sing
Only minus sign (there is no figure)
Only decimal point (period)
Only minus sign and decimal point (period)
IMR01K02-E1 19
5. RKC COMMUNICATION PROTOCOL
(4) ACK Acknowledgment
An acknowledgment ACK is sent by the controller when data received is correct. When the host computer receives ACK from the controller, the host computer will send any remaining data. If there is no more data to be sent to controller, the host computer sends EOT to terminate the data link.
(5) Negative acknowledge NAK
If the controller does not receive correct data from the host computer, it sends a negative acknowledgment NAK to the host computer. Corrections, such as re-send, must be made at the host computer. The controller will send NAK in the following cases:
• When an error occurs on communication the line (parity, framing error, etc.)
• When a BCC check error occurs
• When the specified identifier is invalid
• When receive data exceeds the setting range
(6) No response from controller
The controller does not respond when it can not receive the selecting address, STX, ETX or BCC.
(7) EOT Data link termination
The host computer sends EOT when there is no more data to be sent from the host computer or there is no response from the controller.
20
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
5.2.2 Selecting procedure example
E
O
T
0 1
S
T
X
Host computer send
S 1 2 0 0 .
0
E
T
X
B
C
C
Selecting address
Identifier Data
Send data
A
C
K
Controller send
S
T
X
Host computer send
P 1 1 .
0
E
T
X
B
C
C
Host computer send
E
O
T
Next send data
A
C
K
Controller send
E
O
T
0 1
S
T
X
Error data
Host computer send
S 1 2 1 0 .
0
E
T
X
B
C
C
Selecting address
Identifier Data
Send data
N
A
K
Controller send
S
T
X
Host computer send
S 1 2 0 0 .
0
E
T
X
B
C
C
Re-send data
A
C
K
Controller send
Host computer send
S
T
X
P 1
……
IMR01K02-E1 21
5. RKC COMMUNICATION PROTOCOL
5.3 Communication Identifier List
Communication is not possible when an identifier is specified that the controller can not recognize.
The number of digits for data is 6.
Name Identifier
(Attribute
Description
RO: Read only, R/W: Read and Write)
Model code ID Display the model code
Measured value (PV) M1 Within input range.
Burnout B1 0: OFF 1: ON
Alarm 1 status
Alarm 2 status
AA 0: OFF
AB 0: OFF
O1 -5.0 to +105.0 %
1: ON
1: ON
Heat-side manipulated output value
Cool-side manipulated output value
Error code 1
O2 -5.0 to +105.0 %
RUN/STOP function
ER 0: No error
Except 0: Error occurs
SR 0: RUN 1: STOP
Autotuning
Self-tuning
Set value (SV)
G1 0: Autotuning OFF
1: Autotuning ON
After autotuning is completed, setting will automatically change to 0 .
G2 0: Self-tuning OFF
1: Self-tuning ON
S1 Within input range.
Factory set value
-----
-----
-----
-----
-----
-----
-----
-----
0
0
0
Temperature input: 0 or 0.0
Voltage/current inputs: 0.0
Attribute
RO
RO
R/W
R/W
R/W
R/W
2
RO
RO
RO
RO
RO
RO
22
1
2
Any number other than 0 indicates errors (RAM write error, etc.) detected by the controller selfdiagnosis function. Please contact RKC sales office or the agent.
If the heat/cool PID control with autotuning (water cooling/air cooling) is selected, or the set value of any one of the heat/cool proportional band, integral time, derivative time and anti-reset windup is set to 0, the attribute becomes RO.
Continued on the next page.
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
Continued from the previous page.
Name
Alarm 1 set value
Identifier
(Attribute
Description
RO: Read only, R/W: Read and Write)
Factory set value
Attribute
R/W 1 A1 Process alarm, SV alarm:
Setting limiter (low limit) to setting limiter (high limit)
Temperature input:
50 or 50.0
R/W 2 Alarm 2 set value
Control loop break alarm
Control loop break alarm deadband
Heat-side proportional band
Integral time
A2 Deviation alarm: -span to +span
However, within -1999 to +9999 ° C
[ ° F] or -199.9 to +999.9 ° C [ ° F]
A5 0.0 to 200.0 minutes
(0.0: OFF)
A6 0 (0.0) to span
However, less than 9999
P1 Temperature input:
0 (0.0) to span or 9999 (999.9) ° C [ ° F]
(0 or 0.0: ON/OFF action)
Voltage/current inputs: 0.1 to span
Cannot be written while the self-tuning function is on, only Read is available.
I1 0 to 3600 seconds (0: PD action)
Cannot be written while the self-tuning function is on, only Read is available.
Voltage/current inputs: 5.0
8.0
0
Temperature input:
30 or 30.0
Voltage/current inputs: 3.0
240
Derivative time
Anti-reset windup
D1 0 to 3600 seconds (0: PI action)
Cannot be written while the self-tuning function is on, only Read is available.
W1 0 to 100 % of heat-side proportional band (0: Integral action OFF)
Cannot be written while the self-tuning function is on, only Read is available.
60
100
Heat-side proportioning cycle time
T0 1 to 100 seconds Note1
1
2
If no alarm for first alarm or control loop break alarm is selected, the attribute becomes RO.
If no alarm for second alarm is selected, the attribute becomes RO.
3 If control loop break alarm for first alarm is not selected, the attribute becomes RO.
Note1 Relay contact output: 20 Voltage pulse output: 2
R/W
R/W
R/W
R/W
R/W
R/W
R/W
3
3
Continued on the next page.
IMR01K02-E1 23
5. RKC COMMUNICATION PROTOCOL
24
Continued from the previous page.
Name
Cool-side proportional band
Overlap/deadband
Cool-side proportioning cycle time
PV bias
Identifier
P2 1 to 1000 band
%
(Attribute
Description
RO: Read only, R/W: Read and Write)
of heat-side proportional
Factory set value
100
Attribute
R/W 1
0 or 0.0
R/W 1 V1 -span to +span
However, within -1999 to +9999 ° C
[ ° F] or -199.9 to +999.9 ° C [ ° F]
T1 1 to 100 seconds Note1 R/W 1
R/W
Digital filter
Set data lock function 2
PB -span to +span
However, within -1999 to +9999 ° C
[ ° F] or -199.9 to +999.9 ° C [ ° F]
F1
LK
0 to 100 seconds (0: OFF)
0000 to 1111
Temperature input: 0 or 0.0
Voltage/current inputs: 0.0
0
0000
R/W
R/W
1 If heat/cool PID control with autotuning (water cooling/air cooling) for control type is not selected, the attribute becomes RO.
2 Details of set data lock function:
Set data Set value (SV)
Alarm setting
(First alarm, Second alarm)
Other setting items
0000
0001
0010
0011
0100
0101
0110
1111
−
−
−
−
×
×
×
×
×
×
−
−
×
×
−
−
×
−
×
−
×
−
×
−
( × ) Settable-Data unlocked (-) Unsettable-Data locked
The data lock function only prevents setting changes being made from the front keys. Setting changes can still be made through communication transmission.
Note1 Relay contact output: 20 Voltage pulse output: 2
Continued on the next page.
IMR01K02-E1
5. RKC COMMUNICATION PROTOCOL
Continued from the previous page.
EEPROM storage mode 1
EEPROM storage status 2
Name Identifier
(Attribute
Description
RO: Read only, R/W: Read and Write)
Factory set value
0
Attribute
R/W EB 0: Backup mode
(Set values are store to the EEPROM)
1: Buffer mode
(No set values are store to the EEPROM)
EM 0: Mismatch
1: Match
----RO
1 The non-volatile memory (EEPROM) has limitations on the number of memory rewrite times. If the buffer mode is selected as an EEPROM storage mode, all of the set values changed are not written to the EEPROM and thus a problem of limitations on the number of memory rewrite times can be solved. When the memory is used to frequently change the set value via communication, select the buffer mode.
When selecting any EEPROM storage mode, take notice of the following.
• If power failure occurs while the buffer mode is selected, the set value returns to the value before the storage mode is selected.
• If the buffer mode is changed to the backup mode, all of the set values at that time are stored to the EEPROM. If necessary to backup the final value of each set item, select the backup mode.
• When the power is turned on, the backup mode is always set.
2 The contents of the buffer memory and those of the EEPROM can be checked.
When data is 0 : The contents of the buffer memory do not match with those of the EEPROM.
• As data is being written to the EEPROM in backup mode, do not turn the power off. If turned off, no set values are stored.
• If the set value is changed after the backup mode is changed to the buffer mode,
0 is set (mismatch). As the set value changed is not backup, select the backup mode if necessary.
When data is 1 : The contents of the buffer memory match with those of the EEPROM.
(Data write to the EEPROM is completed.)
IMR01K02-E1 25
26
6. MODBUS COMMUNICATION PROTOCOL
The master controls communication between master and slave. A typical message consists of a request (query message) sent from the master followed by an answer (response message) from the slave. When master begins data transmission, a set of data is sent to the slave in a fixed sequence.
When it is received, the slave decodes it, takes the necessary action, and returns data to the master.
6.1 Message Format
The message consists of four parts: slave address, function code, data, and error check code which are always transmitted in the same sequence.
Slave address
Function code
Data
Error check CRC-16
Message format
The slave address is a number from 1 to 99 manually set at the front key panel of the controller.
For details, see 4.2 Setting the Communication Parameters (P. 7) .
Although all connected slaves receive the query message sent from the master, only the slave with the slave address coinciding with the query message will accept the message.
The function codes are the instructions set at the master and sent to the slave describing the action to be executed. The function codes are included when the slave responds to the master.
For details, see 6.2 Function Code (P. 27) .
The data to execute the function specified by the function code is sent to the slave and corresponding data returned to the master from the slave.
For details, see 6.6 Message Format (P. 31) , 6.7 Data Configuration (P. 34) and
6.8 Communication Data List (P. 36) .
An error checking code (CRC-16: Cyclic Redundancy Check) is used to detect an error in the signal transmission.
For the calculation method of CRC-16, see 6.5 Calculating CRC-16 (P. 29) .
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
6.2 Function Code
Function code contents
Function code
(Hexadecimal)
03H
06H
08H
Function Contents
Read holding registers
Preset single register
Measured value (PV), alarm status, etc.
Set value (SV), alarm set value, PID constants,
PV bias, etc. (For each word)
Diagnostics (loopback test) Diagnostics (loopback test)
Message length of each function (Unit: byte)
Function code
(Hexadecimal)
03H
06H
08H
Function
Read holding registers
Preset single register
Diagnostics (loopback test)
Query message Response message
Min Max Min Max
8
8
8
8
8
8
7
8
8
255
8
8
6.3 Communication Mode
Signal transmission between the master and slaves is conducted in Remote Terminal Unit (RTU) mode.
RTU mode
Items
Data bit length
Start mark of message
End mark of message
Message length
Data time interval
Error check
Contents
8 bit (Binary)
Unused
Unused
See 6.2 Function Code (P. 27)
24 bit’s time or less *
CRC-16 (Cyclic Redundancy Check)
* The data time intervals in one query message from the master must be 24 bit’s time or less. If the data time interval exceeds 24 bit’s time, the slave regards the transmission as ended and because the message format is incomplete, the slave does not respond.
IMR01K02-E1
27
6. MODBUS COMMUNICATION PROTOCOL
28
6.4 Slave Responses
(1) Normal response
• In the response message of the Read Holding Registers, the slave returns the read out data and the number of data items with the same slave address and function code as the query message.
• In the response message of the Preset Single Resister, the slave returns the same message as the query message.
• In the response message of the Diagnostics (loopback test), the slave returns the same message as the query message.
(2) Defective message response
• If the query message from the master is defective, except for transmission error, the slave returns the error response message without any action.
Slave address
Function code
Error code
Error check CRC-16
Error response message
• If the self-diagnostic function of the slave detects an error, the slave will return an error response message to all query messages.
• The function code of each error response message is obtained by adding 80H to the function code of the query message.
Error code
1
2
3
4
Contents
Function code error (Specifying nonexistent function code)
When written to read only (RO) data, When any address other than 0000H to
001AH is specified, etc.
When the data written exceeds the setting range, When the specified number of data items in the query message exceeds the maximum number of data items available
Self-diagnostic error response
(3) No response
The slave ignores the query message and does not respond when:
• The slave address in the query message does not coincide with any slave address settings.
• The CRC code of the master does not coincide with that of the slave.
• Transmission error such as overrun, framing, parity and etc., is found in the query message.
• Data time interval in the query message from the master exceeds 24 bit’s time.
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
6.5 Calculating CRC-16
The Cyclic Redundancy Check (CRC) is a 2 byte (16-bit) error check code. After constructing the data message, not including start, stop, or parity bit, the master calculates a CRC code and appends this to the end of the message. The slave will calculate a CRC code from the received message, and compare it with the CRC code from the master. If they do not coincide, a communication error has occurred and the slave does not respond.
The CRC code is formed in the following sequence:
1. Load a 16-bit CRC register with FFFFH.
2. Exclusive OR ( ⊕ ) the first byte (8 bits) of the message with the CRC register. Return the result to the CRC register.
3. Shift the CRC register 1 bit to the right.
4. If the carry flag is 1 , exclusive OR the CRC register with A001 hex and return the result to the
CRC register. If the carry flag is 0 , repeat step 3 .
5. Repeat step 3 and 4 until there have been 8 shifts.
6. Exclusive OR the next byte (8 bits) of the message with the CRC register.
7. Repeat step 3 through 6 for all bytes of the message (except the CRC).
8. The CRC register contains the 2 byte CRC error code. When they are appended to the message, the low-order byte is appended first, followed by the high-order byte.
IMR01K02-E1 29
6. MODBUS COMMUNICATION PROTOCOL
30
START
FFFFH → CRC Register
CRC Register ⊕ next byte of the message → CRC Register
0 → n
Shift CRC Register right 1 bit
No
Carry flag is 1
Yes
CRC Register ⊕ A001H → CRC Register n + 1 → n
No
No n > 7
Yes
Is message complete ?
Yes
END
The ⊕ symbol indicates an exclusive OR operation. The symbol for the number of data bits is n .
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
6.6 Message Format
6.6.1 Read holding registers [03H]
The query message specifies the starting register address and quantity of registers to be read.
The contents of the holding registers are entered in the response message as data, divided into two parts: the high-order 8 bits and the low-order 8 bits, arranged in the order of the register numbers.
Example: The contents of the three holding registers from 0000H to 0002H are the read out from slave address 2.
Query message
Slave address
Function code
Starting number
Quantity
CRC-16
High
Low
High
Low
High
Low
02H
03H
00H
00H
00H
03H
05H
F8H
First holding register address
The setting must be between 1 and 125
(0001H and 007DH).
Normal response message
Slave address
Function code
Number of data
First holding register contents
Next holding register contents
Next holding register contents
CRC-16
High
Low
High
Low
High
Low
High
Low
Error response message
Slave address
80H + Function code
Error code
CRC-16 High
Low
02H
03H
06H
00H
00H
00H
00H
00H
63H
75H
ACH
02H
83H
03H
F1H
31H
Number of holding registers × 2
IMR01K02-E1 31
6. MODBUS COMMUNICATION PROTOCOL
6.6.2 Preset single register [06H]
The query message specifies data to be written into the designated holding register. The write data is arranged in the query message with high-order 8 bits first and low-order 8 bits next. Only R/W holding registers can be specified.
Example: Data is written into the holding register 0006H of slave address 1.
Query message
Slave address
Function code
Holding register number
Write data
CRC-16
High
Low
High
Low
High
Low
01H
06H
00H
10H
01H
02H
08H
5EH
Any data within the range
Normal response message
Slave address
Function code
Holding register number
Write data
CRC-16
High
Low
High
Low
High
Low
Error response message
Slave address
80H + Function code
Error code
CRC-16 High
Low
01H
06H
00H
10H
01H
02H
08H
5EH
01H
86H
02H
CDH
C1H
Contents will be the same as query message data.
32
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
6.6.3 Diagnostics (loopback test) [08H]
The master’s query message will be returned as the response message from the slave. This function checks the communication system between the master and slave.
Example: Loopback test for slave address 1
Query message
Slave address
Function code
Test code
Data
CRC-16
High
Low
High
Low
High
Low
01H
08H
00H
00H
1FH
34H
E9H
ECH
Test code must be set to 00 .
Any pertinent data
Normal response message
Slave address
Function code
Test code
Data
CRC-16
High
Low
High
Low
High
Low
Error response message
Slave address
80H + Function code
Error code
CRC-16 High
Low
01H
08H
00H
00H
1FH
34H
E9H
ECH
01H
88H
03H
06H
01H
Contents will be the same as query message data.
IMR01K02-E1 33
6. MODBUS COMMUNICATION PROTOCOL
6.7 Data Configuration
6.7.1 Data range
The numeric range of data used in Modbus protocol is 0000H to FFFFH. Only the set value within the setting range is effective.
FFFFH represents -1.
Data processing with decimal points
The Modbus protocol does not recognize data with decimal points during communication.
Control loop break alarm
Example: When the control loop break alarm set value is 8.0 minutes; 8.0 is processed as 80,
80 = 0050H
Control loop break alarm
High
Low
00H
50H
Alarm 1 status
Alarm 2 status
Burnout
Autotuning
Self-tuning
Integral time
Derivative time
Anti-reset windup
Heat-side proportioning cycle time
Cool-side proportional band
Cool-side proportional cycle time
Set data lock function
RUN/STOP function
Example: When integral time is 50 seconds; 50 is processed as 50, 50 = 0032H
Integral time High
Low
00H
32H
34
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
The position of the decimal point changes depending on the input range type because the Modbus protocol does not recognize data with decimal points during communication.
The following data can have one of three decimal point positions:
• No decimal point
• One decimal place
• Two decimal place
For details, see 7. INPUT RANGE TABLES (P. 40) .
Measured value (PV)
Set value (SV)
Alarm 1 set value
Alarm 2 set value
Heat-side proportional band
Control loop break alarm deadband
PV bias
Example: When the temperature set value is -20.0 ° C; -20.0 is processed as -200,
-200 = 0000H - 00C8H = FF38H
Set value (SV) High
Low
FFH
38H
6.7.2 Data processing precautions
• For 03H (read holding register), an error response message is returned when the start address is larger than 1AH.
• For 06H (preset single register), an error message is returned when the write address is larger than
1AH.
• Read data of unused channel and undefined address is 0 .
• Any attempt to write to an unused channel is not processed as an error. Data can not be written into an unused channel.
• If data range or address error occurs during data writing, the data written before error is in effect.
IMR01K02-E1 35
6. MODBUS COMMUNICATION PROTOCOL
36
6.8 Communication Data List
The communication data list summarizes data addresses (holding resister numbers), names, descriptions, factory set values and attributes.
Address Name
(Attribute
Description
RO: Read only, R/W: Read and Write)
Factory set value
Attribute
00H
03H
04H
05H
06H
Measured value
(PV)
Alarm 1 status
Alarm 2 status
Burnout
Set value (SV)
Within input range.
0: OFF
0: OFF
0: OFF
1: ON
1: ON
1: ON
Within input range.
-----
-----
-----
-----
Temperature input: 0 or 0.0
Voltage/current inputs: 0
RO
RO
RO
RO
R/W
07H
08H
0BH
0CH
Alarm 1 set value
Alarm 2 set value
Control loop break alarm
Control loop break alarm deadband
Process alarm, SV alarm:
Setting limiter (low limit) to setting limiter (high limit)
Deviation alarm: -span to +span
However, within -1999 to +9999 ° C
[ ° F] or -199.9 to +999.9 ° C [ ° F]
0.0 to 200.0 minutes
(0.0: OFF)
0 (0.0) to span
However, less than 9999
Temperature input:
50 or 50.0
Voltage/current inputs: 5.0
8.0
0
R/W
R/W
R/W
R/W
1
2
3
3
0DH Autotuning 0: Autotuning OFF
1: Autotuning ON
After autotuning is completed, setting will automatically change to 0 .
0 R/W
0EH Self-tuning 0: Self-tuning OFF
1: Self-tuning ON
0 R/W 4
1
2
3
4
If no alarm for first alarm or control loop break alarm is selected, the attribute becomes RO.
If no alarm for second alarm is selected, the attribute becomes RO.
If control loop break alarm for first alarm is not selected, the attribute becomes RO.
If the heat/cool PID control with autotuning (water cooling/air cooling) is selected, or the set value of any one of the heat/cool proportional band, integral time, derivative time and anti-reset windup is set to 0, the attribute becomes RO.
Continued on the next page.
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
Continued from the previous page.
Address
0FH
Name
Heat-side proportional band
(Attribute
Description
RO: Read only, R/W: Read and Write)
Factory set value
Attribute
Temperature input:
0 (0.0) to span or 9999 (999.9) ° C [ ° F]
(0 or 0.0: ON/OFF action)
Voltage/current inputs: 0.1 to span
Cannot be written while the self-tuning function is on, only Read is available.
Temperature input:
30 or 30.0
Voltage/current inputs: 3.0
R/W
10H
11H
12H
13H
14H
15H
16H
17H
Integral time 0 to 3600 seconds (0: PD action)
Cannot be written while the self-tuning function is on, only Read is available.
Deviation time 0 to 3600 seconds (0: PI action)
Cannot be written while the self-tuning function is on, only Read is available.
Anti-reset windup 0 to 100 % of heat-side proportional band (0: Integral action OFF)
Cannot be written while the self-tuning function is on, only Read is available.
Heat-side proportioning cycle time
Cool-side proportional band
1 to 100 seconds
1 to 1000 % of heat-side proportional band
Overlap/deadband -span to +span
However, within -1999 to +9999 ° C
[ ° F] or -199.9 to +999.9 ° C [ ° F]
1 to 100 seconds Cool-side proportioning cycle time
PV bias -span to +span
However, within -1999 to +9999 ° C
[ ° F] or -199.9 to +999.9 ° C [ ° F]
240
60
100
Note1
100
0 or 0.0
Note1
Temperature input: 0 or 0.0
Voltage/current inputs: 0.0
R/W
R/W
R/W
R/W
R/W *
R/W *
R/W *
R/W
Note1 Relay contact output: 20 Voltage pulse output: 2
* If heat/cool PID control with autotuning (water cooling/air cooling) for control type is not selected, the attribute becomes RO.
Continued on the next page.
IMR01K02-E1 37
6. MODBUS COMMUNICATION PROTOCOL
Continued from the previous page.
Address Name
(Attribute
Description
RO: Read only, R/W: Read and Write)
Factory set value
Attribute
0 R/W 18H
19H
1AH
Set data lock function *
RUN/STOP function
Digital filter
0 to 7
0: RUN 1: STOP
0 to 100 seconds (0: OFF)
0
0
R/W
R/W
* Details of set data lock function:
Set data Set value (SV)
Alarm setting
(First alarm, Second alarm)
Other setting items
0
1
2
3
4
5
6
7
−
−
−
−
×
×
×
×
×
×
−
−
×
×
−
−
×
−
×
−
×
−
×
−
( × ) Settable-Data unlocked (-) Unsettable-Data locked
The data lock function only prevents setting changes being made from the front keys. Setting changes can still be made through communication transmission.
38
Continued on the next page.
IMR01K02-E1
6. MODBUS COMMUNICATION PROTOCOL
Continued from the previous page.
Address
1BH
1CH
1DH
1EH
Name
EEPROM storage mode 1
EEPROM storage status 2
Heat-side manipulated output value
Cool-side manipulated output value
(Attribute
Description
RO: Read only, R/W: Read and Write)
Factory set value
Attribute
0: Backup mode
(Set values are store to the EEPROM)
1: Buffer mode
(No set values are store to the EEPROM)
0 R/W
0: Mismatch
1: Match
-5.0 to +105.0 %
-----
-----
RO
RO
-5.0 to +105.0 % ----RO
1 The non-volatile memory (EEPROM) has limitations on the number of memory rewrite times. If the buffer mode is selected as an EEPROM storage mode, all of the set values changed are not written to the EEPROM and thus a problem of limitations on the number of memory rewrite times can be solved. When the memory is used to frequently change the set value via communication, select the buffer mode.
When selecting any EEPROM storage mode, take notice of the following.
• If power failure occurs while the buffer mode is selected, the set value returns to the value before the storage mode is selected.
• If the buffer mode is changed to the backup mode, all of the set values at that time are stored to the EEPROM. If necessary to backup the final value of each set item, select the backup mode.
• When the power is turned on, the backup mode is always set.
2 The contents of the buffer memory and those of the EEPROM can be checked.
When data is 0 : The contents of the buffer memory do not match with those of the EEPROM.
• As data is being written to the EEPROM in backup mode, do not turn the power off. If turned off, no set values are stored.
• If the set value is changed after the backup mode is changed to the buffer mode,
0 is set (mismatch). As the set value changed is not backup, select the backup mode if necessary.
When data is 1 : The contents of the buffer memory match with those of the EEPROM.
(Data write to the EEPROM is completed.)
IMR01K02-E1 39
40
7. INPUT RANGE TABLES
Input Range Table 1
Input type
Thermocouple
K
J
Input range
0 to 200 ° C
0 to 400 ° C
0 to 600 ° C
0 to 800 ° C
0 to 1000 ° C
0 to 1200 ° C
0 to 1372 ° C
-199.9 to +300.0 ° C
0.0 to 400.0 ° C
0.0 to 800.0 ° C
0 to 100 ° C
0 to 300 ° C
0 to 450 ° C
0 to 500 ° C
0.0 to 200.0 ° C
0.0 to 600.0 ° C
-199.9 to +800.0 ° C
0 to 800 ° F
0 to 1600 ° F
0 to 2502 ° F
0.0 to 800.0 ° F
20 to 70 ° F
-199.9 to +999.9 ° F
0 to 200 ° C
0 to 400 ° C
0 to 600 ° C
0 to 800 ° C
0 to 1000 ° C
0 to 1200 ° C
-199.9 to +300.0 ° C
0.0 to 400.0 ° C
0.0 to 800.0 ° C
0 to 450 ° C
0.0 to 200.0 ° C
0.0 to 600.0 ° C
-199.9 to +600.0 ° C
Code
Input Range
J
J
K
K
K
K
K
K
J
J
J
J
J
J
J
J
J
J
J
K
K
K
K
K
K
K
K
K
K
K
K
K
K
K
K
K
Continued on the next page.
A9
B2
01
02
A1
A2
A3
A4
08
09
10
22
03
04
05
06
07
23
30
17
20
29
37
38
08
09
10
13
14
01
02
03
04
05
06
07
IMR01K02-E1
7. INPUT RANGE TABLES
Continued from the previous page.
Input type Input range Code
Input Range
Thermocouple
J
R
S
B
E
N
0 to 800 ° F
0 to 1600 ° F
0 to 2192 ° F
0 to 400 ° F
0 to 300 ° F
-199.9 to +999.9 ° F
0.0 to 800.0 ° F
0 to 1600 ° C 1
0 to 1769 ° C 1
0 to 1350 ° C 1
0 to 3200 ° F 1
0 to 3216 ° F 1
0 to 1600 ° C 1
0 to 1769 ° C 1
0 to 3200 ° F 1
0 to 3216 ° F 1
400 to 1800 ° C
0 to 1820 ° C 1
800 to 3200 ° F
0 to 3308 ° F 1
0 to 800 ° C
0 to 1000 ° C
0 to 1600 ° F
0 to 1832 ° F
0 to 1200 ° C
0 to 1300 ° C
0.0 to 800 ° C
0 to 2300 ° F
0 to 2372 ° F
0.0 to 999.9 ° F
J
J
J
J
J
J
J
R
R
R
R
R
S
S
S
S
B
B
B
B
E
E
E
E
N
N
N
N
N
N
A1
A2
A3
A6
A7
A9
B6
01
02
04
A1
A2
01
02
A1
A2
01
02
A1
A2
01
02
A1
A2
01
02
06
A1
A2
A5
1
2
T
-199.9 to +400.0 ° C
-199.9 to +100.0 ° C
-100.0 to +200.0 ° C
0.0 to 350.0 ° C
2
2
2
-199.9 to +752.0 ° F
-100.0 to +200.0 ° F
-100.0 to +400.0 ° F
0.0 to 450.0 ° F
T
T
T
T
T
T
T
T
01
02
03
04
A1
A2
A3
A4
0.0 to 752.0 ° F
Accuracy is not guaranteed between 0 to 399 ° C (0 to 751 ° F)
T A5
Accuracy is not guaranteed between 199.9 to -100.0 ° C ( 199.9 to -148.0 ° F)
Continued on the next page.
IMR01K02-E1
41
7. INPUT RANGE TABLES
42
Continued from the previous page.
Input type Input range
Thermocouple
RTD
W5Re/W26Re
PL II
U
L
Pt100
0 to 2000 ° C
0 to 2320 ° C
0 to 4000 ° F
0 to 1300 ° C
0 to 1390 ° C
0 to 1200 ° C
0 to 2400 ° F
0 to 2534 ° F
-199.9 to +600.0 ° C *
-199.9 to +100.0 ° C *
0.0 to 400.0 ° C
-199.9 to +999.9 ° F *
-100.0 to +200.0 ° F
0.0 to 999.9 ° F
0 to 400 ° C
0 to 800 ° C
0 to 800 ° F
0 to 1600 ° F
-199.9 to +649.0 ° C
-199.9 to +200.0 ° C
-100.0 to +50.0 ° C
-100.0 to +100.0 ° C
-100.0 to +200.0 ° C
0.0 to 50.0 ° C
0.0 to 100.0 ° C
0.0 to 200.0 ° C
0.0 to 300.0 ° C
0.0 to 500.0 ° C
-199.9 to +999.9 ° F
-199.9 to +400.0 ° F
-199.9 to +200.0 ° F
-100.0 to +100.0 ° F
-100.0 to +300.0 ° F
0.0 to 100.0 ° F
0.0 to 200.0 ° F
0.0 to 400.0 ° F
0.0 to 500.0 ° F
* Accuracy is not guaranteed between 199.9 to -100.0 ° C ( 199.9 to -148.0 ° F)
Continued on the next page.
Code
Input Range
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D
L
L
L
L
A
A
A
A
U
W
W
W
A
U
U
U
U
U
A6
A7
A8
A9
06
07
08
09
10
01
02
03
04
05
A1
A2
A3
A4
A5
01
02
A1
A2
02
03
A1
A2
01
01
02
A1
01
02
03
A1
A2
A3
IMR01K02-E1
7. INPUT RANGE TABLES
Continued from the previous page.
RTD
Input type
JPt100
Input range
-199.9 to +649.0 ° C
-199.9 to +200.0 ° C
-100.0 to +50.0 ° C
-100.0 to +100.0 ° C
-100.0 to +200.0 ° C
0.0 to 50.0 ° C
0.0 to 100.0 ° C
0.0 to 200.0 ° C
0.0 to 300.0 ° C
0.0 to 500.0 ° C
Code
Input Range
P
P
P
P
P
P
P
P
P
P
Input Range Table 2
Voltage
Current
Input type
0 to 5 V DC
0 to 10 V DC
1 to 5 V DC
0 to 20 mA DC
4 to 20 mA DC
Input range
0. 0 to 100.0 % 6
7
4
5
8
Code
Input Range
01
01
01
01
01
For the current input specification, a resistor of 250 Ω must be connected between the input terminals.
01
02
03
04
05
06
07
08
09
10
IMR01K02-E1
43
8. TROUBLESHOOTING
!
WARNING
power before replacing the instrument.
before mounting or removing the instrument.
all the wiring is completed.
instrument.
experience in this type of work.
44
CAUTION
All wiring must be completed before power is turned on to prevent electric shock, instrument failure, or incorrect action.
The power must be turned off before repairing work for input break and output failure including replacement of sensor, contactor or SSR, and all wiring must be completed before power is turned on again.
This section lists some of the main causes and solutions for communication problems.
If you can not solve a problem, please contact RKC sales office or the agent, on confirming the type name and specifications of the product.
Problem Probable cause
No response Wrong connection, no connection or disconnection of the communication cable
Breakage, wrong wiring, or imperfect contact of the communication cable
Mismatch of the setting data of communication speed and data bit configuration with those of the host
Wrong address setting
Solution
Confirm the connection method or condition and connect correctly
Confirm the wiring or connector and repair or replace the wrong one
Confirm the settings and set them correctly
Continued on the next page.
IMR01K02-E1
8. TROUBLESHOOTING
Continued from the previous page.
Problem Probable cause
No response Error in the data format
Solution
Reexamine the communication program
Transmission line is not set to the receive state after data send (for RS-485)
EOT return The specified identifier is invalid
Error in the data format
Confirm the identifier is correct or that with the correct function is specified.
Otherwise correct it
Reexamine the communication program
NAK return Error occurs on the line (parity bit error, framing error, etc.
Confirm the cause of error, and solve the problem appropriately. (Confirm the transmitting data, and resend data)
BCC error
The data exceeds the setting range
The specified identifier is invalid
Confirm the setting range and transmit correct data
Confirm the identifier is correct or that with the correct function is specified.
Otherwise correct it
IMR01K02-E1
45
8. TROUBLESHOOTING
Problem Probable cause
No response Wrong connection , no connection or disconnection of the communication cable
Solution
Confirm the connection method or condition and connect correctly
Breakage, wrong wiring, or imperfect contact of the communication cable
Confirm the wiring or connector and repair or replace the wrong one
Error code
1
Error code
2
Error code
3
Error code
4
Mismatch of the setting data of communication speed and data bit configuration with those of the host
Confirm the settings and set them correctly
Wrong address setting
A transmission error (overrun error, framing error, parity error or CRC-16 error) is found in the query message
The time interval between adjacent data in the query message is too long, exceeding
24 bit’s time
Function cod error
(Specifying nonexistent function code)
When written to read only (RO) data,
When any address other than 0000H to
001AH is specified, etc.
When the data written exceeds the setting range, When the specified number of data items in the query message exceeds the maximum number of data items available
Self-diagnostic error
Re-transmit after time-out occurs or verify communication program
Confirm the function code
Confirm the address of holding register
Confirm the setting data
Turn off the power to the instrument. If the same error occurs when the power is turned back on, please contact RKC sales office or the agent.
46
IMR01K02-E1
9. ASCII 7-BIT CODE TABLE (REFERENCE)
This table is only for use with RKC communication.
b7 0 b6 0 b5 0
0
0
0
1
1 b5 to b7 b4 b3 b2 b1
0 0 0 0 0 NUL DLE SP
0 0 0 1 1 SOH DC1 !
0 0 1 0 2 STX DC2
0 0 1 1 3 ETX DC3
”
#
0 1 0 0 4 EOT DC4 $
0 1 0 1 5 ENQ NAK %
0 1 1 0 6 ACK SYM &
0 1 1 1 7 BEL ETB ’
1 0 0 0 8 BS CAN (
1 0 0 1 9 HT EM
1 0 1 0 A LF SUB
1 0 1 1 B VT ESC
1 1 0 0 C FF FS
1 1 0 1 D CR
1 1 1 0 E SO
1 1 1 1 F SI
GS
RS
US
.
-
/
+
,
)
*
0
1
0
2
0
1
1
3
=
>
?
;
<
9
:
6
7
4
5
8
2
3
0
1
1
0
1
5
]
^
_
[
¥
Y
Z
T
U
V
W
X
R
S
P
Q
1
0
0
4
M
N
O
K
L
J
I
F
G
D
E
H
B
C
@
A
1
1
1
7
}
˜
DEL
|
{ y z v w t u x r s p q
1
1
0
6 m n o k l j i f g d e h b c
‘ a
IMR01K02-E1
47
MEMO
48
IMR01K02-E1
The first edition: NOV. 2001
The third edition: JUN.2000
RKC INSTRUMENT INC.
HEADQUARTERS: 16-6, KUGAHARA 5-CHOME, OHTA-KU TOKYO 146-8515 JAPAN
PHONE: 03-3751-9799 (+81 3 3751 9799)
E-mail: [email protected]
FAX: 03-3751-8585 (+81 3 3751 8585)
IMR01K02-E1 NOV. 2001
advertisement
Related manuals
advertisement
Table of contents
- 7 1. OUTLINE
- 8 2. SPECIFICATIONS
- 10 3. WIRING
- 12 4. SETTING
- 12 4.1 Transfer to Communication Setting Mode
- 13 4.2 Setting the Communication Parameters
- 17 4.3 Communication Requirements
- 19 5. RKC COMMUNICATION PROTOCOL
- 19 5.1 Polling
- 20 5.1.1 Polling procedures
- 23 5.1.2 Polling procedure example
- 24 5.2 Selecting
- 24 5.2.1 Selecting procedures
- 27 5.2.2 Selecting procedure example
- 28 5.3 Communication Identifier List
- 32 6. MODBUS COMMUNICATION PROTOCOL
- 32 6.1 Message Format
- 33 6.2 Function Code
- 33 6.3 Communication Mode
- 34 6.4 Slave Response
- 35 6.5 Calculating CRC
- 37 6.6 Message Format
- 37 6.6.1 Reading holding registers [03H]
- 38 6.6.2 Preset single resister [06H]
- 39 6.6.3 Diagnostics (loopback test) [08H]
- 40 6.7 Data Configuration
- 40 6.7.1 Data range
- 41 6.7.2 Data processing precautions
- 42 6.8 Communication Data List
- 46 7. INPUT RANGE TABLES
- 50 8. TROUBLESHOOTING
- 53 9. ASCII 7-BIT CODE TABLE (RFERENCE)