895
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Serial Communications Instructions
3
STUP
STUP
Applicable Program Areas
Operands
C: Control word (port)
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
CHANGE SERIAL PORT
SETUP
STUP @STUP 237
Changes the communications parameters of a
serial port on the CPU Unit, Serial Communica-
tions Board (CS Series only), or Serial Communi-
cations Unit (CPU Bus Unit).
Symbol
STUP
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK Not allowed OK
Operand Description Data type Size
C Control word (port) UINT 1
S First source word UINT 10
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers
TK CF
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
C
OK OK OK OK OK OK OK OK OK OK OK
OK
--- OK --- --- --- ---
S ---
Name Label Operation
Error Flag 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.
STUP(237)
C
S
C: Control word (port)
S: First source word
15 8 011 712
C
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.)
Always set to 0.