Mitsubishi Electric AJ71QC24 Manual page 29

Melsec qna serial communications module
Table of Contents

Advertisement

3. PROCEDURE UP TO DATA COMMUNICATIONS DESCRIBED IN THIS GUIDEBOOK MELSEC
QnA
u
START
c
'ST1
Set screen
_ I
1
*SOUSIN
I
I
SDDAT$=input data
I
,
l l -
CLENG=data count
f
CLENG$=data count
1
RD$=receive data
c
: C IM
~
E71 NN" AS#CH% designation contents
S parameter (Character code 128 or greater
characters input enable (S)/disable (N))
X
parameter (execute M / d o not execute (N)
communication control by X-ON/OFFJ
Stop bit length
(1
...
1
blt, 2...1 .5 blts, 3...2 blts)
Data blt length
(7
...
7
blts. 8 . . . 8 bits)
Partty check (E., .Even. 0 . ..Odd, N.. .No parity)
-
RS-232C line
1. (1 :
Can be omitted)
. _ _ _
-PRINT #CH%,ENQ%;" F90000FF0001690000" +CLENG$+SDDAT$
send message contents
Send
a
t
ENQ$
-
CLENG$
SDDAT$
. _ _ _
-RSS=INPUT$(CLENG+I 6,#CH%) recelve message contents
Sendhecelve data
ASCII dlsplay
Receive
e
c
RS-232C CLOSE
I
* I - - - $ .
,- - _,
.
Label name used with the program
The external device reelves the data
shown at the left from the QC24 in
response to the send data shown
above.
.
CLENG
I
c
-
:
Character count "1 5
"
Character count "1
"
Character count "15"+ "1
"
=
E
3 -
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aj71qc24-r2Aj71qc24-r4

Table of Contents