Modbus is a registered trademark of Schneider Electric.
z
Company names and product names used in this manual are the trademarks or registered trademarks
of the respective companies.
All Rights Reserved, Copyright 2002, RKC INSTRUMENT INC.
Thank you for purchasing this 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
!
An external protection device must be installed if failure of this instrument
z
could result in damage to the instrument, equipment or injury to personnel.
: 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
!
All wiring must be completed before power is turned on to prevent electric
z
shock, fire or damage to instrument and equipment.
This instrument must be used in accordance with the specifications to
z
prevent fire or damage to instrument and equipment.
This instrument is not intended for use in locations subject to flammable or
z
explosive gases.
Do not touch high-voltage connections such as power supply terminals, etc.
z
to avoid electric shock.
RKC is not responsible if this instrument is repaired, modified or
z
disassembled by other than factory-approved personnel. Malfunction can
occur and warranty is void under these conditions.
IMR01N03-E5
i-1
CAUTION
This is a Class A instrument. In a domestic environment, this instrument may cause radio
z
interference, in which case the user may be required to take adequate measures.
This instrument is protected from electric shock by reinforced insulation. Provide
z
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:
z
- 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
z
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
z
instrument or equipment.
All wiring must be in accordance with local codes and regulations.
z
All wiring must be completed before power is turned on to prevent electric shock,
z
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
z
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
z
electric shock, fire or malfunction.
Tighten each terminal screw to the specified torque found in the manual to avoid electric
z
shock, fire or malfunction.
For proper operation of this instrument, provide adequate ventilation for heat
z
dispensation.
Do not connect wires to unused terminals as this will interfere with proper operation of the
z
instrument.
Turn off the power supply before cleaning the instrument.
z
Do not use a volatile solvent such as paint thinner to clean the instrument. Deformation or
z
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
z
panel with a hard object.
Do not connect modular connectors to telephone line.
z
NOTICE
z
This manual assumes that the reader has a fundamental knowledge of the principles of electricity,
process control, computer technology and communications.
z
The figures, diagrams and numeric values used in this manual are only for purpose of illustration.
z
RKC is not responsible for any damage or injury that is caused as a result of using this instrument,
instrument failure or indirect damage.
z
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.
z
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.
z
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.
Digital Controller HA400/HA900/HA401/HA901 (hereafter, called controller) interfaces with the
host computer via Modbus or RKC communication protocols.
In addition, the controller has two communication ports, the three types of communication interfaces
are available: RS-422A *, RS-485 and RS-232C.
For reference purposes, the Modbus protocol identifies the host computer as master, the controller as
slave.
* Correspond to only communication port 2
Multi-drop connection
Host computer
RS-422A or RS-485
Controller
Controller
Point-to-point connection
Controller
Controller
Maximum connections: 31 instruments
Controller
Host computer
Usage example of two communication ports
Host computer
Operation panel
Communication 1:
RS-485
Controller
Controller
RS-232C
Communication 2:
RS-485
Controller
Controller
Controller
Controller
・・・・・・・・・
IMR01N03-E5
1
2. SPECIFICATIONS
RKC communication
Interface:
Communication 1: Based on RS-485, EIA standard
Based on RS-232C, EIA standard
Communication 2: Based on RS-485, EIA standard
Based on RS-422A, EIA standard
Based on RS-232C, EIA standard
Specify the communication 1 and communication 2 separately when
RS-422A, RS-485: 32 instruments maximum including a host computer
RS-232C: 1 instrument
RS-422A, 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.
RS-232C
Signal voltage Logic
3 V or more 0 (SPACE)
+
3 V or less 1 (MARK)
−
2
IMR01N03-E5
Modbus
2. SPECIFICATIONS
Interface:
Communication 1: Based on RS-485, EIA standard
Based on RS-232C, EIA standard
Communication 2: Based on RS-485, EIA standard
Based on RS-422A, EIA standard
Based on RS-232C, EIA standard
Specify the communication 1 and communication 2 separately when
Data bit: 8 (Byte data corresponding to binary data or bit.)
Parity bit: Without, Odd or Even
Protocol:
Signal transmission mode:
Function code:
Modbus
03H (Read holding registers)
Stop bit: 1 or 2 (However, with the parity bit selected: 1 bit fixed)
Remote Terminal Unit (RTU) mode
06H (Preset single register)
08H (Diagnostics: loopback test)
Error check method:
Error code:
1: Function code error
CRC-16
10H (Preset multiple registers)
2: When any address other than 0000H to 0093H, 0200H to 02E9H,
and 0500H to 0535H are specified
3: When the specified number of data items in the query message
exceeds the maximum number of data items available
Termination resistor:
Connected to terminals (RS-485)
Maximum connections:
4: Self-diagnostic error response
RS-422A, RS-485: 32 instruments maximum including a host computer
RS-232C: 1 instrument
IMR01N03-E5
3
2. SPECIFICATIONS
Signal logic:
RS-422A, 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.
RS-232C
Signal voltage Logic
3 V or more 0 (SPACE)
+
3 V or less 1 (MARK)
−
4
IMR01N03-E5
3. WIRING
To prevent electric shock or instrument failure, do not turn on the power until all
the wiring is completed.
WARNING
!
3.1 Connect the Communication 1
Connection to the RS-485 port of the host computer (master)
Communication terminal number and signal details
z
Terminal No. Signal name Symbol
13 Signal ground SG
14 Send data/Receive data T/R (A)
15 Send data/Receive data T/R (B)
Wiring method
z
Controller (Slave)
T/R (A)
T/R (B)
SG
13
14
15
RS-485
Shielded twisted
Communication terminals
(communication 1 side)
y
y
y
Controller (Slave)
pair wire
Paired wire
*R
Host computer (Master)
SG
T/R (A)
T/R (B)
Communication terminals
(communication 1 side)
The cable is provided by the customer.
IMR01N03-E5
5
SG
T/R (A)
T/R (B)
13
14
15
*R
*R: Termination resistors (Example: 120 Ω 1/2 W)
Maximum connections: 32 instruments (including a host computer)
3. WIRING
Connection to the RS-232C port of the host computer (master)
Connection to the RS-485 port of the controller (slave)
(1)
A RS-232C/RS-485 converter is required.
When the host computer (master) uses Windows 95/98/NT, use a RS-232C/RS-485
converter with an automatic send/receive transfer function.
z
Recommended: CD485, CD485/V manufactured by Data Link, Inc. or equivalent.
Communication terminal number and signal details
Terminal No. Signal name Symbol
13 Signal ground SG
14 Send data/Receive data T/R (A)
15 Send data/Receive data T/R (B)
Wiring method
z
Controller (Slave)
SG
T/R (A)
T/R (B)
Communication terminals
(communication 1 side)
y
y
y
Controller (Slave)
SG
13
14
15
13
Host computer (Master)
RS-485
Shielded twisted
pair wire
Paired wire
*R
RS-232C/RS-485
converter
SG
T/R (A)
T/R (B)
RS-232C
Communication terminals
(communication 1 side)
The cable is provided by the customer.
6
T/R (A)
T/R (B)
14
15
*R
*R: Termination resistors (Example: 120 Ω 1/2 W)
Maximum connections: 32 instruments (including a host computer)
IMR01N03-E5
Connection to the RS-232C port of the controller (slave)
(2)
Communication terminal number and signal details
z
Terminal No. Signal name Symbol
13 Signal ground SG (GND)
14 Send data SD (TXD)
15 Receive data RD (RXD)
Wiring method
z
3. WIRING
Controller (Slave)
SG (GND)
SD (TXD)
RD (RXD)
Communication terminals
(communication 1 side)
Number of connection: 1 instrument
13
14
15
The cable is provided by the customer.
RS-232C
Shielded wire
Host computer (Master)
SG (GND)
SD (TXD)
RD (RXD)
*
RS (RTS)
CS (CTS)
* Short RS and CS within connector.
IMR01N03-E5
7
3. WIRING
3.2 Connect the Communication 2
Connection to the RS-422A port of the host computer (master)
Communication terminal number and signal details
z
Terminal No. Signal name Symbol
25 Signal ground SG
26 Send data T (A)
27 Send data T (B)
28 Receive data R (A)
29 Receive data R (B)
Wiring method
z
Controller (Slave)
SG
T (A)
T (B)
R (A)
Paired wire
25
26
27
28
RS-422A
Host computer (Master)
SG
T (A)
T (B)
R (A)
29
R (B)
Communication terminals
(communication 2 side)
y
y
y
Controller (Slave)
25
SG
T (A)
26
27
T (B)
R (A)
28
29
R (B)
Communication terminals
(communication 2 side)
The cable is provided by the customer.
R (B)
Shielded twisted
pair wire
Maximum connections: 32 instruments (including a host computer)
8
IMR01N03-E5
Connection to the RS-485 port of the host computer (master)
Communication terminal number and signal details
z
Terminal No. Signal name Symbol
25 Signal ground SG
26 Send data/Receive data T/R (A)
27 Send data/Receive data T/R (B)
Wiring method
z
Controller (Slave)
SG
Paired wire
25
RS-485
3. WIRING
Host computer (Master)
SG
T/R (A)
26
T/R (B)
27
Communication terminals
(communication 2 side)
y
y
y
Controller (Slave)
SG
25
T/R (A) 26
T/R (B)
27
Communication terminals
(communication 2 side)
The cable is provided by the customer.
T/R (A)
T/R (B)
*R
Shielded twisted
pair wire
*R
Maximum connections: 32 instruments (including a host computer)
*R: Termination resistors (Example: 120 Ω 1/2 W)
IMR01N03-E5
9
3. WIRING
Connection to the RS-232C port of the host computer (master)
Connection to the RS-485 port of the controller (slave)
(1)
A RS-232C/RS-485 converter is required.
When the host computer (master) uses Windows 95/98/NT, use a RS-232C/RS-485
converter with an automatic send/receive transfer function.
z
Recommended: CD485, CD485/V manufactured by Data Link, Inc. or equivalent.
Communication terminal number and signal details
Terminal No. Signal name Symbol
25 Signal ground SG
26 Send data/Receive data T/R (A)
27 Send data/Receive data T/R (B)
Wiring method
z
Host computer (Master)
Controller (Slave)
SG
T/R (A)
T/R (B)
Communication terminals
(communication 2 side)
y
y
y
Controller (Slave)
SG
T/R (A) 26
T/R (B)
Communication terminals
(communication 2 side)
The cable is provided by the customer.
25
26
27
25
27
RS-485
Shielded twisted
pair wire
*R
Maximum connections: 32 instruments (including a host computer)
Paired wire
*R
RS-232C/RS-485
*R: Termination resistors (Example: 120 Ω 1/2 W )
RS-232C
SG
T/R (A)
T/R (B)
converter
10
IMR01N03-E5
Connection to the RS-232C port of the controller (slave)
(2)
Communication terminal number and signal details
z
Terminal No. Signal name Symbol
25 Signal ground SG (GND)
26 Send data SD (TXD)
27 Receive data RD (RXD)
Wiring method
z
3. WIRING
Controller (Slave)
SG (GND)
SD (TXD)
RD (RXD)
Communication terminals
(communication 2 side)
Number of connection: 1 instrument
25
26
27
RS-232C
Shielded wire
Host computer (Master)
SG (GND)
SD (TXD)
RD (RXD)
*
RS (RTS)
CS (CTS)
* Short RS and CS within connector.
The cable is provided by the customer.
Wiring example
Connection with up to 31 controller (slaves) and one host computer (master)
Device address
(Slave address)
3
1
2
Controller
(Slave)
Host computer (Master)
RS-422A (possible to use only when
the communication 2 is selected)
Junction terminals
4
RS-485
or
29
30
Controller
(Slave)
31
IMR01N03-E5
11
4. SETTING
To establish communication parameters between host computer (master) and controller (slave), it is
necessary to set the device address (slave address), communication speed, data bit configuration and
interval time on each controller (slave) in the Setup setting mode.
Input Type/Input Range Display
SV Setting & Monitor Mode
(Setting the communication parameters)
To store a new value for the parameter,
always press the SET key.
Power ON
Display changes automatically
Press the shift key
while pressing the
SET key
Setup Setting Mode
This instrument returns to
the SV setting & Monitor
mode if no key operation is
performed for more than
one minute.
12
IMR01N03-E5
4. SETTING
4.1 Transfer to Setup Setting Mode
The first displayed parameter in the Setup Setting mode varies depending on the instrument
specification.
This item describes when the first displayed parameter in the setup setting mode is the PV
bias, Pb.
To go the Setup Setting mode, you must be in SV setting & Monitor mode. The first parameter to be
displayed will be the Input 1_PV bias,
address 1,
SET
SV setting & monitor mode
Add1
MODE
.
When let setup setting mode finish, press the shift key while pressing the SET key.
The display changes to the SV setting & Monitor mode.
HA900/HA901 is used in the above figures for explanation, but the same setting procedures
also apply to HA400/HA401.
. Press the SET key several times to change to the device
1. Pb
SET
MODE
Setup setting mode
Input 1_PV bias setting
SET
MODE
Device address 1 setting
(Slave address 1)
IMR01N03-E5
13
4. SETTING
4.2 Setting the Communication Parameters
This item describes when the communication 1 and communication 2 is used under the two
input specification.
To select parameters in the Setup Setting mode, press the SET key.
The parameters relating to communication is shown below.
Communication 1 side: Device address 1 (slave address 1),
•
Communication speed 1,
Data bit configuration 1,
Communication 2 side: Device address 2 (slave address 2),
•
Communication speed 2,
Data bit configuration 2,
bPS1
bIT1
bPS2
bIT2
Add1
,
, Interval time 1,
Add2
,
, Interval time 2,
To be changed in the above order.
Input 2_proportional
cycle time screen
Press the SET key
Device address 1
(Slave address 1)
Press the SET key
Communication speed 1
Press the SET key
Data bit configuration 1
Press the SET key
Interval time 1
Press the SET key
,
,
InT1
,
InT2
Device address 2
(Slave address 2)
Press the SET key
Communication speed 2
Press the SET key
Data bit configuration 2
Press the SET key
Interval time 2
Set lock level screen
14
IMR01N03-E5
4. SETTING
Setting procedure
Setting procedures vary depending on the communication parameter.
Device address:
•
Operate UP, DOWN and shift key, and input numerals.
Communication speed:
•
Add1, Add2
, interval time:
bPS1, bPS2
, data bit configuration:
InT1, InT2
bIT1, bIT2
Operate UP or DOWN key, and choose one among the displayed set value.
Store the set value
Press the SET key to store the new value.
After all communication parameters are set, in order to make these values thus set valid perform any of the
following operations.
The power is turned on again.
•
The RUN/STOP mode is changed from STOP mode to RUN mode.
•
A new value will not be stored without pressing SET key after the new value is displayed on the
display. No communication using the value changed can be performed even with the SET key pressed.
When the RUN/STOP mode is changed from STOP mode to RUN mode, the controller performs the
same operation as that of Power-on.
After a new value has been displayed by using the UP and DOWN keys, the SET key must be pressed
within one minute, or the new value is not stored and the display will return to the PV1/SV1 monitor
screen.
For the RUN/STOP transfer, see
.
(IMR01N02-E
)
HA400/HA900/HA401/HA901 Operation Manual
IMR01N03-E5
15
4. SETTING
Description of each parameters
Communication 1
z
Symbol Name Setting range Description
(Add1)
Device address 1
(Slave address 1)
0 to 99
Do not use the same device address
for more than one controller in
multi-drop connection.
Each controller must have a unique
address in multi-drop connection.
In Modbus communication, two-way
communication is not possible when
the address is 0.
(bPS1)
Communication
speed 1
2.4: 2400 bps
4.8: 4800 bps
9.6: 9600 bps
19.2: 19200 bps
Set the same communication speed
for both the controller (slave) and the
host computer (master).
38.4: 38400 bps
(bIT1)
(InT1)
Data bit
configuration 1
See
data bit
configuration
table
Interval time 1 * 0 to 250 ms
Set the same data bit configuration
for both the controller (slave) and the
host computer (master).
The controller’s interval time must
match the specifications of the host
computer.
Factory
set
value
0
9.6
8n1
10
Communication 2
z
Symbol Name Setting range Description
(Add2)
Device address 2
(Slave address 2)
0 to 99
Do not use the same device address
for more than one controller in
multi-drop connection.
Each controller must have a unique
address in multi-drop connection.
In Modbus communication, two-way
communication is not possible when
the address is 0.
(bPS2)
Communication
speed 2
2.4: 2400 bps
4.8: 4800 bps
9.6: 9600 bps
Set the same communication speed
for both the controller (slave) and the
host computer (master).
19.2: 19200 bps
38.4: 38400 bps
(bIT2)
(InT2)
Data bit
configuration 2
Interval time 2 * 0 to 250 ms
See
data bit
configuration
table
Set the same data bit configuration
for both the controller (slave) and the
host computer (master).
The controller’s interval time must
match the specifications of the host
computer.
Factory
set
value
0
9.6
8n1
10
16
IMR01N03-E5
Data bit configuration table
4. SETTING
Set value Data bit Parity bit
1
When the Modbus communication protocol selected, this setting becomes invalid.
(8n1) 8
(8n2) 8
(8E1) 8
(8E2) 8
(8o1) 8
(8o2) 8
(7n1) 1 7
(7n2) 1 7
(7E1) 1 7
(7E2) 1 7
(7o1) 1 7
(7o2) 1 7
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 controller 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 status for the host. If the interval
time between the two is too short, the controller 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 controller’s interval time must match the specifications of the
host computer.
When the “1: Lock” is selected at the “Lock only setting items other than SV and events
(EV1 to EV4)” in the set lock level, the communication parameters are not able to change
the set values.
IMR01N03-E5
For the set lock level, see the
Operation Manual (IMR01N02-E
.
)
17
4. SETTING
Setting procedure example
HA900/HA901 is used in the below figures for explanation, but the same setting procedures
also apply to HA400/HA401.
Go to the Setup Setting mode. Press the shift key while pressing the SET key to go to the Setup
1.
Setting mode from the SV setting & Monitor mode. Press the SET key until “Add1” (Device
address 1 [slave address 1]) will be displayed.
Set the device address 1 (slave address 1). The high-lighted digit indicates which digit can be set.
2.
Press the UP key to change the number to 5.
Example: Setting the device address 1 (slave address 1) to 15.
Press the shift key to high-light the tens digit.
3.
SET
MODE
Device address 1 setting
(Slave address 1)
SET
MODE
SET
MODE
18
IMR01N03-E5
4. SETTING
Press the UP key to change the number to 1.
4.
SET
MODE
Press the SET key to store the new set value. The display goes to the next communication
5.
parameter. It the SET key is not pressed within one minute, the present display returns to the SV
setting & Monitor mode and the value set here returns to that before the setting is changed.
SET
MODE
After completing all communication parameter settings, return the SV setting & Monitor mode,
6.
and communication is mode using the set value changed.
IMR01N03-E5
19
4. SETTING
4.3 Communication Requirements
Processing times during data send/receive
The controller 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 controller to send data:
- Response wait time after controller sends BCC in polling procedure
- Response wait time after controller sends ACK or NAK in selecting procedure
RKC communication (Polling procedure)
Procedure details Time (ms)
Response send time after controller receives ENQ
Response send time after controller receives ACK
Response send time after controller receives NAK
Response send time after controller sends BCC
RKC communication (Selecting procedure)
Procedure details Time (ms)
Response send time after controller receives BCC
Response wait time after controller sends ACK
Response wait time after controller sends NAK
Modbus
Procedure details Time
MIN TYP MAX
1 2 4
1
1
4
4
1
MIN TYP MAX
1 2 3
1
1
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
Preset multiple registers [10H]
Response transmission time after the slave receives the query
message
Response send time is time at having set interval time in 0 ms.
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 the controller are described below:
Polling procedure
z
Host computer
Send data
(Possible/Impossible)
Sending status
Controller
Send data
(Possible/Impossible)
Sending status
: Response send time after the controller receives [ENQ] + Interval time
a
: Response send time after the controller sends BCC
b
: Response send time after the controller receives [ACK] + Interval time or
c
Possible
Impossible
Possible
Impossible
E
O
T
- - - - -
E
N
Q
b c a
S
T
X
- - - - -
B
C
C
A
or
C
K
Response send time after the controller receives [NAK] + Interval time
Selecting procedure
z
Host computer
Send data
(Possible/Impossible)
Sending status
Controller
Send data
(Possible/Impossible)
Sending status
Response send time after the controller receives BCC + Interval time
a:
Response wait time after the controller sends ACK or Response wait time after the controller
b:
Possible
Impossible
Possible
Impossible
S
T
X
- - - - -
B
C
C
b a
N
A
or
A
C
K
K
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 the controller to send data:
- Response wait time after the controller sends BCC in polling procedure
- Response wait time after the controller sends ACK or NAK in selecting procedure
RS-422A/RS-485 Fail-safe
A transmission error may occur with the transmission line disconnected, shorted or set to the
high-impedance 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.
N
A
K
IMR01N03-E5
21
p
5. RKC COMMUNICATION PROTOCOL
The HA400/HA900/HA401/HA901 (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).
The polling/selecting procedures are a centralized control method where the host computer
z
controls the entire process. The host computer initiates all communication so the controller
responds according to queries and commands from the host.
The code use in communication is 7-bit ASCII code including transmission control characters.
z
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 com
[Address] [ ] [ ID ]
uter send
(2)
Memory area number
(when polling the data
corresponding to the memory
area)
ID: Identifier
E
N
Q
Controller send
No response
E
O
(4)
T
S
T
X
[ ID ]
[ Data ]
(5)
(3)
E
[ BCC ]
T
X
Host
computer
send
(8)
No
response
Indefinite
(6)
A
C
K
(7)
(9)
N
A
K
Controller
send
Time
out
Host
computer
send
E
O
T
(10)
E
O
T
22
IMR01N03-E5
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
The host computer sends the polling sequence in the following two types of formats:
Format in which no memory area number is specified, and
•
Format in which the memory area number is specified.
•
When no memory area number is specified
To be sent in this format for any identifier not corresponding to the memory area.
When the memory area number is specified
1.
3.
Identifier Address
4.
Example:
ENQ ENQ
1 M 0 1
To be sent in this format for any identifier corresponding to the memory area.
1.
1.
Address (2 digits)
2.
Memory
area
number
3.
Identifier Address
4.
Example:
1
0
S 1 1 K K 0
The device address specifies the controller to be polled and each controller must have its own
unique device address.
Specify 00 not to omit device address in RS-232C specification.
The polling address which transmitted a message once becomes effective so long as data
link is not initialized by transmit and receive of EOT.
For details, see
4.2 Setting the Communication Parameters (P. 14)
.
ENQ ENQ
IMR01N03-E5
23
5. RKC COMMUNICATION PROTOCOL
Memory area number (3 digits)
2.
This is the identifier to specify the memory area number. It is expressed by “K01” to “K16” to
each memory area number (from 1 to 16). When one column of memory area number (1 to 9) is
specified, it can be specified with “K1” to “K9.” In addition, if the memory area number is
assigned with “K0” or “K00,” this represents that control area is specified.
The memory area now used for control is called “Control area.”
If the memory area number is not specified when polling the identifier corresponding to
the memory area, this represents that the control area is specified.
If any identifier not corresponding to the memory area is assigned with a memory area
number, this memory area number is ignored.
Identifier (2 digits)
3.
The identifier specifies the type of data that is requested from the controller. Always attach the
ENQ code to the end of the identifier.
For details, see
ENQ
4.
5.4 Communication Items List (P. 37)
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:
STX
1.
1.
STX
2.
Identifier Data BCC
STX is the transmission control character which indicates the start of the text transmission
(identifier and data).
Identifier (2 digits)
2.
The identifier indicates the type of data (measured value, status and set value) sent to the host
computer.
For details, see
5.4 Communication Items List (P. 37)
3.
4.
ETX
5.
.
24
IMR01N03-E5
Loading...
+ 182 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.