Reception And Transmission Processing; Synchronous Read Method (Interrupt Processing) - Renesas R-IN32 Series User Manual

Cc-link remote device station
Table of Contents

Advertisement

R-IN32 Series CC-Link Remote device station
9.3

Reception and Transmission Processing

When the read process is to be completed within 1ms, use the methods described in Section 9.3.1, Synchronous Read
Method (Interrupt Processing) and Section 9.3.3, Asynchronous Write Method. When the read process is not to be
completed within 1ms, use the methods described in Section 9.3.2, Asynchronous Read Method and Section 9.3.3,
Asynchronous Write Method.
9.3.1

Synchronous Read Method (Interrupt Processing)

Connect the CCS_REFSTB output of CCS to the microcomputer interrupt input, and execute the read process using a
rising-edge interrupt.
The write process can be executed in asynchronous write mode based on arbitrary timing.
No
Timeout time setting change
(see Section 9.4.1, Initial Setting Time → Normal Setting Time)
Figure 9.4 Synchronous Read Method
The processing of an "interrupt" to "completion" has to be done within 1 ms.
(The next interrupt might be ignored if processing does not finish within 1 ms.)
R18UZ0056EJ0102
Dec. 28, 2018
Synchronous read
method
Is this the
first time reception has been
completed?
Yes
Refresh data (RY and RWw)
error information and status
information read
Complete
9. Sample Flowchart for CC-Link Version 1
· Because the timeout time before the link is established is
different from that after the link is established, check
whether or not reception is being completed for the first
time and change the setting time the first time only.
· Read byte address 04h, 05h (error information 1, 2).
· For devices that check the status information (master station
program status, etc.), read
CCS_M3MRST1_ST2 resister
→ R status information ST1) as well. Execute HOLD/CLR
processing based on the status content.
· Read: Read data in the order of RY → RWw.
(M
Page 35 of 83

Advertisement

Table of Contents
loading

This manual is also suitable for:

R-in32m4-cl2R-in32m3-ecR-in32m3-cl

Table of Contents