
Chapter 2 Built-in Cnet communication
2-77
B
u
ilt
-in
C
omm
2) Frame structure in RTU mode
Frame structure in the RTU mode is as follows.
Classification
Start
Station
number
Function code
Data
Error check
End
size(byte)
Idle time
1
1
N
2
Idle time
(1) Characteristic of RTU mode
a) It uses hexadecimal.
b) Start character is station number and frame is classified by CRC error check.
c) Start and end of frame is classified by adding idle time of 1 bit.
d) Between frames, there is interval of 3.5 character time. When exceeding 1.5 character time, it is acknowledged
as independent frame.
(2) Address area
a) It consists of 1 byte.
b) When using the XGT Cnet I/F module, range of station is 0~31.
c) Station number 0 is used for client.
d) When server responds, it contains self address to response frame to know client’s response.
(3) Data area
a) Transmits the data by using the Hex. data, data structure changes according to function code.
b) In case of receiving normal frame, it responds as normal response.
c) In case of receiving abnormal frame, it responds by using error code.
(4) Error check area
It determines if frame is normal or not by using CRC check of 2 byte.
(5) Modbus address regulation
Address in the data starts from 0 and it is same with value that is minus 1 from modbus memory, Modbus address
is same with address 1 of data.
3) Expression of data and address
To express data and address of modbus protocol, the characteristic is as follows.
1) It used hexadecimal as basic form.
2) In the ASCII mode, Hex data is converted into ASCII code.
3) RTU mode uses Hex data.
4) Each function code has following meaning.
Code(Hex)
Purpose
Used area
address
Max. response data
01
Read Coil Status
Bit output
0XXXX
2000bit
02
Read Input Status
Bit input
1XXXX
2000bit
03
Read Holding Registers
Word output
4XXXX
125word
04
Read Input Registers
Word input
3XXXX
125word
05
Force Single Coil
Bit output
0XXXX
1bit
06
Preset Single Register
Word output
4XXXX
1word
0F
Force Multiple Coils
Bit output
0XXXX
1968bit
10
Preset Multiple Registers
Word output
4XXXX
120word
Содержание XBE-DC08A
Страница 124: ...Main Chapter 1 Configuration and Operation Mode of Programs 1 27 1 Memory block diagram ...
Страница 155: ...Main Chapter 2 CPU Function 2 29 Notice For more details on the monitor refer to the XG5000 manual ...
Страница 504: ...Position Chap 6 Commands 6 61 6 11 Function blocks related to Servo Drive ...
Страница 512: ...Positioning Chapter 7 Program 7 8 manual operation 7 1 4 Parameter and Operation Data Setting 1 Parameter Setting ...
Страница 644: ...Positioning Chapter 8 Functions 8 91 ...
Страница 727: ...Positioning Chapter 9 Positioning Error Information Solutions 9 13 ...
Страница 861: ...Special Chapter 1 Embedded Analog 1 39 5 Select View Variables Comments Variables and comments are both displayed ...
Страница 1206: ...Appendix 2 Dimension App2 1 Appendix 2 Dimension Unit mm 1 CPU Type XEC DN32U 2 Positioning Type XEC DN32UP ...
Страница 1207: ...Appendix 2 Dimension App2 2 2 Analog Type XEC DN32UA ...
Страница 1209: ...Appendix 2 Dimension App2 4 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Страница 1210: ...Appendix 2 Dimension App2 5 4 Extension Cnet I F Module XBL C41A XBL C21A ...