Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 854

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Serial Communications Instructions
Description
Note
Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
RXD(235) reads data that has been received in no-protocol mode at a serial
port on a Serial Communications Option Board and stores N bytes of data in
words D to D+(N 2)–1. If N bytes of data has not been received at the port,
then only the data that has been received will be stored.
Data can be received only when the port's Receive Ready Flag is ON. The
Receive Ready Flag is A392.14 for serial port 1 and A396.06 for serial port 2.
Execute RXD(235) only when the corresponding Receive Ready Flag is ON.
Up to 259 bytes can be received, including the receive data (N = 256 bytes
max.), the start code, and the end code.
The following diagram shows the order in which data is received and the con-
tents of the receive frame for various settings.
Serial port 1 is the port on the Serial Communications Option Board mounted
in option slot 1 and serial port 2 is the port on the Serial Communications
Option Board mounted in option slot 2.
D
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
---
Specified values
only
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Section 3-23
C
N
#0000 to #0100
(binary) or &0 to
&256 (decimal)
821

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?

Questions and answers

Table of Contents