Software (Firmware) - Renesas R-IN32 Series User Manual

Cc-link remote device station
Table of Contents

Advertisement

R-IN32 Series CC-Link Remote device station
13.2

Software (Firmware)

Since the CCS does not include any protocol related to Version 2, such protocol must be written into the software
(firmware). The following describes the items to be developed.
(1) Master Station Version Checking
At the time of normal reception, check bits 5, 6 "Protocol Version" of CCS_M3MRST1_ST2 register.
If the protocol version is Version 1, set M3RMST1 bit "Cyclic communication" of CCS_M3RMST1_ST2 register to
disable.
(2) Reception Processing
The timing of RY/RWw data read is the same as that of Version 1.
For example, when the extended cyclic setting is quadruple, the SQ values are received four times in the order of 3 →
2 → 1 → 0.
The four segments of RY/RWw data are treated as one set of data.
(3) Loopback Checking at Reception (Optional)
If the loopback SQ values are monitored and continuity is broken, new data is transmitted from the beginning. Except
for 8× setting, transmitting new data from the remote side is less effective (transmission delay time actually becomes
greater), so exercise caution during implementation.
(4) Loopback Processing at Transmission
Loop back the SQ values received from the master station at the time of transmission.
The master station checks the continuity of the looped back SQ values, and if the continuity is broken, assesses that the
data was not transmitted normally, aborts the current data transmission and sends new data.
At the time of transmission, normal data will not be sent from the master station unless the SQ values have been
processed. Be sure to loop back all reception SQ values without fail.
R18UZ0056EJ0102
Dec. 28, 2018
13. Notes on Developing with CC-Link Version 2
Page 67 of 83

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents