422
Communications Instructions
Section 5-30
5-30-4 PROTOCOL MACRO – PMCR(––)
Limitations
C must be BCD from #1000 to #2999.
DM 6144 through DM 6655 cannot be used for R.
Description
When the execution condition is OFF, PMCR(––) is not executed. When the
execution condition is ON, PMCR(––) calls and executes the specified com-
munications sequence (protocol data) that has been registered in the Serial
Communications Board installed in the PC.
Bits 00 to 11 of C specify the communications sequence number and bits 12
to 15 of C specify whether the sequence will be executed from port 1 or 2.
When an operand is specified in the send message’s variable, the content of
S (0001 to 0129 BCD) specifies the number of words in the send area includ-
ing S itself. (The send data begins at S+1, so the actual amount of send data
is 0 to 128 words.)
The send/receive message for the communications sequence registered in
the Serial Communications Board must be set to read or write word data
when DM isn’t specified for S and R. If there is no send data, input the con-
stant #0000 for S; any other constant or address specification will cause an
error.
When the communications sequence doesn’t require a receive word, specify
a word address anyway. Data won’t be stored in the specified word and the
contents of the word will be retained. When the communications sequence
does require receive words, specify words that are not used for any other pur-
pose in the program.
The send and receive words (S and R) can also be set in the communications
sequence registered in the Serial Communications Board.
Note
Refer to the
Serial Communications Board Operation Manual
for details on
the Serial Communications Boards and the
Protocol Software Operation Man-
ual
for details on communications sequences.
The symbol read option (R()) in the send message’s variables controls trans-
mission of the send data in the specified send area. Likewise, the symbol
write option (W()) in the received message’s variables controls reception of
data to the specified receive area. Refer to the
CX-Protocol Operation Manual
for details on specifying the R() and W() options in messages.
Protocol Macro Executing Flags
A port’s Protocol Macro Executing Flag (IR 20708 for port 1 or IR 20712 for
port 2) will be turned ON when PMCR(––) is executed and it will be turned
OFF when the communications sequence has been completed and all of the
received data has been stored in the specified receive words.
C
:
Control word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
S
:
First send word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Ladder Symbols
Operand Data Areas
R
:
First receive word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
PMCR(
−−
)
C
S
R
@PMCR(
−−
)
C
S
R
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......