Omron CQM1H-SCB41 Operation Manual page 100

Sysmac cqm1h series serial communications board
Hide thumbs Also See for CQM1H-SCB41:
Table of Contents

Advertisement

Using Protocol Macros
Control Data: C
First Send Data Word: S
15
S
S+1
:
:
S+n
First Receive Data Storage
Word (D)
PMCR( ) Operation
15
C:
S specifies the first word of the words containing the data required for send-
ing.
Number of send words
Send data
:
:
The number of send words in S+1 and the following words is stored in S. The
setting range is 0001 to 0129 (4 digits BCD). S is also included in the number
of words.
Note When there is no send data, set S to #0000. If any other constant or a word
address is set, an error will occur, the Error Flag (SR 25503) will turn ON, and
PMCR( ) will not be executed.
D specifies the first word of the area used to store the receive data.
If a word address is specified for D and a response is requested, the data
through the highest location received in the reception buffer will be stored in
memory starting at D+1. The number of words that was stored starting at D+1
will be stored in D. D is included in the number of words.
15
D
D+1
:
:
D+n
The number of words of receive data in D+1 and the following words is stored
in D. The range is 0001 to 0129 (4 digits BCD). D is also included in the num-
ber of words.
Note When there is no receive data, set D to to a dummy word address. If any con-
stant is set, an error will occur, the Error Flag (SR 25503) will turn ON, and
PMCR( ) will not be executed.
When PMCR( ) is executed, the communications sequence specified in bits
00 to 11 of C is executed for the port specified in bits 12 to 15 of C (port 1 or
2).
If an operand is specified as a variable in the send message, data starting in
S+1 for the number of words specified in S is used as the send data. If an
operand is specified as a variable in the receive message, data will be
00
Digits 2 to 4 (bits 00 to 11):
Communications sequence number (000 to 999)
Digit 1 (bits 12 to 15): Port specifier
1: Port 1 (RS-232C)
2: Port 2 (RS-422A/485)
00
Total number of words including S
Number of receive words
Receive data
:
:
Section 5-7
00
Total number of
words including D
85

Advertisement

Table of Contents
loading

Table of Contents