Mitsubishi Electric MELSEC-A Manual Book page 67

Hide thumbs Also See for MELSEC-A:
Table of Contents

Advertisement

5. COMMUNICATIONS IN THE NO-PR,OTOCOL MODE
MELSEC-A
5.5
Transmitting
Data
from
the
PC CPU
Transmit data from the PC CPU to the computer.
The data is to be transmitted in word units.
(Practice)
When the X0 is turned on, the character data "ABCDEFGH" (in ASCII codes)
is written into the buffer memory of the AJ71UC24 on the PRN instruction
from the sequence program.
When the
X1 is
turned on, the written data goes to the computer in the
no-protocol mode.
The computer shows the received data on the CRT display.
5.5.1
Sequence program
[When using a dedicated instruction (PRN)]
X87:
A171
UC24 READY signal
[TO
0008
OlOB
1
d...
No CD
terminal
check
PH
H
K
10
30
XOOOO
MOV
4
D O
}
ASC
ABCDEFGH
D l
}
SET M O
+ H H l
X0001
MO
X0087
[LEDB
PRN
1
H
[SUB 0008
}
'
[LEDC D O
}
[LEDC DI
[LEDC M1
}
C
LEDR}
X0087
[SET
yo0701
62
I
RST YO070
}
...
All send words are stored
into DO.
...
The send data is stored
into the
data
registers D l
to D4.
...
Data
of
the specified
bytes is transmitted.
...
The number of points to
be transmitted is set.
...
Head device number
o f
send data
...
M1
is turned on when the
instruction is completely
executed.
CIRCUIT END
5 - 9

Advertisement

Table of Contents
loading

Table of Contents