Change Rs-232C Setup -- Stup - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

7-28-3 CHANGE RS-232C SETUP - - STUP(- - - -)
Limitations
Description
The PC Setup is not set for the correct communications mode.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
TXD(48) is already being executed.
AR 08: AR 0805 will be turned ON when it is possible to transmit through the
RS-232C port. AR 0813 will be turned ON when it is possible to transmit
through the peripheral port.
Ladder Symbols
STUP(----)
N
S
This instruction is available in the CPM2A/CPM2C and SRM1(-V2) only.
N must be 000.
S and S+4 must be in the same data area.
(S can be set to #0000 to change the RS-232C settings to their defaults.)
STUP(----) can't be executed within an interrupt subroutine.
When the execution condition is OFF, STUP(----) is not executed. When the
execution condition is ON, STUP(----) changes the PC Setup settings for the
built-in RS-232C port. The settings are changed in the PC Setup, but they are
not written to flash memory until the PC is switched to PROGRAM mode (from
RUN or MONITOR mode) or the PC is turned OFF and then ON again.
In CPM2A/CPM2C and SRM1(-V2) PCs, N must be 000 because STUP(----) can
change the RS-232C Setup for the built-in RS-232C port (DM 6645 to DM 6649)
only.
If S is a word address, the contents of S through S+4 are copied to DM 6645 to
DM 6649.
If S is input as the constant #0000, the settings for the built-in RS-232C port are
returned to their default values.
S
Word address
Constant (#0000) The settings in DM 6645 through DM 6649 are returned to their
Note
1. The Changing RS-232C Setup Flag (SR 25312) will be ON while STUP(----)
is being executed; it is turned OFF when STUP(----) is completed.
2. In the CPM2A/CPM2C, an error will occur and STUP(----) will not be execut-
ed if the Communications Switch on the front of the CPU Unit is ON. When
this switch is ON, RS-232C communications are governed by the default
settings.
@STUP(----)
N
S
Function
The contents of S through S+4 are copied to DM 6645 through
DM 6649.
default values.
Section
Operand Data Areas
N: RS-232C port specifier
000
S: First source word
IR, SR, AR, DM, HR, LR, #
The third operand is ignored.
7-28

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents