3HNA024966-00103高壓控制模塊,ABB使用方法教程
這些邏輯端口號(0和1)顯示在MVME187的引腳為“串行端口1”和分別為“串行端口2”。實際上,它們都是接頭P2的一部分。
輸入和調(diào)試程序?qū)⒂脩舫绦蜉斎胂到y(tǒng)有多種方式執(zhí)行內(nèi)存:
? 使用匯編/反匯編程序創(chuàng)建程序
? 下載S記錄對象文件? 從磁盤讀取程序
使用匯編/反匯編程序創(chuàng)建程序您可以使用內(nèi)存修改(MM)創(chuàng)建程序帶有匯編程序/反匯編程序選項的命令。
3HNA024966-00103高壓控制模塊1、一次輸入一行源代碼。2、輸入每個源線后,將其組裝并目標(biāo)代碼被加載到內(nèi)存中。
參閱摩托羅拉88K RISC CPU用戶的調(diào)試包187Bug的完整詳細(xì)信息手冊匯編程序/反匯編程序。
下載S記錄對象文件輸入程序的另一種方法是從主機(jī)系統(tǒng)。
程序必須采用S記錄格式(如摩托羅拉88K RISC CPU調(diào)試包用戶手冊)和可能已在主機(jī)系統(tǒng)上組裝或編譯。或者,該程序可能是先前使用187Bug MM命令,如上所述,并存儲到主機(jī)使用轉(zhuǎn)儲(DU)命令。主機(jī)系統(tǒng)和之間必須存在通信鏈路MVME187端口1。(硬件配置詳細(xì)信息見第3-20頁連接外圍設(shè)備。)文件下載自主機(jī)通過Load(LO)命令連接到MVME187內(nèi)存。從磁盤讀取程序另一種輸入程序的方法是從磁盤,使用其中一個磁盤命令(BO、BH、IOP)。一旦目標(biāo)代碼已加載到內(nèi)存中,可以設(shè)置斷點如果需要,運行代碼或跟蹤它。從用戶程序調(diào)用系統(tǒng)實用程序一種方便的字符輸入/輸出方法和許多其他方法提供了有用的操作,因此您不必將這些例程寫入目標(biāo)代碼。您可以訪問各種187Bug例程,通過MC88100陷阱指令之一,使用
向量#496。請參閱摩托羅拉88K RISC的調(diào)試包有關(guān)各種陷阱#496實用程序的詳細(xì)信息,請參閱CPU用戶手冊以及如何從用戶程序中調(diào)用它們。
These logical port numbers (0 and 1) are shown in the
pinouts of the MVME187 as “SERIAL PORT 1" and
“SERIAL PORT 2", respectively. Physically, they are all
part of connector P2.
Entering and Debugging Programs
There are various ways to enter a user program into system
memory for execution:
? Create the program with the assembler/disassembler
? Download an S-record object file
? Read the program from disk
Creating a Program with the Assembler/Disassembler
You can create a program using the Memory Modify (MM)
command with the assembler/disassembler option.
1. Enter the program one source line at a time.
2. After each source line is entered, it is assembled and the
object code is loaded to memory.
Refer to the Debugging Package for Motorola 88K RISC CPUs User's
Manual for complete details of the 187Bug
Assembler/Disassembler.
Downloading an S-Record Object File
Another way to enter a program is to download an object file from
a host system.
The program must be in S-record format (described in the
Debugging Package for Motorola 88K RISC CPUs User's Manual) and
may have been assembled or compiled on the host system. Alternately, the program may have been previously created using
the 187Bug MM command as outlined above and stored to the host
using the Dump (DU) command.
A communication link must exist between the host system and the
MVME187 port 1. (Hardware configuration details are provided in
Connecting Peripherals on page 3-20.) The file is downloaded from
the host to MVME187 memory by the Load (LO) command.
Read the Program from Disk
Another way to enter a program is by reading the program from
disk, using one of the disk commands (BO, BH, IOP). Once the
object code has been loaded into memory, you can set breakpoints
if desired and run the code or trace through it.
Calling System Utilities from User Programs
A convenient way of doing character input/output and many other
useful operations has been provided so that you do not have to
write these routines into the target code. You can access various
187Bug routines via one of the MC88100 TRAP instructions, using
vector #496. Refer to the Debugging Package for Motorola 88K RISC
CPUs User's Manual for details on the various TRAP #496 utilities
available and how to invoke them from within a user program.