Mitsubishi Electric AJ71C24-S6 User Manual page 311

Melsec-4 computer link module
Table of Contents

Advertisement

APPENDICES
MELSEC-A
APPENDIX 8. Sequence Program Examples Showing How to Output Word Device
Data to the Printer in the No-protocol Mode
This program gives an example of outputting
the data registers (D), link
registers
(W) and file registers (R), and present values of timers and
c o u n t e r s
to the printer in the no-protocol mode.
8 . 1 When Other Than AnACPU is Used
(I) Sequence program example
XOC7
- - I 1
-
XWO
+I
p F p z +
MO XOCO XOC7 YOW
ASC
D10=
+ w - - ' - ] - : I l l y l l y
DlSP
D l 0
XOCO
+
1
-
CIRCUIT END
...
RS232C CD terminal check disable is
se
...
Print command is converted to pulses.
...
Index (title) is converted to ASCII.
...
Target register contents
are
converted to
BCD values.
...
16bit data is divided into 4-bit groups
,
...
Data is reorganized and converted to
word units (16 bits).
. ...
Output data is converted to ASCII.
...
CR-LF code is set.
. .
Send data length is set.
...
Data is output to
send
buffer memory.
...
Send handshake signal is turned ON.
...
Transmission completed.
p c i q
AJ71C24 transmission specification settings for output t o printel
APP
-
27
Baud rate
Data length
Stop bits
Parity check
Comments
KSPR
2400
8
1
Even
KGPR-K
2400
8
1
Even
K 7 P R
9600
8
2
None
Baud rate can be changed t o 2400
A7PR
9600
-
8
1
Even
-

Advertisement

Table of Contents
loading

Table of Contents