EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-A series

Mitsubishi MELSEC-A series Programming Manual

Mitsubishi MELSEC-A series
508 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #354 background imageLoading...
Page #354 background image
8. MICROCOMPUTER MODE
8 4
MELSEC-A
8.3 Using User-Written Microcomputer Programs
A source program written by the user in the 8086 assembly language is converted to
a machine language using assembler commands of CP/M or MS-DOS. This
converted program is called "the object program" and is to be stored in the
microcomputer program area of the CPU using the system floppy disk for a
peripheral device which has microcomputer mode.
(1) Processes from writing the source program to storing it in the microcomputer
program area
The flow chart below describes processes from writing the source program to storing
it in the microcomputer program area in the CPU using the CP/M 86 which is booted
with the SW C-BAS type GPP-BASIC package.
(2) Precautions on preparing the microcomputer program
1) Provide the PUSH instruction at the start of the microcomputer program so
that contents of the registers used during execution are saved in the stack
areas. Also, provide the POP instruction at the end of the program so that
the contents of registers saved in the stack areas are returned.
2) Initialize the registers to be used in the microcomputer program at the start of
the microcomputer program. Contents of the registers when the
microcomputer program is called from the sequence program are not
definite.
3) Since the microcomputer program is executed only when it is called from the
sequence program with the SUB(P) instruction, the sequence program is
always required.
CP/M 86 system booting
Insert the SW C-BAS system disk in drive A of the A6GPP
to boot CP/M 86.
……..
Write the source program
using the ED (text editor)
command.
Use the ED command to write the source program in the
8086 assembly language, and to store it on a user's flopp
y
disk. (File identifier: .ASM)
……..
Assemble the source
program using the ASM86
(assembler) command.
Assemble the source program written in assembly language
and generate the object program using the ASM86 command.
(File identifier: .HEX)
……..
Generate the load program
using the GENCMD (CMD
file generation) command.
Use the GENCMD command to generate the load program
from the object program which can be executed. (File
identifier: .COM)
……..
Unite the microcompute
r
program with the sequence
program using the UPC
(
unite
)
command.
Unite the load program which can be executed with the
sequence program and store it on a user’s floppy disk using
the UPS command.
……..

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-A series and is the answer not in the manual?

Mitsubishi MELSEC-A series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-A series
CategoryController
LanguageEnglish

Related product manuals