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 #697 background imageLoading...
Page #697 background image
2-649
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
ExecPMCR
The ExecPMCR instruction requests execution of the sequence that is specified with communications
sequence number SeqNo from the specified destination port Port.
If data is sent, it is sent from the second element (SrcDat[1]) of send data array SrcDat[]. The number of
array elements to send is specified in SrcDat[0].
If data is received successfully, the receive data is stored from the second element (DstDat[1]) of
receive data array DstDat[]. The number of receive data elements is stored in DstDat[0].
If data is not received successfully, the contents of DstDat[] from before instruction execution is retained
for the number of elements specified in DstDat[0].
The data type of destination port Port is the structure _sPORT. The specifications are as follows:
The following figure shows a timing chart. Communications is performed to the end after the value of
Done changes to TRUE.
Function
Name Meaning Description Data type Valid range Unit Default
Port Destination
port
Destination port _sPORT
--- --- ---
UnitNo Unit number Unit number of Serial
Communications Unit
_eUnitNo _CBU_No00 to
_CBU_No15
---
_CBU_
No00
PhysicPortNo Serial port
number
Serial port number on
Serial Communications
Unit
USINT 1 or 2 1
Prepare SrcDat[] before
Execute changes to TRUE.
Protocol Macro Execution
Flag
Sequence End Completion
Flag
The receive buffer is checked every task period.
If data is received, it is stored in DstDat[].
Data communications ended.
The Protocol Macro Execution Flag changes to FALSE
and the Sequence End Completion Flag changes to TRUE.
Data communications started.
The Protocol Macro Execution
Flag changes to TRUE.
Execute
Busy
Done
Error
DstDat[]
SrcDat[]
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE
Data communications started.
The Protocol Macro Execution
Flag changes to TRUE and the
Sequence End Completion Flag
changes to FALSE.

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