RKC INSTRUMENT SA200 Communication Instruction Manual

Category
Temperature & humidity sensors
Type
Communication Instruction Manual
IMR01D02-E3
SA200
Communication
Instruction Manual
RKC INSTRUMENT INC.
®
Temperature Controller
All Rights Reserved, Copyright
1999, RKC INSTRUMENT INC.
!"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.
IMR01D02-E3
i-1
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
: 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.
!"
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.
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.
WARNING
!
WARNING
!
IMR01D02-E3
i-2
!
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.
CAUTION
IMR01D02-E3
i-3
CONTENTS
Page
1. SPECIFICATIONS................................................................1
2. WIRING .................................................................................3
3. SETTING ...............................................................................5
3.1 Communication Setting Mode .........................................................................5
3.2 Setting the Communication Parameters..........................................................6
3.3 Device Address/Slave Address Setting ...........................................................7
3.4 Communication Speed Setting........................................................................9
3.5 Data Configuration Setting ............................................................................11
3.6 Interval Time Setting .....................................................................................13
3.7 Communication Requirements ......................................................................14
4. RKC COMMUNICATION PROTOCOL...............................17
4.1 Polling............................................................................................................17
4.1.1 Polling procedures ............................................................................................18
4.1.2 Polling procedure example ...............................................................................21
4.2 Selecting........................................................................................................22
4.2.1 Selecting procedures........................................................................................22
4.2.2 Selecting procedure example ...........................................................................25
4.3 Communication Identifier List ........................................................................26
5. MODBUS COMMUNICATION PROTOCOL ...................... 30
5.1 Message Format ...........................................................................................30
5.2 Function Code ...............................................................................................31
5.3 Communication Mode ...................................................................................31
5.4 Slave Response ............................................................................................32
5.5 Calculating CRC-16.......................................................................................33
IMR01D02-E3
i-4
Page
5.6 Message Format ...........................................................................................35
5.6.1 Reading holding registers [03H]........................................................................35
5.6.2 Preset single resister [06H]...............................................................................36
5.6.3 Diagnostics (loopback test) [08H] .....................................................................37
5.7 Data Configuration ........................................................................................38
5.7.1 Data range........................................................................................................38
5.7.2 Data processing precautions ............................................................................39
5.8 Communication Data List ..............................................................................40
6. INPUT RANGE TABLES ....................................................44
7. TROUBLESHOOTING .......................................................48
8. ASCII 7-BIT CODE TABLE ................................................51
IMR01D02-E3
1
1. SPECIFICATIONS
SA200 interfaces with the host computer via Modbus or RKC communication protocols. For
reference purposes, the Modbus protocol identifies the host computer as master, the SA200 as slave.
The RKC protocol identifies these parts of the control system as the host computer and SA200.
!"
!"!"
!"
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.
1. SPECIFICATIONS
IMR01D02-E3
2
!"
!"!"
!"
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 (Selectable)
Data bit configuration: Data bit: 8 (Byte data corresponding to binary data or bit.)
Parity bit: Without, Odd or Even (Selectable)
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
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.
IMR01D02-E3
3
2. WIRING
!"
!"!"
!"
Terminal number and signal details
Terminal
No.
Symbol Signal
name
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)
SG
T/R
(
B
)
T/R
(
A
)
SG
T/R
(
B
)
T/R
(
A
)
RD
(
RXD
)
Receive data
SD
(
TXD
)
Send data
Host com
p
uter
(
Master
)
RS-485
SG
T/R
(
B
)
T/R
(
A
)
$
$
$
31 max.
Paired wire
Send/Receive
transfer signal
Shielded twisted
pair wire
SA200
(Slave)
SA200
(Slave)
SD (TXD) and RD (RXD): Negative logic
* R: Termination resistors (Example: 120
1/2 W)
* R
* R
To prevent electric shock or instrument failure, turn off the power before
connecting or disconnecting the instrument and peripheral equipment.
WARNING
!
2. WIRING
IMR01D02-E3
4
#"
#"#"
#"
Connection to the RS-232C port of the host computer (master)
A RS-232C/RS-485 converter is required.
SA200
(Slave)
SG
T/R (B)
T/R (A)
RS-485
SG
T/R (A)
T/R (B)
RS-232C
Host computer
(
Master
)
RS-232C/RS-485
converter
Shielded twisted
pair wire
Paired wire
* R
* R
* R: Termination resistors (Example: 120
1/2 W)
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.
!"
!"!"
!"
Wiring example
#"
#"#"
#"
Connection with up to 31 SA200 (slaves) and one host computer (master)
Host computer (Master) Host computer (Master)
RS-232C/RS-485 converter
Junction terminal
30 29 31 1 2 3 4
SA200
(
Slaves
)
SA200
(
Slaves
)
Device address
(Slave address)
RS-485
or
RS-232C
RS-485
IMR01D02-E3
5
3. SETTING
To establish communication parameters between host computer (master) and SA200 (slave), it is
necessary to set the device address (slave address), communication speed, data configuration and
interval time on each SA200 (slave) in the communication mode.
3.1 Communication Setting Mode
1. When the power to the SA200 is turned on, the input type, input range and PV/SV display will
be automatically displayed in that order.
2. 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.
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
PV/SV display
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
Device address (Slave address)
Communication setting mode
To return to the PV/SV display, press and hold the SET key and press the <R/S key at the
same time.
3. SETTING
IMR01D02-E3
6
3.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 configuration, bIT and interval time set value, InT.
!"
!"!"
!"
Display flowchart
Input type and input range
display
Power ON
(Display approx. 4 seconds.)
Display changes automatically
PV/SV display
Device address
(Slave address)
[
Add
]
Communication
speed
[
bPS
]
Data configuration
[
bIT
]
Interval time set value
[
InT
]
Press the SET key.
Press the SET key.
Press the SET key.
Press the SET key.
Communication setting mode
SV
PV
SVPV
SV
PV
SV
PV
Press the SET key
for 2 seconds.
Parameter
setting mode
Press and hold the SET key and press the <R/S key at same time.
3. SETTING
IMR01D02-E3
7
3.3 Device Address (Slave Address) Setting
The device address (slave address) must be set before communication can begin. The device address
(slave address) number is set with numbers from 0 to 99.
Symbol Name Setting range Description Factory
set value
Device address
(Slave address)
0 to 99 Set the SA200 device
address (slave address).
0
Add
If the slave address is set to 0 in Modbus communication, two-way communication cannot
be performed.
When the communication parameter is changed, turn the power on and off again or switch
from STOP to RUN to refresh and make the new value effective. If neither action is taken,
the SA200 will maintain the set value prior to change.
All device address (slave address) settings must be stored by pressing the SET key. If
changes are made and the SET key is not pressed within one minute, the display will
automatically return to the PV/SV display and the device address (slave address) will return
to the value prior to set change.
!"
!"!"
!"
Setting procedure
Example: When setting the device address (slave address) to 15.
1. Go to the communication setting mode so that device address (slave address), Add, is displayed.
See
3.1 Communication Setting Mode (P. 5),
3.2 Select Communication Parameters
(P. 6).
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
Device address (Slave address)
Continued on the next page.
3. SETTING
IMR01D02-E3
8
2. Press the UP key to enter 5 at the first digit from the right.
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
3. Press the <R/S key to blink the second digit from the right.
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
4. Press the UP key to enter 1 at the second digit from the right.
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
5. Press the SET key to store the new device address (slave address). The display automatically
goes to the next communication parameter, bPS.
3. SETTING
IMR01D02-E3
9
3.4 Communication Speed Setting
The communication speed of 2400 bps, 4800 bps, 9600 bps or 19200 bps is selectable. To select the
speed of the bPS setting, press the UP or DOWN key.
Symbol Name Setting range Description Factory
set value
Communication
speed
240: 2400 bps
480: 4800 bps
960: 9600 bps
Select the communication
speed
960
bPS 1920: 19200 bps
Set the same communication speed for both the SA200 (slave) and the host computer
(master).
When the communication parameter is changed, turn the power on and off again or switch
from STOP to RUN to refresh and make the new value effective. If neither action is taken,
the SA200 will maintain the set value prior to change.
All communication speed settings must be stored by pressing the SET key. If changes are
made and the SET key is not pressed within one minute, the display will automatically
return to the PV/SV display and the communication speed will return to the value prior to
set change.
!"
!"!"
!"
Setting procedure
Example: Setting communication speed 480: 4800 bps.
1. Go to the communication setting mode so that slave address, Add, is displayed. Then, press the
SET key once, so the communication speed symbol, bPS, appears.
See
3.1 Communication Setting Mode (P. 5),
3.2 Select Communication Parameters
(P. 6).
Communication speed
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
Continued on the next page.
3. SETTING
IMR01D02-E3
10
2. Press the DOWN key to set 480.
R/SSET
SA200
SVPV
OUT2
AT
OUT1
ALM2
SV2
ALM1
3. Press the SET key to store the new communication speed. The display automatically goes to the
next communication parameter, bIT.
3. SETTING
IMR01D02-E3
11
3.5 Data Configuration Setting
To select the data configuration setting, press the UP or DOWN key.
Symbol Name Setting range Description Factory
set value
Data configuration See
Data
configuration
Select data configuration
during communication
8n1
bIT table.
Data configuration table
Setting 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
(8n2) 8 Without 2
(8E1) 8 Even 1
(8E2) 8 Even 2
(8o1) 8 Odd 1
(8o2) 8 Odd 2
Set the same data configuration for both the SA200 (slave) and the host computer (master).
When the communication parameter is changed, turn the power on and off again or switch
from STOP to RUN to refresh and make the new value effective. If neither action is taken,
the SA200 will maintain the set value prior to change.
All data configuration settings must be stored by pressing the SET key. If changes are made
and the SET key is not pressed within one minute, the display will automatically return to
the PV/SV display and the data configuration will return to the value prior to set change.
Setting range of
RKC
communication
Setting range of
Modbus
3. SETTING
IMR01D02-E3
12
!"
!"!"
!"
Setting procedure
The setting procedures are the same as communication speed setting.
1. Go to the communication setting mode so that slave address, Add, is displayed. Press the SET
key until the data configuration symbol, bIT, appears.
2. Set the data bit configuration by pressing the UP or DOWN key.
For details on setting procedure, see 3.4 Communication Speed Setting (P. 9).
3. SETTING
IMR01D02-E3
13
3.6 Interval Time Setting
The interval time is set with numbers from 0 to 250 ms. To shift the digit, press the <R/S key. To
change the number of the digit, press the UP or DOWN key.
Symbol Name Setting range Description Factory
set value
Interval time set
value
0 to 250 ms Set the value to set the
interval time
10
InT
When the communication parameter is changed, turn the power on and off again or switch
from STOP to RUN to refresh and make the new value effective. If neither action is taken,
the SA200 will maintain the set value prior to change.
All interval times must be stored by pressing the SET key. If changes are made and the SET
key is not pressed within one minute, the display will automatically return to the PV/SV
display and the interval time will return to the value prior to set change.
!"
!"!"
!"
Setting procedure
The setting procedures are the same as device address (slave address) setting.
1. Go to the communication setting mode so that slave address, Add, is displayed. Press the SET
key until the interval time symbol, InT, appears.
2. Set the interval time by pressing the UP or DOWN key.
For details on setting procedure, see 3.3 Device Address (Slave Address) Setting (P. 7).
3. SETTING
IMR01D02-E3
14
3.7 Communication Requirements
!"
!"!"
!"
Processing times during data send/receive
The SA200 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 SA200 to send data:
-Response wait time after SA200 sends BCC in polling procedure
-Response wait time after SA200 sends ACK or NAK in selecting procedure
RKC communication (Polling procedure)
Procedure details Time (ms)
MIN TYP MAX
Response send time after SA200 receives ENQ 1.6 4.0 12
Response send time after SA200 receives ACK 1.6
10
Response send time after SA200 receives NAK 1.6
10
Response send time after SA200 sends BCC
−−
1.0
RKC communication (Selecting procedure)
Procedure details Time (ms)
MIN TYP MAX
Response send time after SA200 receives BCC 1.6 3.0 10
Response wait time after SA200 sends ACK
−−
1.0*
Response wait time after SA200 sends NAK
−−
1.0*
Modbus
Procedure details Time (ms)
Read holding registers [03H]
Response transmission time after the slave receives the query
message
13 ms max.
Preset single register [06H]
Response transmission time after the slave receives the query
message
6 ms max.
Diagnostics (loopback test) [08H]
Response transmission time after the slave receives the query
message
6 ms max.
Response send time is time at having set interval time in 0 ms.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60

RKC INSTRUMENT SA200 Communication Instruction Manual

Category
Temperature & humidity sensors
Type
Communication Instruction Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI