Appendices; A Introduction - Omron CQM1H-SCB41 Operation Manual

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

Advertisement

Appendices B to N provide information on the standard system protocols provided with the CX-Protocol, the
Serial Communications Boards. Refer to 5-7 Using Protocol Macros for details on using PMCR( ).
Using Standard System Protocols
Standard system protocols can be executed merely by specifying the sequences number to be executed in the
second operand of PMCR( ) and settings the data described in the appendices in the proper format starting
at the word specified with the third operand of PMCR( ). The data received as a response to executing the
sequence will be automatically stored starting at the word specified with the fourth operand of PMCR( ).
Procedure
1,2,3...
1. Set the port number (1 or 2) and the sequence number as BCD values in the first operand of PM-
CR( ).
2. Specify the address of the first word containing the data required for the sequence as the second
operand (S: First word of send data) of PMCR( ).
3. Specify the address of the first word where respond data is to be stored as the third operand (D:
First receive data storage word) of PMCR( ). Unless there is a reason to specify otherwise, set
0000 Hex in D at the initial value.
Example
The following data would be used to execute sequence number 600 in the CompoWay/F Master Protocol for a
transmission with ASCII conversion.
S: Send Data Word Allocation (3rd Operand)
Appendix A
Introduction
PMCR( )
Communications port: 1 (BCD)
1600
Communications sequence number: 600 (BCD)
S
D
First word of
Number of send data words
+0
send data
+1
(Undefined)
+2
(Undefined)
+3
+4
Offset
Contents (data format)
S+0
Number of send data words
(4 digits BCD)
S+1
(Undefined)
S+2
MRC
(2 digits Hex)
S+3
Number of send bytes (4 digits BCD)
S+4
Send data (4-digit Hex)
on
Node number
SRC
Number of send bytes
Send data
0005 to 0128 BCD
Node No. (2 digits
00 to 99
BCD)
SRC (2 digits Hex) Set the command code for the required ser-
vice
Number of data bytes from the next byte
after the command code until the byte just
before the ETX. 0000 to 0492
The data specified in hexadecimal here will
be converted to ASCII and the number of
bytes specified in S+3 will be sent.
Data
137

Advertisement

Table of Contents
loading

Table of Contents