EasyManua.ls Logo

Xinje XD5 - Page 264

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
Loading...
263
3. make the program according to the descriptions in chapter 6-3-3.
Read temperature: : R T CR
“ : ” -------------- data start
“R” --------------- read
“T” --------------- temperature
“CR” ------------- enter, data end
Program:
M0
M0
MOV H3A D0
MOV H52 D1
MOV H54 D2
MOV H0D D3
SEND D0 K4 K2
RCV D10 K4 K2
Read
switch
D0:ascii code
D1Rascii code
D2Tascii code
D1CRascii code
D0:ascii code
SM162
Port 2 RS232
sending flag
Read
switch
D10Receive starting
register
0
0
0
0
0
0
When trying to communicate between PLC and other intelligent devices, it is suggested to use
serial debugging tool to determine the data format of communication, that is, protocol. The
advantages of this method are: the serial debugging tool is easy to modify and flexible to use;
after the serial debugging tool determines that communication can be successful, the PLC

Table of Contents

Related product manuals