![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414277.webp)
4-3
Section
CPM2A/CPM2C Communications Functions
257
Word
Setting
Function
Bit
DM 6651
00 to 07
Baud rate
00: 1,200 bps; 01: 2,400 bps; 02: 4,800 bps; 03: 9,600 bps; 04: 19,200 bps
As required
08 to 15
Frame format
Start
Length Stop Parity
00:
1
7
1
Even
01:
1
7
1
Odd
02:
1
7
1
None
03:
1
7
2
Even
04:
1
7
2
Odd
05:
1
7
2
None
06:
1
8
1
Even
07:
1
8
1
Odd
08:
1
8
1
None
09:
1
8
2
Even
10:
1
8
2
Odd
11:
1
8
2
None
(Other settings will cause a non-fatal error, the default settings (03) will be used,
and AR 1302 will turn ON.)
DM 6652
00 to 15
Transmission delay (Host Link)
0000 to 9999 (BCD): Set in units of 10 ms.
(Other settings will cause a non-fatal error, the default setting (0000) will be used,
and AR 1302 will turn ON.)
0000 to
9999
DM 6653
00 to 07
00 to 31 (BCD): Node number (Host Link)
(Other settings will cause a non-fatal error, the default setting (00) will be used, and
AR 1302 will turn ON.)
As required
08 to 11
Start code enable (Peripheral port)
0: Disable
1: Use start code in DM 6654.
0 or 1
12 to 15
End code enable (Peripheral port)
0: Disable (number of bytes received)
1: Use end code in DM 6654.
2: CR. LF
(Other settings will cause a non-fatal error, the default setting (0) will be used, and
AR 1302 will turn ON.)
0 to 2
DM 6654
00 to 07
Start code (00 to FF)
(Peripheral port, effective when bits 8 to 11 of DM 6653 are set to 1.)
00 to FF
08 to 15
No. of bytes of data received
(Peripheral port, effective when bits 12 to 15 of DM 6653 are set to 0.)
00: 256 bytes
01 to FF: 1 to 255 bytes
00 to FF
End code (00 to FF)
(Peripheral port, effective when bits 12 to 15 of DM 6653 are set to 1)
00 to FF
Note
1. If SW1 on the front panel of the CPU Unit is ON, the peripheral port will oper-
ate with the default settings regardless of the settings in DM 6645 to
DM 6649.
2. When connecting a computer running Support Software via the peripheral
bus, turn OFF SW1 on the front panel of the CPU Unit and set DM 6650 to
0001 (Host Link). The CPU Unit will automatically switch to peripheral bus
communications for the serial communications port.
The following instructions are used in no-protocol communications.
Mnemonic
Control
Contents
(@)TXD(48)
Communications
port output
Reads data from I/O memory and transmits it in
the specified frame format (the start and end
codes can be enabled/disabled).
(@)RXD(47)
Communications
port input
Receives data in the specified frame format (the
start and end codes can be enabled/disabled)
and stores only the data in I/O memory.
Program