EasyManuals Logo

Xinje XD5 User Manual

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #237 background imageLoading...
Page #237 background image
236
Modbus-ASCII data structure
ASCII mode:
For Modbus ASCIIAmerican Standard Code for Information Interchangemode in serial
links, every 8-bit byte is sent as two ASCII characters. When communication links and
devices do not fit RTU mode timing monitor, we usually use the ASCII mode.
NoteOne byte needs two characters, so ASCII mode has lower inefficiency than RTU
mode.
E.g.: Byte 0X5B will be encoded as two characters: 0x35 and 0x42ASCII code 0x35
="5" 0x42 ="B" .
ASCII mode frame check domainLongitudinal Redundancy Checking (LRC)
ASCII mode frame description:
Start mark
Modbus no.
Function code
data
LRC
End mark
1 character
2 characters
2 characters
0~252*2
characters
2 characters
2 characters
0x3A
0x0D
0x0A
Format
STX (3AH)
Start mark=3AH
Address code high bit
Communication positionno):
Consist of 2 ASCII codes
Address code low bit
Function code high bit
Function codecommand):
Consist of 2 ASCII codes
Function code low bit
Instruction start ID
Command start bit
Consist of 4 ASCII codes
Instruction start ID
Instruction start ID
Instruction start ID
Data length
Length from start to end
Consist of 4 ASCII codes
Data length
Data length
Data length
LRC check high bit
LRC check code
Consist of 2 ASCII codes
LRC check low bit
END high bit
End mark
END Hi=CR0DH),END Lo=CR
0AH
END low bit
2. Communication address
00HAll Xinje XC series PLC broadcast—— slave stations do not response.
01HCommunicate with address 01H PLC.
0FHCommunicate with address 15H PLC.
10HCommunicate with address 16H PLC.
And so on, up to 254FEH.
3. Function and DATA
Function
code
Function
Corresponding modbus
01H
Read coil
COLR
02H
Read input coil
INRR

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Xinje XD5 and is the answer not in the manual?

Xinje XD5 Specifications

General IconGeneral
BrandXinje
ModelXD5
CategoryController
LanguageEnglish

Related product manuals