849
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Serial Communications Instructions
3
PMCR
z Operand Specifications
*1 H512 to H1535 cannot be used.
*2 In the EM Area, bank D and higher cannot be used.
Flags
Related Auxiliary Area Words and Bits
Communications Responses
Note Refer to the CS/CJ-series Communications Commands Reference Manual (W342) for other response codes.
Inner Board Area (CS Series Only)
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers
TK CF
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
C1, C2
OK OK
OK
*1
OK OK OK OK
OK
*2
OK OK OK
OK
--- OK --- --- --- ---S
---
R
Name Label Operation
Error Flag ER • ON if the Communications Port Enabled Flag is OFF for the specified logical port when PMCR(260) is
executed.
• ON if C1 is not within the specified ranges.
• ON if the number of words of S or R exceeds 249 (when words are specified).
• ON if PMCR(260) is executed in an interrupt task for a CJ2 CPU Unit with high-speed interrupt func-
tion enabled.
• OFF in all other cases.
Name Address Contents
Communications Port Enabled Flag A202.00 to A202.07 • ON when network communications are enabled (including PMCR(260).
• Bits 00 to 07 correspond to logical ports 0 to 7, respectively.
• A Communications Port Enabled Flag will turn OFF when network com-
munications are started and will turn ON when they are completed
(regardless of whether communications end normally or in error.
Communications Port Error Flag A219.00 to A219.07 • ON when an error occurs in network communications.
• Bits 00 to 07 correspond to logical ports 0 to 7, respectively.
• Flag status will be maintained until the next network communications
start. The flag will turn OFF when communications start again even if an
error occurred for the last execution.
Communications Port Completion Codes A203 to A210 • Contains the completion code stored when network communications
are performed.
• Words A203 to A210 correspond to logical ports 0 to 7, respectively.
• The completion code will be 00 while the communications instruction is
being executed. The new response code will be stored when execution
has been completed.
The contents of these words is cleared when operation is started.
Code Contents
1106 (hex)
No corresponding program number
• Specified Send/Receive Sequence No. that has not been registered.
• Modify the Send/Receive Sequence No. or add the number using the CX-Programmer.
2201 (hex)
Not operable due to protocol execution
Since one protocol macro has already been executed, no further execution is accepted.
Add NC condition to program for the Protocol Macro Execution Flag.
2202 (hex)
Not operable due to stoppage
Since the protocol is being switched, no further execution is accepted.
Add NC condition to program for the Serial Setting Change Flag.
2401 (hex)
No registration table
• An error has occurred in the protocol macro data or data is being transmitted.
• Transmit the protocol macro data using the CX-Programmer.
Name Address Contents
Port 1 Protocol Macro Execution Flag
CIO 1909.15
ON when PMCR(260) is executed. The flag will remain OFF if execution
fails.
The flag will turn OFF when the communications sequence has been
completed (either an end or abort).
Port 2 Protocol Macro Execution Flag
CIO 1919.15