Xinje XD Series User Manual page 264

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

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
Read
switch
M0
SM162
Read
Port 2 RS232
switch
sending flag
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
MOV
D0: : ascii code
MOV
D1: R ascii code
MOV
D2: T ascii code
MOV
D1: CR ascii code
SEND D0
D0: : ascii code
RCV
D10:Receive starting
register
263
H3A
D0
0
H52
D1
0
H54 D2
0
H0D
D3
0
K4
K2
0
D10
K4
K2
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents