Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0iF controller #6

Open
cilpatel opened this issue Aug 6, 2018 · 8 comments
Open

0iF controller #6

cilpatel opened this issue Aug 6, 2018 · 8 comments

Comments

@cilpatel
Copy link

cilpatel commented Aug 6, 2018

Can I connect to a Fanuc 0iF controller using this agent? If yes, then please guide me how to connect?

@intolerance
Copy link
Contributor

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

@cilpatel
Copy link
Author

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.

@intolerance
Copy link
Contributor

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.

@cilpatel
Copy link
Author

cilpatel commented Sep 7, 2018

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

@dsreeves
Copy link

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.

@rubenruru
Copy link

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?

@Castolus
Copy link

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.

@Castolus
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants