Mitsubishi Electric AJ71C24-S6 User Manual page 313

Melsec-4 computer link module
Table of Contents

Advertisement

APPENDICES
MELSEC-A
8.2
When the AnACPU is used
The following is a
program example using A2A(-SI)/A3ACPU dedicated
instruction (BINDA)
to
execute the same processing as the program shown
To output data stored in register D l 0 to
KGPR
(print data : D l 0 = [
] [ ] [ ] [ I )
0
. .
A byte is set
as a
unit of the send data.
...
RSZ32C CD terminal check disabled is set.
9
...
Print command is converted to pulse.
!4
...
M I for print instructions is set.
...
Index (title) is converted to ASCII.
...
CR LF code is set (for printing).
...
The processing method of D+3 of BINDA
instruction is set.
I
LEDA
1
BINDA
/
data is converted to ASCII.
After converting D l 0 to ASCII, a
-
4
LEDC
I
D l 0
character string is stored in 8333 to D35.
1
t
LEDC
I
D33
M I XOCO XOC7 Y O N
;7
k v +
l + T 7
1
LEDB
1 -
...
Send data length (12 bytes) is set.
...
Send data storage head device is
set.
...
Bit device turned ON at send completion is
set.
...
When transmission is completed, print
command M I is reset.
CIRCUIT END
...
Data is transmitted.
t
Appendix 8.1 gives the AJ71C24 transmission specification setting for outputting data to the
printer.
I
SUB IHWOC
...
Head
1 1 0
address of AJ71C24 is set.
APP
-
29

Advertisement

Table of Contents
loading

Table of Contents