Omron C200HX Operation Manual page 356

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Serial Communications Instructions
Application Example
Flags
338
S
Word
The contents of S through S+4 are copied to the part of the PC Setup
address
that contains the settings for the port specified by N.
Constant
The settings for the port specified by N are returned to their default val-
(#0000)
ues.
This example shows a program that transfers the contents of DM 0100 through
DM 0104 to the PC Setup area for Communications Board port A (DM 6555
through DM 6569).
00000
@STUP(––)
The settings are transferred as shown below. The Changing RS-232C Setup
Flag (SR 27504) will be turned OFF when the transfer has been completed.
DM 0100
1001
1001
1001
1001
DM 0101
0803
0803
0803
0803
DM 0102
0000
0000
0000
0000
DM 0103
2000
2000
2000
2000
DM 0104
0000
0000
0000
0000
The following table shows the function of the transferred setup data.
Word
Content
(see note)
DM 0100
1001
DM 0101
0803
DM 0102
0000
DM 0103
2000
DM 0104
0000
Note For details on the contents of setup data, refer to 3-6-4 PC Setup.
Indirectly addressed DM word is non-existent. (Content of DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
The port specifier (N) isn't IR 000, IR 001, or IR 002.
Port A has been specified, but pin 2 of the DIP switch is ON.
The PC Setup is write-protected. (Pin 1 of the DIP switch is ON.)
The specified source words exceed the data area.
The instruction was executed from an interrupt program.
Function
Address Instruction
00000
001
00001
DM 0100
000
DM 6555
DM 6556
DM 6557
DM 6558
DM 6559
Enables the communications settings in DM 0101 and
sets the communications mode to RS-232C.
Sets the following communications settings:
9,600 bps, 1 start bit, 8-bit data, 1 stop bit, no parity
No transmission delay (0 ms)
Enables the end code CR, LF.
---
Section 5-27
Operands
LD
00000
@STUP(––)
DM
1001
1001
1001
1001
0803
0803
0803
0803
(Refer to 3-6-4 PC Setup
0000
0000
0000
0000
for details.)
2000
2000
2000
2000
0000
0000
0000
0000
Function
001
0100
000

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents