RKC SA201 Instruction Manual

Temperature Controller
SA201
Communication
Instruction Manual
RKC INSTRUMENT INC.
®
IMR01K02-E1
!"Modbus is a registered trademark of Schneider Electric. !"Company names and product names used in this manual are the trademarks or registered trademarks of
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

CAUTION
!
: 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.
: 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
!
An external protection device must be installed if failure of this instrument
!"
could result in damage to the instrument, equipment or injury to personnel.
All wiring must be completed before power is turned on to prevent electric
!"
shock, fire or damage to instrument and equipment.
This instrument must be used in accordance with the specifications to prevent
!"
fire or damage to instrument and equipment.
This instrument is not intended for use in locations subject to flammable or
!"
explosive gases.
Do not touch high-voltage connections such as power supply terminals, etc.
!"
to avoid electric shock.
RKC is not responsible if this instrument is repaired, modified or
!"
disassembled by other than factory-approved personnel. Malfunction can occur and warranty is void under these conditions.
IMR01K02-E1
i-1

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 high-
!
voltage 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.
i-2
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.
Host computer or
PLC, etc.
RS-232C
SA201
RS-485
SA201
or
SA201
RS-232C/RS-485
converter
SA201
SA201
SA201
IMR01K02-E1
1

2. SPECIFICATIONS

RKC communication
!"
!"
!"!"
Interface: Based on RS-485, EIA standard
Connection method: 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: ANSI X3.28 subcategory 2.5, A4
Polling/selecting type
Error control: Vertical parity (With parity bit selected)
Horizontal parity (BCC check)
Communication code: ASCII 7-bit code
Termination resistor: Externally connected
Xon/Xoff control: None
Maximum connections: 32 instruments maximum including a host computer
Signal logic: RS-485
Signal voltage Logic
V (A) - V (B) 2 V 0 (SPACE) V (A) - V (B) -2 V 1 (MARK)
Voltage between V (A) and V (B) is the voltage of (A) terminal for the (B) terminal.
2
IMR01K02-E1
2. SPECIFICATIONS
Modbus
!"
!"
!"!"
Interface: Based on RS-485, EIA standard
Connection method: 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: 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: 03H (Read holding registers)
06H (Preset single register) 08H (Diagnostics: loopback test)
Error check method: CRC-16
Error code: 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
Termination resistor: Externally connected
Maximum connections: 32 instruments maximum including a master
Signal logic: RS-485
Signal voltage Logic
IMR01K02-E1
V (A) - V (B) 2 V 0 (SPACE) V (A) - V (B) -2 V 1 (MARK)
Voltage between V (A) and V (B) is the voltage of (A) terminal for the (B) terminal.
3

3. WIRING

(B)
(A)
(B)
(A)
)
)
p
(B)
(A)
WARNING
!
To prevent electric shock or instrument failure, do not turn on the power until all the wiring is completed.
Terminal number and signal details
!"
!"
!"!"
Terminal
Signal name Symbol
No.
10 Signal ground SG
11 Send data/Receive data T/R (A)
12 Send data/Receive data T/R (B)
Wiring method
!"
!"
!"!"
Connection to the RS-485 port of the host computer (master)
#"
#"
#"#"
SA201
(Slave)
SG
T/R
T/R
Communication
terminal
$ $ $
SA201
(Slave)
SG
RS-485
Shielded twisted
pair wire
Paired wire
* R
Host com
SG T/R
T/R
SD (TXD) and RD (RXD): Negative logic
uter (Master)
SD (TXD
RD (RXD
Send/Receive transfer signal
Send data
Receive data
terminal
* R
* R: Termination resistors (Example: 120 Ω 1/2 W)
IMR01K02-E1
T/R
T/R
Communication
31 max.
4
Connection to the RS-232C port of the host computer (master)
(
!"
!"
!"!"
A RS-232C/RS-485 converter is required.
SA201
(Slave)
SG
T/R (A)
RS-485
Paired wire
SG
T/R (A)
RS-232C
3. WIRING
T/R (B)
Communication
connector
* R * R
Shielded twisted
pair wire
* R: Termination resistors (Example: 120 Ω 1/2 W)
T/R (B)
RS-232C/RS-485
converter
Host computer
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.
Connection with up to 31 SA201 (slaves) and one host computer (master)
!"
!"
!"!"
Host computer (Master)Host computer (Master)
RS-232C
RS-485
or
RS-232C/RS-485 converter
RS-485
Master)
Junction terminal
Device address (Slave address)
SA201
(Slave)
IMR01K02-E1
3029 311 2 3 4
SA201 (Slave)
5

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
If the key is not pressed for more than one minute, the display will automatically return to the PV/SV display mode.
Communication Setting Mode
(Setting the communication
parameters)
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
SET
SA201
R/S
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
PV/SV display
PV
SET
SA201
R/S
Device address (Slave address)
Communication setting mode
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
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.
6
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
!"
!"
!"!"
Setting procedure vary depending on the communication parameter.
Device address
Operate UP, DOWN and <R/S key, and input numerals.
, interval time
Add
InT
Communication speed
, data bit configuration
bPS
bIT
Operate UP, DOWN and <R/S key, and choose one among the displayed set value.
PV
PV
SV
Device address
(Slave address)
Press the SET key.
SV
Communication
Press the SET key.
SVPV
Data configuration
Press the SET key.
[
Add
speed
[
bPS
[
bIT
]
]
]
Press the SET key.
Registration of set value
!"
!"
!"!"
PV
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
Description of each parameters
!"
!"
!"!"
Symbol Name Setting range Description Factory
set value
Device address (Slave address)
(Add)
Communication speed
(bPS)
Data bit configuration
(bIT)
Interval time * 0 to 250 ms The SA201’s interval time
(InT)
Data bit configuration table
0 to 99
240: 2400 bps 480: 4800 bps 960: 9600 bps 1920: 19200 bps
See data bit configuration table
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).
must match the specifications of the host computer.
0
960
8n1
10
Set value Data bit Parity bit Stop bit
(7n1) 7 Without 1
(7n2) 7 Without 2
(7E1) 7 Even 1
(7E2) 7 Even 2
(7o1) 7 Odd 1
(7o2) 7 Odd 2
(8n1) 8 Without 1
Setting range of RKC communication
(8n2) 8 Without 2
(8E1) 8 Even 1
(8E2) 8 Even 2
Setting range of Modbus
(8o1) 8 Odd 1
(8o2) 8 Odd 2
* 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.
8
IMR01K02-E1
3. WIRING
Setting procedure example
!"
!"
!"!"
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
SET
SA201
R/S
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
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
SET
SA201
R/S
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
3. Press the <R/S key to blink the tens digit.
PV
SET
SA201
R/S
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
Continued on the next page.
IMR01K02-E1
9
3. WIRING
4. Press the UP key to enter 1 at the tens digit.
PV
SET
SA201
R/S
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
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
SET
SA201
R/S
SV
AT
SV2
ALM1
ALM2
OUT1
OUT2
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

Processing times during data send/receive
!"
!"
!"!"
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 Time (ms)
MIN TYP MAX
Response send time after SA201 receives ENQ 1.6 4.0 12
Response send time after SA201 receives ACK 1.6
Response send time after SA201 receives NAK 1.6
Response send time after SA201 sends BCC
RKC communication (Selecting procedure)
Procedure details Time (ms)
Response send time after SA201 receives BCC 1.6 3.0 10
Response wait time after SA201 sends ACK
Response wait time after SA201 sends NAK
Modbus
Procedure details Time (ms)
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 TYP MAX
−−
−−
13 ms max.
6 ms max.
6 ms max.
10
10
1.0
1.0
1.0
IMR01K02-E1
Response send time is time at having set interval time in 0 ms.
11
Loading...
+ 39 hidden pages