Omron C200HG Computer Hardware User Manual


 
440
Example: R(2N+6)
Specifies the sixth word following the PMCR(––) instructions second operand
for the address or data and adds two words to the specification each time that
the step is repeated.
Common information
Communications data
Communications data
Communications data
Communications data
Communications data
6
th
word (N=0)
8
th
word (N=1)
10
th
word (N=2)
12
th
word (N=3)
14
th
word (N=4)
16
th
word (N=5)
Specifying the first address with
2N+6 (a first order equation using N).
Error Check Code and Length
A SUM, LRC, or CRC error check code and the data length are automatically
added to the message when it is transmitted. When the message is received, the
data is checked for transmission errors using the error check code and the num-
ber of bytes of data specified by the data length are received.
Reception Matrix
If a reception matrix is set in the reception message, up to 15 types of reception
messages can be set and different processes and error processing can be as-
signed to each type of message.
8-6-4 Application Example
Communications sequences can be called and executed by the PMCR(––)
instruction. The following example shows a communications sequence that
transmits five words of data are transmitted one after the other beginning with
the first word after the PMCR(––) instructions second operand and then stores
received data in the word specified in the third operand.
PMCR
#1100
DM0000
DM0010
00000 28908
1, 2, 3... 1. When IR 00000 is ON and SR 28908 (Communications Board Port A
Instruction Execution Flag) is OFF, data communications are carried out
through port A of the Communications Board.
2. DM 0000 is the first word of the transmission data, which is transmitted con-
secutively (5 times) based on the communications sequences repeat
counter.
3. The received data is written to the DM area beginning at word DM 0010.
The Send command must be set in the transmission step and the repeat counter
must be set to 5. The Read Word attribute must be used for the data in the trans-
mission message with the PMCR(––) instructions second operand, and the
first-order equation R(N+1) must be set.
In order to write the reception message to the data area address specified by the
PMCR(––) instructions second operand, the timing for writing the received data
must be set in the response notification parameter of the sequence settings. The
Recv command must be set in each reception step and Yes must be set for the
response notification parameter of the step settings.
The Protocol Macro Function
Section 8-6