Git Product home page Git Product logo

Comments (8)

intolerance avatar intolerance commented on May 25, 2024

Does the control have a FOCAS or FOCAS2 option? If so, then there is a good possibility that it does.

Setup FOCAS/FOCAS2 Google Results

from fanuc-mtconnect-agent.

cilpatel avatar cilpatel commented on May 25, 2024

Yes it has FOCAS2. I have already setup it on the controller. I need to know how to setup the agent in my pc to connect to the controller via FOCAS2. Thanks in advance.

from fanuc-mtconnect-agent.

intolerance avatar intolerance commented on May 25, 2024

Firstly, have you configured your machine using the Fanuc MTConnect Configurator to enable the Software Adapter for your machine? If not, you can access the Fanuc MTConnect Agent Configurator in the C:\Program Files (x86)\Fanuc MTConnect Agent\Configurator directory (if you don't have a shortcut).

Once you have the configurator open, you may want to select the 30i family for this controller since it has FOCAS2. Enter the IP address, manufacturer, model, serial and description for your machine and click Add. The Software adapter service will start automatically.

Next, you need to try and hit the agent that comes with the Fanuc MTConnect Agent. Try visiting http://localhost:5000/current in your web browser. If you are seeing your machine and it's current data then everything is working.

If that does not work,

  • Try opening up the agent.cfg in C:\Program Files (x86)\Fanuc MTConnect Agent\Agent\bin and check the port and try again using http://localhost:port.
  • Ensure that the agent service is running by going opening services.msc and look for Fanuc MTConnect Agent to ensure that it is running then try again.

from fanuc-mtconnect-agent.

cilpatel avatar cilpatel commented on May 25, 2024

Both the Fanuc MTConnect Agent service as well as the adapter service are running on my PC.
On opening http://localhost:5000/current in my browser, it shows the device I added in the format same as the template devices.xml file but all the values are also same as the template file.

The agent port number in the agent.cfg file is 5000 and adapter port number is 7879.

I have set my FOCAS2 IP = 192.168.0.100 and Port Number = 8193 on my controller.

On debugging the adapter, I found that the adapter gives the result=-16 while trying to connect to the machine at 192.168.0.100 port 8193.

PFA - Command Prompt snippet for the same.

tempsnip

from fanuc-mtconnect-agent.

dsreeves avatar dsreeves commented on May 25, 2024

I'm assuming you are trying to connect over Ethernet? If memory serves me correctly, (-16) is a Ethernet connection error returned from the Focas libs. Make sure your pc has the same subnet mask(ex. 255.255.255.000). I had this issue at one point and manually setting my pc's ip and subnet solved the issue for me.

from fanuc-mtconnect-agent.

rubenruru avatar rubenruru commented on May 25, 2024

Hi, I am having the same Issue,
I get the same result, I have set the static IP and the subnet mask correctly.
Did you solve the issue? what did you do to solve it?

from fanuc-mtconnect-agent.

Castolus avatar Castolus commented on May 25, 2024

Both the Fanuc MTConnect Agent service as well as the adapter service are running on my PC.
On opening http://localhost:5000/current in my browser, it shows the device I added in the format same as the template devices.xml file but all the values are also same as the template file.

The agent port number in the agent.cfg file is 5000 and adapter port number is 7879.

I have set my FOCAS2 IP = 192.168.0.100 and Port Number = 8193 on my controller.

On debugging the adapter, I found that the adapter gives the result=-16 while trying to connect to the machine at 192.168.0.100 port 8193.

PFA - Command Prompt snippet for the same.

tempsnip

Hi,
Maybe I´m wrong but, shouldn´t your FOCAS IP be 192.168.1.100?? Otherwise it won´t connect since you wrote 192.168.0.100.

from fanuc-mtconnect-agent.

Castolus avatar Castolus commented on May 25, 2024

Both the Fanuc MTConnect Agent service as well as the adapter service are running on my PC.
On opening http://localhost:5000/current in my browser, it shows the device I added in the format same as the template devices.xml file but all the values are also same as the template file.

The agent port number in the agent.cfg file is 5000 and adapter port number is 7879.

I have set my FOCAS2 IP = 192.168.0.100 and Port Number = 8193 on my controller.

On debugging the adapter, I found that the adapter gives the result=-16 while trying to connect to the machine at 192.168.0.100 port 8193.

PFA - Command Prompt snippet for the same.

tempsnip

Hi,

just found this. Maybe you find it helpfull:

image
"Result: -16" means wiring error. Check connections.

from fanuc-mtconnect-agent.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.