element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Robotics
  • Technologies
  • More
Robotics
Forum PIC32 Ethernet Starter Kit or PIC32 Ethernet Starter Kit II
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Robotics to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 61 subscribers
  • Views 796 views
  • Users 0 members are here
Related

PIC32 Ethernet Starter Kit or PIC32 Ethernet Starter Kit II

codec
codec over 9 years ago

Hello  everybody,

 

I'm looking for a controller comprising a web service that can perform the following tasks:

 

- At power up, initialize static or dynamic information network with DHCP

- Setting the program functions through a web page, like this: http://www.automelec.ch/transit/hcpx32/HCPX32C.htm

- The program will establish one or more connections clients (TCP/IP or UDP/IP) with proprietary devices and cyclically exchange data with them

 

Here is an example of the network I need to do: http://www.automelec.ch/transit/hcpx32/H_plc_net.jpg

 

My question is the following: Does the controller "PIC32 Ethernet Starter Kit" would be able to perform the tasks mentioned above?

 

Thanking you in advance for your answers, I wish you a nice day.

 

Cordially.

 

Christophe

 

(can pay in case of effective technical assistance in this project)

  • Sign in to reply
  • Cancel
  • clem57
    clem57 over 9 years ago

    codec

         Without detailed specifications showing interactions of the parts, I can give you a qualified yes.

    1. The documentation supports a full TCP/IP stack allowing static or dynamic IP assignment. This can be displayed on the HTML page using dynamic variables.
    2. The PLC is outside my specific information range without further details. WE can assume they are workable with more time.
    3. You have multiple Connexion machines. Are these connected to same or different  controller "PIC32 Ethernet Starter Kit"? Are they scattered or local?
    4. Are the clients humans or machines(other maybe)?

    Regards,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • codec
    codec over 9 years ago in reply to clem57

    Thank you Clem for your quick response :-)


    I go to prepare a specific flowchart (algorithm) to explain what I expect from the controller PIC32.
    Here in advance to respond quickly to your questions:

     

    1. The PIC32 controller must be http server based on the "Global settings" parameters of the html page: http://www.automelec.ch/transit/hcpx32/HCPX32C.htm

     

    2. An additional html page will be expanded later to view the status of PLC connections and the status of the H-Protocol communication with the PLC

     

    3. The main program must perform the following tasks:

    i:= 1   // Init the first connexion index to 1

    while true do

       {

       if Protocol[i] <> "Not Used" then   // With Protocol[i] as variables

          {

          if open Read PLC connection[i] == ok then   // With Protocol[i] and Port[i] as variables

             {

             if send InitOccupation to Read PLC[i] == ok then  // H-Protocol

                {

                if open Write PLC connection[i] == ok then   // With Protocol[i] and Port[i] as variables

                   {

                   if send InitOccupation to Write PLC[i] == ok then   // H-Protocol

                      {

                      // Bits data exchange between PLC for connexion[i]

                      if (Read PLC.I/O code (bits)[i] <> "Not Used") and (Write PLC.I/O code (bits)[i] <> "Not Used") then

                         if read data from Read PLC.bits[i] == ok then   // H-Protocol

                            if write data to Write PLC.bits[i] == ok then   // H-Protocol

                               {

                               Clearing the last possible error   // All of task[i] are ended normally

                               }

                            else

                               {

                               Handle Write PLC.bits[i] error

                               }

                         else

                            {

                            Handle read data from Read PLC.bits[i] error

                            }

                      // Words data exchange between PLC for connexion[i]

                      if (Read PLC.I/O code (words)[i] <> "Not Used") and (Write PLC.I/O code (words)[i] <> "Not Used") then

                         if read data from Read PLC.words[i] == ok then   // H-Protocol

                            if write data to Write PLC.words[i] == ok then   // H-Protocol

                               {

                               Clearing the last possible error   // The task[i] ended normally

                               }

                            else

                               {

                               Handle Write PLC.words[i] error

                               }

                         else

                            {

                            Handle read data from Read PLC.words[i] error

                            }

                      send ClearOccupation to Write PLC[i]   // H-Protocol

                      }

                   else

                      {

                      Handle InitOccupation to Write PLC[i] error

                      }

                   Close Write PLC connection[i]

                   }

                else

                   {

                   Handle Write PLC connection[i] error

                   }

                send ClearOccupation to Read PLC[i]   // H-Protocol

                }              

             else

                {

                Handle InitOccupation to Read PLC[i] error

                }

             Close Read PLC connection[i]

             }

          else

             {

             Handle Read PLC connection[i] error

             }

          }

       i:= i + 1

       if i > 4 then

          {

          i:= 1

          }

       }   // Main loop

     

    I know very well H-Protocol for developing a Windows drivers

     

    All communication is done only with PLC Hitachi machines

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • codec
    codec over 9 years ago in reply to codec

    Thank you very much everyone for your answers :-)

    I found my solution and it is largely thanks to you.

    Very nice day.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube