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 #716 background imageLoading...
Page #716 background image
2 Instruction Descriptions
2-668
NJ-series Instructions Reference Manual (W502)
* “#” denotes the port number on the Serial Communications Unit.
The Reception Completed Flag (P#_NopRcvCompleteSta) changes to TRUE at the following times.
The amount of data set in Number of No-protocol Receive Data Bytes (P#_NopRcvDatSzCfg) is
received.
The specified end code is received.
A total of 256 bytes of data is received.
The Reception Overflow Flag (P#_NopRcvOvfSta) changes to TRUE at the following times.
Data is received when this instruction is not executed and the Reception Completed Flag
(P#_NopRcvCompleteSta) is TRUE.
More than the amount of data set in Number of No-protocol Receive Data Bytes
(P#_NopRcvDatSzCfg) is received.
Refer to the following manual for details on no-protocol communications.
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit (Cat. No.
W494)
Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
Refer to Using this Section on page 2-2 for a timing chart for Execute, Done, Busy, and Error.
Execute the instruction only when the Reception Completed Flag (P#_NopRcvCompleteSta) is
TRUE.
When data is received, always execute this instruction to transfer the data in the receive buffer to Dst-
Dat[]. No more data is received until the previous data is transferred.
The receive buffer in the Serial Communications Unit is cleared when this instruction is executed.
Therefore, you cannot separate the data in the receive buffer to transfer it to DstDat[].
Reception stops automatically after 259 bytes of data is received. If this instruction is not executed
after that and more data is received, Overrun Error (P#_OverRunErr) changes to TRUE.
Any receive data that exceeds the size specified with Size is discarded the next time the instruction is
executed.
Even when a start or end code is attached, do not include it in the value of Size.
You can use this instruction only for a Serial Communications Unit’s serial port that is set to No-proto-
col Mode.
If the value of Size is 0, the data in the receive buffer is not transferred to DstDat[]. If that occurs, the
Reception Completed Flag (P#_NopRcvCompleteSta) and Reception Overflow Flag
(P#_NopRcvOvfSta) will change to FALSE. Also, the Reception Counter (P#_NopRcvCntSta) will be
0.
P#_NopRcvDatSzCfg* Number of No-protocol
Receive Data Bytes
USINT 16#01 to 16#FF: 1 to 255 bytes
16#00: 256 bytes
P#_NopStartCodeCfg* No-protocol Start Code USINT 16#00 to 16#FF
P#_NopEndCodeCfg* No-protocol End Code USINT 16#00 to 16#FF
P#_TransErr* Transmission Error BOOL TRUE: Error occurred.
FALSE: No error occurred.
P#_OverRunErr* Overrun Error BOOL TRUE: Error occurred.
FALSE: No error occurred.
Additional Information
Precautions for Correct Use
Name Meaning Data type Description

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