Room 1028, Office Building,
Beijing Capital Times Square,
No. 88 West Chang'an Road,
Beijing, 100031 China
Tel: (86)10-8391-3005/Fax: (86)10-8391-3688
K3HB Digital IndicatorsCommunications User's Manual Cat. No. N129-E1-03
Communications User's Manual
P
Procedures
tion, and Wiring
munications
DeviceNet
Communications
Performance
and Maintenance
tion for DeviceNet
Operating
Parts, Installa-
Remote I/O Com-
Explicit Message
Communications
Troubleshooting
Additional Informa-
Authorized Distributor:
Communications
BCD Output
BCD
Note: Specifications subject to change without notice.Cat. No. N129-E1-03
Printed in Japan
0305
Cat. No. N129-E1-03
K3HB Digital Indicators
Communications User’s Manual
Revised March 2005
iv
Preface
OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
This manual describes the functions, performance, and application methods needed for optimum use
of the K3HB.
Please observe the following items when using the K3HB.
• This product is designed for use by qualified personnel with a knowledge of electrical systems.
• Read this manual carefully and make sure you understand it well to ensure that you are using the
K3HB correctly.
• Keep this manual in a safe location so that it is available for reference when required.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Trademarks
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1,2,3...1. Indicates lists of one sort or another, such as procedures, checklists, etc.
• DeviceNet is a registered trademark of the Open DeviceNet Vendors Association, Inc.
• Other product names and company names that appear in this manual are the trademarks or registered trademarks of the respective companies.
OMRON, 2004
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of
OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility
for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
v
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a
period of one year (or other period if specified) from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS.
ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED
THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES,
LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS,
WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT
LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which
liability is asserted.
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS
REGARDING THE PRODUCTS UNLESS OMRON'S ANALYSIS CONFIRMS THAT THE PRODUCTS
WERE PROPERLY HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO
CONTAMINATION, ABUSE, MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the
combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying
ratings and limitations of use that apply to the products. This information by itself is not sufficient for a
complete determination of the suitability of the products in combination with the end product, machine,
system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not
intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses
listed may be suitable for the products.
• Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or
uses not described in this manual.
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical
equipment, amusement machines, vehicles, safety equipment, and installations subject to separate
industry or government regulations.
• Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED
FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any
consequence thereof.
vi
Disclaimers
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on improvements and other
reasons.
It is our practice to change model numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the products may be changed
without any notice. When in doubt, special model numbers may be assigned to fix or establish key
specifications for your application on your request. Please consult with your OMRON representative at any
time to confirm actual specifications of purchased products.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when
tolerances are shown.
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in determining suitability and does
not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must
correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and
Limitations of Liability.
ERRORS AND OMISSIONS
The information in this document has been carefully checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
vii
Safety Precautions
■ Definition of Precautionary Information
The following notation is used in this manual to provide precautions required
to ensure safe usage of the product.
The safety precautions that are provided are extremely important to safety.
Always read and heed the information provided in all safety precautions.
The following notation is used.
Indicates a potentially hazardous situation which, if not
WARNING
CAUTION
■ Symbols
Symbol Meaning
avoided, will result in minor or moderate injury, or may
result in serious injury or death. Additionally there may
be significant property damage.
Indicates a potentially hazardous situation which, if not
avoided, may result in minor or moderate injury or in
property damage.
Caution
Prohibition
Mandatory
Caution
General Caution
Indicates non-specific general cautions, warnings,
and dangers.
Electrical Shock Caution
Indicates possibility of electric shock under specific
conditions.
General Prohibition
Indicates non-specific general prohibitions.
General Caution
Indicates non-specific general cautions, warnings,
and dangers.
viii
■ Precautions
WARNING
Do not touch the terminals while power is being supplied. Doing
so may possibly result in electric shock. Make sure that the
terminal cover is installed before using the product.
Always provide protective circuits in the network. Without
protective circuits, malfunctions may possibly result in accidents
that cause serious injury or significant property damage.
Provide double or triple safety measures in external control
circuits, such as emergency stop circuits, interlock circuits, or limit
circuits, to ensure safety in the system if an abnormality occurs
due to malfunction of the product or another external factor
affecting the product's operation.
CAUTION
Do not allow pieces of metal, wire clippings, or fine metallic
shavings or filings from installation to enter the product. Doing so
may occasionally result in electric shock, fire, or malfunction.
Do not use the product in locations where flammable or explosive
gases are present. Doing so may occasionally result in minor or
moderate explosion, causing minor or moderate injury, or property
damage.
Do not attempt to disassemble, repair, or modify the product.
Doing so may occasionally result in minor or moderate injury due
to electric shock.
Do not use the equipment for measurements within Measurement
Categories III and IV for K3HB-X and II, III, and IV for K3HB-S,
K3HB-V, K3HB-H, K3HB-R, K3HB-P, and K3HB-C (according to
IEC61010-1). Doing so may occasionally cause unexpected
operation, resulting in minor or moderate injury, or damage to the
equipment. Use the equipment for measurements only within the
Measurement Category for which the product is designed.
Perform correct setting of the product according to the application.
Failure to do so may occasionally cause unexpected operation,
resulting in minor or moderate injury, or damage to the equipment.
Ensure safety in the event of product failure by taking safety
measures, such as installing a separate monitoring system.
Product failure may occasionally prevent operation of comparative
outputs, resulting in damage to the connected facilities and
equipment.
Tighten the screws on the terminal block and the connector
locking screws securely using a tightening torque within the
following ranges. Loose screws may occasionally cause fire,
resulting in minor or moderate injury, or damage to the equipment.
Terminal block screws: 0.43 to 0.58 N·m
Connector locking screws: 0.18 to 0.22 N·m
ix
CAUTION
Make sure that the product will not be adversely affected if the
DeviceNet cycle time is lengthened as a result of changing the
program with online editing. Extending the cycle time may cause
unexpected operation, occasionally resulting in minor or moderate
injury, or damage to the equipment.
Before transferring programs to other nodes or changing I/O
memory of other nodes, check the nodes to confirm safety.
Changing the program or I/O memory of other nodes may
occasionally cause unexpected operation, resulting in minor or
moderate injury, or damage to the equipment.
x
Precautions for Safe Use
(1) Do not use the product in the following locations.
• Locations subject to direct radiant heat from heating equipment
• Locations where the product may come into contact with water or oil
• Locations subject to direct sunlight
• Locations where dust or corrosive gases (in particular, sulfuric or ammonia gas)
are present
• Locations subject to extreme temperature changes
• Locations where icing or condensation may occur
• Locations subject to excessive shocks or vibration
(2) Do not use the product in locations subject to temperatures or humidity levels
outside the specified ranges or in locations prone to condensation. If the product
is installed in a panel, ensure that the temperature around the product (not the
temperature around the panel) does not go outside the specified range.
(3) Provide sufficient space around the product for heat dissipation.
(4) Use and store the product within the specified temperature and humidity ranges.
If several products are mounted side-by-side or arranged in a vertical line, the
heat dissipation will cause the internal temperature of the products to rise,
shortening the service life. If necessary, cool the products using a fan or other
cooling method.
(5) The service life of the output relays depends on the switching capacity and
switching conditions. Consider the actual application conditions and use the
product within the rated load and electrical service life. Using the product beyond
its service life may result in contact welding or burning.
(6) Install the product horizontally.
(7) Mount to a panel between 1 and 8-mm thick.
(8) Use the specified size of crimp terminals (M3, width: 5.8 mm max.) for wiring. To
connect bare wires, use AWG22 (cross section: 0.326 mm
section: 2.081 mm2) to wire the power supply terminals and AWG28 (cross
section: 0.081 mm
(Length of exposed wire: 6 to 8 mm)
(9) In order to prevent inductive noise, wire the lines connected to the product
separately from power lines carrying high voltages or currents. Do not wire in
parallel with or in the same cable as power lines. Other measures for reducing
noise include running lines along separate ducts and using shield lines.
(10) Ensure that the rated voltage is achieved no longer than 2 s after turning the
power ON.
(11) Allow the product to operate without load for at least 15 minutes after the power is
turned ON.
(12) Do not install the product near devices generating strong high-frequency waves
or surges. When using a noise filter, check the voltage and current and install it
as close to the product as possible.
2
) to AWG16 (cross section: 1.309 mm2) for other terminals.
2
) to AWG14 (cross
(13) Do not use thinner to clean the product. Use commercially available alcohol.
(14) Be sure to confirm the name and polarity for each terminal before wiring the
xi
terminal block and connectors.
(15) Use the product within the noted supply voltage and rated load.
(16) Do not connect anything to unused terminals.
(17) Output turns OFF when the mode is changed or settings are initialized. Take this
into consideration when setting up the control system.
(18) Install an external switch or circuit breaker that complies with applicable
IEC60947-1 and IEC60947-3 requirements and label them clearly so that the
operator can quickly turn OFF the power.
(19) Use the specified cables for the communications lines and stay within the
specified DeviceNet communications distances. Refer to the User’s Manual (Cat.
No. N129) for information on communications distances and cables.
(20) Do not pull the DeviceNet communications cables with excessive force or bend
them past their natural bending radius.
(21) Do not connect or remove connectors while the DeviceNet power is being
supplied. Doing so will cause product failure or malfunction.
(22) Use cables with a heat resistance specification of 70ºC min.
xii
EC Directives
•EMC Directives
Concepts
EMC Directives
OMRON devices that comply with EC Directives also conform to the related
EMC standards so that they can be more easily built into other devices or the
overall machine. The actual products have been checked for conformity to
EMC standards. Whether the products conform to the standards in the system
used by the customer, however, must be checked by the customer.
EMC-related performance of the OMRON devices that comply with EC Directives will vary depending on the configuration, wiring, and other conditions of
the equipment or control panel on which the OMRON devices are installed.
The customer must, therefore, perform the final check to confirm that devices
and the overall machine conform to EMC standards.
Conformance to EC Directives
The K3HB Digital Indicators comply with EC Directives. To ensure that the
machine or device in which the Unit is used complies with EC Directives, the
Unit must be installed as follows:
1,2,3...1. You must use reinforced insulation or double insulation for the DC power
supplies used for the communications power supply, internal power supply,
and I/O power supplies.
2. Units complying with EC Directives also conform to the Common Emission
Standard (EN61326). Radiated emission characteristics (10-m regulations) may vary depending on the configuration of the control panel used,
other devices connected to the control panel, wiring, and other conditions.
You must therefore confirm that the overall machine or equipment complies
with EC Directives.
The following example shows one means of reducing noise.
1,2,3...1. Noise from the communications cable can be reduced by installing a ferrite
core on the communications cable within 10 cm of the DeviceNet Master
Unit.
Ferrite Core (Data Line Filter): 0443-164151 (manufactured by Fair-Rite
Products Co., Ltd.)
Impedance specifications
25 MHz105 Ω
100 MHz190 Ω
2. Wire the control panel with as thick and short electric lines as possible and
ground to 100
Ω min.
3. Keep DeviceNet communications cables as short as possible and ground
to 100
Ω min.
xiii
Complying with Safety Standards
For the DeviceNet power supply, always use a power supply with reinforced or
double insulation, that complies with EN/IEC standards.
Conformance to the standards is for indoor applications only.
xiv
Related Manuals
The following manuals are also related to the K3HB Digital Indicator. Refer to these manuals when
using the K3HB.
K3HB Digital Indicators
Communications User's Manual
Describes the models, communications functions, specifications, and application methods of K3HB Digital Indicators with communications.
(This manual)
K3HB-S/-X/-V/-H Digital Indicators
User's Manual
Describes the models, functions, specifications, and application methods of K3HB-S/-X/-V/-H Digital Indicators.
Refer to this manual for information on specifications and functions other than DeviceNet.
K3HB-R/-P/-C Digital Indicators
User's Manual
Describes the models, functions, specifications, and application methods of K3HB-R/-P/-C Digital Indicators.
Refer to this manual for information on specifications and functions other than DeviceNet.
DeviceNet Operation Manual(W267)
Describes the configuration and connection forms for a DeviceNet network. Also describes connection methods
and specifications for devices used to connect to the network, such as cables and connectors, as well as methods for supplying communications power. When using DeviceNet, obtain this manual in advance and be sure you
understand its contents.
CVM1-DRM21-V1/C200HW-DRM21-V1
DeviceNet Master Units Operation Manual
Describes the specifications, functions, and application methods for the DeviceNet Master Units for CVM1/CVseries, C200HS, and C200HX/HG/HE PLCs.
SYSMAC CS/CJ Series
DeviceNet Units Operation Manual
Describes the specifications, functions, and application methods for the DeviceNet Units for CS/CJ-series PLCs.
(A CS/CJ-series DeviceNet Unit can function simultaneously as both a DeviceNet master and slave.)
(N128)
(N136)
(W379)
(W380)
DeviceNet Configurator Version 2
Operation Manual
Describes the application methods of the DeviceNet Configurator. The DeviceNet Configurator is used to build,
set, and manage DeviceNet networks on graphic displays. Refer to this manual as required.
This manual describes communications for the K3HB Digital Indicators and includes the sections
described below divided into two parts according to the type of communications.
Please read this manual carefully and be sure you understand the information provided before
attempting to setup or operate communications for a K3HB Digital Indicator.
Part 1: CompoWay/F
Section 1 describes CompoWay/F communications.
Section 2 provides a list of K3HB settings.
Part 2: DeviceNet
Section 1 introduces the features and specifications of K3HB-DRT Digital Indicators.
Section 2 outlines the basic operating procedures for the K3HB-DRT Digital Indicators.
Section 3 describes the methods used to install and wire K3HB-DRT Digital Indicators.
Section 4 describes the input (IN) areas and output (OUT) areas that K3HB-DRT Digital Indicators
can use for remote I/O communications. The methods to allocate data for master communications are
also described using sample programming.
Section 5 describes how to send explicit messages to the K3HB-DRT Digital Indicator, including how
to send CompoWay/F commands using explicit messages.
Section 6 provides information on the time required for a complete communications cycle, for an output response to be made to an input, to start the system, and to send messages.
Section 7 describes error processing, periodic maintenance operations, and troubleshooting procedures needed to keep the DeviceNet Network operating properly. Details on resetting replaced Digital
Indicators are also provided. Read through the error processing procedures in both this manual and
the operation manual for the DeviceNet master being used before operation so that operating errors
can be identified and corrected more quickly.
Section 8 provides DeviceNet specifications, tables of mounted objects, and tables of DeviceNet connection hardware.
Part 3: BCD Output
Section 1 describes BCD communications using K3HB Digital Indicators.
!WARNING Failure to read and understand the information provided in this manual may result in per-
sonal injury or death, damage to the product, or product failure. Please read each section
in its entirety and be sure you understand the information provided in the section and
related sections before attempting any of the procedures or operations given.
nications. Featuring a unified frame format and commands that are compliant
with FINS, which has a record of successful use with OMRON programmable
controllers, CompoWay/F makes communications easy between multiple
components and a computer.
FINS (Factory Interface Network Service)
This is a protocol for message communications between controllers on an
OMRON factory automation network.
SupplementThe communications function is used by creating a program on the host com-
puter. As such, the explanations in this chapter are from the perspective of the
host computer.
For example, “Read/Write” refers to the host computer reading or writing to
the K3HB.
1-1-2Communications Specifications
Transfer connection:Multi-point
Communications method: RS-485 or RS-232C (half duplex)
Synchronization method: Start-stop
Baud rate:9.6k, 19.2k, 38.4k bit/s
Send code:ASCII
Data length:7 or 8 bits
Stop bit length:1 or 2 bits
Error detection:Vertical parity (none, even, or odd)
BCC (Block Check Character)
Start-stop synchronized data configuration
Flow control:None
Interface:RS-485 or RS-232C
Retry function:None
CompoWay/F is OMRON's unified protocol for general purpose serial commu-
The host computer sends a command frame, and the K3HB sends a response
frame based on the content of the command frame. One response frame is
sent in response to one command frame.
Host computer
1-2
K3HB
Command
frame
frame
Response
Command
frame
frame
Response
Communications MethodSection 1-1
The exchange between the command frame and response frame is explained
below.
After a receiving a response from the Digital Indicator, have the host computer
wait at least 50 ms before sending the next command.
When writing multiple sets of setting data in a row, such as when writing to the
variable area or performing a compound write, controllability may be affected.
Pay attention to the following points:
1-1-4Cable Connections
RS-485
Command
Maximum of 3 sets of
setting data can be written
Response
Command
50 ms or higher
B
Communications
CompoWay/F
ABCDE
11
2
3
RS-485
RS-485
4
5
6
• Use terminals B1 through B4 to communicate with the host. The terminal
layout is designed for cross-over wiring and thus the B1-B3 and B2-B4
terminals are connected internally.
• Wiring is configured either 1:1 or 1:N. A maximum of 32 Units, including
the host computer can be connected with a 1:N configuration.
• The maximum total cable length is 500 m.
• Use shielded, twisted-pair wires of at least AWG28 to AWG16 for all
cables.
Cable Diagram (Reference)
B (+)
2
3
4
A (−)
B (+)
A (−)
RS-
485
5
6
At least AWG28
Conductor cross-sectional area:
0.081 mm
2
min.
• Attach a terminator to each end of the transmission path, including the
host computer. Use a 100- to 125-
Ω (1/2 W) resistor for the terminator.
• Use an RS-232C/RS-485 Converter to connect RS-232C devices, such
as personal computers.
1-3
Communications MethodSection 1-1
Converter Example: RS-232C/RS-485 Converter
K32-23209
Adapter
CompoWay/F
Communications
RS-232C
D-sub, 9-pin
(Straight)
K3SC-10
RS-232C/RS485
Converter
+
-
100- to 125-Ω
Terminator
(1/2 W)
RS-232C
B1 or B3
B2 or B4
(B)
(A)
K3HB
(No. 0)
B1 or B3
B2 or B4
(B)
(A)
K3HB
(No. 1)
B1 or B3
B2 or B4
(B)
(A)
K3-HB
(No. 31)
ABCDE
11
22
33
44
55
RS-232C
B
SD
RDRS-232C
SG
66
• Use terminals B1 through B3 to communicate with the host.
• Wiring is configured 1:1.
• The maximum cable length is 15 m. Use OMRON’s Z3RN RS-232C Optical Interface to extend the wiring path.
• Use shielded, twisted-pair wires of at least AWG28 to AWG16 for all
cables. (Same wire used for RS-485 cable.)
100- to 125-Ω
Terminator
(1/2 W)
1-4
Host computer
RS-232C
9-pin
25-pin
---FG
1
3SD
2
2RD
3
7RS
4
8CS
5
6DR
6
4ER
20
5SG
7
K3HB
RS-232C
No.
1SD
2RD
3SG
Shield
Frames (CompoWay/F Communications)Section 1-2
1-2Frames (CompoWay/F Communications)
Based on CompoWay/F protocol, commands from the host computer and
responses from the K3HB take the form of frames.
The data comprising command frames and response frames are explained
below.
In the following explanation, an “H” following a numeric value (for example
02H) indicates that the value is a hexadecimal number. A number or letters
enclosed in quotation marks (for example “00”) is an ASCII character.
1-2-1Command Frame
Sub-
Node
address
No.
02H"00""0"
1
BCC calculation range
STXCode that indicates the beginning of the communications
Node No.This number specifies the destination.
Sub-addressNot used on the K3HB. Be sure to set to “00”.
SID (Service ID)Not used on the K3HB. Be sure to set to “0”.
FINS-mini
Command text
ETXCode that indicates the end of the text (03H).
BCCBlock Check Character.
FINS-mini
SIDSTX
command text
ETX1BCC
03H
1 byte221
frame (02H).
Be sure to set this code in the leading byte.
Specify the Unit No. of the K3HB.
When broadcasting to all units, specify “XX”. Responses are
not sent to a broadcast.
The text of the command.
This stores the result of the BCC calculation from Node No. to
EXT.
SupplementA response is not sent to command frames that do not end with ETX.BCC
characters.
STXCode that indicates the beginning of the communications
Node No.The number that was specified in the command frame is
Sub-addressNot used on the K3HB. Set to “00”.
FINS-mini
response text
ETX1BCC
03H
1 byte222
frame (02H).
Be sure to set this code in the leading byte.
repeated here.
This is the Unit No. of the responding K3HB.
1-5
FINS-mini TextSection 1-3
End codeReturns the result of the command executed as instructed by
the command frame.
FINS-mini
Text of the response
Response text
CompoWay/F
Communications
ETXCode that indicates the end of the text (03H)
BCCBlock Check Character
Stores the result of the BCC calculation from Node No. to
EXT.
End Codes (CompoWay/F Communications)
End codeNameDescriptionError detection
order of
priority
“0F”FINS command errorCould not execute the specified FINS command8
“10”Parity errorSum of bits that are “1” in received data does not agree with
the set communications parity value.
“11”Framing errorStop bit of command frame characters is “0”.1
“12”Overrun errorAttempted to transfer new data because received data buffer
is already full.
“13”BCC errorCalculated BCC different from received BCC.5
“14”Format errorCharacters other than “0” to “9” or “A” to “F” in FINS-mini com-
mand text. In the case of an echo-back test, when data other
than the test data is sent.
No SID and FINS-mini command text, or no FINS-mini com-
mand text.
“MRC/SRC” not correct in FINS-mini command text.
“16”Sub-address errorNo sub-address, SID, or FINS-mini command text; or sub-
address less than 2 characters and no SID and FINS-mini
command text.
“18”Frame length errorThe received frame exceeds the required number of bytes.4
“00”Normal endCommand was executed normally without error.None
2
3
7
6
1-3FINS-mini Text
The FINS-mini command text and FINS-mini response text form the body of
command/response communications.
FINS-mini command text and FINS-mini response text are configured as follows.
Command TextFINS-mini command text consists of an MRC (main request code) and an
SRC (sub request code), followed by the required data.
Node
Sub-
No.
address
02H"00" "0"03H
SRC
MRC
2 bytes
2
SIDSTX
command text
FINS-mini
Data
ETX BCC
1-6
FINS-mini TextSection 1-3
Response textFINS-mini response text consists of the MRC and SRC, followed by an MRES
(main response code) and SRES (sub response code), and then the required
data.
Node
Sub-
No.
STX
02H"00"03H
MRC2SRC2MRES
address
2
SRES
2 bytes
FINS-mini
Response textEnd code
ETX BCC
Data
If the specified FINS-mini command was not successfully executed, the
response will only contain the MRC, SRC, MRES and SRES.
List of FINS-mini Service Commands (CompoWay/F Communications)
MRCSRCService nameDescription
“01”“01”Monitor value/setting data readReads monitor values/setting
data.
“01”“02”Monitor value/setting data writeWrites monitor values/setting
“01”“04”Monitor value/setting data com-
pound read
“01”“13”Monitor value/setting data com-
pound write
“01”“10”Monitor value/setting data com-
pound stored read
“01”“11”Monitor value/setting data com-
pound read store (write)
“01”“12”Monitor value/setting data com-
pound read store check (read)
“05”“03”Machine attribute readReads the model and other
“06”“01”Controller status readReads the operation status.
“08”“01”Echo-back testPerforms an echo-back test.
“30”“05”Operation commandCommands such as Run/Stop,
data.
Performs multiple reads of moni-
tor values/setting data.
Performs multiple writes of mon-
itor values/setting data.
Sequentially reads contents of
addresses specified in “monitor
value/setting data compound
read store.”
Specifies addresses to be read
using “monitor value/setting data
compound stored read.”
Reads the contents stored using
“variable area compound read
store.”
attributes.
AT Execute/Cancel, and “Move
to setting area 1".
Communications
CompoWay/F
1-7
Variable AreasSection 1-4
1-4Variable Areas
The area used for data exchange when communicating with the K3HB is
called the “variable area.” The PV is read and various setting data are read
CompoWay/F
Communications
Variable TypesVariable types in variable areas are as follows:
and written using the variable area of the K3HB.
Operation commands and reading of machine attributes do not use the vari-
able area.
K3HB
Operation
commands, etc.
Read/write
Microprocessor
Variable area
A variable area is accessed by specifying the position of a variable within the
variable area using the variable type and address.
Variable typeDescriptionArea
C0Read-only parametersSetting area 0
C1Protect level
C2RUN level
C4Initial setting levelSetting area 1
C5Input adjustment level
C6Display adjustment level
C7Scaling level
C8Comparative set value level
C9Linear output level
CACommunications setting level
CBAdvanced function setting level
(during operation)
(during stop)
Addresses (CompoWay/F
Communications)
Each variable type has an address. Addresses are 2 bytes long and written in
hexadecimal. Addresses are assigned according to units of access size.
Address (2 bytes)
000000##0A6A5A4A3A2A1A
0
For more information on addresses, refer to List of Settings on page 2-1.
Number of ElementsThe number of elements is expressed as a 2-byte hexadecimal number. The
specification range for the number of elements varies depending on the command. See 1-9 Commands and Responses (CompoWay/F Communications)
(page 1-13) for more information.
For example, if the number of elements is 0010, the first 16 elements of data
(H'10) from the address are specified.
Set ValuesValues read and written to the variable area are expressed in hexadecimal
and disregard the decimal point position (negative values are expressed as a
two's complement).
Example: D'105.0
→ H'0000041A
The variable is an 8-digit number in hexadecimal. Negative values are expressed as a two's complement. The decimal is disregarded.
1-8
Reading the Variable AreaSection 1-5
For example, if the PV of the K3HB is 105.0, it will be read as H'0000041A
(105.0
→ 1050 → H'0000041A).
1-5Reading the Variable Area
The data area is read by setting the required data in the following FINS-mini
command text format.
CommandFINS-mini Command Text
MRCSRC
"01""01""00"
Variable
type
Data nameExplanation
MRC/SRCSpecifies the FINS-mini monitor value/setting data read
Variable typeSpecify a variable type.
First address of readSpecify the address for the beginning of the read.
Bit positionNot used on the K3HB. Specify “00”.
Number of elementsSpecifies the number of variables to read (max. of 25
ResponseFINS-mini Response Text
Response code
SRC
MRC
"01""01"
224Number of elements × 8 bytes
(MRES/SRES)
Read start
address
command.
(H'19)). Not needed for a compound read.
Bit
position
Number of elements
"0001" to "0019"
24222
Data to be read
(for compound read, number of elements × 10 bytes)
4
Communications
CompoWay/F
Data nameExplanation
MRC/SRCThe FINS-mini command text appears here.
Response codeResult of execution of the command.
Read dataValues for variables that were read.
Response Codes
Response
code
“1001”Command length too
“1002”Command length too
“1101”Area type errorIncorrect variable type.
“110B”Response length too long Number of elements > 25 (H'0019).
“1100”Parameter errorSpecified bit position is other than “00”.
“2203”Operation errorUnit error, unit change, display unit error,
“0000”Normal end
Error nameExplanation
The command is too long.
long
The command is too short.
short
internal non-volatile memory error
1-9
Loading...
+ 117 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.