EasyManuals Logo
Home>Omron>Network Hardware>SYSMAC CS1W-SCB41-V1

Omron SYSMAC CS1W-SCB41-V1 User Manual

Omron SYSMAC CS1W-SCB41-V1
781 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 #213 background imageLoading...
Page #213 background image
184
Using Protocol Macros Section 5-4
Receive Data Storage Area before Executing PMCR(260)
When the PMCR(260) instruction is executed, the reception buffer is cleared
to 0 once immediately before the communications sequence is executed. If a
ladder program is used that regularly reads the present value data, as shown
in the following diagram, the present value data would normally be cleared to
0 if the data is not retrieved due to an error, such as a reception error. If recep-
tion processing fails, however, the data that was stored started at R+1 (i.e.,
the number of words specified in R) is again read from the reception buffer
and stored again beginning at R+1. This ensures that the current data will not
be cleared and that the previous receive data will be maintained when recep-
tions fail. Make sure to set the number of words m for the data that is to be
held. If the data is set to 0 or 1, the most recent receive data will not be held.
Instead, it will be cleared to 0.
Example:
The following protocol can be used to regularly execute the PMCR(260)
instruction to retrieve receive data by performing the send/receive operation
once only.
Receive Data Storage Area Function
The receive data storage area is used according to the following procedure.
1,2,3... 1. When the PMCR(260) instruction is executed, 250 words of the reception
buffer in the Serial Communications Board or Serial Communications Unit
are cleared.
2. Before executing the communications sequence, the contents of one less
than the number of words specified in R starting from word R + 1 are used
to overwrite the contents of the reception buffer (excluding the first word).
This becomes the initial value of the reception buffer, and the results of the
RECV command execution are waited for. If the contents of the reception
buffer exceeds the contents of the number of words specified in R (or the
Protocol Macro
Executing Flag
Set
m words
Reception
buffer
Value is stored
when reception
fails.
Always ON Flag
Communications
Port Enabled Flag
Communications
sequence
Reception
buffer
Receive area
R + 1 onwards
Not holding the receive area.
Communications
sequence
Reception
buffer
Receive area
R + 1 onwards
Holding the receive area.
Clear
Clear
Set
RECV
RECV
Failed
Failed
Stores cleared
values
Stores set values
PMCR(260)
R
R

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CS1W-SCB41-V1 and is the answer not in the manual?

Omron SYSMAC CS1W-SCB41-V1 Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CS1W-SCB41-V1
CategoryNetwork Hardware
LanguageEnglish

Related product manuals