EasyManuals Logo

Xinje XD Series User Manual

Xinje XD Series
456 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 #261 background imageLoading...
Page #261 background image
260
Take 06H function code(write single register)as example, and introduce data format(other
functions are similar to this)
E.g.
upper computer write data K5000(H1388) to PLC H0002 (D2).
ASCII mode
Start mark
3AH
ID
30H
31H
Function code
30H
36H
Register ID high byte
30H
30H
Register ID low byte
30H
32H
Data content high byte
31H
33H
Data content low byte
38H
38H
LRC
35H
43H
End mark
0DH
0AH
Description
1. address is PLC station number.
2. Function code is Modbus-ASCII protocol read/write code.
3. Register ID is the PLC modbus communication ID, please see chapter 7-2-2.
4. Data content is the value in D2.
5. LRC CHECK Low / CRC CHECK High is low and high bit of CRC check value.
If two pieces of Xinje XD3 PLC communicate with each other, write K5000 to D2.
M0
REGW K1 H0002 K5000 K2
M0 is trigger condition (rising edge). When Xinje PLC communicates by Modbus, if
communication fails, the instruction will try twice. If the third time communication fails, then
communication ends.
The relationship between REGW and ASCII protocol (other instructions are similar to this):
Complete data string: 3AH 30H
31H 30H 36H 30H 30H 30H
32H 31H 33H 38H 38H 35H 43H
(system take CRC checking automatically)
If monitor the serial port2 by serial port debugging tool, the datum are: 3AH 30H 31H 30H
36H 30H 30H 30H 32H 31H 33H 38H 38H 35H 43H 0DH 0AH
Note: The data does not distinguish decimal, binary, hexadecimal etc. For example, B10000,
K16 and H10 are the same value, so the following instructions are the same.
REGW
Function code 06H
K1
Station number
H0002
Modbus ID
K5000
Data content is 1388H
K2
PLC communication serial port
tudonghoatoancau.com

Table of Contents

Other manuals for Xinje XD Series

Questions and Answers:

Question and Answer IconNeed help?

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

Xinje XD Series Specifications

General IconGeneral
Input Voltage24V DC
Storage Temperature-20°C to 70°C
Protection ClassIP20
TypePLC
SeriesXD
Programming LanguageLadder Logic, Instruction List
Communication InterfaceRS232, RS485
Power Supply24V DC
Digital InputsAvailable (number varies by model)
Digital OutputsAvailable (number varies by model)
Analog InputsAvailable (number varies by model)
Analog OutputsAvailable (number varies by model)
Output TypeRelay, Transistor
Number of InputsVaries by model (see Digital Inputs and Analog Inputs)
Number of OutputsVaries by model (see Digital Outputs and Analog Outputs)
Operating Temperature0°C to 50°C
Humidity5% to 95% (non-condensing)