Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 900

Table of Contents

Advertisement

3. Instructions
STUP
Instruction
CHANGE SERIAL PORT
SETUP
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
Control word (port)
S
First source word
C: Control word (port)
15
12
11
C
Always set to 0.
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
OK
OK
OK
S
Flags
Name
Error Flag
862
Mnemonic
Variations
STUP
@STUP
Block program areas
Step program areas
OK
OK
Description
8
7
0
Unit address of port device
CPU Unit: 00 hex
CPU Bus Unit: Unit number + 10 hex
Inner Board: E1 hex (CS Series only)
Serial port number
1 hex: Peripheral port on CPU Unit or Port 1 on CPU Bus Unit or Inner Board
2 hex: Built-in RS-232C port on CPU Unit or Port 2 on CPU Bus Unit or Inner Board
(Settings 3 and 4 hex are reserved.)
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• ON if the values in C are not within range.
• ON if STUP(237) is executed for a port whose Communications Parameter Changing Flag is already
ON.
• ON if STUP(237) is executed in an interrupt task.
• OFF in all other cases.
Function
code
Changes the communications parameters of a
serial port on the CPU Unit, Serial Communica-
237
tions Board (CS Series only), or Serial Communi-
cations Unit (CPU Bus Unit).
STUP
STUP(237)
C
C: Control word (port)
S: First source word
S
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
Not allowed
OK
Data type
Size
UINT
1
UINT
10
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents