Special Instructions; Message Display -- Msg - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Example
Flags

7-26 Special Instructions

7-26-1 MESSAGE DISPLAY - - MSG(46)
Limitations
Description
When the execution condition is OFF, MCRO(99) is not executed. When the
execution condition is ON, MCRO(99) copies the contents of I1 to I1+3 to SR 232
to SR 235, and then calls and executes the subroutine specified in N. When the
subroutine is completed, the contents of SR 236 through SR 239 are then trans-
ferred back to O1 to O1+3 before MCRO(99) is completed.
Note Refer to page 143 for more details on MCRO(99).
In this example, the contents of DM 0010 through DM 0013 are copied to SR 232
through SR 235, and then subroutine 10 is called and executed. When the sub-
routine is completed, the contents of SR 236 through SR 239 are copied to out-
put words DM 0020 to DM 0023.
ER:
A subroutine does not exist for the specified subroutine number.
An operand has exceeded a data area boundary.
Indirectly addressed DM word is non-existent. (Content of
not BCD, or the DM area boundary has been exceeded.)
A subroutine has called itself.
An active subroutine has been called.
Ladder Symbols
MSG(46)
FM
DM 6649 to DM 6655 cannot be used for FM.
When executed with an ON execution condition, MSG(46) reads eight words of
extended ASCII code from FM to FM+7 and displays the message on the Pro-
gramming Console. The displayed message can be up to 16 characters long,
i.e., each ASCII character code requires eight bits (two digits). Refer to Appen-
dix G for the ASCII codes. Japanese katakana characters are included in this
code.
Main program
MCRO(99)
010
DM 0010
DM 0020
Main program
SBN(92)
010
Subroutine
RET(93)
END(01)
@MSG(46)
FM
Section
7-26

DM word is
Operand Data Areas
FM: First message word
IR, SR, AR, DM, HR, LR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents