20
Demonstrating CC-Link IE Field Basic Master and Slave Reference Design with Processor SDK Linux TI Design: http://www.ti.com/tool/tidep-0089

Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Embed Size (px)

Citation preview

Page 1: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Demonstrating CC-Link IE Field Basic Master and Slave

Reference Design with Processor SDK Linux

TI Design: http://www.ti.com/tool/tidep-0089

Presenter
Presentation Notes
Intro music plays for 10-11 seconds
Page 2: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link
Presenter
Presentation Notes
1023.mp3 Hello everyone. This video demonstrates how to test CC-Link IE Field Basic Master and Slave Reference TI Design. CC-Link Industrial Ethernet Field Basic Master and Slave functionality is supported on Processor Software Development Kits for Linux, also known as the Processor SDK Linux and Processor SDK for RTOS. In this video, we will demonstrate the Linux use case. There is a separate video for RTOS demonstration. For additional details on Linux or RTOS demonstration, download the reference guide for this TI Design at the link shown.
Page 3: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Device EVM

IEF Basic on EMAC (CPSW)

IEF Basic on PRU-ICSS

Linux RTOS Linux RTOS

AM572x AM572x EVM AM572x IDK

AM571x AM571x IDK

AM437x AM437x EVM

AM437x SK AM437x IDK

AM335x

AM335x EVM AM335x

BeagleBoneBlack AM335x SK AM335x ICE

66AK2Gx K2G EVM K2G ICE EVM

Presenter
Presentation Notes
1024.mp3 Starting with the Processor SDK Linux 4.1 release, CC-Link IE Field Basic Master and Slave is supported on all Sitara AM-class ARM processors and 66AK2G multicore DSP-plus-ARM processors. The table shows the support available on various platforms. Support is available on both PRU-ICSS and EMAC CPSW modules. PRU-ICSS supports CCLink IE Field Basic upto 100 Mbps link speed. EMAC CPSW supports Cclink upto 1Gbps link speed. We will be using PRU-ICSS for this demonstration. You can follow the similar steps shown in the video for testing EMAC CPSW.
Page 4: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Agenda

Set Up Hardware

CC-Link Software

Run CC-Link Binaries

Validate Master-Slave

Communication

Modify the Source Code and Rebuild

Presenter
Presentation Notes
1025.mp3 First, we will discuss the required hardware and how to set it up for this CC-Link demonstration. Next, we will discuss the CC-Link software. We will then locate and run the CCLink binaries, and verify that the master and slave are communicating. Finally, we will discuss how to make changes to the CC-link source code and rebuild CCLink binaries.
Page 5: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Set up hardware

Set Up Hardware

CC-Link Software

Run CC-Link Binaries

Validate Master-Slave

Communication

Modify the Source Code and Rebuild

Presenter
Presentation Notes
1026.mp3 Let’s start with the hardware setup.
Page 6: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Hardware setup

AM3359 ICE AM3359 ICE

Presenter
Presentation Notes
1027.mp3 For this demonstration, we use two AM335x Industrial Communication Engine evaluation modules. These boards feature the Sitara AM335x processor with an ARM A-8. A network switch is used to connect the two ICE boards. There is no restriction on the switch. You can use any switch of your choice.
Page 7: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Hardware setup

AM3359 ICE AM3359 ICE

Presenter
Presentation Notes
1027.mp3 For this demonstration, we use two AM335x Industrial Communication Engine evaluation modules. These boards feature the Sitara AM335x processor with an ARM A-8. A network switch is used to connect the two ICE boards. There is no restriction on the switch. You can use any switch of your choice.
Page 8: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Hardware setup

Presenter
Presentation Notes
1029.mp3 The PRU-ICSS ports are used in this demonstration. To enable these ports, connect pin2 and pin3 of both jumpers J18 and J19 on the boards.
Page 9: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Hardware setup

AM3359 ICE AM3359 ICE

PRU-ICSS0

PRU-ICSS0

Presenter
Presentation Notes
1029.mp3 Then use RJ-45 Ethernet cables to connect each ICE board to the switch, as shown.
Page 10: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

CC-Link demonstration software CC-Link IE Field Basic Master and Slave source code: http://git.ti.com/processor-sdk/cclink

Set Up Hardware

CC-Link Software

Run CC-Link Binaries

Validate Master-Slave

Communication

Modify the Source Code and Rebuild

Presenter
Presentation Notes
1030.mp3 Now let’s take a look at the CC-Link software. The source code for both the CC-Link IE Field Basic Master and Slave used for Processor SDK Linux can be found from git.ti.com: http://git.ti.com/processor-sdk/cclink Pre-built CC-Link binaries have been packaged in Processor SDK Linux filesystem. To run the binaries, download and install Processor SDK Linux RT build for AM335x, and create an SD card to host the filesystem. For purposes of this demonstration, it is assumed that the AM335x ICE EVM has been booted up with Processor Linux RT build. For further details about Processor SDK Linux, please refer to the For More Information links at the end of this video.
Page 11: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Console: Navigate to Target

Presenter
Presentation Notes
1033.mp3 After AM335x ICE EVM is booted up with Processor Linux RT Build, the binaries for CCLink Master_sample and Slave_sample can be located under the /usr/bin folder. The configuration files (MasterParameter.csv and SlaveParameter.csv) are placed at /usr/share/cclink.
Page 12: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Run CC-Link binaries

Set Up Hardware

CC-Link Software

Run CC-Link Binaries

Validate Master-Slave

Communication

Modify the Source Code and Rebuild

Presenter
Presentation Notes
1034.mp3 Next, let’s run CC-Link master and slave binaries.
Page 13: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Console: Identify IP address of slave ETH port

Modify Master Configuration Run Master and Slave

Presenter
Presentation Notes
1036.mp3 Before running the cc-link binaries, first obtain the IP address of the slave Ethernet port to be tested. Then, modify master configuration (/usr/share/cclink/MasterParameter.csv) to update "Slave1 IP address" using the IP address of the Slave. After that, run CCLink Master_sample and Slave_sample.
Page 14: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Validate CC-Link communication

Set Up Hardware

Set Up Software

Run CC-Link Binaries

Validate Master-Slave

Communication

Modify the Source Code and Rebuild

Presenter
Presentation Notes
1037.mp3 After both Master and Slave are running, we can verify the communication between the CC-link master and slave. Let’s start with the master station.
Page 15: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Console for Master

Presenter
Presentation Notes
1038.mp3 First, it shows all the Ethernet ports detected, including PRU-ICSS ports and EMAC CPSW ports when available. Choose the Ethernet port to be used, and press enter to continue. After that, it first shows the master network configuration. This includes IP address, subnet mask, and default gateway. Next, it prints the CClink group information. This shows the number of groups configured and properties of each group, which include disconnection time, and timeout count. Link scan time, if used, is also shown. Finally it prints information for each supported slave, including the IP address of the slave it is looking for, the station number, and the group number. We can see that the master has started sending cyclic packets to the slave. We can also use the console to display some further details and control the functionality of the master. For example, pressing 5 shows slave information. We can see various related information here likewise IP address of the slave, protocol version, data being sent to the slave and much more. Pressing 6 shows for master information. We can see master station related information likewise Master IP, average response time and much more. We can even stop sending cyclic packets by pressing 2. we can restart sending packets by pressing 1 again.
Page 16: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Console for Slave

Presenter
Presentation Notes
1040.mp3 On the slave side, first it also shows all the Ethernet ports detected, including PRU-ICSS ports and EMAC CPSW ports when available. Choose the Ethernet port to be used, and press enter to continue. After that, it also displays the network configuration first. That is: IP address, subnet mask, and default gateway. Then it prints the number of occupied stations and the cyclic response wait time. Then it prints the number of cyclic packets it receives at every 5 second interval, with the following format. First it indicates the master ip address from which it received the cyclic packets. Then no. of packets. After that, average reception time. Finally the time stamp of the last packet it received. We can see it is receiving approximately 13000 packets in every 5 seconds.
Page 17: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Modify CC-Link source code

Set Up Hardware

Set Up Software

Run CC-Link Binaries

Validate Master-Slave

Communication

Modify the Source Code and Rebuild

Presenter
Presentation Notes
1049.mp3 Finally, let’s take a look at how you modify the source code.
Page 18: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

Modify Source Code Rebuild Binaries

Check the source code Native compilation on target

Presenter
Presentation Notes
1042.mp3 By default, CClink is supported on both Linux and windows platforms. The Linux-specific implementation can be found by searching “__linux__”. It is important to note, the CClink master and slave sample implementation packaged with Processor SDK is CLPA conformance test complaint. Which means it has been certified by CC-Link Partner Association community for correct functionality. If needed, the user can modify the source code of CCLink or develop an application based on CClink. After the modification is done, copy the modified source to target. Then, build CC-Link master and slave binaries natively on target: For master, change the directory to the Linux build folder for master, CCIEF-BASIC_Master/build/linux. Then run "make" to build Master_sample. For slave, change the directory to the Linux build folder for slave, CCIEF-BASIC_Slave/build/linux. Then run "make" to build Slave_sample.
Page 19: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

For More Information • CC-Link IE Field Basic Master & Slave Reference Design: http://www.ti.com/tool/tidep-0089

• CC-Link IE Field Basic Master & Slave Linux source: http://git.ti.com/processor-sdk/cclink

• Sitara Processors Product Overview: http://www.ti.com/sitara

• AM3359 Industrial Communications Engine: http://www.ti.com/tool/tmdsice3359

• Processor SDK for AM335x Sitara Processors: http://www.ti.com/tool/processor-sdk-am335x

• Processor SDK Linux Getting Started Guide:

http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_Getting_Started_Guide

• Processor SDK Training Series: https://training.ti.com/processor-sdk-training-series

• Code Composer Studio (CCS) Integrated Development Environment (IDE): http://www.ti.com/tool/CCSTUDIO

• For questions about this training, refer to the E2E Community Forums for Sitara Processors at http://e2e.ti.com/support/arm/sitara_arm/f/791/t/277411

Presenter
Presentation Notes
1044.mp3 This concludes the demonstration for CC-Link IE Field Basic Master and Slave using Processor SDK Linux. Additional information is provided here for reference. Thank you for taking the time to watch this demonstration. If you have any questions, please post them on the Texas Instruments E2E forum at e2e.ti.com
Page 20: Demonstrating CC-Link IE Field Basic Master and Slave ... · PDF fileIEF Basic on PRU-ICSS . Linux : RTOS ... •CC-Link IE Field Basic Master & Slave Reference Design: ... for CC-Link

TI Information – Selective Disclosure

Presenter
Presentation Notes
Outro music