Home

R-IN32M3 Series CC-Link remote device station

image

Contents

1. note note When the number of remote device stations connected is the same as the number of occupied stations Table 9 4 Version 1 and Version 2 No of Occupied Stations Amt of Cyclic Data No of Occupied Stations Amt of Cyclic Data 1 occupied station RX RY 64 bits quadruple setting RWw RWr 16 words CC Link Version 2 1 occupied station RX RY 128 bits octuple setting RWw RWr 32 words CC Link Version 1 4 jed stati RX RY 128 bits Lin rsion occupied stations l KO RWw RWr 16 words When the extended cyclic setting ofa Version 2 system with 1 occupied station is quadruple the number of bit data points handled is the same as that ofa CC Link Version 1 system with four occupied stations When the setting is octuple the amount of word data handled is the same as that ofa CC Link Version 1 system with four occupied stations It is therefore possible to realize the same amount of data using a lesser number of occupied stations and consequently increase the number of remote stations controlled by a single master station R18UZ0017EJ0100 stENESAS Page 43 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 2 Overview of Protocol 9 2 1 Overview of Extended Cyclic Communication Extended Cyclic to be added in Version 2 splits refresh data RY RWw and response data RX RWr into multiple link scans and sends recei
2. lowed Not a Upper Bo Not used Not allowed Not allowed ga Lower Setting HOLD CLR information Allowed Allowed Upper Not used Not allowed Not allowed ot allowed Not allowed BC BC ae J not used N BF R18UZ0017EJ0100 stENESAS Page 10 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map Table 6 2 When the number of occupied stations is set to 2 Address Address hexadecimal Data width 00 Lower loo Send data write enable information Allowed 80 Lower 80 Send data write completed Allowed Upper Receive data update information Allowed Upper Receive data read request Allowed ower Station number switch information Allowed Lower Vendor code Lower owed Al Baud rat itch number of ied 82 03 a ra di kos jeu DE Pie Allowed Not allowed Upper 83 Vendor code Upper Allowed Allowed stations information Allowed ga Lower aa JModeldode Allowed Upper Error information 2 Allowed Upper Version Allowed os Cowen foe Not used Not allowed 86 Lower las SDLED illumination time setting Allowed Upper Not used Not allowed Upper Timeout time setting Allowed og M gt RST1 owed Lower RM ST1 Allowed MOR ST2 owed 88 Upper so RoMSTZ Allowed MR RY00 07 owed Lower RM RX00 07 Allowed M R RY08 0F owed Not allowed Upper 8B R M RX08 0F Al MoRRV1047 TAowed go Lower R gt MRX10 17 TA M gt R RY18 1F lowed Not allowed Upper 8D R
3. EE ER EE a do e ae ee 4 Occupied stations Setting a en SE NE ER EE anke 5 Setting the station number and baud rate 6 Light ON OFF BLINK conditions ee ee e ee ee ee Re nn ee Re GRA Ged Se E ee ee ee ee ee 8 Monitor outout of reception frame information ee se se ee ee Re GR RR GR Re GRA GRA GRA Re Ge ee ee ee ee ee ee ee 9 When the number of occupied stations is set to 1 10 When the number of occupied stations is Set to 2 11 When the number of occupied stations is Set to 3 12 When the number of occupied stations is Set to 4 13 Normal setting time setting after first reception Completion see eee sie eesseseesseeeesneee neriie 34 Initial setting time Setting after timeout ss 35 Remote Registers AE Sade OR N N EE N N teas 40 Extended Cycle EER ee aes ee GR N EG Dee AE eee N si 42 Relationship between the number of occupied stations and extended cyclic setting in CC Link Version 42 Relationship between number of occupied stations and number of connected modules 43 Version 1 and Version 2 No of Occupied Stations Amt of Cyclic Data 43 Details of ST land ST2 in Version Za EERS nb nine dite ve ed ed 45 Details of RY in Version 2 semanto An era hoa tacks aes hale de eme etes 46 Relationship between SQ Values and RX RY RWI RWW is 51 HX 5 sTENESAS R18UZ0017EJ0100 R IN32M3 Series CC Link remote device station Jul 26 2013 1
4. R IN32M3 Series CC Link remote device station 8 Remote Device Station Common Specification 8 2 Remote register The all areas of the remote registers of a remote device station are user defined areas Note that m is a register number assigned to each remote station Table 8 1 Remote Registers Link register Signal name Link register Signal name User defined area RWwm0 User defined area RWwm1 RWwm2 1 station occupied RWwm3 1 station occupied RWwm4 RWrm5 RWwm5 RWrm6 RWwm6 RWrm7 2 stations occupied RWwm7 2 stations occupied RWrm8 RWwms RWrm9 RWwm9 RWrm10 RWwm10 RWrm11 3 stations occupied RWwm11 3 stations occupied RWrm12 RWwm12 RWrm13 RWwm13 RWrm14 RWwm14 RWrm15 4 stations occupied RWwm15 4 stations occupied R18UZ0017EJ0100 stENESAS Page 40 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 Overview of CC Link Ver 2 This chapter explains the specifications necessary to design CC Link remote device stations compatible with CC Link Version 2 This chapter describes only the contents related to Version 2 development For detailed specifications regarding the CCS see the other chapters Hardware Since the hardware structure for CC Link Version 2 is basically identical to that of Version 1 this document contains only the notes for development of CC Link Version 2 compa
5. Write the model code specified in the CC Link Specification Profile If there is no corresponding code contact the CC Link Partner Association CLPA R18UZ0017EJ0100 RENESAS Page 21 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 2 10 6 Memory Map SDLED illumination time setting and Timeout time setting CCS_M3SDLED_TOVER KOS MESDL ra TIM2 ru LE ED TOVER RW RW RW RW Address Initial Value SLE l SLE SLE RW RW RW RW Bit position Bit name Function 15 12 TIM3 TIMO The time over settings for the time up to first reception completion and the time after first reception completion need to be changed Initial setting time Setting value until reception complete is set to ON for the first time after reset release or power ON Baud rate TIM3 TIM2 TIM1 TIMO First time 10M 0 1 0 1 0 1 1677 7216ms 5M 0 1 0 1 0 1 1677 7216ms 2 5M 0 1 0 0 1 1 1677 7216ms 625k 0 1 0 0 0 1 1677 7216ms 156k 0 1 0 1 1 1 3355 4432ms Normal setting time This is the timeout time setting value after completion of the initial data reception Baud rate First time 104 8576ms 104 8576ms 209 7152ms 838 8608ms 1677 7216ms Initial setting The default time setting value is set to a value corresponding to the baud rate 7 4 SLED3 SLEDO SDLED Illumination time During transmission period 0 05 0 1ms 0 1 0 2ms 0 4 0 8ms 0 8 1 6ms 3
6. M RX18 1F MR RY20 27 owed ge Lower RM RX20 27 Allowed MR RY28 2F owed Upper RM RX28 2F Allowed MR RY30 37 owed 90 Lower oo R gt MRX30 37 Allowed MOR RY38 3F lowed Upper RM RX38 3F Allowed Not allowed gp Lower Not allowed Not used Not allowed Upper 93 Not allowed 94 Lower Not allowed Upper Not allowed 06 Lower 96 Not allowed Upper Not used Not allowed og Lower 98 Not used Not allowed Not al Upper 99 Not used Not allowed Not allowed MR RWwO L owed on Lower RM RWr0 L owed MR RWw0 H owed Upper 9B R gt MRwWro H owed MR RWw1 L owed Lower RM RWr1 L owed MR RWw1 H lowed 9C Upper sp RaM RWrI H owed MOR RWw2 L lowed Lower RM RWr2 L lowed MOR RWw2 H owed SE Upper RAM RWr2 H owed MOR RWw3 L owed Lower RAM RWr3 L owed MR RWwa H owed AO Upper RM RWr3 H owed MR RWw4 L owed Lower RM RWr4 L owed MOR RWw4 H owed A2 Upper ROM RWr4 H owed M gt R RWw5 L owed Lower RM RWr5 L owed MR RWw5 H owed AA Upper RM RWr5 H owed M gt R RWw6 L owed RM RWr6 L owed Upper hexadecimal Description Read Write Data width Description Read Write MR RWw6 H owed RM RWr6 H owed MR RWw 7 L owed ag Lower RM RWr7 L owed MR RWw7 H owed Upper RM RWr7 H owed Not used allowed AA Lower Not used allowed Not used lowed Upper Not used lowed Not used lowed AC Lower Not used lowed Not used lowed Upper used lowed Not used lo
7. No S_NOW_SQ lt 6 therefore new data transmission does not start at the ee first and second data transfer EA Yes v Transfer new data Previous loopback SQ value y Loopback SQ value Previous Loopback R_ZOR_SQ R_ORI_SQ SQ R_ZOR_SQ 0 To OK transmission To Fail transmission ER Figure 10 7Transmission Reception Processing Module ICCV20 Continued 3 R18UZ0017EJ0100 stENESAS Page 61 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 10 5 Application Work Area Transfer Processing Module CHK20DONE BEE A CHK20DONE Accumulated received data for one whole frame CC20R_DONE 0 Already transmitted the transmission data for one whole frame CC20S_DONE 0 Yes Transfer from application Transfer from CC Link Version buffer to CC Link Version 2 0 2 0 buffer to application buffer buffer No Y Y CC20R DONE 0 CC20S DONE 0 4 RET Figure 10 8Application Work Area Transfer Processing Module CHK20DONE R18UZ0017EJ0100 TENESAS Page 62 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 11 Notes on Developing with CC Link Version 2 11 Notes on Developing with CC Link Version 2 11 1 Hardware Basically hardware structures for Versions 2 and 1
8. Table 7 1 Normal setting time setting after first reception completion Amount of Time until Baud rate TIM3 TIM2 TIM1 TIMO Timeout Time Timeout Time Is Set after First Reception 10M 0 1 0 1 1 0 104 8576ms 51ms or less 5M 0 1 0 1 0 1 104 8576ms 103ms or less 2 5M 0 1 0 1 0 1 209 7152ms 49ms or less 625k 0 1 0 1 0 1 838 8608ms 39ms or less 156k 0 1 0 1 0 0 1677 7216ms 13 000ms or less R18UZ0017EJ0100 RENESAS Page 34 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 4 2 Normal Setting Time Initial Setting Time After a timeout occurs change the setting from normal setting time to initial setting time Set TIMO to TIM3 to the data TIM3 1 corresponding to the transmission speed in the table below rm time setting dans TIM3 TIM2 0 For the normal setting time set TIMO to TIM2 in accordance with the transmission rate baud rate in the table below 0 Baud rate Write 0 to TIM3 TIM3 TIM2 0 The value of TIM2 to TIMO is set at the rising edge of TIM3 1 Baud rate TIM3 TIM2 0 Return TIM3 to 0 0 Baud rate Complete Figure7 8 Normal Setting Time Initial Setting Time Table 7 2 Initial setting time Setting after timeout Baud rate TIM3 TIM2 TIM1 TIMO Timeout Time 10M 0 1 0 1 1677 7216ms
9. Upper Not al Upper Not used Not allowed Not allowed Nota Lower Not used Not allowed Not allowed Upper Not al Upper Not used Not allowed Not allowed Nota 94 Lower Not used Not allowed Not allowed Upper Not al Upper 95 Not used Not allowed Not allowed Not a 96 Lower 96 Not used Not allowed Not allowed Upper Not al Upper Not used Not allowed Not allowed Nota 98 Lower 98 Not used Not allowed Not allowed Upper 8 Not al Upper 99 5 Not used Not allowed Not allowed 2a M gt RRWwO L Allowed ga Lower R gt MRwro Allowed Allowed Upper 5 MoRRWwOH JAllowed Upper GB R gt MRWrOH JAlowed Allowed ic Lower 3 MR RWw1 L Allowed po Loren je 3 Romewi JA owed AIowed Upper e MORRWwI H Allowed Upper lop gt RSMRWriH Aowed TAlowed IM gt RRWw2 L Allowed og Lower RSMRWra lAowed Allowed MOR RWw2 H Allowed Upper IRoMRWr2 H slowed Allowed 20 Lower IM gt RRWw3 L Allowed ko rower IRSMRWr3 l Allowed Allowed Upper M gt R RWw3 H Allowed Upper IRoMRWr3 H Allowed Allowed Not used Not al a2 Lower Not used Not allowed Not allowed Not used Not allowed Not a Upper Not used Not allowed Not allowed lowed No Ni Not used Not allowed Not allowed se Cowen fae lowed BG Lower Be Not used Not allowed Not allowed lowed Upper Not used Not allowed Not allowed lowed B8 Lower Not used Not allowed Not allowed
10. 7 RWr8 B e RWr RWr8 B RWr8 B RWr RWr8 B RWrC F RWrC F RWrC F RWrC F Master station data Data area on frame Slave station data Master station Data area on Slave station data frame data Figure 9 1 With 2 occupied stations and extended cyclic 2 x setting R18UZ0017EJ0100 stENESAS Page 44 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 2 2 Transmission of Own Station Information CC Link Version 2 uses bits ST1 and ST2 in the transmission frame which were reserved in Version 1 to transmit protocol version information master station slave station and extended cyclic setting information slave station master station Also in the slave station test loopback data highest 2 bits in the RV area are used for protocol version information slave station master station Table 9 5 Details of ST1 and ST2 in Version 2 DATA Basic Frame Format Master stati on Slave station Slave station Mas ter station bo LE Master station user f 0 stop Application 1 run Master station user f 0 Normal Application 1 Error Refresh 0 Stop 1 Start Transient 0 Absent 1 Present L Transient reception f 0 Disable 1 Enable gt Protocol version 00 Ver 1 01 Ver 2 10 Ver 3 For future use 11 Ver 4 For future use
11. Allowed Lower RM RWr4 L owed MR RWw4 H Allowed Upper A3 R gt MRWr4 H owed MR RWw5 L Allowed Lower RM RWr5 L lowed MR RWw5 H Allowed Upper RM RWr5 H owed MR RWw6 L Allowed Lower RM RWr6 L owed MOR RWw6 H Allowed Upper RM RWr6 H owed MR RWw 7 L Allowed Lower A8 R gt MRWr7 L owed M gt R RWw7 H Allowed Upper RM RWr7 H owed MR RWwB L Allowed Lower RM RWr8 L owed MR RWw8 H Allowed Upper RM RWr8 H owed M gt R RWw9 L Allowed Lower RM RWra L owed MR RWw9 H Allowed per AD RaM RWr9 H owed M gt R RWw10 L Allowed wer RM RWr10 L owed M gt R RWw10 H Allowed per RM RWr10 H owed M gt R RWw11 L Allowed wer Bo R gt MRWr11 L owed MR RWw11 H Allowed Upper RM RWr11 H owed Not used Not allowed wer B2 Not used Not allowed Not used Not allowed Upper Not used owed 34 Lower 5 Not used Not allowed wer B4 Not used owed Upper 5 Not used Not allowed Upper _ Not used lowed 36 Lower 5 Not used Not allowed po Coven E Not used owed Upper a Not used Not allowed Upper u Not used lowed 38 Lower e Not used Not allowed B8 wer 3 Not used lowed Upper Not used Not allowed Upper Be 5 Not used owed BA 3A ga Lower Setting HOLD CLR information Allowed Upper BB Not used Not allowed Not used Not allowed Not allowed BC Not used Not allowed Not allowed 3E 3F BE BE R18UZ0017EJ0100 RENESAS Page 12 of 82 Jul 26 2013 R IN32M3 Series CC Link remote d
12. How can we know that data writing is completed The reception data update information indicates that data is written to the buffer and turns on at every link scan It has nothing to do with whether or not the actual data has changed Perform handshaking with the master station using a separate remote input output RX and RY In the case of devices that do no require reading programmable controller s data all the time you should not use interrupts but use the asynchronous read method instead R18UZ0017EJ0100 stENESAS Page 75 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers Timeout processing Question Answer The timeout time setting switches based on whether it is the first time but 1 Please clarify the definition of the first time 2 Is the first time when recovery occurs after communication was attempted but regarded as not possible due to some type of 1 The first time is when initialization processing is performed after power ON or reset cancel or after recovery from communication discontinuity 2 The first time is as described above it does not occur in a case where a failure other than communication discontinuity such as a data packet error occurs failure 2 Why is the processing in which the software The reason is as follows Until normal reception occurs for the first writes to TIMO 3 with reference to
13. Introduction This document is the specification for developing CC Link remote device stations using the R IN32M3 The function of CC Link remote device stations is repsented as CCS in this document 1 1 Related materials The materials related to this product are indicated below Refer to this table and request any materials by contacting the CC Link Partner Association as necessary Please see the CC Link Specification published by the CC LinkPartner Association for a detailed description of CC Link Reference materials Reference Number Reference code BAP 05026 Reference code BAP 05027 Reference code BAP 05028 Reference Name CC Link Specification Overview Protocol CC Link Specification Installation Specification CC Link Specification Profile For document requests contact CC Link Partner Association CLPA TEL 052 919 1588 FAX 052 916 8655 Email info cc link org 1 2 Generic Terms and Abbreviations Unless otherwise stated this manual uses the terms and abbreviations below to describe the CC Link remote device station functions CCS Generic Terms and Description Abbreviations CC Link Version 1 including CC Link Version 1 00 and CC Link Version 1 10 may be stated simply Version 1 CC Link Version 2 may be stated simply Version 2 1 3 CC Link Parter Association The product developed based on this manual must pass a conformance test conducted by the C
14. 2013 R IN32M3 Series CC Link remote device station Bit position 3 Bit name MST13 MST12 MST11 MST10 Transient 0 No 1 Yes Refresh 0 No 1 Yes Master station program 0 Normal 1 Abnormal Master station program 0 STOP 1 RUN Function 6 Memory Map R18UZ0017EJ0100 Jul 26 2013 stENESAS Page 18 of 82 R IN32M3 Series CC Link remote device station 6 2 5 RY reception buffer CCS M3MRRY00 OF CCS M3M RRY00_OF R W 15 14 13 12 R R R R 11 10 9 8 7 6 5 4 3 2 1 0 R R R R R R R R R R R R Function 6 Memory Map Address Initial Value 400F BOOAH 2nH Undefined Bit position Bit name 15 0 Yn15 Yn0 RY reception buffer Remark n 0 7 6 2 6 RWwn register CCS_M3MRRWWn 1 RAW R R 5 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CCS_M3MR pn bnE bnD bnC bnB bnA bn9 bn bn7 bne bn5 bna bn3 bn2 bn1 bno RWWn R R R R R R R R R R R R R R Address Initial Value ou Akl Undefined Bit position Bit name Function 15 0 Bn15 bn0 RWw RWwn15 RWwn0 Remark n 0 15 R18UZ0017EJ0100 Jul 26 2013 TENESAS Page 19 of 82 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 7 Send data write complete flag and Receive data read reguest CCS M3SDOK RDRO Address Initial 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Value 0000000 0000000 R W 0 0 0 0
15. 25k 625k 4 TENESAS Page 82 of 82 R IN32M3 series Peripheral Function Revision History REVISION R IN32M3 Series CC Link remote device station HISTORY Rev Date Description Page Summary 1 00 2013 7 26 First edition issued R IN32M3 series Peripheral Function Revision History Memo R IN32M3 Series User s Manual CC Link Remote device station sTENESAS SALES OFFICES Renesas Electronics Corporation http Awww renesas com Renesas Electronics America Inc 2880 Scott Boulevard Santa Clara CA 95050 2554 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario L3Y 9C3 Canada Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 651 700 Fax 44 1628 651 804 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2
16. 3011A switches made by Copal R18UZ0017EJ0100 stENESAS Page 69 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 12 2 Software 1 Questions and answers related to initial processing fal a 1 We have a question about the initial setting in Set it to H at initialization and keep it high afterwards the sample flowchart Note 3 Should the RS485 reception enable signal be set to H only at initialization 2 We perform the following software processing When the CCS M3SDOK RDROMWPFLG bit is set to 1 data is for the initial processing transferred between the double buffers for transmission send Word address buffer and update buffer During the transfer the MWRENL send CCS_M3VENDORCODE 0x0119 data write enable information ofCCS MWRENL RCEX MWRENL CCS M3MODELCODE VERSION is set to 1 CCS M3SDOK RDRQWRFLG and 0x0120 CCS_MWRENL_RCEX MWRENL are set to 0 when the transfer CCS_M3SDLED_TOVER Oxf200 from the send buffer to the update buffer is completed CCS_M3SDLED_TOVER Oxf2f0 No data is transmitted from the CCS causing SDLED to be lit CCS_M3SDOK_RDRQ 0x0101 unless polling data from the master station is received However in step 5 above SDLED is not lit If data was read after the CCS_M3SDOK_RDRQ WRELG bit was even though the WRFLG bit is set to 1 there set to 1 and the bit is changed to 0 the data transfer from the is no output from the S
17. 4 3 2 1 0 Value CCS_MSVE VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN VEN NDORCOD DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR DOR 400F B082H 0000H E 15 14 13 10 al7le 5 l4 3 2 1 10 RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW Bit position Bit name Function 15 0 VENDOR15 0 Write the lower portion of the vendor code Caution The vendor code is obtained from the ID number issued when a vendor joins the CC Link Partner Association CLPA The four digits consisting of the fifth to the eighth digits from the beginning of the ID number constitute the vendor code Example If the ID number is 123 456 7890 the vendor code is 5678 6 2 9 Model code and version CCS MAMODELCODE VERSION Address Initial 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Value re PRO SFTVISFTVISFTVISFTVISFTVISFTVIMCO MCO MCO MCO MCO MCO MCO MCO DELCODE V VER ERS ERA ER3 ER2 ER1 ERO DE7 DE 6 DE 5 DE 4 DE 3 DE 2 DE 1 DE o 4997 B084H 0000H ERSION R W 0 RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW Bit position Bit name Function 14 PROVERO Protocol version 0 Ver 1 1 Ver 2 13 8 SFTVER5 Software version information SFTVERO Initial setting 00 0001B 7 0 MODE7 Model code MODEO Initial setting For each model code contact the CC Link Partner Association Caution The model code is defined by the CC Link Partner Association CLPA
18. Data link running f 0 Master station station 1 Standby master station Valid only between the master station and the standby master station bo E Fuse blown Refresh not received Parameter not received A Switch change detected Cyclic communication EE Reserved WDT error 0 No error 1 Error Unit error invalid points f 0 Absent 1 Present 0 Received 1 Not received 0 Received 1 Not received 0 No change 1 Changed 0 Enable 1 Disable Invalid if a version error occurred 0 Not detected 1 Detected ges since Version 1 R18UZ0017EJ0100 Jul 26 2013 RY information transmission points 0000 0 bits 0001 256 bits 0010 512 bits 1000 2048 bits 1001 1111 Reserved RWw information transmission points 0000 0 bits 0001 32 bits 0010 64 bits 1000 256 bits 1001 1111 Reserved No changes since Version 1 TENESAS Transient data Transient reception LE Transient type ___________ Reserved D Transmission route status Reserved _______________________ Extended cyclic setting Version 2 0 Absent 1 Present 0 Disable 1 Enable 0 1 n 1 nin 0 No error 1 Error 1 Fixed 00 1 x setting 01 2 x setting 10 4 x setting 11 8 x setting Version 1 specifi
19. Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux Innovation Centre Singapore 339949 Tel 65 6213 0200 Fax 65 6213 0300 Renesas Electronics Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 O 2013 Renesas Electronics Corporation All rights reserved
20. RA 44 Extended Cyclic Header Information ss 47 Details of SQ value MR data ies ie Eg SR SS EES dd Ge eg Ge ve dass 48 Details of SQ value RM data ss 49 Details of SQ value loopback sise 50 Initial Setting INT CCV20 RE ese ER EE E ee Ge ge Ge Ee eee ene eg eke Vye 54 Transmission Reception Processing Using Interrupt CCS_REFSTB signal 56 Transmission Reception Using Polling ee ee Re ee Re Ge Re ee Re RA 57 Transmission Reception Processing Module ICCV20 ee ae ae ee ee ee Re GE Re GR Re GR Re RA 58 Transmission Reception Processing Module ICCV20 Continued 1 59 Transmission Reception Processing Module ICCV20 Continued 2 60 Transmission Reception Processing Module ICCV20 Continued 3 61 Application Work Area Transfer Processing Module CHK20DONE se ese ee ese ee ee se ee ke ino 62 Link Scan Time and CCS REFSTB Signal Change 66 Example of 4 setting A ER mon kn aen tin hia ae ae 67 BA Table 1 1 Table 1 2 Table 2 1 Table 3 1 Table 4 1 Table 4 2 Table 4 3 Table 5 1 Table 6 1 Table 6 2 Table 6 3 Table 6 4 Table 7 1 Table 7 2 Table 8 1 Table 9 1 Table 9 2 2 Table 9 3 Table 9 4 Table 9 5 Table 9 6 Table 9 7 Contents of tables Version 1 Cyclic Data Capacity ss din GE Ee Ee dake Deedes Ee ee ee 2 Version 2 Cyclic Data Capacity s N OE N EE OE AO NE RE OE 2 F nction MSi E EA EE N RE EE RE EE OE 3 Recommended parts ces
21. Refer to Section 6 2 14 RWr resister Timeout time setting change Normal setting time Initial setting time Refer to Section 7 4 2 Device main processing Transmission processing Asynchronous write method Refer to Section 7 3 3 Figure 7 2 Synchronous Read Method Asynchronous Write Method R18UZ0017EJ0100 stENESAS Page 29 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 122 Asynchronous Read Method Asynchronous Write Method The following indicates an example of the main processing performed when the asynchronous read method refer to Section 7 3 2 is used during reception processing and the asynchronous write method refer to Section 7 3 3 is used during transmission processing When a timeout occurs assess conditions based on the timeout error of CCS M3ERRI ERR2 ERR21 error information Main processing Has a timeout occurred Yes Hold Clear processing of device Refer to Section 6 2 14 RWr reisiter No Reception processing asynchronous read method Refer to Section 7 3 2 Timeout time setting change Normal setting time lnitial setting time Refer to Section 7 4 2 Device main processing Transmission processing asynchronous write m
22. STERR and BERR must be restarted after setting the station CCS_M3ERR1_ERR2 of the CCS states that number and baud rate within the valid range The SSERR and the error is canceled when it returns to BSERR become normal by returning their settings to the original normal Does this mean that only the BSERR settings when the power was turned on bit is canceled Are other bits also canceled 3 Should errors also be generated in SSERR It is not necessary to generate device errors when SSERR baud and STERR of CCS_M3ERR1_ERR2 rate switch change error information and STERR station number setting switch change error information are turned on In the case of SSERR and BSERR it is not necessary to generate errors as data is linked normally with the status before change The ERR LED flashes on remote stations only Moreover in the case of STERR station number switch setting error and BERR baud rate switch setting error data cannot be linked normally thus the error information cannot be communicated to the master station 4 What does the ERR21 timeout error of It turns on if refresh data cannot be received within the timeout CCS_M3ERR1_ERR2 mean time specified by the baud rate when the line is disconnected or the master station is shut down 5 What is the meaning of ERR22 channel carrier A carrier refers to a change in signal level on a transmission path detection of CCS_M3ERR1_ERR2 of CC Link communication The carrier is used to detect
23. are the same Nonetheless please note on the following points 1 Version 2 work area When in the Extended Cyclic setting nx data is transmitted received by dividing it into n packets Therefore it is necessary to store the data for n packets in a memory buffer and read write all the data together To avoid losing part or all of the data design the buffer in a way that all data packets for n transmissions receptions can be read or written in one operation 2 Switching Though this is unnecessary for Version 2 dedicated remote device stations if both Version 2 and Version 1 protocols are to be supported a switch may be required in order to toggle between Version 2 and Version 1 3 Polling processing To avoid missing a Transmission SQ from the master station polling processing must be performed at an interval less than 1ms To achieve this the CCS_REFSTB interrupt signal can be used or an interrupt can be initiated by a timer etc For details see Section 10 3 Transmission Reception Processing 4 Transmission processing In Version 1 writing to CCS transmission buffer could be done at any time but in Version 2 the timing of writing to the transmission buffer is critical All of the polling processing described above needs processing to validate the data written after turning ON the CCS transmission data write complete offset address 0080h M3SDOK after triggered by the falling of the CCS_REFSTB signal Ther
24. complete The transmission This flag is checked and cleared at Previous SQ value updating processing value is divisions 1 or less R ZEN SQ R NOW SQ 1 Current SQ R NOW SO lt divisions 1 Previous SQ value current SQ value 1 No not matched Discard the received data as is No transfer from MFP3N Previous Reception SQ value current Reception SQ value R ZEN SQ R NOW SQ Yes Same received data as the previous one point comparison against the previous SQ value may set to the proper value due to subsequent processing No R NOW SQ divisions 1 No Skipped data or data lost Y Previous Reception y Previous Reception SQ value current Reception SQ value R ZEN SO R NOW SO Previous Reception SO value lt current Reception SQ value R ZEN SO R NOW SO SQ value 0 R ZEN SO O is transmission po la Y If the SQ value skipped and the previous SQ value was set the v fact that SQ value skipped may be lost if for instance SQ 3 did not arrive and then same SQ is repeated such as 2 2 In other words 3 is lost and 2 gt 2 1 0 or 3 and 2 are lost and 17 1 gt 0 will both be perceived as correct values Figure 10 5Transmission Reception Processing Module ICCV20 Continued 1 R18UZ0017EJ0100 Jul 26 2
25. device station Question What does reception enable mean Are there any operations necessary for the CCS The specifications describe a precaution on RS485 transceiver reception as the receive enable pin of the RS485 transceiver is controlled Are there any particular points to 12 Questions amp Answers 2 Questions and answers related to reception enable Answer Reception enable means allowing RS485 to receive data There are no operations necessary for the CCS Enable the transceiver reception after enabling transmission during the initial settings It can be kept enabled afterwards note such as timing In the circuit example in the specifications the MPU port output is connected to the RDENL line connected to the RS485 transceiver Under what circumstances might the communication input be disconnected If it is not necessary to disconnect it we would like to connect the MPU port output to GND Which version should be written to byte address 85h of the CCS Is it the version on the user side Data reception from the master station should be disabled until the initial processing is completed the communication input is disconnected The reception should then be enabled after the initial processing is completed After that it is not necessary to disable the reception Since it is necessary to disable the reception before the initial processing is performed make sure to use the MPU port output do not con
26. hold or clear process in accordance with device specifications and execute the process using firmware R18UZ0017EJ0100 Jul 26 2013 stENESAS Page 26 of 82 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 Sample Flowchart for CC Link Version 1 7 1 Initial Setting After the initial setting process execute Section 7 2 Main Processing Initial setting J Initial setting 1 Transmission speed Set 1 and 2 only when they are set by software 2 Station number For setting 6 write 0 to SLED3 of 3 Vendor code CCS_M3SDLED_TOVER SDLED ON time setting and then 4 Model code write the SD LED ON time 5 Version For setting 7 set the initial setting time that corresponds to 6 SDLED ON time the transmission speed to CCS M3SDLED TOVER TIM3 7 Timeout time TOMO and write O to the lower 4 bits 8 RX area initialization Settings 8 and 9 Clear the RX area and RWr area to 0 9 RWr area initialization uJ Transmission is enabled when 1 is written to Send data write complete CCS M3SDOK RDRQ WPFLSG bit send data write complete flag Set the RS485 transceiver reception enable terminal RDENL to L to enable reception Ready for reception 4 Complete Figure 7 1 Initial Processing R18UZ0017EJ0100 stENESAS Page 27 of 82 Jul 26 2013 R IN32M
27. is possible Execute the request command What happens if the error reset request flag RY m n A is turned on when an error state continuously occurs The error reset request flag is always executable When executed in such a state the error status flag turns OFF but then turns ON again since the request command to generate an error continues R18UZ0017EJ0100 Jul 26 2013 When an error state continues or multiple errors occur can we set remote station READY RX m n B to ON using the error reset request RY m n A TENESAS Turn remote station Ready ON after clearing all error conditions states unless a deadlock is to occur for the operation convenience of the developed device Clearly describe the operation at this time in the user s manual Page 79 of 82 R IN32M3 Series CC Link remote device station What is the relationship between the RX m n A error status flag and the various CCS errors In an CCS error state is it OK if we do not set RX m n A to 1 12 Questions amp Answers Question Answer Set RX m n A to 1 when the device itself is in an error state When there is an CCS error switch setting error transmission status error data cannot be transmitted and thus RX transmission is not possible When an error occurs must remote station Ready RX m n B be set to OFF until reset is requested regardless of the error contents Yes it is determined so by CC Link s
28. the baud time a longer time than usual is required If the timeout time is set rate switches BS1 8 during timeout time setup to a short time timeout will always occur the first time performed for initialization write operation Conversely if the timeout time is remains long timeout may not first time reception normal setup time always be detectable during normal periods 3 The specifications indicate that the timeout When setting the initialization time of timeout time settings read time setting should be set in accordance with the value of the baud rate switch of the byte address 03H after the baud rate when the initialization time is power ON or reset and set the timeout time in accordance with set Specifically what is this process that baud rate 4 Do we always need to monitor the value of the You do not need to always monitor the baud rate switch value for baud rate switch for the timeout time setting the timeout time setting If the baud rate switch is changed during Should we always update the timeout time Link Run the setting is assessed for the first time at the rise after setting in accordance with the baud rate if the reset or power OFF ON Change the timeout time setting at that switch is changed time R18UZ0017EJ0100 RENESAS Page 76 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 8 Others Question Answer 1 Could you tell us the pro
29. 0 0 0 RW 0 0 0 0 0 0 0 RW Bit position Bit name Function 8 DRDREQ lt Write gt Upon reading the receive data set this bit to 1 and upon completing the read set it to 0 lt Read gt The data written will be read Initial setting OOH After initial setting Writes 01h when starting to read reception data and writes OOh when reading is completed 0 WPFLG lt Write gt Set the flag to write after completing data write to the update buffer Write 01 as the data value When the flag becomes write the data transfer from the update buffer to the send buffer starts Caution 1 After writing all the data to be sent to the update buffer at one time set the flag to write Caution 2 Setting this flag to write starts sending and receiving Ensure to set the flag to write after writing the initial data lt Read gt The flag becomes 1 as the write operation begins When the data transfer to the send buffer completes the flag becomes 0 Initial setting Writes 01h when initial data setting has been completed during initial processing The communication will not start unless this operation is performed After initial setting Writes 01h after transmission data is written to the CCS during transmission processing R18UZ0017EJO100 sENESAS Page 20 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 8 Vendor code CCS_M3VENDORCODE Address Initial 15 14 13 12 11 10 9 8 7 6 5
30. 0 57 Allowed 94 Upper M gt R RY58 5 lowed Upper 95 RX58 5F Allowed Lower MR RY60 67 owed Lower 96 RX60 67 Allowed 16 Upper M gt R RY68 6F lowed Upper 97 RX68 6F Allowed MR RY70 77 owed Lower 98 RX70 77 Allowed 19 M gt R RY78 7F Allowed Not allowed Upper 99 RM RX78 7F Allowed Allowed MR RWwO L lowed Lower 9A RM RWr0 L Allowed Allowed MOR RWwO H owed Upper 9B ROM RWr0 H Allowed Allowed MR RWw1 L owed Lower 9C RM RWr1 L Allowed Allowed MR RWw1 H owed Upper 9D RM RWr1 H Allowed Allowed MR RWw2 L lowed Lower 9E RM RWr2 L Allowed Allowed MR RWw2 H owed Upper 9F RM RWr2 H Allowed Allowed MR RWw3 L owed Lower AO ROM RWr3 L Allowed Allowed MR RWw3 H owed Upper A1 RM RWr3 H Allowed Allowed MR RWw4 L owed Lower A2 RM RWr4 L Allowed Allowed MR RWw4 H owed Upper A3 RM RWr4 H Allowed Allowed MOR RWw5 owed Lower A4 ROM RWr5 L Allowed Allowed MOR RWw5 H owed Upper A5 RM RWr5 H Allowed Allowed M gt R RWw6 L owed Lower A6 RM RWr L Allowed Allowed MR RWw6 H owed Upper A7 RM RWr6 H Allowed Allowed MR RWw7 L owed Lower A8 RM RWr7 L Allowed Allowed MR RWw7 H owed Upper A9 RM RWr7 H Allowed Allowed MR RWwB L owed Lower AA RM RWr8 L Allowed Allowed MOR RWw8 H owed AA Upper AB RM RWr8 H Allowed Allowed MR RWw9 L lowed Lower AC RM RWra L Allowed Allowed MOR RWw9 H owed Upper AD R gt M RWr9 H A
31. 013 TENESAS Page 59 of 82 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 transmission processing T an Loopback I OK Fail 31 Yes Y Y Transmission SO value 0 S NOW SQ 0 Switch to new data No v y Set the Transmission SQ value to divisions 1 S NOW SO lt divisions 1 Deduct the transmission SQ value by 1 S_NOW_SQ S_NOW_SQ 1 Transfer data according to the SQ value from the CC Link Version 2 0 work area to CCS buffer Y 1 If a Loopback check is to be performed add the flowchart for loopback check on the next page Transfer RX and RWr that correspond to the transmission SQ to CCS as the transmission data M3RM_SSQ S_NOW_SQ S_ORI_SQ lt lt 4 To avoid transmitting incomplete data write the transmission SQ value at the Upper 4 bits Loopbacks the received SQ value Lower 4 bits Stores the SQ value to be transmitted by a remote station very end Is transmission SQ value 0 S NOW SQ 0 Yes v CC20S_DONE 1 Indicate that transmission of one No data set is complete and prepare the next data in CHK20DONE This work area is checked and cleared in CHK20DONE E Figure 10 6Transmission Reception Processing Module ICCV20 Continued 2 R18UZ0017EJ0100
32. 2 Work Area When the extended cyclic setting is the multiple n ensure that data is transmitted and received between the Version 2 work area and CCS every link scan The data communicated between CCS and the master station must be updated every link scan 1 Write application work area data RX RWr to be transmitted from the remote device station to the master station to the Version 2 work area in n segments 2 When writing data from the Version 2 work area to CCS be sure to divide and transfer the data to CCS every n link scans 3 When reading the data RY RWw to be received from CCS to the Version 2 work area from the master station to the remote device station be sure to divide and transfer the data to CCS every n link scans 4 When transferring data from the Version 2 work area to the application work area hold the data of the n link scans To guarantee data integrity between the master station and remote device stations make sure the hardware design follows the structure below A memory size that supports the multiple n extension is required FE Version 2 Application work area work area Area where only the CC Link Area where the application Version 2 processes can can asynchronously read write access E A For each link scan xclusive control is necessary ding SO values are to avoid colliding with the o sj ana received transferring that takes place ran
33. 3 6 6ms 13 1 26 2ms 52 4 104 8ms 209 7 419 5ms 1111 SDLED ON time 209 7 to 419 5ms alajalajajafjalalo Initial setting R18UZ0017EJ0100 Jul 26 2013 ztENESAS Page 22 of 82 R IN32M3 Series CC Link remote device station 6 Memory Map R18UZ0017EJ0100 RENESAS Page 23 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 11 Cyclic Communication CCS M3RMST1 ST2 Address Initial 15 14 13 12 1 10 9 8 7 6 5 4 3 2 1 0 Value MST1_ST2 24 20 1 R W RW RW 0 0 0 0 0 0 0 0 RW 0 0 0 0 0 Bit position Bit name Function 15 14 M3RMST21 Extended cyclic setting setting of multiple M3RMST20 00 1x setting 01 2x setting 10 4x setting 11 8x setting Initial setting OOH 5 M3RMST1 Cyclic Communication 0 Cyclic communication enable 1 Cyclic communication disable Initial setting OOH Caution This bit is used in Version 2 only For details of use refer to Section 10 2 Initial Setting INT_CCV20 and Section 10 4 Transmission Reception Processing Module ICCV20 With Version 1 set the setting to Fixed to 0 R18UZ0017EJ0100 RENESAS Page 24 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 12 RX update buffer CCS_M3RMRXn0_nF Address Initial 11 10 9 8 7 6 5 4 3 2 f 0 Value CCS MOR per F XnE el wee XnB XnA Xn9 Xn8 Xn7 Xn6 Xn5 Xn4 Xn3 Xn2 Xn1
34. 3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 2 Main Processing When the reception processing is completed within 1 ms execute the main processing as described in Section 7 2 1 Synchronous Read Method Asynchronous Write Method When the reception processing is not completed within 1 ms execute the main processing as described in Section 7 2 2 Asynchronous Read Method Asynchronous Write Method 7 2 1 Synchronous Read Method Asynchronous Write Method The following indicates an example of the main processing performed when the synchronous read method refer to Section7 3 1 is used during reception processing and the asynchronous write method refer to Section7 3 3 is used during transmission processing Perform reception processing by connecting the CCS_REFSTB output of CCS to the interrupt input of the microcomputer and using a rising edge interrupt Perform transmission processing based on timing of your own discretion When a timeout occurs assess conditions based on the timeout error of CCS_M3ERR1_ERR2 ERR21 error information R18UZ0017EJ0100 RENESAS Page 28 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 Main processing Reception processing synchronous read method a Refer to Section 7 3 1 Interrupt Has a timeout occurred Yes Hold Clear processing of device
35. 320 bits each 448 bits each RWr RWw 16 words each 32 words each 48 words each 64 words each RX RY 128 bits each 384 bits each 640 bits each 896 bits each ee RWr RWw 32 words each 64 words each 96 words each 128 words each Remark 1 The latter 16 bits of remote I O RX RY are reserved by the system 2 The cyclic data capacity with an extended cyclic setting of single is the same as the cyclic data capacity of Version 1 R18UZ0017EJ0100 Jul 26 2013 RTENESAS Page 2 of 82 R IN32M3 Series CC Link remote device station 2 Function List Table 2 1 Function list 2 Function List Name Description Setting the number of occupied stations Based on the terminal setting For Version 1 No of VO points 32 to 128 bits Amount of data 4 to 16 words setting possible For Version 2 No of VO points 32 to 896 bits Amount of data 4 to 128 words setting possible Setting timeout transmission path switching time The timeout time is determined by the communication baud rate Taking into consideration transmission inconsistencies at the time of network startup two types of time settings are available at software startup initial setting time and after startup normal setting time Fuse blown detection function When a device is equipped with a fuse send the status of the fuse to the master station Send data separation prevention function The data to be sent is written to the
36. 3F MR RY40 47 MR RY48 4F MR RY50 57 M gt R RY58 5F Not used Not used Not used Not used MR RWw0 L M gt R RWw0 H M gt R RWw1 L M gt R RWw1 H M gt R RWw2 L A A ot allowed ot allowed pa Z 2 2 2 9 v v Address 16 8 80 Up 88 Up Upi Up Upi LO Up Up LO Up LO Up Up Up ower 8C ower 8E 8 8 Lower 94 8 8 ower 9 per ao per S o ofofo m NI a OIN per per per per oO per per Lower 9 gt per O per Al Lower 80 Send data write completed per Receive data read request Vendor code Lower Vendor code Upper er Model code Up per Allowed Up per Timeout time setting ower er 86 SDLED illumination time setting RM ST1 RM ST2 RM RX00 07 RX08 0F RM RX10 17 RM RX18 1F R M RX20 27 RM RX28 2F RM RX30 37 RM RX38 3F RM RX40 47 RM RX48 4F RM RX50 57 RM RX58 5F 6 Memory Map Allowed Allowed Allowed Allowed Allowed lowed lowed lowed lowed lowed lowed lowed lowed lowed lowed lowed lowed lowed Not used RM RWr0 L RM RWr0 H RM RWr1 L RM RWr1 H RM RWr2 L lowed lowed lowed lowed lowed M gt R RWw2 H Not allowed OF MOR RWw3 L Alowed Lower RM RWr3 L lowed MOR RWw3 H Allowed Upper RAM RWr3 H owed MR RWw4 L
37. 5M 0 1 0 1 1677 7216ms 1677 7216ms 3355 4432ms 0 1 0 1 1 1 1677 7216ms 0 1 1 1 R18UZ0017EJ0100 stENESAS Page 35 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 8 Remote Device Station Common Specification 8 Remote Device Station Common Specification 8 1 Cyclic Transmission Signals 8 1 1 Cyclic Transmission Signal Definitions The I O points of the remote device station are divided into a user area and a system area The final 16 bits of RX and RY are reserved as system areas The following lists the number of user area points according to the number of occupied stations 1 occupied station 16 bits 2 occupied stations 48 bits 3 occupied stations 80 bits 4 occupied stations 112 bits Link input i i B9JE J9S Reserved Reserved EE NN RXS7 RYs7 Reserved Reserved oe RXSE ease wuaj s s Remark m A number derived from the station number setting s Indicates the RX RY system area occupied by the slave station R18UZ0017EJ0100 stENESAS Page 36 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 8 Remote Device Station Common Specification 8 1 2 System Area Details 1 RXsB remote Ready Indicates that data transmission reception is possible between the master station and user program of the remote device station
38. 82 R IN32M3 Series CC Link remote device station 3 Specified Parts and Recommended Parts 3 Specified Parts and Recommended Parts 3 1 Recommended Parts The following lists the parts recommended by the CC Link Partner Association for use in the design of CC Link interface circuits For detailed part specifications direct your inquiries to the corresponding manufacturer Table 3 1 Recommended parts te1 Product name Model name Manufacturer Filter MCT7050 A401 Sinka Japan Co ltd RS485 transceiver SN75ALS181NS Texas Instruments Japan Inc RD6 2Z Renesas Electronics When the communication system is isolated notes Manufacturer Product name Model name HCPL 7720 500E 2 HCPL 0720 500E HCPL 2611 500E 99 Photocoupler B HCPL M611 500E PS9117A Renesas Electronics Photocoupler A Avago Technologies Inc Avago Technologies Inc note1 For CC Link interface circuit recommended parts and model names direct your inquiries to the CC Link Partner Association 2 Specify option 060 when the insulation characteristics of Viorm 630VPEAK are required 3 Specify option 060 when the insulation characteristics of Viorm 560VPEAK are required R18UZ0017EJ0100 stENESAS Page 4 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 4 Setting Details 4 Setting Details 4 1 Setting the Number of Occupied Stations Based on the combination listed below the n
39. Answer Are any colors specified or recommended for There is no special specification We use red LEDs for our units the transmission monitor LEDs With the products by other manufacturers the most frequently used colors seem to be red for the ERR LED only and green for other LEDs In the circuit example four LEDs RUN It is recommended to use four LEDs whenever possible to monitor ERRL SDLED and RDLED are used for the link status However if this is not possible due to the mounting displaying the status Is it all right to use only conditions etc it is all right not to use them two LEDs RUN and ERRL Are there any limitations on the size of There are no limitations on the size of characters printed on the characters printed on LED displays and LED displays and panels panels R18UZ0017EJ0100 stENESAS Page 68 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 3 Questions and answers related to switches connectors and terminal blocks Question Answer Does it pose any problems if we place the There are no restrictions on the switch layout switches for setting the station number and If it is difficult to place a group of the setting switches at one place the baud rate rotary switch in a place other place them in different locations than on the panel surface We are planning to place the station number setting switch on the rear surface installation su
40. CLink Partner Association For details of the conformance test contact the CC Link Partner Association Home page address http www cc link org R IN32M3 Series CC Link remote device station 1 Introduction 1 4 Cyclic Data Capacity The data amount of up to 128 bits for RX RY and 16 words for RWr RWw can be handled using Version 1 cyclic by selecting the number of occupied stations between one and four In addition the data amount of up to 896 bits for RX RY and 128 words for RWr RWw can be handled by specifying the extended cyclic transmission setting in Version 2 1 Version 1 Cyclic Data Capacity Table 1 1 Version 1 Cyclic Data Capacity 1 1 Occupied Station Station 2 Occupied Stations 64 bits each No of Occupied Stations 3 Occupied Stations 4 Occupied Stations RX RY 32 bits each RWr RWw 4 words each 2 Version 2 Cyclic Data Capacity Table 1 2 Version 2 Cyclic Data Capacity 8 words each 96 bits each 128 bits each 12 words each 16 words each Extended Oyele No of Occupied Stations Type 1 Occupied 2 Occupied 3 Occupied 4 Occupied NG Station Stations Stations Stations Single RX RY 32 bits each 64 bits each 96 bits each 128 bits each RWr RWw 4 words each 8 words each 12 words each 16 words each Double RXIRY 32 bits each 96 bits each 160 bits each 224 bits each RWr RWw 8 words each 16 words each 24 words each 32 words each Quadruple RX RY 64 bits each 192 bits each
41. D D o 0 lt Q D RENESAS R IN32M3 Series Users Manual CC Link Remote device station R IN32M3 EC R IN32M3 CL All information of mention is things at the time of this document publication and Renesas Electronics may change the product or specifications that are listed in this document without a notice Please confirm the latest information such as shown by website of Renesas Document number R18UZ0017EJ0100 Issue date Jul 26 2013 Renesas Electronics R RM www renesas com Notice Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third pa
42. D terminal of the CCS send buffer to the update buffer has been completed either It maintains the H level If CCS M3SDOK RDRO register is read after this the value 0x0100 has been stored This means that the transfer to the send buffer must have been completed Are we correct in thinking so 3 Which takes priority an initial processing As a general rule priority should be given to error status requests request or error status request Assuming a However this rule does not apply if it would cause deadlock in the request is generated while another requestis operation of the developed device Please specify the operation in being processed the operation manual in such cases 4 The specifications indicate that initialization of During initialization RX and RWr information may be initialized in initial settings occurs in the order of RX either order information followed by RWr information In the asynchronous write method flowchart however the specifications indicate that the settings are to be written in the order of RWr RX Can initialization be performed in the order of RWr RX as well 5 Do we need to verify the transmission The data link is not established during RX and RWr data enable signal of RX and RWr information initialization there is no need to verify the information initial settings during signal initialization R18UZ0017EJ0100 RENESAS Page 70 of 82 Jul 26 2013 R IN32M3 Series CC Link remote
43. LWATE ER EER ee ee AG Ee PE TP HE EEN SE ED N OE RE SP EE a 70 12 3 Protocoland Otli TS a It ie 79 ER 3 Figure 4 1 Figure 7 1 Figure 7 2 Figure 7 3 Figure 7 4 Figure 7 5 Figure 7 6 Figure 7 7 Figure7 8 Figure 8 1 Figure 8 2 Figure 8 3 Figure 8 4 Figure 8 5 Figure 9 1 Figure 9 2 Figure 9 3 Figure 9 4 Figure 9 5 Figure 10 1 Figure 10 2 Figure 10 3 Figure 10 4 Figure 10 5 Figure 10 6 Figure 10 7 Figure 10 8 Figure 11 1 Figure 11 2 Contents of figures Condition of RUN light On ee ER EG E cda E Imtial PO CES ME aa 27 Synchronous Read Method Asynchronous Write Method 29 Asynchronous Read Method Asynchronous Write Method 30 Synchronous Read Method AA SE EE AE NE EE EE EE N 31 Asynchronous Read Method ER en ape eeo EG EG Ee GE onto es o eg se ee gen ees 32 Asynchronous Write Method se se ee RR ses 33 Initial Setting Time Normal Setting Time 34 Normal Setting Time Initial Setting Time 35 RXsB Remote Reddy tn a a e Oh Ra Ee Ee aneto 37 RXS9 RYS9 initial data setting complete setting request flag ie ee ee ee ee Re RR RR RR RA 37 RXS9 RYS9 initial data setting complete setting request flag iese see ee ee ee Re ER RR RR RA 38 When both RXs8 RYs8 and RXs9 RYs9 are implemented ae ee ee ee Re ER RR RR RA 38 RXSA RYSA error status reset request flag 39 With 2 occupied stations and extended cyclic 2Xsetting ii ee ee ee ee ee ee Re ER RR RR RA
44. M gt R status information ST1 as well Execute HOLD CLR information processing based on the status content Read Read data in the order of RY PRWw Receive data read request pen pe q CCS_M3SDOK_RDRQ DRDREA receive data read reset request after the data has been read C Complete Figure 7 5 Asynchronous Read Method R18UZ0017EJ0100 stENESAS Page 32 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 3 3 Asynchronous Write Method The written data is transmitted by the next polling from the master Asynchronous write method Check whether or not write is enabled by reading MWRENL CCS_MWRENL_RCEX MWRENL MWRENL send data write Byte address 00h enable information 0 Enable 1 Disable 1 Disable 0 Enable i Collect and write the data to be sent in one communication process Data RWr RX write Write Write data in the order of RWr gt RX After the data is written write 1 to CCS_M3SDOK_RDRQ WPFLG send data write complete flag Send data write complete gt C Complete Figure 7 6 Asynchronous Write Method Caution When the baud rate is 156Kbps a maximum of 3 08ms is reguired for send processing During this period CCS MWRENL RCEX MWRENL does not become enabled R18UZ0017EJ0100 RENESAS
45. M3SDOK_RDRQ Send data write complete flag 400F BO80H CCS_M3MRST1_ST2 MR status information 400F BOO8H M3RM_SSQ CCS offset address 8Bh R M SO 400F BO8BH M3MR_SSQ CCS offset address OBh M R SQ 400F BOOBH CCS_MWRENL_RCEX Receive data update information 400F BOOOH 5 CHK20DONE Application work area transfer processing module Variable Name Application CC20R DONE Indicates that a single data reception is complete CC20S DONE R18UZ0017EJ0100 Jul 26 2013 Indicates that a single data transmission is complete stENESAS Page 53 of 82 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 10 2 Initial Setting INT_CCV20 After initial setting completion execute Section 10 3 Transmission Reception Processing C Initial setting N INT_CCV20 p y Set the vendor code model code and version Transmission after cleared to 0 flag SDLED ON time setting AA Write initial send data to CCS transmission buffer AA Clear CC Link Version 2 internal work to 0 Current SQ value R NOW SO O Previous SQ value R ZEN SO O Loopback SQ value S_ORI_SQ 0 Transmission SQ value S NOW SO O y Clear reception transmission complete flag to O CC20R DONE O CC20S DONE O CC20_RECEIVE 0 AA Protocol version setting Version information upper bits Fixed to 1 y Extension cyclic
46. Page 33 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 4 Timeout Time Setting Change 7 4 1 Initial Setting Time Normal Setting Time After the first data reception has been completed change the timeout time setting from initial setting time to normal setting time following the procedure below The following cases apply to the first data reception i e the first time refresh data is received after power ON reset or timeout recovery Synchronous read When the first reception complete interrupt occurs as a result of CCS_REFSTB output Asynchronous read When receive data update presence information changes to present for the first time Timeout time setting change TIM3 TIM2 0 For the normal setting time set TIMO to TIM2 in accordance with the transmission rate baud rate in the table below 0 Baud rate Write 70 to TIM3 Write 70 to the lower 4 bits TIM3 TIM2 0 Ne The value of TIM2 to TIMO is set at the rising edge of TIM3 1 Baud rate TIM3 TIM2 O Return TIM3 to 70 0 aud rate When you want to switch the timeout time to normal setting time finish at the Amount of Complete Time until Timeout Time Is Set after First Reception in the following table Figure 7 7 Initial Setting Time Normal Setting Time
47. R R R R R R R R R R R R R Bit position Bit name Function 13 12 Number of occupied stations information KYOKU1 KYOKUO Number of occupied stations 0 0 1station 0 1 2 station 1 0 3 station 1 4 station 11 8 Baud rate switch information Switch setting 7 0 S7 S0 Station number switch information The station number setting switch value will be stored as binary code upon power up or the completion of the reset cycle Note that any value in the range from 0 to 99 00h to 63h is valid because the hardware converts the 2 digit switch value from BCD to binary R18UZ0017EJ0100 RENESAS Page 15 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 3 Error information CCS M3ERR1 ERR2 Address Initial Value CCS M3ER HE ERR ERR HE SSE I STE Bit position Bit name Function 10 ERR22 CRC error 0 Normal 1 CRC error 9 ERR21 Timeout error 0 Normal 1 Timeout error 8 ERR20 CRC error 0 Normal 1 CRC error 0 Normal 1 Error The setting has been changed from the setting at power on 4 SSERR Station number setting switch change error information 0 Normal 5 BSERR Baud rate switch change error information 1 Error The setting has been changed from the setting at power on 1 BERR Baud rate switch setting error information 0 Normal 1 Setting error Value other than 0 to 4 has been set 0 STERR Station number switch setting error information 0 Normal 1 Setting err
48. REFSTB signal Process 2 should take place after Process 1 has been completed and after the falling of the CCS_REFSTB signal R18UZ0017EJ0100 stENESAS Page 65 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 11 Notes on Developing with CC Link Version 2 Master station transmission Remote station transmission CCS_REFSTB 1 station polling amp station response response Link scan time Ee PR AN GITA OE OE a 2 stations Refresh D V 1 station polling amp i ss n ummy signal i polling cycle end refresh La nesess vas 5 TOE A RR 2 stations __Monitor CCS reception buffer 1 Create data to be sent next and transfer the data to CCS update buffer during this time 2 After completing Process 1 turn ON the send data write complet flag M3SDOK during this time l f i Monitor the interrupt request p A e signal of MPU using polling Le i update flag using polling lA Write M3SDOK ON CES Transmit to the E Lis master station transmission CCS update transmission duing the next data from buffer buffer frame circle MPU Figure 11 1Link Scan Time and CCS REFSTB Signal Change R18UZ0017EJ0100 Jul 26 2013 stENESAS Page 66 of 82 R IN32M3 Series CC Link remote device station 11 Notes on Developing with CC Link Version 2 11 4 Handling CC Link Version
49. REFSTB signal set the received SQ from the master station as a loopback SQ and then writes the send data from fraction number 1 to 0 to the update buffer sequentially The CCS_REFSTB signals should rise when refresh data is received during refresh amp single station polling 2 After completing the process 1 check the falling of a CCS REFSTB signal and then turn ON the send data write complete CCS_M3SDOK_RDRQ CCS_REFSTB signals should fall after a refresh cycle has been completed With the process 2 above what is stored in the CCS update buffer will be transferred to the send buffer to be used for transmission and then sent to the master station in the next polling The period of time between the rising of a CCS_REFSTB signal and the rising of a next CCS_REFSTB signal corresponds to a single link scan time Therefore the processes 1 and 2 need to be completed even for a system configuration with the shortest link scan time note note System configuration with the shortest link scan time Transmission rate 10 Mbps Slave station A single remote device station the number of stations occupied 1 For the system configuration described above the link scan time is about 1 1 ms In summary the transmission rate of looped back SQ values should satisfy the following three conditions Process 1 Process 2 Shortest link scan time about 1 1 ms Process 1 should take place after the rising of a CCS_
50. RX and RWr areas and then transferred all at once to the transmission buffer thereby preventing send data separation Receive data separation prevention function The received data are stored in the reception buffer and then transferred all at once to the RY and RWw areas thereby preventing receive data separation Programmable controller CPU status monitoring function Run stop and normal abnormal statuses of the programmable controller CPU can be monitored Network return function Transmission status display function This function automatically connects to the data link a module that has been disconnected from the data link due to an event such as power OFF after the module status has returned to normal The monitor terminal enables the LED display Because an SDLED has a short lighting duration adjustments can be made by software setting Refer to Chapter 8 for details Baud rate setting function 10M 5M 2 5M 625k 156kbps settings available Baud rate station number setting error detection function By referencing error flags abnormal settings for baud rate and station number can be detected Baud rate station number change detection function R18UZ0017EJ0100 Jul 26 2013 If the communication baud rate or the station number setting value is changed to a value that is different from the value at startup it can be detected by referencing the error flag RENESAS Page 3 of
51. Rewriting does not pose any problems written to the 7th bit and the SDLED lighting time must then be written in order to set the SDLED lighting time If data is written to byte address 86h SDLED lighting time setting using 16 bits however the data in byte address 87h initial setting time must also be rewritten Does this pose any problems The specifications indicate that the SDLED The time setting can be written immediately after writing 0 to bit time setting is to be set after writing 0 to bit 7 A wait time is not particularly required 7 but is a wait time required If there is no change in the SDLED time If there has been no change from the initial value the process of setting from the initial value Fh does the writing 1111 after writing O is not required process of writing 1111 after writing 0 need to be performed R18UZ0017EJ0100 stENESAS Page 72 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 5 Questions and answers related to errors Question Answer 1 Are there any processing flowcharts that can be used as a reference when handling errors Are there any standard charts Errors must be handled for each device as required It is not possible to determine standard processing please handle errors according to the specification and communication status of your products 2 The explanation of the BSERR bit of The
52. S application MST11 indicates the normal abnormal status of the master station user application and MST12 indicates the information of the link refresh status Perform the HOLD CLR processing of outputs on the device side according to this information MST13 and MST14 contain information about the transient transmission MST15 and MST16 contain the protocol version of the master station MST17 contains information about the standby master station use is not necessary R18UZ0017EJ0100 RENESAS Page 78 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 12 3 Protocol and Others 1 Questions and answers related to errors Question Answer 1 What is the exact definition of disconnection It means that a data link error occurs and a station is disconnected from the data link Automatic return means that the data link is restarted automatically when problems are solved On what should we base our assessment of a disconnection state A timeout error We know that there are timeout errors but what is the definition of the timeout error It occurs when the time from the completion of refresh normal reception to the time of normal reception of the next refresh exceeds the specified value What is the definition of temporary error invalid stations Is the log of each station saved when a communication error occurs How about the number of ret
53. Turn this signal ON after power ON or hardware reset Be sure to implement this signal Caution This signal turns OFF when master station data transmission reception with the user program is not possible due to an error RXsB Power ON Enabled from this point Figure 8 1 RXsB Remote Ready 2 RXs8 RYs8 initial data processing request processing complete flag Used when the remote device station requests the user program to execute initial data processing after remote device power ON or hardware reset Caution Remote ready RXsB is turned ON after initial data processing is completed RXs8 PO RYs8 a 4 i Initial data processing RXsB gt Enabled from this point Figure 8 2 RXs9 RYS9 initial data setting complete setting request flag R18UZ0017EJ0100 stENESAS Page 37 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 8 Remote Device Station Common Specification 3 RXs9 RYs9 initial data setting complete setting request flag Used when the master station user program requests the remote device station to execute initial data setting Caution RXs9 RYs9 initial data setting complete setting request flag RYs9 i mes pS Initial data setting RXsB y Enabled from this point Figure 8 3 RXs9 RYs9 initial data setting complete setting request flag 4 When bot
54. Xno on Es MRXn0 R kor n W W W W W W W W W W W W Bit position Bit name Function 15 0 Xn15 Xn0 RX update buffer Remark n 0 7 6 2 13 RWr register CCS_M3RMRWRn Address Initial 11 10 9 8 7 6 5 4 3 2 1 0 Value SOONER per F XnE el CE XnB XnA Xn9 Xn8 Xn7 Xne Xn5 Xn4 Xn3 Xn2 Xn1 Xno dd deed MRWRn n W W W W W W W W W W W W Bit position Bit name Function 15 0 Xn15 Xn0 RWr Remark n 0 15 R18UZ0017EJ0100 stENESAS Page 25 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 2 14 R W RWr register CCS_M3HOLDCLR Bit position Bit name HOLDCLR 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 HOL eal 0 0 0 0 DCL 400F BOBA 0000H OLDCLR R 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RW Function HOLD CLR Information Setting This bit notifies the master station of the HOLD or CLR setting of the HOLD CLR process performed by firmware Set the information to be notified to the master station when an error STOP or time over occurs on the master station application master station controller i e whether the device is to HOLD or CLR the data received from the master station 1h HOLD Oh CLR 6 Memory Map Address Initial Value Caution The HOLD CLR process holds or clears data received from the master station when an error STOP or timeout occurs on the master station application master station controller Determine the
55. Y RWr RWw RWw 18 RWr 18 RWw 19 RWr 19 Busa RWw 1A de RWr 1A Reception RWw 1B Transmission RWr 1B SQ 3 RWw 1C SQ 3 RWr 1 RYBF w RXBF EE RWw 1D RWr 1D RWw 1E RWr 1E RWw 1F RWr 1F RWw 10 RWr 10 RWw 11 RWr 11 RWw 12 RWr 12 Nuu RX60 Reception RWw 13 Transmission RWr 13 SQ 2 RWw 14 SQ 2 RWr 14 RX8F RWw 15 RWr 15 RWw 16 RWr 16 RWw 17 RWr 17 RWw 8 RWr 8 RWw 9 RWr 9 RWw A RWr A 1 RX30 Reception RWw B Transmission RWr B SQ 1 RWw SO 1 RWr Q w C Q RX5F r C RWw D RWr D RWr E RWr F RWr 0 RWr 1 RWr 2 mo RXO Reception Transmission RWr 3 SQ 0 SQ 0 RWr 4 j RX2F i RWr 5 RWr 6 RWr 7 R18UZ0017EJ0100 stENESAS Page 51 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 10 Sample Flowchart for CC Link Version 2 10 1 List of Modules and Variables 1 INT CCV2 Initial processing Variable Name Application CC20 RECEIVE CC20R DONE Indicates that reception is complete Indicates that a single data reception is complete CC20S DONE Indicates that a single data transmission is complete R ZEN SQ Previously received Reception SQ value R NOW SQ Currently received Reception SQ value S ORI SQ Loopback SQ value to be transmitted next S NOW SQ Transmissio
56. aa au EE RR EE 10 6 1 Memory Map Lists SE e ese AA KANAN NI MAA 10 6 2 Memory Map APE EN sui oke EE ota 14 6 2 1 Send data write enable information CCS MWRENL RCEJO iese see ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 14 6 2 2 Station number switch information Number of occupied stations information and Baud rate switch information CCS M3STNO BSW KYOKU esse ese ner 15 6 23 Error information CCS M3ERRI ERR2 une 16 6 2 4 M gt R status information CCS M3MRSTI ST2 iese ee se ee ee ee ee ee ee ee ee ee ee ee ee ee 17 6 2 5 RY reception buffer CCS M3MRRY00 OF ee ee ee ee Re RR GRA GRA GRA Gee ee ee ee ee Re Ge Re ee Re ee Re RA 19 6 2 6 RWwn register CCS M3MRRW WI esse ese ee ee Re e GRA GRA Ge ron AR AR ee ee ee ee ee nr Ge Re ee Re GR Re A 19 6 2 7 Send data write complete flag and Receive data read request CCS M3SDOK RDRQ 20 6 2 8 Vendor code CCS M3VENDORCODE sees esse see see se ee se ee ke Ge ek Gee i Ge ek Ge ee GR ee a Ge 21 6 2 9 Model code and version CCS M3MODELCODE_VERSION ss 21 6 2 10 SDLED illumination time setting and Timeout time setting CCS M3SDLED TOVER 22 6 2 11 Cyclic Communication CCS M3RMSTI_ST2 sise 24 6 2 12 RX update buffer CCS MBRMRXN0 NE ees ee ee ee Re Ge Re RR GRA GRA GRA Gee ee ee ee ee Re Ge Re ee Re ee Re GRA 25 6 2 13 RWrregister CCS M3RMRWRN sise Ee Es Ge VEN Ge SAG Ee Ee Ek VER Ee ske Ee Ee Geb Ek GR SAG Ee Ge E
57. able controller is used as the master station the link to the CC Link master station is not started if the power is turned on while the programmable controller CPU is in the STOP status test scans will be repeated This means that SD and RD should flash and RUN and ERR should be turned off In what way is No data for the own station different from Unable to receive the data for the own station precisely Is the FE polling frame data in the polling data expressed in hexadecimal No data for the own station is a status in which data is not refreshed and a timeout error has occurred Unable to receive the data for the own station is a status in which data is refreshed but polling data addressed to the own station is not received Yes the FE data is expressed in hexadecimal Note however that the corresponding address information and related information is automatically set by the CCS the software of your device does not need to know them Are there any methods to conduct hardware tests for the baud rate switch and the station number switch in a simple manner Monitor the switches with CCS_M3STNO_BSW_KYOKU Please note that it is necessary to turn the power on again every time the switch is changed R18UZ0017EJ0100 Jul 26 2013 Regarding the CC Link bit rate are we correct to interpret the value 156k in specifications to be more precisely 156 25k 625k 4 Yes the value is more precisely 156
58. cation without extended cyclic function Page 45 of 82 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 Table 9 6 Details of RV in Version 2 ALA SIS R Loopback C FEES ET VD TP V test data R FIFIF 112 4 bytes C Slave station test loopback data Slave station Master station b7 bo Software version RV Protocol version 00 Ver 1 01 Ver 2 10 Ver 3 For future use 11 Ver 4 For future use R18UZ0017EJ0100 RENESAS Page 46 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 2 3 Extended Cyclic Header Information In Version 2 header information provides for the handshaking between the master and slave stations for the divided data The header information uses the first 16 bits of the data area in the transmission frame This corresponds to the section in the frame used as RY00 0F and RX00 0F in Version 1 This frame section is now referred to as header information in Version 2 containing ST3 and SQ each of which consists of 8 bits ST3 is reserved for future expansion and is not used in Version 2 Master station Cycle ad
59. cessing flow of existing products i e software processing procedure The basic processing is as described in the sample flowchart In the event that the master station user application stops generates an error or pauses to refresh the HOLD CLR output processing is performed in each device 2 Is the latest data always transmitted if the data The latest data is always transmitted update period is shorter than the response period during an asynchronous write operation Or does it depend on the timing at which data written to the update buffer is transferred to the send buffer 3 Does the CCS send a remote station refresh Yes it is asynchronous response data frame asynchronously with the refresh data update interval on the remote station side 4 Are there any restrictions on continuous There are no special restrictions access to the same port and register 5 There is a description regarding Data must be written to byte addresses 82h to 87h vendor code CCS M3SDOK RDRO of the CCS stating to model code version etc and BAh HOLD CLR information write a collection of data to be sent setting at the initial processing and CCS M3RMRXn0 nF RX simultaneously in a single communication to and CCS_M3RMRWRn RWr at normal data transmission the update buffer and then write the data Data is written to the areas above as necessary at data What is the upper limit of the transmission transmission The range varies de
60. d by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or systems manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations You should not use Renesas Electronics products or technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction When exporting the Renesas Electronics products or technology describe
61. d in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations lt is the responsibility of the buyer or distributor of Renesas Electronics products who distributes disposes of or otherwise places the product with a third party to notify such third party in advance of the contents and conditions set forth in this document Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products 11 This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics 12 Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics Instructions for the use of product In this section the precautions are described for over whole of CMOS device Please refer to this manual about individual precaution When there is a mention unlike the text of this manual a mention of the text takes first priority 1 1 Han
62. dling of Unused Pins Handle unused pins in accord with the directions given under Handling of Unused Pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of LSI associated shoot through current flows internally and malfunctions occur due to the false recognition of the pin state as an input signal become possible Unused pins should be handled as described under Handling of Unused Pins in the manual 2 Processing at Power on The state of the product is undefined at the moment when power is supplied The states of internal circuits in the LSI are indeterminate and the states of register settings and pins are undefined at the moment when power is supplied In a finished product where the reset signal is applied to the external reset pin the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed In a similar way the states of pins in a product that is reset by an on chip power on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting has been specified 3 Prohibition of Access to Reserved Addresses Access to reserved addresses is prohibited The reserved addresses are provided for the possible future expansion of functions Do not access these addresses the correct
63. efore design the hardware so that it can positively detect the falling of the CCS_REFSTB signal For example use an MPU that can handle interrupt triggers or embed the falling of the CCS_REFSTB signal into an interrupt using external logic For details see Section 11 3 Write Timing at Transmission R18UZ0017EJ0100 stENESAS Page 63 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 11 Notes on Developing with CC Link Version 2 11 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 M3MRSTI ST 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 gt 2 gt 1 gt 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 X setting transmitting new data from the remote side is less effective transm
64. er by being set to 1 it is also set to 1 when the same data is refreshed Normally refresh data is received successively while the link is active Therefore 1 is continuously written to bit 0 of CCS_MWRENL_RCEX the DCHANG signal as well The CC Link master station continues to perform the link refresh operation when the link is started even if the programmable controller CPU is in the STOP status RY however becomes 0 The explanation of the DCHANG bit of CCS MWRENL RCEX says for an asynchronous read ensure that this bit is set to 1 before reading the receive data We think reading should be performed upon checking that the DCHANG register is set to 1 even when an interrupt is received via CCS_REFSTB We do not intend to limit the usage but it is not necessary to check DCHANG at a synchronous read using CCS_REFSTB i e pin 40 of the CCS It is acceptable to check DCHANG at a CCS_REFSTB interrupt but make sure to keep the processing time within 1 ms R18UZ0017EJ0100 Jul 26 2013 TENESAS Page 74 of 82 R IN32M3 Series CC Link remote device station Question 12 Questions amp Answers Answer When a link is established after the initial processing is completed the reception data update information is always set to on even when the programmable controller CPU is in the STOP status Since interrupts are always received as well it is not possible to perform normal processing
65. er detection RD OFF 1 Channel carrier detection failed ON LJ output 2 During hardware reset Blinking 2 Details of RUN light on Test and test polling Test Tes E polling Refresh and polling i i 3 28ms 10M Unable to detect carrier for channel A 104 8576ms 10M Timeout refresh or refresh amp polling not received A Communication with other station Turn the power on Cancel reset t RUN off Figure 4 1 Condition of RUN light on R18UZ0017EJ0100 RENESAS Page 7 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 4 Setting Details 3 Light ON OFF BLINK conditions Table 4 3 Light ON OFF BLINK conditions Operation Communicating normally but CRC errors have often been detected due to noise The communication baud rate or the station number setting value has changed ki and is different from the value at startup L ERR is lit at intervals of 0 4 s O xt re Impossible operation status O te O Unable to respond because the received data caused a CRC error O xt Impossible operation status O e O Normal communication O e 3 Impossible operation status O e e O No data for the own station O e e e Impossible operation status e xt O Responds to polling signal but the
66. ess 04h 05h error information 1 2 For devices that check the status information master station held kaa ed ka program status etc read CCS M3MRST1 ST2 resister M L A R status information ST1 as well Execute HOLD CLR information read processing based on the status content Read Read data in the order of RY RWw Complete Figure 7 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 R18UZ0017EJ0100 stENESAS Page 31 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 3 2 Asynchronous Read Method Asynchronous read method Confirm whether or not there is update data by reading CCS_M3SDOK_RDRQ DRDREQ receive data update presence information Is there update data Ts this the first time reception has been completed o Yes Timeout time setting change Initial setting time Normal setting time Refer to Section 7 4 1 gt Be sure to write 01 to byte address 81h receive data read request before reading the data Receive data read request set Read CCS_M3ERR1_ERR2 For devices that check status information master station head Oe a program status etc read CCS M3MRST1 ST2
67. ethod Refer to Section 7 3 3 Figure 7 3 Asynchronous Read Method Asynchronous Write Method R18UZ0017EJ0100 stENESAS Page 30 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 7 Sample Flowchart for CC Link Version 1 7 3 Reception and Transmission Processing When the read process is to be completed within 1ms use the methods described in Section 7 3 1 Synchronous Read Method Interrupt Processing and Section 7 3 3 Asynchronous Write Method When the read process is not to be completed within 1ms use the methods described in Section 7 3 2 Asynchronous Read Method and Section 7 3 3 Asynchronous Write Method 7 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 Synchronous read method Is this the first time reception has been completed 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 No Yes Timeout time setting change Initial setting time Normal setting time Refer to Section 7 4 1 Read byte addr
68. evice station 6 Memory Map Table 6 4 When the number of occupied stations is set to 4 Address Address hexadecimal hexadecimal Data width Description Read Write Data width Description Read Write 16 8 00 Lower oo Send data write enable information Allowed Not allowed Send data write completed Upper Receive data update information Allowed Not allowed Upper 81 Receive data read request Lower Allowed Not allowed Vendor code Lower Al information Lower Error information 1 Allowed Model code Al Upper Error information 2 Allowed Version Al Lower los Not used Not allowed SDLED illumination time setting Al Upper Not used Not allowed Timeout time setting Al M gt R ST1 owed RM ST1 Al 08 Upper MR ST2 lowed RAM ST2 Al E MR RY00 07 owed RM RX00 07 Al Upper OB M gt R RY08 0F Allowed Not allowed Upper 8B R M RX08 0F Allowed Allowed o Lower eH MR RY10 17 CT AN owed Lower 8C R gt M RX10 17 Allowed Allowed Upper OD M gt R RY18 1F Allowed Not allowed Upper 8D R gt M RX18 1F Allowed Allowed MR RY20 27 owed BE RX20 27 Allowed Upper M gt R RY28 2F lowed Upper 8F RX28 2F Allowed ko Lower MR RY30 37 owed 90 RX30 37 Allowed Upper MR RY38 3F owed 91 RX38 3F Allowed Lower M gt R RY40 47 owed Lower 92 RX40 47 Allowed 12 92 Upper MOR RY48 4 lowed Upper 93 RX48 4F Allowed Lower MR RY50 57 owed 94 RX5
69. h 1 occupied station 4 x mode X Y 16 x 4 64 bits completed by 2 to 8 data receptions Loopback Reception SO SQ EE RWr w 4 x 4 16 words Upper 4 Lower 4 bits bits Checks this Reception SQ value and performs reception operation Figure 9 3 Details of SO value M R data R18UZ0017EJ0100 sENESAS Jul 26 2013 Page 48 of 82 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 b R MDATA Transmission SO This indicates the order of data transmitted to the master station Loopback SQ This is loopback information containing the SQ value received in the previous Master station to Remote station transmission The master station monitors this data as the remote station s reception status If the continuity of this loopback SQ value is lost the master station decides that the remote station is not receiving data correctly and retransmits data starting from SQ Number of divisions 1 Since the master station checks the loopback SQ value for remote station reception continuity this SQ loopback function is mandatory on remote stations Version 1 or earlier RX RWr 8 bytes when 1 occupied station Ver 2 RWr 2b hen 1 8 bytes when 1 occupied station Same as Y Version 1 This area is divided into 2 to 8 parts and transmitted ST1 ST2 One data set is completed by 2t0 Not used 8 da
70. h RXs8 RYs8 and RXs9 RYs9 are implemented When both RXs8 RYs8 and RXs9 RYs9 are implemented turn RYsB remote ready ON after both initial data processing and initial data setting are completed RXs8 RYs8 y y Initial data processing RYs9 p RXs9 q s Initial data setting RXsB Enabled from this point Figure 8 4 When both RXs8 RYs8 and RXs9 RYs9 are implemented R18UZ0017EJ0100 stENESAS Page 38 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 5 RXSA RYSA error status reset request flag 8 Remote Device Station Common Specification Used for error notification clearing when an error other than a watch dog timer error occurs in the remote device station Caution An error reset reguest clears the error as well as the error code storage area Note however that the device number of the error code storage area is controlled by the remote device Remote ready RXsB is turned OFF from error occurrence to error reset RXsA Error occurrence notification RYsA N r Error cleared N z RXsB 4 gt Error clearance in progress Le Disabled from this point error occurrence Enabled from this point Figure 8 5 RXSA RYSA error status reset request flag R18UZ0017EJ0100 Jul 26 2013 stENESAS Page 39 of 82
71. he receive buffer buffer has been updated this bit becomes 1 receive data Receive buffer byte address 08h 39h word address 08h 38h contains the Received new data during the previous read or the read interval is shorter Even if the updated data is the same as the previously read data if the receive For an asynchronous read ensure that this bit is set to 1 before reading the Address Initial Value 0 MWRENL Send data write enable information 0 Enable Confirms that this bit is set to 0 and writes the send data into the update buffer 1 Disable Writing to the update buffer is disabled when this bit is set to 1 because the data is being transferred from the update buffer to the send buffer When the send data write completion flag 80h is set to 1 the data transfer from the update buffer to the send buffer starts and the status is set to disable When the transfer completes the status is set to enable R18UZ0017EJ0100 RENESAS Page 14 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 2 Station number switch information Number of occupied stations information and Baud rate switch information CCS M3STNO BSW KYOKU Address Initial 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Value CCS_M3ST NO_BSW_ oku Rep pe e sa s3 s2 s2 400F B002H Undefined KYOKU R W 0 0 R
72. icates upon reading the The number of data points read can be any number of bytes The reception data that the DRDREQ bit of DRDREQ bit is a flag used in the reception data separation CCS_M3SDOK_RDRQ should be set to 1 prevention processing Data transfer between the double receive and upon completing the read operation it buffers within the CCS is prevented when it is set to 1 should be reset to 0 Is this operation necessary when reading one byte word Is it possible to read multiple bytes words 3 Is it necessary to turn on DRDREQ reception It is not necessary Synchronous reading however must be data read request of byte address 81h at synchronous read Is it correct that the DCHANG bit of CCS MWRENL RCEX notifies that data has been updated Currently the software on the device side is halted the programmable controller CPU is in the STOP status the RD and RUN LEDs are lit and the SD LED flashes In this status DCHANG is set to 1 At this point we set DRDEO to 1 at this point DCHANG changes to 0 in order to read the receive buffer and return DCHANG to 0 Then DCHANG immediately changes to 1 Why does this happen even though the programmable controller CPU is in the STOP status Is DCHANG updated regardless of the operation of the programmable controller CPU in the same ways as CCS_REFSTB completed within 1 ms The DCHANG signal receives new refresh data and notifies that it is stored in the receive buff
73. ission 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 R18UZ0017EJ0100 RENESAS Page 64 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 11 Notes on Developing with CC Link Version 2 11 3 Write Timing at Transmission Completing the processes 1 and 2 described below in a period of time between the rising ofa CCS_REFSTB signal and the rising of a next CCS REFSTB signal serves to maintain the continuity of the looped back SQ values If the continuity of the looped back SQ values is broken the master station will assess that the slave station has not correctly received the data and then send data in packets from the beginning again Therefore be sure to complete the processes 1 and 2 within the time between the rising of a CCS REFSTB signal and the rising of a next CCS_REFSTB signal 1 After confirming the completion of reception processing by the rise ofa CCS_
74. justment eyde adjustment Transmission Reception Response s s s s T T RYArea RWw Area fi 5 T T RXArea RWr Area 1 2 1 L Station 1 Station 2 I Station 3 Es Station 4 _ Station 64 Station 1 Cyclic data Ss Ss T RX RWr section RY t S ry ITS Ry RY RY RWw 8 wert Ta Ba EE EN EEN EE Header Header information information Figure 9 2 Extended Cyclic Header Information R18UZ0017EJ0100 RENESAS Page 47 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 1 Details of SO value a MR DATA Reception SO This indicates the order of data transmitted from the master station Loopback SQ This is loopback information containing the SQ value transmitted in the previous Remote station to Master station transmission The reception status of the master station can be monitored by checking the continuity of this data If a reception error by the master station is detected it is possible to resend the data again from the first packet The resending of data from the first packet function is optional and is not required Version 1 or earlier RY RWw 8 bytes when 1 occupied station Ver 2 Same as RY RWw Version 1 SO 2 bytes when 1 ST1 ST2 grem 8 bytes when 1 occupied station Y y Not used This area is divided into 2 to 8 parts and received One data set is J Wit
75. k Ve ee AS Ee Ee Gee eed 25 Goa RWr register CCS_M3HOLDCLR ius 26 7 Sample Flowchart for CC Link Version 1 sise 27 7 1 iiitlal Settino RE sp ro ROA be ied onk ae ae ed REA sae 27 7 2 Main A rn ee rn E T E tee Re A is 28 7 2 1 Synchronous Read Method Asynchronous Write Method 28 72 2 Asynchronous Read Method Asynchronous Write Method ee ee ee Re ER RR RA GRA RA Re ee ee 30 7 3 Reception and Transmission Processing 31 7 3 1 Synchronous Read Method Interrupt Processing ee se se RA GR RR RA RA GRA Re ee ee ee ee ee ee ee ee 31 7 3 2 Asynchronous Read Method cuco SI ASSR nne ees via 32 7 3 3 Asynchronous Write Method ne enen nr O EE ee ee 33 7 4 Timeout Time setting Changes SR EE Gee RI A ae 34 7 4 1 Initial Setting Time Normal Setting Time iese se se RA RA RA GR RA GRA Re Ee ee ee ee Re Ge Re ee Re ee Re GRA 34 7 4 2 Normal Setting Time Initial Setting Time see Re Re ee ee ee Re Re Ge Re RR GRA GRA Re Re ee ee 35 8 Remote Device Station Common Specifications 36 8 1 Cyclic Transmission Signals suko sen p eed ee RE dis 36 8 1 1 Cyclic Transmission Signal Definitions ccccccsseesseesceesceeseeseceseceseceaecseecseecaeeeseeeeeseeeseenaeeneeenseesaeenaes 36 8 1 2 System Area BEE EE NE OO N ia 37 8 2 Remote registers ss RR EG ER Ge ses RE Ge ne ER APR edocs oni Ee KG desc ons ko BERE eee aao 40 9 Overview of CC Link Ver 225 A nana ee Dee N EE ee anda ere ee A 41 9 1 Characteri
76. llowed Allowed MR RWw10 L owed Lower AE RM RWr10 L Allowed Allowed M gt R RWw10 H owed Upper JAF RM RWr10 H Allowed Allowed MR RWw11 L owed Lower BO RM RWr11 L Allowed Allowed MR RWw11 H owed Upper JB1 RM RWr11 H Allowed Allowed MR RWw12 L owed Lower B2 RM RWr12 L Allowed Allowed MR RWw12 H owed Upper B3 RM RWr12 H Allowed Allowed 34 5 MoRRWw13 L owed Lower B4 ROM RWr13 L Allowed Allowed 5 MoRRWww13 H owed Upper B5 5 R gt MRWr13 H Allowed Allowed S MR RWw14 L owed Lower B68 3 R gt MRWr14 L Allowed Allowed 2 MR RWw14 H lowed Upper B7 R gt MRWr14 H Allowed Allowed 2 MoRRWwwI5 L owed Lower B8 E RoM RWr15 L Allowed Allowed M gt R RWw15 H Allowed Not allowed Upper B9 RM RWr15 H Allowed Allowed 3A Lower BA Setting HOLD CLR information Allowed Allowed Upper BB Not allowed Not allowed Not used Not allowed No BC BC Not used Not allowed Not allowed 3F BE BF R18UZ0017EJ0100 Jul 26 2013 RENESAS Page 13 of 82 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 Memory Map Details 6 2 1 Send data write enable information CCS MWRENL RCEX CCS MWR E BE 400F BOOOH 0000H ENL_RCEX dE Bit position Bit name Function DCHANG Receive data update information 0 No update same data as the previously read data than the refresh cycle 1 Update Newly received data is stored in t
77. n SQ value to be transmitted next R ZOR SQ Previously received loopback SQ value CCS Register Port CCS M3SDOK RDRQ Application CCS offset address 80h Send data write complete flag RDENL Variable Name CC20_RECEIVE CCS Register Port CCS_M3SDOK_RDRQ Variable Name Reception ready flag 2 CCS_REFSTB Interrupt processing Application Indicates that reception is complete Application Send data write complete flag 400F BO80H 3 ITIM 1ms Interrupt processing Application CC20_RECEIVE CCS Register Port CCS_M3SDOK_RDRQ Indicates that reception is complete Application end data write complete flag 400F BO80H CCS_REFSTB CCS_REFSTB signal for the CCS R18UZ0017EJ0100 Jul 26 2013 TENESAS Page 52 of 82 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 4 ICCV20 Transmission reception processing Variable Name CC20 RECEIVE Application Indicates that reception is complete CC20R DONE Indicates that a single data reception is complete CC20S DONE Indicates that a single data transmission is complete R ZEN SO Previously received Reception SO value R NOW SO Currently received Reception SO value S ORI SO Loopback SQ value to be transmitted next S_NOW_SQ Transmission SQ value to be transmitted next R_ZOR_SQ Previously received loopback SQ value CCS Register Port Application CCS_
78. nect the MPU port output to GND 3 Questions and answers related to version and model code Question Answer CCS_M3MODELCODE_VERSION is an area where the version information of your product i e the CC Link product you develop should be written Write 01h for version A and 02h for version B and update the contents every time you upgrade the product Note that your company must take care of the version control R18UZ0017EJ0100 Jul 26 2013 Regarding the model code at initialization processing Does the model code consist of the following three bytes 1st byte Station information 2nd byte Unit information 3rd byte Model type TENESAS The 3 byte model data is transmitted via the transmission path However the data of the 1st and 2nd bytes are supplied by the CCS It is only the data of the 3rd byte that your company must specify Page 71 of 82 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 4 Questions and answers related to SD LED Question Answer Doesn t SDLED turn on unless the SDLED If OOh is stored after resetting the SDLED turns lighting time is written to byte address 86h on only during the transmission period With this setting the Does it turn on even if the period remains 00h SDLED can scarcely be seen to light up in practice By default after resetting SLEDO to SLED3 are set to 1111 in our products The specifications indicate that 0 must be
79. nnected to the master station transmission speed 10Mbps Since the fastest link scan time at this point is approx 1 1ms polling must be done at intervals of 1ms or less ITIM 1ms interrupt M Save registers etc Yy CHK20DONE Application work area transfer processing Refer to Section 13 5 ECS MWRENL_RCEX _ bo eane i res EE E Ok update Yes Yes No No ICCV20 ICCV20 Transmission Reception processing Refer to Section 13 4 v Reception complete flag ON CC20 RECEIVE 1 Has the receive data been read CC20 RECEIVE 0 Transmission Reception processing Refer to Section 13 4 Reception complete flag ON CC20 RECEIVE 1 Has the receive data been read CC20 RECEIVE 0 S REFSTB falli ebe Resi detected A S falling detected No gt 100 u s 1 100us Yes or less Yes or less v CCS transmission complete flag ON CCS transmission complete flag ON CCS M3SDOK RDRQWPFLAGI 1 CCS M3SDOK RDRQWPFLAGI 1 Data written into CCS becomes ready Data written into CCS becomes ready for transmission N for transmission o Reception complete flag OFF Reception complete flag OFF CC20_RECEIVE 0 CC20 RECEIVE O v
80. of data are output from the master module to the slaves and programmable controller during step a The master module outputs test polling data to the slaves as described in the specifications This data is repeatedly output until the completion of the initial communication The master module outputs I O signals either Xn0 unit error or XnF unit ready to the programmable controller CPU after the power to both the programmable controller and the master module is turned on R18UZ0017EJ0100 Jul 26 2013 stENESAS Page 81 of 82 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 3 Others Question Answer If both the master station and the device station start sending data at the same time will the data be in conflict with each other The device station does not start transmission unless it receives polling data from the master station thus data will never be in conflict When we cancel reset on the device side initialize and enable reception software is halted and then turn on the power to the programmable controller stop status the LED displays become as follows RUN Off ERR Off RD On SD Flashes at approximately 1 second intervals This status is described as impossible in the CCS specifications Could you give us more information At this time update can be performed normally by making the programmable controller run If any Mitsubishi programm
81. olling and refresh data Receiving polling data Receiving test polling and test data Receiving test polling Receiving refresh cycle complete Initial state Ve aE PE se li LITEIT MI I mT mr T R18UZ0017EJ0100 RENESAS Page 9 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 Memory Map Memory must be written in word unit in R IN32M3 6 1 Memory Map List Table 6 1 When the number of occupied stations is set to 1 hexadecimal N Data width Description Read Write A Lower 80 Send data write completed JA Al Al Upper 81 Receive data read request Allowed Lower 82 Vendor code Lower Al ame owe wes Error information 1 Allowed 84 Lower Model code Al Upper os Error information 2 Allowed Upper 85 Version Al BET N Lower 86__ SDLED illumination time setting JA N Upper Timeout time setting Al A Al Upper Al 89 RM ST2 Allowed Allowed Allowed BA Lower RM RX00 07 Allowed Allowed Uppen los Allowed Upper RM RX08 0F Allowed Allowed Allowed ac Lower R gt M RX10 17 Allowed Allowed Upper lop Allowed Upper sp R gt M RX18 1F Allowed Allowed DE Lower Not used Not al BE Lower Not used Not allowed Not allowed Upper Not al Upper Not used Not allowed Not allowed Nota Lower 90 Not used Not allowed Not allowed
82. operation of LSI is not guaranteed if they are accessed 4 Clock Signals After applying a reset only release the reset line after the operating clock signal has become stable When switching the clock signal during program execution wait until the target clock signal has stabilized When the clock signal is generated with an external resonator or from an external oscillator during a reset ensure that the reset line is only released after full stabilization of the clock signal Moreover when switching to a clock signal produced with an external resonator or by an external oscillator while program execution is in progress wait until the target clock signal is stable ARM AMBA ARM Cortex Thumb and ARM Cortex M3 are a trademark or a registered trademark of ARM Limited in EU and other countries Ethernet is a registered trademark of Fuji Zerox Limited IEEE is a registered trademark of the Institute of Electrical and Electronics Engineers Inc EtherCAT is a registered trademark of Beckhoff Automation GmbH Germany CC Link and CC Link IE Field are a registered trademark of CC Link Partner Association CLPA Additionally all product names and service names in this document are a trademark or a registered trademark which belongs to the respective owners Real Time OS Accelerator and Hardware Real Time OS is based on Hardware Real Time OS of ARTESSO made in KERNELON SILICON Inc How to use this manual Thi
83. or Value 0 65 or greater has been set Remark The error is cancelled when it returns to its normal condition R18UZ0017EJ0100 stENESAS Page 16 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 6 Memory Map 6 2 4 M gt R status information CCS M3MRST1 ST2 Address Initial 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Value CCS_M3M MST MST MST MST MST MST MST MST MST 5 ld MST MST MST ki door Boca lt Smeg RST1 ST2 27 26 25 24 23 22 21 20 17 15 14 13 12 11 10 RAW R R R R R R R R R 0 R R R R R R Bit position Bit name Function 15 12 MST27 MST24 MST27 MST26 MST25 MST24 Number of RWw transmission words 0 0 0 0 Owords 0 0 0 1 32 words 64bytes 0 0 1 0 64 words 128 bytes 0 0 1 1 96 words 192 bytes 0 1 0 0 128 words 256 bytes 0 1 1 0 192 words 384 bytes 1 0 0 0 256 words 512 bytes 11 8 MST23 MST20 Number of RY information transmission bits 0 OEYF 0 256 E y F 32 bytes 0 512 E y H 64 bytes 0 768 E y F 96 bytes 0 1024 E y H 128 bytes 0 1280 E y H 160 bytes 0 1536 E y 192 bytes 0 1792 E y F 224 bytes 1 2048 E y H 256 bytes 7 MST17 0 Main master station 1 Standby master station 5 MST15 Protocol Version 0 Ver 1 1 Ver 2 4 MST14 Transient reception 0 Enable 1 Disable R18UZ0017EJ0100 RENESAS Page 17 of 82 Jul 26
84. over Results in a station number switch setting error The L ERR LED turns on 2 Baud rate setting value 0 156kbps 1 625kbps 2 2 5Mbps 3 5Mbps 4 10Mbps 5 to 9 Results in a baud rate switch setting error The L ERR LED t urns on R18UZ0017EJ0100 stENESAS Page 6 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 4 Setting Details 4 3 Transmission Monitor Section Terminals for LED 1 Light ON OFF BLINK conditions Table 4 2 Light ON OFF BLINK conditions LED name Status Condition When the refresh signal or the refresh signal and polling signal are normally received after network entry 1 Refer to the figure below 1 Before network entry 1 Refer to the figure below L RUN 2 Channel carrier detection failed ON TH output 3 Timeout 4 During hardware reset Blinking 1 CRC error 2 Station number switch setting error at reset release 0 or 65 stations ON or more including the number of occupied stations 3 Baud rate switch setting error at reset release a setting of 5 or higher 1 Normal communication LERR ON TLJ output OFF j 2 During hardware reset The switch setting changed from the setting at reset release 0 4s Blinkin blinking ON During transmission or 0 41ms x 21 after transmission n 1to8 SD 1 Other than the above ON TLJ output kiaj 2 During hardware reset Blinking ON During channel carri
85. pecifications However if an error exists that makes it inconvenient to set remote ready to OFF it is acceptable to not set remote ready to OFF as clearly indicated in the manual R18UZ0017EJ0100 Jul 26 2013 The master station and slave station L RUN light will not turn on and a data link cannot be established What should check stENESAS Check the following items Is the initial processing completed Is REP still set to H Is the CC Link cable disconnected or is there a wiring error Is the CC Link cable disconnected Is the terminating resistor disconnected Page 80 of 82 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 2 Questions and answers related to initial processing specifications common to remote devices Question Answer 1 The initial data processing request flags are as follows RX m n 8 Initial processing complete flag RY m n 8 Initial setting request flag RY m n 9 Initial data setting complete flag Is it mandatory to set RX m n 9 It is not mandatory to use these signals if this processing is not necessary Note however that these signals cannot be used for other purposes The CC Link master module is initialized with a programmable controller program according to the following procedure a Initialize other circuit boards will take several seconds b Initialize the CC Link In this case what kinds
86. pending on the number of amount occupied stations the upper limit is the occupied data Also does writing to the update buffer mean writing data to any address wherever you want to store the data Is any other processing necessary 6 Is it possible to obtain the status equivalent to There are no signals that are completely synchronized If a link is the RUN signal of pin 62 of the CCS For started at normal operation DCHANG of CCS M3SDOK RDRQ example is it possible to obtain the same turns on at each link scan please substitute with this status for the SQSTOPL signal on the memory map 7 In the sample application flowchart data is There will be no problems as far as data is read within 1 ms read within the interrupt handler via pin 40 of the CCS REFSTB Are there any problems in using it to read data outside the interrupt handler Is it true that ST1 and ST2 of CCS M3RMST1 ST2 are identical to those of CCS M3MRST1 ST2 They are different CCS_M3RMST1_ST2 represent the status of the master station CCS M3MRST1 ST2 represent the status of remote stations and data is stored in them by the CCS It is possible to read from them but not to write to them R18UZ0017EJ0100 Jul 26 2013 TENESAS Page 77 of 82 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers Can you explain about CCS_M3MRST1_ST2 MST10 indicates the RUN STOP status of the master station user of the CC
87. r to Section 10 4 Yes v 950 us or less Reception complete flag CCS transmission complete flag ON CC20 RECEIVE 1 No CCS M3SDOK RDRQWPFLAG 1 Data written into CCS becomes ready for transmission l Reception complete flag OFF y CC20 RECEIVE 0 CHK20DONE Application work area transfer processing Refer to Section 10 5 No After recovering the registers IRET Figure 10 2Transmission Reception Processing Using Interrupt CCS_REFSTB signal R18UZ0017EJ0100 stENESAS Page 56 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 10 3 2 Example of Polling 10 Sample Flowchart for CC Link Version 2 The following shows an example of transmission reception processing in CC Link Version 2 that performs polling processing at an interval of 1ms or less using a timer The processing in the two areas enclosed by dotted lines are identical In this example before and after the polling interval assuming that the processing time within the unit is constant Polling condition shortest link scan time transmission SQ and loopback SQ can be transmitted received without fail by polling When using polling execute the processing so that incompletion does not occur even with the The shortest link scan time is the time required for one remote device station 1 occupied station to be co
88. refresh reception caused a CRC error e LE TE Impossible operation status O Data for the own station caused a CRC error 9 e Impossible operation status e e xt O Link startup has not been conducted Impossible operation status e o e O Either no ala for the own station or unable to receive the data for own station due to noise Unable to receive data due to wire breakage etc Power off or hardware being e O set O O Baud rate and or station number setting error O ON 0 OFF 3 BLINK Caution A blinking L ERR light warns the operator that there has been a change in the baud rate or station number setting The setting will be established at the next reset R18UZ0017EJ0100 stENESAS Page 8 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 5 Monitor Outout of Reception Frame Information 5 Monitor Outout of Reception Frame Information MON7 6 Monitor terminals for internal signals The signals to be monitored are not specified MONS Set to high when RWw information bit data of the own station is being received MON4 Set to high when RY information bit data of the own station is being received MON3 Set to high when a communication frame bit data other than a flag pattern is being received MON2 to 0 Display the type of frame being received according to the table below Table 5 1 Monitor outout of reception frame information Frame type Receiving p
89. rface and the baud rate setting switch on the bottom surface of the station Regarding the setting of the station number Station number setting is mandatory This is because if the We are planning to fix the station number customer cannot set the station number freely it may not be instead of using a rotary switch Does this possible to configure a system specification pose any problems It is however all right to use dip switches or software processing instead of a rotary switch We want to install a communication It is all right to layout the connector as you like connector RS485 on the bottom surface of the station Does this pose any problems We will make it possible to insert and remove the connector There is no specification for the external form There is no specification for parts except the specified parts Can we decide the following as we like 1 Any design can be used for the LEDs 1 The shape layout color and size of the 2 Use 2 piece connectors If 2 piece connectors cannot be used LEDs please specify in your manual that this product cannot be 2 The type of connectors we are replaced in the link operation status without shutting down the considering entire link Online connection and disconnection are not the use of Conbicon connectors made by possible Phoenix 3 Any design can be used for the switches 3 The size and type of rotary and dip switches we are considering the use of S
90. ries By specifying some of the link status special relays SB and link special registers SW of the master station as temporary error invalid stations it is possible to exclude the stations specified as temporary error invalid stations from being detected as stations in the error status even if they are down By using this function it is possible to replace modules without causing link errors the power to the modules to be replaced must be turned off The specification of temporary error invalid stations does not require parameters it can be changed online If any temporary error invalid stations are down the power is turned off the outputs from the master station are turned off while the inputs are maintained it is possible to replace them while displaying the information before the shutdown The information log of each station is not saved when a communication error occurs The real time information of each station is written to the link special register SW but it simply indicates the bit status and is cleared when the error is canceled and the station recovers and returns to the system To leave the information in the log it is necessary to save it with a program on the master station side every time the status changes The number of retries is saved for the entire network but there is no information for each station Is it possible to receive the next request command when the error status flag RX m n A is ON Yes it
91. rties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration modification copy or otherwise misappropriation of Renesas Electronics product Renesas Electronics products are classified according to the following two quality grades Standard and High Quality The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots etc High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems and safety equipment etc Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to human life or bodily injury artificial life support devices or systems surgical implanta
92. s manual is intended for users who wish to understand the functions of Industrial Ethernet network LSI R IN32M3 EC MC 10287F1 HN4 A for designing application of it It is assumed that the reader of this manual has general knowledge in the fields of electrical engineering logic circuits and microcontrollers Particular attention should be paid to the precautionary notes when using the manual These notes occur within the body of the text at the end of each section and in the Usage Notes section The revision history summarizes the locations of revisions and additions It does not list all revisions Refer to the text of the manual for details Related The related documents indicated in this publication may include preliminary versions However Documents preliminary versions are not marked as such Please be understanding of this beforehand In addition because we make document at development planning of each core the related document may be the document for individual customers R IN32M3 CBI 4 ERI BHA BABS R IN32M3 series Datasheet R18DS0008EJ0100 R IN32M3 EC User s Manual R18UZ0002JJ0100 R IN32M3 CL User s Manual R18UZ0004JJ0100 R IN32M3 series User s Manual Peripheral function R18UZ0007EJ0300 R IN32M3 Series Proguraming Manual OS edition R18UZOO11EJ0200 R IN32M3 Series Proguraming Manual Driver edition R18UZ0009EJ0200 R IN32M3 Series CC Link device station This manual 2 Notation of N
93. sENESAS Jul 26 2013 Page 60 of 82 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 Transmission Reception Processing Module ICCV20 Continued 3 This processing checks the loopback SQ and decides whether or not retransmission is to be performed Loopback check Implement this processing in the 8x expanded cyclic setting mode The process does not need to be implemented when the expanded cyclic setting is 4x or less Y work3 R_ORI_SQ 1 Although there is no way of detecting a work3 work3 amp divisions 1 missed packet and retransmitting it unnecessary link scans can be avoided during normal communication work3 R_ZOR_SQ work3 previous transmission N loopback SQ p In the case of divisions 1 which is 7 in 8x mode Ed Ra this must always be accepted since data may be FR ORI SO divisions 1 f i e Yes Loopback SQ divisions 1 retransmitted by the local station A OO ee ies Yes No If the value is identical to the previous Loopback SO R_ORI_SQ R_ZOR_SQ value there is a possibility that the processing on the Yes Loopback SQ previous Loopback SQ A counterpart side did not make it on time which means the correct Loopback may be received in the next communication Therefore this is OK No ele pe Ga Missing data is detected only after 2 link scans
94. setting multiple setting Set to bits 15 14 of CCS_M3RMST1_ST2 y Cyclic data invalid setting 1 1 The setting is invalid during the initial CCS M3RMST1 ST2 M3RMST1 1 setting process The setting is valid after Z the master station protocol version has been confirmed as Version 2 by test polling from the master y Set R gt M SQ value of CCS to the initial value 0 v Send data write complete M3SDOK ON Y Timeout time setting Same as CC Link Ver 1 y Ready for reception CCS RDENL O y Return b Figure 10 1Initial Setting INT CCV20 R18UZ0017EJ0100 RENESAS Page 54 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 10 3 Transmission Reception Processing 10 3 1 Example Using an Interrupt CCS REFSTB Signal The following shows an example of transmission reception processing in CC Link Version 2 that utilizes an interrupt at the rising falling of the CCS REFSTB signal of the CCS R18UZ0017EJ0100 RENESAS Page 55 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 CCS REFSTB Interrupt y Save registers etc y Is the interrupt triggered by rise Yes No Has the receive data been read CC20_RECEIVE 0 ICCV20 Transmission Receptio n processing Refe
95. sm every 4 link scans CASE1 RX RWr SQ 3 area CASE2 Version For every link scan RX RWr licati k Transfer every 2 work SQ 2 area For every link sca application wor 4 link scans area an soma ELL For every link sca area SQ 1 area mm mmm For every link scan SO 0 area sk Mast aster CCS station MJ CASE3 RY RW SQ 3 area CASE4 W sa arda E For every link scan RY RWw Version For every link scar application work rens ey 2 work SQ 1 area F or every link sca area area For every link scan SQ 0 area Figure 11 2Example of 4x setting R18UZ0017EJ0100 stENESAS Page 67 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 12 Questions amp Answers 12 1 Circuit Design in General 1 Questions and answers related to specified parts Question Answer Is it mandatory to use CC Link specified The specified parts are essential to maintaining the performance parts Can they be substituted with other parts of CC Link please use the specified parts with the same specifications While it is specified to use the RD6 2Z T2B The RD6 2Z T1B can also be used The RD6 2Z T2B and T1B Zener diodes can we use T1B rather than Zener diodes are in fact the same Zener diode products the only T2B difference is the direction of the device taping of the mold packaging There is thus no problem in using RD6 2Z T1B 2 Questions and answers related to LEDs Question
96. stics of CC Link Ver 2 s sss sssisiss ERG Ee be Ge genuis bed Ee Ee be Ge ee catas 42 9 1 1 Extended AE EE EES a oln N HELEN ARE 42 9 1 2 Less Occupied StatiOns SE EE a Nk heft ee eb de e A ated adv 43 9 2 Overview Of Protocol sur pai AA Re ge va ere is das 44 9 2 1 Overview of Extended Cyclic Communication ss 44 9 2 2 Transmission of Own Station Information cece se ee ss 45 9 2 3 Extended Cyclic Header Information ses 47 9 3 Relationship between SQ Values and RX RY RWrI RWW eee 51 10 Sample Flowchart for CC Link Version 2 ee ee ee ER RA iii 52 10 1 List of Modules RE EE BA RE RE EE Tente biog ete esse 52 103 mitialSetting INT COV20 o non taba erecta ea Gee KIO 54 10 3 Transmission Reception Processing sman tree See ee eat tt 55 10 3 1 Example Using an Interrupt CCS REFSTB Signal 55 10 3 2 Exampleso f Pollingva en E e no o o e e ee de ee 57 10 4 Transmission Reception Processing Module ICCV20 ee se RA diese 58 10 5 Application Work Area Transfer Processing Module CHK20DONE ee sesse sees se ee ee se ese Gee ee ek ee ee Ge ek de 62 11 Notes on Developing with CC Link Version 2 0 0 ee se ee ke ee ie 63 11 1 Hardware As A it a AE AEP Seat p i ns I Kuo l SCARE am mamu Ee de 63 11 2 IP SENO SG so 64 11 3 Write Taming at Transmission Ane Peo eee aea 65 11 4 Handling CC Link Version 2 Work Area 67 12 QUESTIONS BANS WEIS n EE A eala da 68 12 1 Circuit Design m General smo EE RE GE kn ae Re ee ee 68 12 2 SO
97. ta receptions Loopback Transmission SO SO Upper 4 Lower 4 bits bits Figure 9 4 Details of SQ value R M data R18UZ0017EJ0100 RENESAS Page 49 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 Split transmission Transmission starts with the Transmission SQ number of Divisions 1 and is decremented until it becomes 0 This indicates the end of split transmission The loopback SQ number will contain the received and acknowledged Transmission SQ number Split reception The split reception data is recombined when the transmission SQ number equals zero Continuity of the SQ numbers is checked Redundant receptions are discarded SQ number Decrement 1 Split in 4 Transmission ars Loopback SO Transmission SO Reception Split in 4 Figure 9 5 Details of SQ value loopback R18UZ0017EJ0100 stENESAS Page 50 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 3 Relationship between SQ Values and RX RY RWr RWw The relationship between SQ values and RX RY or RWr RWw is shown below Example with 2 occupied stations at 4x setting The SQ values are transmitted and received in the descending order Furthermore the transmitted received message content RX RY and RWr RWw is stored in the descending order Table 9 7 Relationship between SQ Values and RX R
98. tible remote device stations Software Firmware Protocol related to CC Link Version 2 must be constructed in software firmware This document contains notes as well as sample flowcharts for developing CC Link Version 2 compatible remote device stations R18UZ0017EJ0100 RENESAS Page 41 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 1 Characteristics of CC Link Ver 2 9 1 1 The capacity of cyclic data per station can be increased by using extended cyclic Extended Cyclic Table 9 1 Extended Cyclic Version 2 Version 1 Maximum number of links RX RY 8192 bits RX RY 2048 bits Data volume Number of links per machine Data volume 1 station occupied RWw RWr 2048 words RX RY 32 to 128 bits RWw RWr 8 to 32 words RWw RWr 256 words RX RY 32 bits RWw RWr 4 words 2 stations occupied RX RY 96 to 384 bits RWw RWr 16 to 64 words RX RY 64 bits RWw RWr 8 words 3 stations occupied RX RY 160 to 640 bits RWw RWr 24 to 96 words RX RY 96 bits RWw RWr 12 words 4 stations occupied RX RY 224 to 896 bits RWw RWr 32 to 128 words RX RY 128 bits RWw RWr 16 words Number of occupied stations per machine 1to4 1to4 Extended cyclic setting 1x 2x 4x 8x 1x None Caution When 1 setting is set in Version 2 the header information for extended cyclic does not exist and frame and data amo
99. tion 6 2 4 Yes Is this the first time reception has been completed Timeout time setting change y No Refer to Section 7 4 1 gt Y A M3MR_SSQ B A 8 Ofh Retrieve lower 4 bits R NOW SO B Store current SO value S ORI SQ B Store loopback SQ value R ORI SQ A gt gt 4 amp divisions 1 Get upper 4 bits Figure 10 4Transmission Reception Processing Module ICCV20 R18UZ0017EJ0100 Jul 26 2013 TENESAS Page 58 of 82 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 Current SQ value divisions 1 R_NOW_SQ divisions 1 Please note that when an SQ value far greater than expected was received if the value is not checked at this E Always receive the first time data work area Receive first time data and store in CC Link Version 2 0 Yes Receive the s subsequent and store it in CC Link Version 2 0 work area E matched econd data and sends the same ST1 and ST2 for SQ 3to0 theremote station side reads constantly to ensure timeliness in case of an error No Middle of a data set Is current Reception SQ value 0 Completed a data set R NOW SQ 0 Yes 1 data set completed flag is set ON CHK20DONE CC20R DONE 1 Reception data
100. tions etc or may cause serious property damages nuclear reactor control systems military equipment etc You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application for which it is not intended Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage cause
101. umber of occupied stations can be set from 1 to 4 With one communication 32 I O bits and 4 words of data can be used per station Table 4 1 Occupied stations setting Number of occupied stations 1 2 3 4 Terminal SENYUO L H L H SENYU1 L L H H When the number of occupied stations is set to 2 With one communication 64 I O bits and 8 words of data can be used Caution When the IOTENSU terminal is set to H the number of VO points is fixed at 32 regardless of the Number of Occupied Stations setting R18UZ0017EJ0100 RENESAS Page 5 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 4 Setting Details 4 2 Setting the Station Number and Baud Rate Table 4 2 Setting the station number and baud rate Station No 70 80 90 ERE 10 20 30 40 50 60 note1 note1 note1 H H H H H H H L L H H H L L L L H H H L L H H L L H H L H L H L H L H L Station No nes FBS a 1 2 3 4 5 6 7 8 9 Terminal SW8 H H H H H H H H L L SW4 H H H H L L L L H H SW2 H H L L H H L L H H SW1 H L H L H L H L H L 5 6 Y 8 9 Baud Rate 0 4 2 3 4 Terminal note2 note2 note2 note2 note2 BS8 H H H H H H H H L L BS4 H H H H L L L L H H BS2 H H L L H H L L H H BS1 H L H L H L H L H L note1 The settings result in error Station number setting value 1 to 64 Station number normal 0 or 65 and
102. umbers and Symbols Weight in data notation Left is high order column right is low order column Active low notation xxxZ capital letter Z after pin name or signal name or xxx N capital letter N after pin name or signal name or xxnx pin name or signal name contains small letter n Note explanation of Note in the text Caution Item deserving extra attention Remark Supplementary explanation to the text Numeric notation Binary xxxx xxxxB or n bxxxx n bits Decimal xxxx Hexadecimal xxxxH or n hxxxx n bits Prefixes representing powers of 2 address space memory capacity K kilo 2 1024 M mega 2 1024 G giga 2 1024 Data Type Double word 32 bits Word 16 bits Byte gt 8 bits Contents t Arone ei N N EA EE EE A EE a EE OE 1 1 1 Related ul od ER dotes 1 1 2 Generic Terms and Abbreviations e ee eet ne aed tbe ante LE 1 1 3 GETIK Parter ASSOCIATIONS en EG GR sen pk eg ae RA ee eg Re ee Ro ee iah 1 1 4 Cyclic Data Capacitan EE EE OE ORE EE EE 2 Ln FANCIO LIS E EER SG N EE RE EE EE GE N ee I 3 3 Specified Parts and Recommended Parts sien 4 3 1 Recommended Parts as as dera el nee i de ll e do o ll dl 4 4 SettingDetails A NN 5 4 1 Setting the Number of Occtipied db dite 5 4 2 Setting the Station Number and Baud Rate sise 6 4 3 Transmission Monitor Section Terminals for LED 7 5 Monitor Outout of Reception Frame Information 9 0 Memory Mapa NE EE OE RR Ka kun ln
103. unt are identical to Version 1 Then don t use 1 setting of Ver 2 use Ver 1 communication mode Table 9 2 Relationship between the number of occupied stations and extended cyclic setting in CC Link Version 2 Stations 1 station occupied 2 stations occupied 3 stations occupied 4 stations occupied 1x Setting RX RY 32 bits RWw RWr 4 words RX RY 64 bits RWw RWr 8 words RX RY 96 bits RWw RWr 12 words RX RY 128 bits RWw RWr 16 words 2x Setting RX RY 32 bits RWw RWr 8 words RX RY 96 bits RWw RWr 16 words RX RY 160 bits RWw RWr 24 words RX RY 224 bits RWw RWr 32 words 4x Setting 8x Setting R18UZ0017EJ0100 Jul 26 2013 RX RY 64 bits RWw RWr 16 words RX RY 128 bits RWw RWr 32 words RX RY 192 bits RWw RWr 32 words RX RY 384 bits RWw RWr 64 words RX RY 320 bits RWw RWr 48 words RX RY 640 bits RWw RWr 96 words RX RY 448 bits RWw RWr 64 words RX RY 896 bits RWw RWr 128 words TENESAS Page 42 of 82 R IN32M3 Series CC Link remote device station 9 Overview of CC Link Ver 2 9 1 2 Less Occupied Stations Table 9 3 Relationship between number of occupied stations and number of connected modules No of Occupied Stations 1 station occupied 2 stations occupied 3 stations occupied 4 stations occupied No of connected modules of remote device station per master 42 modules 32 modules 21 modules 16 modules
104. v No CCS_REFSTB falling detection flag CCS_REFSTB falling detection flag OFF OFF gt p III I F OJ v y CHK20DONE Unit internal processing for ed Application work area transfer 1ms interrupt er processing Refer to Section 13 5 Application processing k y After recovering the registers IRET Figure 10 3Transmission Reception Using Polling R18UZ0017EJ0100 stENESAS Page 57 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station 10 Sample Flowchart for CC Link Version 2 10 4 Transmission Reception Processing Module ICCV20 The following indicates the processing called during interrupt or polling based transmission reception processing di ICCV20 p CCS M3MRSTI ST2 MST15 0 Master station version 1 Yes y Warning output ON If version discrepancy is detected some warning is output y CCS M3MRSTI ST2 MST1 1 Set cyclic transmission to DISABLE y No Refer to Section 6 2 4 If invalid set all RX and RWr to 0 Set Transmission SQ value to 0 M3RM_SSQ 0 Y Transmission complete flag ON CCS_M3SDOK_RDRQ WPFLG 1 y Reception data request OFF CCS_M3SDOK_RDRQ DRDRQ O y Other initialization such as work area initialization return Warning output OFF y CCS M3MRSTI ST2 MST1 1 Set cyclic transmission to ENABLE Refer to Sec
105. ves data The following shows a general description of the communication Master station Transmission Polling amp a Polling amp Polling amp refresh jie refresh amas refresh Reception Response Response L J L J k Y First division Second division Transmission RYOO OF RYOO OF Transmission RYOO OF RY00 OF STS RY10 1F RY10 1F RY10 1F AE RY10 1F RY20 2F RY RY20 2F RY20 2F Li LP RY20 2F RY30 3F a RY D RY30 F RY30 3F RY RY30 3F RY40 4F RY40 4F RY40 4F RY40 4F RY50 5F RY50 5F RY50 5F RY50 5F RWw0 3 RWw0 3 RWw0 3 RWw0 3 RWw4 7 RWw RWw47 RWw4 7 a RWw IA RWw4 7 RWw8 B l DEA RWw D RWw8 B RWw8 B RWw RWw8 B RWwC F RWwC F RWwC F RWwC F Reception RXOO OF RXOO OF Reception RXO0 OF RX00 OF STS RX10 1F E RX10 1F RX10 1F Sa RX10 1F RX20 2F RX RX20 2F RX20 2F eu RX JO di RX20 2F RX30 3F a RX sx RX30 3F RX30 3F RX RX30 3F RX40 AF RX40 AF RX40 4F RX40 4F RX50 5F RX50 5F RX50 5F RX50 F RWr0 3 RWr0 3 RWr0 3 RWr0 3 RWr4 7 RWr RWr4 7 RWr4 7 RWr eo RWr4
106. wed AE Lower used lowed Not used lowed Upper used lowed Not used lowed BO Lower Bo used lowed Not used lowed Upper used lowed used lowed B2 Lower used lowed used lowed Upper used lowed used lowed Lower used lowed used lowed p4 Upper used owed used owed Lower used lowed used lowed Fe Upper used lowed used lowed Lower used lowed used lowed Be Upper Bo used lowed Lower BA _ Setting HOLD CLR information Allowed BA Upper Not used Not allowed Ol Not used lowed Not al BC BC Not used N BE BF v v v fo fo fo fo Dv v jv v Reception buffer 9 nv JY v V jojo jo vm fo V L L o o V w vm v lo jojo jo fo fo jo L fo vm o lo Update buffer w gt o lowed Not allowed R18UZ0017EJ0100 stENESAS Page 11 of 82 Jul 26 2013 R IN32M3 Series CC Link remote device station Table 6 3 When the number of occupied stations is set to 3 Address 16 8 00 Lower 04 Upper Lower 06 06 U O olo o mjojojouoj gt ojo O aa wo v Oo T M mo Fry Fe EU EN EN EN EN ES Lower oo Send data write enable information pper Receive data update information Error information 1 Error information 2 Not used MR ST1 MR ST2 MR RY00 07 MR RY08 0 MR RY10 17 MR RY18 1F MR RY20 27 MR RY28 2F MR RY30 37 MR RY38
107. whether or not communication has been normally performed between the master station and remote device station When a carrier is not detected on the transmission path within the carrier monitoring time 3 28ms for 10Mbps an error occurs The status changes to normal when either a carrier is detected on the transmission path or CCS is reset 6 Can timeout errors occur if the power to the Timeout is checked for the period from the time polling data is master station is not turned on received to the time the next polling data is received This means that polling data has not been received at all if the master station is not started so timeout errors will not occur R18UZ0017EJ0100 Jul 26 2013 TENESAS Page 73 of 82 R IN32M3 Series CC Link remote device station 12 Ouestions amp Answers 6 Questions and answers related to reception data read processing Question Answer 1 When reading data do we just need to set 01 in CCS_M3SDOK_RDRQ write 01 to CCS_M3SDOK_RDRQ Must we set it back to 0 after reading the data CCS M3SDOK RDRO reception data read request is used to secure data consistency by preventing the link data from being overwritten by the master station while reading the receive buffer As described in the flowchart in the specifications the value 1 should be written to this address before reading data and 0 should be written after reading is completed 2 The specification ind

Download Pdf Manuals

image

Related Search

Related Contents

User Manual    WhisperAir 12V/24V  LA SIESTA MEDITERRANEO  Intel MPCHC5525 User's Manual  User manual Bedienungsanleitung Manuel d'Utilisateur Manual del  Manual de Usuario TurfBoss  Drive Medical Design Plumbing Product 11138-1 User's Manual  EN 14619 AUFBAU- UND GEBRAUCHSANLEITUNG  ISE/pH pHmetros  

Copyright © All rights reserved.
Failed to retrieve file