(add screenshots of settings) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
FANUC FOCAS | 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 6: | Line 9: | ||
# Press the SYSTEM control key. | # Press the SYSTEM control key. | ||
# Scroll through the list of soft keys until "EMBED PORT" and "PCMCIA LAN" are listed. | # Scroll through the list of soft keys until "EMBED PORT" and "PCMCIA LAN" are listed. | ||
# 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. | # 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 === | |||
# Press the COMMON soft key. | # Press the COMMON soft key. | ||
# Make sure the IP address, subnet mask, and router IP address are correct for the network the machine is on. | # Make sure the IP address, subnet mask, and router IP address are correct for the network the machine is on. | ||
# Note the MAC address to look for it in the router management console to ensure the machine has successfully connected to the network. | # Note the MAC address to look for it in the router management console to ensure the machine has successfully connected to the network. | ||
{| | |||
|[[File:Fanuc embedded network settings.webp|none|thumb|Embedded network settings]] | |||
|[[File:FANUC PCMCIA network settings.webp|none|thumb|PCMCIA network settings]] | |||
|- | |||
| colspan="2" |This 31i control is connected to a network via the embedded Ethernet interface and does not have a PCMCIA Ethernet interface installed. | |||
|} | |||
=== FOCAS2 configuration === | |||
# Press the FOCAS2 soft key. | # Press the FOCAS2 soft key. | ||
# 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. | # 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. | ||
{| | {| | ||
|- | |- | ||
|[[File:FANUC FOCAS2 Embedded settings.webp|none|thumb|Embedded FOCAS2 settings]] | |[[File:FANUC FOCAS2 Embedded settings.webp|none|thumb|Embedded FOCAS2 settings]] | ||
|[[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 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.
- Press the SYSTEM control key.
- Scroll through the list of soft keys until "EMBED PORT" and "PCMCIA LAN" are listed.
- 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
- Press the COMMON soft key.
- Make sure the IP address, subnet mask, and router IP address are correct for the network the machine is on.
- Note the MAC address to look for it in the router management console to ensure the machine has successfully connected to the network.
This 31i control is connected to a network via the embedded Ethernet interface and does not have a PCMCIA Ethernet interface installed. |
FOCAS2 configuration
- Press the FOCAS2 soft key.
- 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.
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
#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 cabinet1
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 control1
if the PCMCIA Ethernet card slot is inside the machine cabinet
Then convert the binary number to decimal to get the parameter value:
00
→ 001
→ 110
→ 211
→ 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.