EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #954 background imageLoading...
Page #954 background image
3. Instructions
916
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z Accessing the Completion Code after Executing Communications Instructions
The completion codes are generally used to troubleshoot errors when they occur. A completion code of
0000 hex can, however, also be used to confirm that communications have been completed normally.
Port: F
MOV
A218
KEEP
MOVL
A216
TST
A214
MOVL
IR0
<>
,IR0
#0000
Execution condition
d (Execution completed)
a (Executing)
c (Standby)
Communications
instructions
a (Executing)
c (Standby)
d (Execution completed)
When a (Executing) turns ON, a communications instruction
(SEND(090), SEND2(491), RECV(098), RECV2(492), CMND(490),
CMND2(493), PMCR(260), or PMCR2(264)) is executed with the
communications port specified as “F.
The communications port number that was automatically allocated is
stored in a work word b (Used port) from A218 (Used Communications
Port Number).
Places the PLC memory address (A216) containing the completion code
for the communications instruction executed with automatic allocation of
the communication port into work word e (Code storage location).
Confirms that the First Cycle Flags after Network Communications
Finished for the automatically allocated port number (corresponding bit for
word b in A214) is ON.
Places the PLC memory
address of the completion code
from work word e (Code
storage location) into index
register IR0.
Network communications
error processing
Bit c turns OFF the cycle after the
communications instruction was
executed to enable checking the
completion code.
If the completion code indirectly address via IR0
does not equal 0000 hex, communications error
processing is performed.
a
(Executing)
b
(Port)
e (Code storage
location)
b
(Used port)
e (Code storage
location)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals