FANUC FOCAS: Difference between revisions

From Knowledge Base
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
FANUC FOCAS allows external systems such as [[OnTakt]] to communicate with a FANUC control.
Part of the [[OnTakt User Guide]].
 
== What is FANUC FOCAS? ==
FOCAS2 is a proprietary protocol designed by FANUC to allow internal machine systems and external networked data systems (such as [[OnTakt]]) to communicate with FANUC controls and their components.


== Configuration ==
== Configuration ==
Line 16: Line 19:
|[[File:FANUC PCMCIA network settings.webp|none|thumb|PCMCIA network settings]]
|[[File:FANUC PCMCIA network settings.webp|none|thumb|PCMCIA network settings]]
|-
|-
| colspan="2" |This machine is connected to a network via the embedded Ethernet interface and does not have a PCMCIA Ethernet interface installed.
| colspan="2" |This 31i control is connected to a network via the embedded Ethernet interface and does not have a PCMCIA Ethernet interface installed.
|}
|}


Line 27: Line 30:
|[[File:FANUC FOCAS2 PCMCIA settings.webp|none|thumb|PCMCIA FOCAS2 settings]]
|[[File:FANUC FOCAS2 PCMCIA settings.webp|none|thumb|PCMCIA FOCAS2 settings]]
|-
|-
| colspan="2" |This machine has FOCAS enabled on port 8193 of the embedded Ethernet interface but does not have it enabled on the PCMCIA Ethernet interface.
| colspan="2" |This 31i control has FOCAS enabled on port 8193 of the embedded Ethernet interface but does not have it enabled on the PCMCIA Ethernet interface.
|}
|}
=== Parameters ===
[[File:FANUC_Ethernet_parameters.webp|none|thumb|753x753px|This 31i control has Ethernet enabled. Its embedded Ethernet port is located inside the machine cabinet and its PCMCIA Ethernet card, if installed, would be on the side of the control.]]
==== #14880#0 ====
Bit #0 of parameter #14880 should be set to <code>0</code> to enable Ethernet communication. Setting this bit to <code>1</code> disables Ethernet communication on all interfaces.
==== #14896 ====
Parameter #14896 determines which Ethernet interface is used and depends on the hardware inside the control.
To calculate its value, use a 2-bit binary number <code>EP</code>, where the <code>E</code> (embedded) bit is:
* <code>0</code> if the embedded Ethernet port is in the machine cabinet
* <code>1</code> if the embedded Ethernet port is in on the back of the control
And the <code>P</code> (PCMCIA) bit is:
* <code>0</code> if the PCMCIA Ethernet card slot is on the side of the control
* <code>1</code> if the PCMCIA Ethernet card slot is inside the machine cabinet
Then convert the binary number to decimal to get the parameter value:
* <code>00</code> → 0
* <code>01</code> → 1
* <code>10</code> → 2
* <code>11</code> → 3


== OnTakt ==
== OnTakt ==

Latest revision as of 13:15, 14 February 2023

Part of the OnTakt User Guide.

What is FANUC FOCAS?

FOCAS2 is a proprietary protocol designed by FANUC to allow internal machine systems and external networked data systems (such as OnTakt) to communicate with FANUC controls and their components.

Configuration

These instructions are for FANUC 30i/31i/32i controls.

  1. Press the SYSTEM control key.
  2. Scroll through the list of soft keys until "EMBED PORT" and "PCMCIA LAN" are listed.
  3. Select the Ethernet adapter that is connected to the network. This is usually "EMBED PORT", but may be "PCMCIA LAN" in some cases. The embedded port is located inside the HMI or machine cabinet, and the PCMCIA Ethernet would in a card slot inside the control or machine cabinet if it is present. Newer controls show an "AVAILABLE DEVICE" item inside both adapter configuration panels that indicate which adapter is connected, as shown in the screenshots below.

Network configuration

  1. Press the COMMON soft key.
  2. Make sure the IP address, subnet mask, and router IP address are correct for the network the machine is on.
  3. Note the MAC address to look for it in the router management console to ensure the machine has successfully connected to the network.
Embedded network settings
PCMCIA network settings
This 31i control is connected to a network via the embedded Ethernet interface and does not have a PCMCIA Ethernet interface installed.

FOCAS2 configuration

  1. Press the FOCAS2 soft key.
  2. Make sure a TCP port number is specified. FOCAS over UDP is not supported at this time. This value is usually 8193 by default, but can be set to any port not in use by other software on the control. This number must be entered into OnTakt.
Embedded FOCAS2 settings
PCMCIA FOCAS2 settings
This 31i control has FOCAS enabled on port 8193 of the embedded Ethernet interface but does not have it enabled on the PCMCIA Ethernet interface.

Parameters

This 31i control has Ethernet enabled. Its embedded Ethernet port is located inside the machine cabinet and its PCMCIA Ethernet card, if installed, would be on the side of the control.

#14880#0

Bit #0 of parameter #14880 should be set to 0 to enable Ethernet communication. Setting this bit to 1 disables Ethernet communication on all interfaces.

#14896

Parameter #14896 determines which Ethernet interface is used and depends on the hardware inside the control.

To calculate its value, use a 2-bit binary number EP, where the E (embedded) bit is:

  • 0 if the embedded Ethernet port is in the machine cabinet
  • 1 if the embedded Ethernet port is in on the back of the control

And the P (PCMCIA) bit is:

  • 0 if the PCMCIA Ethernet card slot is on the side of the control
  • 1 if the PCMCIA Ethernet card slot is inside the machine cabinet

Then convert the binary number to decimal to get the parameter value:

  • 00 → 0
  • 01 → 1
  • 10 → 2
  • 11 → 3

OnTakt

When setting up a machine in OnTakt using FANUC FOCAS, enter the NC URL in the format tcp://<ip>:<port>. For example, if the machine IP is 10.0.0.5 and the port is 8193, enter tcp://10.0.0.5:8193. FOCAS over UDP is not supported at this time.