Communications Instructions
Limitations
Description
Application Example
420
N must be IR 000, IR 001, IR 002, or IR 003.
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(––) cannot be executed for the CPU Unit's built-in RS-232C port if pin 5
on the DIP switch is ON.
STUP(––) cannot 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
port specified by N.
N determines which part of the RS-232C Setup is changed.
N
IR 000
Built-in RS-232C port (PC Setup: DM 6645 to DM 6649)
IR 001
Serial Communications Board port 1 (PC Setup: DM 6555 to DM 6559)
IR 002
Serial Communications Board port 2 (PC Setup: DM 6550 to DM 6554)
IR 003
Peripheral port (PC Setup: DM 6650 to DM 6654)
If S is a word address, the contents of S through S+4 are copied to the 5
words in the PC Setup that contain the settings for the port specified by N.
If S is input as the constant #0000, the settings for the specified port are reset
to their default values.
S
Word
The contents of S through S+4 are copied to the part of the PC Setup that
address
contains the settings for the port specified by N.
Constant
The settings for the port specified by N are reset to their default values.
(#0000)
The following table lists the Settings Changing Flags or Protocol Macro Exe-
cuting Flags for each port. The corresponding flag will remain ON while
STUP(––) is being executed and will be turned OFF when the change has
been completed.
Port
Built-in RS-232C port
Peripheral port
Serial Communi-
Port 1
cations Board
Port 2
This example shows a program that transfers the contents of DM 0100
through DM 0104 to the PC Setup area for Serial Communications Board port
1 (DM 6555 through DM 6559) when IR 00000 is ON and IR 20708 is OFF.
00000
20708
@STUP(−−)
DM 0100
Specified Port
Function
Flag name
CPU Unit RS-232C Port Settings
Changing Flag
CPU Unit Peripheral Port Settings
Changing Flag
Protocol Macro Executing Flag
Protocol Macro Executing Flag
Address Instruction
00000
LD
001
00001
AND NOT
00002
@STUP(−−)
Section 5-30
Flag address
AR 2404
AR 2403
IR 20708
IR 20712
Operands
00000
20708
001
DM
0100
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?