EasyManuals Logo
Home>Emerson>Controller>PNC001-A Series

Emerson PNC001-A Series User Manual

Emerson PNC001-A Series
232 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 #155 background imageLoading...
Page #155 background image
PACSystemsâ„¢ RX3i and RSTi-EP CPU Reference Manual Section 6
GFK-2222AK October 2019
Serial I/O, SNP & RTU Protocols 147
6.2.7.1 Retrieving Data from the Buffer
Data can be retrieved from the buffer using the Read String or Read Bytes function. It is
not directly accessible from the application program.
If data is not retrieved from the buffer in a timely fashion, some characters may be lost.
6.2.7.2 Example Command Block for the Set Up Input Buffer
Function
VALUE
(decimal)
VALUE
(hexadecimal)
MEANING
Address
0002
0002
Data block length
Address +1
0000
0000
NOWAIT mode
Address +2
0008
0008
Status word memory type (%R)
Address +3
0000
0000
Status word address minus 1 (%R0001)
Address +4
0000
0000
Not used
Address +5
0000
0000
Not used
Address +6
4301
10CD
Setup input buffer command
Address +7
0064
0040
Buffer length (in words)
6.2.8 Flush Input Buffer Function (4302)
This operation empties the input buffer of any characters received through the serial port
but not yet retrieved using a read command. All such characters are lost.
6.2.8.1 Example Command Block for the Flush Input Buffer Function
VALUE
(decimal)
VALUE
(hexadecimal)
MEANING
Address
0001
0001
Data block length
Address +1
0000
0000
NOWAIT mode
Address +2
0008
0008
Status word memory type (%R)
Address +3
0000
0000
Status word address minus 1 (%R0001)
Address +4
0000
0000
Not used
Address +5
0000
0000
Not used
Address +6
4302
10CE
Flush input buffer command
6.2.9 Read Port Status Function (4303)
This function returns the current status of the port. The following events can be detected:
1. A read request was initiated previously and the required number of characters has
now been received or the specified time-out has elapsed.

Table of Contents

Other manuals for Emerson PNC001-A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Emerson PNC001-A Series and is the answer not in the manual?

Emerson PNC001-A Series Specifications

General IconGeneral
BrandEmerson
ModelPNC001-A Series
CategoryController
LanguageEnglish

Related product manuals