![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262328.webp)
14 Serial Communications
14-50
CP2E CPU Unit Software User’s Manual(W614)
Example: Writing 3AC5, 9713 Hex to 2 Words, D1000 and D1001
Command (Modbus-RTU Master)
Response (CP2E)
z
Error Response
Field name
Data
Field name
Data
Function code
10 Hex
Function code
10 Hex
Starting address (H)
0
3
Hex
Starting address (H)
0
3
Hex
Starting address (L)
E
8
Hex
(D1000~)
Starting address (L)
E
8
Hex
Quantity of registers (H)
00 HEX
Quantity of registers (H)
00 Hex
Quantity of registers (L)
02 Hex
(2CH)
Quantity of registers (L)
02 Hex
Byte count
04 Hex
Registers value (H)
3
A Hex
Registers value (L)
C5 Hex
Registers value (H)
97 Hex
Registers value (L)
1
3
Hex
Field name
Data length
Data
Function code
1 byte
Function code +
8
0 Hex
For example:
8
6 Hex for Write Single Register (06Hex)
Exception code
1 byte
Reference below
Error code
Field name
Description
01 Hex
Illegal function code
•
An unsupported function code is specified
02 Hex
Illegal data address
•
There is an error in the specified start address
•
The specified start address and Data length exceed the
valid range
0
3
Hex
Illegal data value
•
Data number does not match data length
DM
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1000
3
9
A
7
C
1
5
3
1001
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......