Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 853

Table of Contents

Advertisement

Send area specification
S: First Send Word and Send Area
The first word of the words required to send data is specified. S contains the number of words to be
sent +1 (i.e., including the S word) and send data starts in S+1. Between 0000 and 00FA hex (0 and
250 decimal) words can be sent.
S
n
S+1
to
S+(n-1)
If there is no operand specified in the execution sequence, such as a direct or linked word, specify the
constant #0000 for S. If a word address or register is specified, the data in the word or register must
always be 0000. An error will occur and the Error Flag will turn ON if any other constant or a word
address is given and PMCR(260) will not be executed.
Receive area specification
R: First Receive Word and Receive Area
• Setting Before Executing PMCR
Set the data specified by m (beginning with D) as the initial data for the receive buffer (backup data
for receive failure). Data m can be set to 0002 to 00FA (hex) (2 to 255). If 0000 (hex) or 0001 (hex) is
specified for m, the receive area will be cleared to 0 on receive failure.
• When execution of the protocol macro ends
Received data is automatically stored in words starting with R+1 and the number of words received
plus R (i.e., including R) is automatically written to R between 0000 and 00FA hex (0 and 250 deci-
mal).
R
m
R+1
to
R+(m-1)
If there is no operand specified in the execution sequence, such as a direct or linked word, specify the
constant #0000 for R. If a word address or register is specified, the data in the word or register must
always be 0000.
CPU Unit
Communications
S
sequence number
to
R
to
CS/CJ/NSJ Series Instructions Reference Manual (W474)
(n-1)CH
(m-1)CH
Serial Communications Unit
Port
External
device
3. Instructions
3
815

Advertisement

Table of Contents
loading

Table of Contents