Autonics krn100 series User manual

Preface
© Copyright Reserved Autonics Co., Ltd. i
USER MANUAL
For COMMUNICATION

ii © Copyright Reserved Autonics Co., Ltd.

Preface
© Copyright Reserved Autonics Co., Ltd. iii
Preface
Thank you for choosing our Autonics products.
Please familiarize yourself with the information contained in the Safety Considerations section
before using this product.
This user manual for communication contains information about the product and its proper use,
and should be kept in a place where it will be easy to access.

User Manual Guide
iv © Copyright Reserved Autonics Co., Ltd.
User Manual Guide
This user manual for communication contains information about the product and its proper use,
and should be kept in a place where it will be easy to access.
Please familiarize yourself with the information in this manual before using the product.
This manual provides detailed information on the product's features. It does not offer any
guarantee concerning matters beyond the scope of this manual.
This manual may not be edited or reproduced in either part or whole without permission.
A user manual is not provided as part of the product package.
Visit our home-page (www.autonics.com) to download a copy.
The manual's content may vary depending on changes to the product's software and other
unforeseen developments within Autonics, and is subject to change without prior notice.
We contrived to describe this manual more easily and correctly. However, if there are any
corrections or questions, please notify us these on our homepage.

User Manual for Communication Symbols
© Copyright Reserved Autonics Co., Ltd. v
User Manual for Communication
Symbols
Symbol
Description
Supplementary information for a particular feature.
Failure to follow instructions can result in serious injury or death.
Failure to follow instructions can lead to a minor injury or product damage.
An example of the concerned feature's use.
※1 Annotation mark.

Safety Considerations
vi © Copyright Reserved Autonics Co., Ltd.
Safety Considerations
Please observe all safety considerations for safe and proper product operation to avoid
hazards.
Safety considerations are categorized as follows.
Warning Failure to follow these instructions may result in serious
injury or death.
Caution Failure to follow these instructions may result in personal
injury or product damage.
Fail-safe device must be installed when using the unit with machinery that may cause
serious injury or substantial economic loss. (e.g. nuclear power control, medical equipment,
ships, vehicles, railways, aircraft, combustion apparatus, safety equipment, crime/disaster
prevention devices, etc.)
Failure to follow this instruction may result in personal injury, fire, or economic loss.
The unit must be installed on a device panel before use.
Failure to follow this instruction may result in electric shock.
Do not connect, repair, or inspect the unit while connected to a power source.
Failure to follow this instruction may result in electric shock.
Check the terminal numbers before connecting the power source.
Failure to follow this instruction may result in fire or product damage by a fire.
This unit uses lithium battery. Do not disassemble or burn up this unit.
Failure to follow this instruction may result in explosion.
Do not touch the unit or terminals within 30 sec. after turning off the power.
Failure to follow this instruction may result in electric shock.
Ground the F.G. terminal separately. Grounded wire should be over AWG16(1.25 mm2).
Failure to follow this instruction may result in electric shock.
Do not insert your finger or object into the vent of this unit.
Failure to follow this instruction may result in electric shock or personal injury.
Do not disassemble or modify the unit. Please contact us if necessary.
Failure to follow this instruction may result in fire, personal injury or economic loss.
Do not use the unit outdoors.
Failure to follow this instruction may result in electric shock or shortening the life cycle of the
unit.
When connecting the power input or measuring input, power cable should be over AWG
20(0.50mm2). Make sure to tighten the terminal screw bolt above 0.74 N•m to 0.90 N•m.

Safety Considerations
© Copyright Reserved Autonics Co., Ltd. vii
Use the unit within the rated specifications.
Failure to follow this instruction may result in fire or shortening the life cycle of the unit.
Do not use loads beyond the rated switching capacity of the relay contact.
Failure to follow this instruction may result in insulation failure, contact melt, contact failure,
relay broken, or fire, etc.
When connecting magnet contact as load of relay contact output, connect surge absorber
on coil part of contact.
Failure to follow this instruction may result in malfunction.
Do not use water or oil-based detergent when cleaning the unit. Use dry cloth to clean the
unit.
Failure to follow this instruction may result in electric shock or fire.
Do not use the unit where flammable or explosive gas, humidity, direct sunlight, vibration, or
impact may be present.
Failure to follow this instruction may result in fire or explosion.
Keep dust and wire residue from flowing into the unit.
Failure to follow this instruction may result in fire or malfunction.
Check the polarity of the power contact before wiring the unit.
Failure to follow this instruction may result in fire or explosion.
Check the polarity of the terminal when connecting a temperature sensor to the unit
Failure to follow this instruction may result in cause malfunction.
Check the connection diagram of this manual before supplying power.
Failure to follow this instruction may result in fire.
Do not touch terminal during dielectric or insulation resistance test.
Failure to follow this instruction may result in electric shock.
Use insulation transformer and noise filter power for too much noise from the power. Attach
noise filter on the grounded panel, etc. Use short cables for noise filter output part and
power terminal of the unit.
Failure to follow this instruction may result in product damage, malfunction by surge, etc.
Before connecting temperature sensor (thermocouple, RTD) and analog (voltage, current)
input, set jumper pin of universal input card as input type.
Failure to follow this instruction may result in product damage and malfunction.
Do not connect or separate input, output cards while power is ON.
Failure to follow this instruction may result in serious damage.
Do not open the cover or insert your finger during operation.
Failure to follow this instruction may result in electric shock.
Do not control the alarm output or measure the data during firmware upgrade. Failure to
follow this instruction may result in malfunction. Alarm output, contact input, data
measurement do not operate normally.
After completing firmware upgrade, check the complete message and turn OFF to ON the
power.
Failure to follow this instruction may result in malfunction.

Safety Considerations
viii © Copyright Reserved Autonics Co., Ltd.
All parameter set value is reset after firmware upgrade. It may not operate as same way
with before upgrade operation.
Use voltage output of transmitter power output card only for transmitter power.
Failure to follow this instruction may result in output module damage.
The specifications and dimensions of this manual are subject to change
without notice.

Table of Contents
© Copyright Reserved Autonics Co., Ltd. ix
Table of Contents
Preface .............................................................................................................................iii
User Manual Guide ......................................................................................................... iv
User Manual for Communication Symbols....................................................................... v
Safety Considerations ..................................................................................................... vi
Table of Contents ............................................................................................................ ix
1Modbus RTU protocol............................................................................... 11
1.1 Read Coil Status(Func01–01H)......................................................................... 11
1.2 Read Input Status(Func02–02H) .......................................................................12
1.3 Read Holding Registers(Func03–03H) .............................................................13
1.4 Read Input Registers(Func04–04H)..................................................................14
1.5 Preset Single Registers(Func06–06H)..............................................................15
1.6 Preset Multiple Registers(Func16–10H) ...........................................................16
1.7 Exception process (Exception Response-Error Code) .....................................17
2Modbus TCP protocol...............................................................................19
2.1 Read Coil Status(Func01–01H).........................................................................20
2.2 Read Input Status(Func02–02H) .......................................................................21
2.3 Read Holding Registers(Func03–03H) .............................................................22
2.4 Read Input Registers(Func04–04H)..................................................................23
2.5 Preset Single Registers(Func06–06H)..............................................................24
2.6 Preset Multiple Registers(Func16–10H) ...........................................................25
2.7 Exception process (Exception Response-Error Code) .....................................26
3Modbus Mapping Table ............................................................................27
3.1 Read Coil Status(Func 01) / Force Single Coil(Func 05) ..................................27
3.2 Read Discrete Input Status(Func 02)..............................................................28
3.3 Read Input Register(Func 04) ...........................................................................30
3.4 Read Holding Register(Func 03) / Preset Single Register(Func 06) / Preset
Multiple Registers(Func 16) ...........................................................................................34
3.4.1 INPUT SETUP(Input setting)..................................................................... 34
3.4.2 ALARM SETUP(Alarm setting) .................................................................. 59
3.4.3 DIGITAL INPUT SETUP(Digital input setting)............................................ 73
3.4.4 COMMUNICATION SETUP(Communication setting)................................ 77
3.4.5 RECORD SETUP(Record setting .............................................................. 78
3.4.6 SYSTEM SETUP(System setting)............................................................. 80
3.4.7 FILE/MEMORY SETUP(File/Memory setting)............................................ 81
3.4.8 USER INFORMATION SETUP(User information setting).......................... 81

Table of Contents
x © Copyright Reserved Autonics Co., Ltd.

1Modbus RTU protocol
© Copyright Reserved Autonics Co., Ltd. 11
1Modbus RTU protocol
1.1 Read Coil Status(Func01–01H)
Reads the output (OX reference, Coil) ON/OFF status in the Slave device.
(1) Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points (Number of data) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data Data Data
Error Check(CRC16)
Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below example is to read the output status (ON: 1, OFF: 0) of 10EA within coil 00001(0000
H) to 00010(0009 H) on the Slave(Address 17) from the Master.
Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
11 H 01 H 00 H 00 H 00 H 0A H ## H ## H
The below example is when coil 00008(0007 H) to 00001(0000 H) value on the Slave is “ON-
ON-OFF-OFF-ON-ON-OFF-ON” and 00010(0009 H) to 00009(0008 H) value is “OFF-ON”.
Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data
(00008 to 00001)
Data
(00010 to 00009)
Error Check(CRC16)
Low High
11 H 01 H 02 H CD H 01 H ## H ## H
CRC16
CRC16

1 Modbus RTU protocol
12 © Copyright Reserved Autonics Co., Ltd.
1.2 Read Input Status(Func02–02H)
Reads the input (1X reference) ON/OFF status in the Slave device.
(1) Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data Data Data
Error Check(CRC16)
Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below example is to read the input status (ON: 1, OFF: 0) of 10EA within 10001(0000 H) to
10010(0009 H) on the Slave(Address 17) from the Master.
Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
11 H 02 H 00 H 00 H 00 H 0A H ## H ## H
The below example is when 10008(0007 H) to 10001(0000 H) value on the Slave is “ON-ON-
OFF-OFF-ON-ON-OFF-ON” and 10010(0009 H) to 10009(0008 H) value is “OFF-ON”.
Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data
(00008 to 00001)
Data
(00010 to 00009)
Error Check(CRC16)
Low High
11 H 02 H 02 H CD H 01 H ## H ## H
CRC16
CRC16

1Modbus RTU protocol
© Copyright Reserved Autonics Co., Ltd. 13
1.3 Read Holding Registers(Func03–03H)
Reads the binary data of Holding Registers(4X reference) in the Slave device.
(1) Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data Data Data Error Check(CRC16)
High Low High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below example is to read 2EA value within Holding Register 40001(0000 H) to 40002(0001
H) on the Slave(Address 17) from the Master.
Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
11 H 03 H 00 H 00 H 00 H 02 H ## H ## H
The below example is when 40001(0000 H) value on the Slave is “555(22B H)” and 40002(0001
H) value is “100 (64 H)”.
Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data Data Error Check(CRC16)
High Low High Low Low High
11 H 03 H 04 H 02 H 2B H 00 H 64 H ## H ## H
CRC16
CRC16

1 Modbus RTU protocol
14 © Copyright Reserved Autonics Co., Ltd.
1.4 Read Input Registers(Func04–04H)
Reads the binary data of Input Registers(3X reference) in the Slave device.
(1) Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data Data Data
Error Check(CRC16)
Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below is to read 2EA value within Input Register 30001(0000 H) to 30002(0001 H) on the
Slave(Address 17) from the Master.
Query(Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
11 H 04 H 00 H 00 H 00 H 02 H ## H ## H
The below example is when 30001(0000 H) value on the Slave is “10(A H)” and 30002(0001 H)
value is “20(14 H)”.
Response(Slave)
Slave Address Function
(Command)
Byte Count
(Number of
data byte)
Data Data Error Check(CRC16)
High Low High Low Low High
11 H 04 H 04 H 00 H 0A H 00 H 14 H ## H ## H
CRC16
CRC16

1Modbus RTU protocol
© Copyright Reserved Autonics Co., Ltd. 15
1.5 Preset Single Registers(Func06–06H)
Writes the binary data of single Holding Registers (4X reference) in the Slave device.
(1) Query(Master)
Slave Address Function
(Command)
Register Address Preset Data(Data) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
Slave Address Function
(Command)
Register Address Preset Data(Data) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below example is to write “10(A H)” at Holding Register 40001(0000 H) of Slave(Address
17) from the Master.
Query(Master)
Slave Address Function
(Command)
Starting Address Preset Data(Data) Error Check(CRC16)
High Low High Low Low High
11 H 06 H 00 H 00 H 00 H 0A H ## H ## H
Response(Slave)
Slave Address Function
(Command)
Starting Address Preset Data(Data) Error Check(CRC16)
High Low High Low Low High
11 H 06 H 00 H 00 H 00 H 0A H ## H ## H
CRC16
CRC16

1 Modbus RTU protocol
16 © Copyright Reserved Autonics Co., Ltd.
1.6 Preset Multiple Registers(Func16–10H)
Writes the binary data of Holding Registers (4X reference) continuously in the Slave device.
(1) Query(Master)
Slave
Address
Function
(Comma
nd)
Starting Address
No. of Register
(Number of
register)
Byte Count
(Number of
data byte)
Data Data Error Check
(CRC16)
High Low High Low High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
Slave Address Function
(Command)
Starting Address No. of Register
(Number of register) Error Check(CRC16)
High Low High Low Low High
1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below example is to write all “10(A H)” at Holding Register 40001(0000 H) to 40002(0001 H)
of the Slave(Address 17) from the Master.
Query(Master)
Slave
Address
Function
(Comma
nd)
Starting Address
No. of Register
(Number of
register)
Byte Count
(Number of
data byte)
Data Data Error Check
(CRC16)
High Low High Low High Low High Low Low High
11 H 10 H 00 H 00 H 00 H 02 H 04 H 00 H 0A H 00 H 0A H ## H ## H
Response(Slave)
Slave Address Function
(Command)
Starting Address No. of Register
(Number of register) Error Check(CRC16)
High Low High Low Low High
11 H 10 H 00 H 00 H 00 H 02 H ## H ## H
Except downloading the pre-designated min/max parameter accoriding to input specification or
default value from PC loader program, it is recommended to use signle register write (Single
Register Write) than multi register write (Multi Regiter Write) to connect external device such as
PLC, graphic panel, etc.
CRC16
CRC16

1Modbus RTU protocol
© Copyright Reserved Autonics Co., Ltd. 17
1.7 Exception process (Exception Response-Error Code)
If communication error occurs, it sends response command and transmits the applicable
Exception Code after setting(1) the highest-level bit of received commend (Function).
Slave Address
Function
(Command)
+80 H
Exception Code
Error Check(CRC16)
Low High
1Byte 1Byte 1Byte 1Byte 1Byte
ILLEGAL FUNCTION (Exception Code: 01 H): Command is not supported.
ILLEGAL DATA ADDRESS (Exception Code: 02 H): Starting address of the queried data is
inconsistent with transmittable data address.
ILLRGAL DATA VALUE (Exception Code: 03 H): The number of the queried data is
inconsistent with the number of transmittable data.
SLAVE DEVICE FAILURE (Exception Code: 04 H): Not properly completes the queried
command.
The below example is to read the output status (ON: 1, OFF: 0) of non-existing coil 01001(03E8
H) on the Slave(Address 17) from the Master.
Query (Master)
Slave Address Function
(Command)
Starting Address No. of Points(Number of data) Error Check(CRC16)
High Low High Low Low High
11 H 01 H 03 H E8 H 00 H 01 H ## H ## H
Response (Slave)
Slave Address
Function
(Command)
+80 H
Exception Code
Error Check(CRC16)
Low High
11 H 81 H 02 H ## H ## H
CRC16

1 Modbus RTU protocol
18 © Copyright Reserved Autonics Co., Ltd.

2Modbus TCP protocol
© Copyright Reserved Autonics Co., Ltd. 19
2Modbus TCP protocol
Modbus TCP is the communication using TCP/IP network consisting of MBAP(MODBUS
Application Protocol header) and PDU(Protocol Data Unit).
MBAP Header
(7 Byte)
Function code
(1 Byte)
Data
(n Byte)
MBAP Header is as following table.
Fields Length Description Slave (Client) Master (Server)
Transaction
Identifier 2 Byte Transaction
identifier Allots from Client
Copies and transfers
the received value
from the Master
Protocol
Identifier 2 Byte
Protocol identifier
(0 = MODBUS
protocol)
Allots from Client
Copies and transfers
the received value
from the Master
Length 2 Byte Next data length Next data length
(Unit: Byte)
Next data length
(Unit: Byte)
Unit Identifier 1 Byte Identifier Allots from Client
Copies and transfers
the received value
from the Master
TCP/IP communication port uses "502".
For more information about MODBUS TCP, refer
to http://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf file.
PDU
MODBUS TCP

2 Modbus TCP protocol
20 © Copyright Reserved Autonics Co., Ltd.
2.1 Read Coil Status(Func01–01H)
Reads the output (OX reference, Coil) ON/OFF status in the Slave device.
(1) Query(Master)
MBAP Header Function
(Command)
Starting Address No. of Points(Number of data)
High Low High Low
7Byte 1Byte 1Byte 1Byte 1Byte 1Byte
(2) Response(Slave)
MBAP Header Function
(Command)
Byte Count
(Number of data
byte)
Data Data Data
7Byte 1Byte 1Byte 1Byte 1Byte 1Byte
The below example is to read the output status (ON: 1, OFF: 0) of 10EA within coil 000001(0000
H) to 000010(0009 H) on the Slave from Master.
Query(Master)
MBAP Header Function
(Command)
Starting Address No. of Points(Number of data)
High Low High Low
00 0a 00 00 00 06 01H 01 H 00 H 00 H 00 H 0A H
The below example is when coil 000008(0007 H) to 000001(0000 H) value on the Slave is “ON-
ON-OFF-OFF-ON-ON-OFF-ON” and 000010(0009 H) to 000009(0008 H) value is “OFF-ON”.
Response(Slave)
MBAP Header Function
(Command)
Byte Count
(Number of data byte)
Data
(000008 to 000001)
Data
(000010 to 000009)
00 0a 00 00 00 05 01H 01 H 02 H CD H 01 H
Other manuals for krn100 series
5
Table of contents
Other Autonics Voice Recorder manuals