Omron C200HE Computer Hardware User Manual


 
335
5-27-4 PROTOCOL MACRO PMCR(––)
C: Control word
IR, SR, AR, DM, HR, TC, LR, #
S: First output word
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
D: First input word
IR, SR, AR, DM, HR, TC, LR
PMCR(––)
C
S
D
@PMCR(––)
C
S
D
Limitations C must be BCD from #1000 to #2999.
DM 6144 through DM 6655 cannot be used for D.
Description When the execution condition is OFF, PMCR(––) is not executed. When the
execution condition is ON, PMCR(––) calls and executes the specified commu-
nications sequence (protocol data) that has been registered in the Communica-
tions Board installed in the PC.
The send/receive message for the communications sequence registered in the
Communications Board must be set to read or write word data when DM isnt
specified for S and D. Use a constant when it isnt necessary to set a word for the
first output word.
When the communications sequence doesnt require an input word, specify a
word address anyway. Data wont be stored in the specified word and the con-
tents of the word will be retained. When the communications sequence does re-
quire input words, specify words that arent used for any other purpose in the
program.
The input and output words (S and D) can also be set in the communications
sequence registered in the Communications Board.
Note Refer to the Communications Board Operation Manual for details on the Com-
munications Boards and the Protocol Software Operation Manual for details on
communications sequences.
Control Word The first digit of the control word (1 or 2) specifies the Communications Board
port and the last three digits specify the communications sequence (000 to 999),
as shown in the following diagram.
C:
Digits 2 to 4: Communications sequence number
(000 to 999)
Digit 1: Port specifier
1: Communications port A
2: Communications port B
Flags ER: Indirectly addressed DM word is non-existent. (Content of DM word is
not BCD, or the DM area boundary has been exceeded.)
D is not BCD or DM 6144 through DM 6655 has been used for D.
Another PMCR(––) instruction was already in progress when the
instruction was executed.
The port specifier was not 1 or 2.
Serial Communications Instructions Section 5-27