Mitsubishi Electric MELSEC-A AlSJ71C24-R2 User Manual page 95

Computer link module , computer iinkiprinter function module
Table of Contents

Advertisement

7 .
INITIAL SETTING OF TRANSMISSION CONTROL DATA TO
BUFFER MEMORY
MELSEC-A
7.4
Settings i n the No-Protocol Mode
This section describes setting methods and gives no-protocol mode ex-
amples.
7.4.1
Setting the no-protocol mode receive-completed code (for receive with variable-length data)
How to set and modify the receive-completed code and the sequence program
for the receive processing with variable-length data are shown below.
etting method
I
T
-
Enter the required completed code
When the
t
completed
Always write OOH to the higher 8 bits
code
is
set
b15
to
b8 b7
to
bO
POINTS
Buffer memory address 100H
(1) The completed code can be set to any value which makes 1 byte in
the range of O O H to FFH. Since the default value setting is ODOAH,
when the CR and LF codes are received during the data receive, the
read request is transmitted to the sequence program (Xnl is ON). If
the default setting has been changed, when a modified completed
code is received during the data receive, the read request is trans-
mitted to the sequence program.
I
(2) If the length of data to complete data receive is also set, the read
request for the received data is transmitted when the COmtJleted code
I
0
0
or ihe set length of data (whichever comes first) is received. (Xnl is
I
ON)
Default ODOAH (CR,
LF)
(3)
If the completed code is not set, set buffer memory address 100H to
FFFFH. This enables only the setting of data length to complete
receive, and the read of received data by fixed data length is enabled.
xample
To set the end code to ETX (03H) (A1 SJ71 C24 I/O addresses 80 t o 9F)
(Sequence Program)
I - +
ti
TOP
I
H 8
HlOO
H0003
K1
Write the ASCII code for ETX (03H) to
buffer memory address lOOH

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-a a1 sj71 c24-prf

Table of Contents