EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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 #699 background imageLoading...
Page #699 background image
2-651
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
ExecPMCR
• The Protocol Macro Execution Flag (semi-user-defined variable P#_PmrExecSta) changes to TRUE
when instruction execution is started. It changes to FALSE after the communications sequence is
completed and the receive data is stored in DstDat[]. You cannot execute this instruction for the same
serial port while P#_PmrExecSta is TRUE. Therefore, use P#_PmrExecSta in an N.C. execution con-
dition for the instruction.
• If the instruction is used in ST, make sure that the instruction is processed each task period as long
as instruction execution continues. Otherwise, normal processing is sometimes not possible.
• An error occurs in the following cases. Error will change to TRUE.
• The serial communications mode is not set to Protocol Macro Mode when the instruction is exe-
cuted.
• The value of _Port_isAvailable is FALSE.
• The value of SeqNo is outside of the valid range.
• The value of SeqNo is not registered to a Serial Communications Unit.
• The value of Port.UnitNo or Port.PhysicPortNo is outside of the valid range.
• There is no CJ-series Serial Communications Unit with the specified unit number.
• The value of SrcDat[0] exceeds the size of SrcDat[].
• The value of DstDat[0] exceeds the size of DstDat[].
• The value of SrcDat[0] or DstDat[0] exceeds 250 words.
• Communications fail.
• An address in memory for CJ-series Units is not specified in the AT Specification attribute of Dst-
Dat[].
• For this instruction, expansion error code ErrorIDEx gives the communications response code. The
values and meanings are listed in the following table. An expansion error code is output to ErrorIDEx
when the value of error code ErrorID is WORD#16#0800.
Value Error Correction
16#00001106 The value of SeqNo is not a regis-
tered communications sequence
number.
• Correct the value of SeqNo.
• Add the sequence with the CX-Protocol.
16#00002201 Instruction execution is already in
progress. The values of Busy and
P#_PmrExecSta are TRUE.
Use P#_PmrExecSta in an N.C. input as the execution
condition for the instruction.
16#00002202 The protocol is being switched, so
execution is not possible.
Use _CJB_SCU##P1ChgSta or
_CJB_SCU##P2ChgSta Serial Communications Unit,
Port 1/2 Settings Changing Flag in an N.C. input as the
execution condition for the instruction.
16#00002401 A checksum error occurred in the
protocol macro data or the data
transfer is not yet completed.
Transfer the protocol macro data from the CX-Protocol.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals