Omron CQM1H - PROGRAM Programming Manual page 448

Programmable controllers; inner boards
Table of Contents

Advertisement

Communications Instructions
Flags
Only one communications sequence can be executed at a time for each port
and an error will occur if PMCR(––) is executed when that port's Protocol
Macro Executing Flag is already ON. Be sure to include the flag as a normally
closed execution condition to prevent a second communications sequence
from being executed before the first has been completed.
Execution
condition
Control Word (C)
The first digit of the control word (1 or 2) specifies the Serial Communications
Board port and the last three digits specify the communications sequence
(000 to 999), as shown in the following diagram.
C:
Digit 1: Port specifier
First Send Word (S)
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 0 and 0128 words can be sent.
If there is no send data, always set 0000 as a constant for S. An error will
occur and the Error Flag will turn ON if any other constant or a word address
is given and PMCR(––) will not be executed.
n+1
First Receive Word (R)
These words contain received data. Specify a word address for R even if no
data is being received. If a constant is set for R, an error will occur, the Error
Flag will turn ON, and PMCR(––) will not be executed.
R
m
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
R is not BCD or DM 6144 through DM 6655 has been used for R.
Another PMCR(––) instruction was already in progress and the Proto-
col Macro Executing Flag was ON when the instruction was executed.
20708
or
20712
@PMCR(−−)
Digits 2 to 4: Communications sequence number
(000 to 999)
1: Serial Communications Board port 1
2: Serial Communications Board port 2
Number of send words + 1
(n+1 = 0001 to 0129)
Prepare n words of data in
advance (n = 0 to 128.)
The number of words of data
received + 1 is automatically
stored here.
The m words of data that is
received is stored here.
Section 5-30
C
S
R
423

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents