Fanuc Focas Ethernet Manual
Fanuc Focas Ethernet Manual
Fanuc Focas Ethernet Manual
Table of Contents
Fanuc Focas Ethernet Driver 1
Table of Contents 2
Overview 5
External Dependencies 5
Setup 8
Channel Properties — General 8
Channel Properties — Ethernet Communications 9
Channel Properties — Write Optimizations 10
Channel Properties — Advanced 11
Device Properties — General 11
Operating Mode 12
Device Properties — Scan Mode 13
Device Properties — Timing 14
Device Properties — Auto-Demotion 15
Device Properties — Communications Parameters 15
Device Properties — Unsolicited Transfer Control 16
Device Properties — Unsolicited Data Areas 17
Device Properties — Redundancy 18
Unsolicited Messaging 18
Optimizing Communications 21
Address Descriptions 22
Series 15i 23
Series 16i 25
Series 18i 27
Series 21i 29
Power Mate i 32
Open 34
Status Info Tags 37
Tool Offset 41
Workpiece Zero Offset 42
Parameter Read Values 43
www. ptc.com
3 Fanuc Focas Ethernet Driver
Alarm Values 44
Diagnostic Values 44
Path Values 45
Read Axis Data Values 45
Error Descriptions 46
Address Validation 46
Address <address> is out of range for the specified device or register. 46
Array size is out of range for address <address>. 46
Array support is not available for the specified address: <address>. 47
Data Type <type> is not valid for device address <address>. 47
Device address <address> contains a syntax error. 47
Device address <address> is read only. 47
Missing address. 47
www. ptc.com
Fanuc Focas Ethernet Driver 4
Failed to connect slave device <channel.device>. Could not set host IP. 56
Failed to connect slave device <channel.device>. Could not set host port. 56
Failed to connect slave device <channel.device>. Could not set message alive time. 57
Failed to connect slave device <channel.device>. Could not set message retries. 57
Failed to connect slave device <channel.device>. Could not set message timeout. 58
Failed to connect slave device <channel.device>. Could not set messaging properties. FWLIB data
error <code>. 58
Failed to connect slave device <channel.device>. Could not set messaging properties. FWLIB
error: <code>. 59
Failed to connect slave device <channel.device>. Could not set number of data areas. 59
Failed to connect slave device <channel.device>. Could not set request timeout. FWLIB error:
<code>. 60
Failed to connect slave device <channel.device>. Could not set transmission control PMC type. 60
Failed to connect slave device <channel.device>. Could not set transmission control start address. 60
Failed to connect slave device <channel.device>. Could not start messaging session. FWLIB error:
<code>. 61
Installed version of Focas Data Window Library does not support unsolicited communication.
Device <device> deactivated. 61
Received CNC power down notification from unsolicited message server. Reconnecting slave
devices. 62
Received CNC power up notification from unsolicited message server. 62
Received socket error notification from unsolicited message server. 62
Received unsolicited message server shutdown notification. 63
Unsolicited message server does not seem to be running. Attempting to launch. 63
Index 66
www. ptc.com
5 Fanuc Focas Ethernet Driver
CONTENTS
Overview
What is the Fanuc Focas Ethernet Driver ?
Device Setup
How do I configure a device for use with this driver?
Address Descriptions
How do I address a data location on a Fanuc Focas device?
Error Descriptions
What error messages does the Fanuc Focas Ethernet Driver produce?
Overview
The Fanuc Focas Ethernet Driver provides a reliable way to connect Fanuc Focas Ethernet controllers to OPC
Client applications, including HMI, SCADA, Historian, MES, ERP, and countless custom applications. This
driver is intended for use with Fanuc Focas Programmable Logic Controllers (PLC).
For more information on the additional software that is required for use with this driver, refer to Additional
Software Requirements.
External Dependencies
This driver has external dependencies. For this driver to communicate with the hardware, the Fanuc CNC
Focas 1 / Ethernet Library (part number A02B-0207-K732) or Fanuc Focas 2 Library (part number A02B-
0207-K737) must be installed on the system. For more information, refer to Additional Software Require-
ments.
Note: The Focas 2 Library combines both Ethernet and HSSB capabilities and can be obtained from the
FANUC distributor or by calling 1-888-326-8287. Choose CNC, PARTS, place the order, and request the part
number.
www. ptc.com
Fanuc Focas Ethernet Driver 6
2. Move or paste the Fwlib*.zip file to the appropriate Windows system folder:
3. Once the zip file is in the appropriate destination folder, unzip / extract the contents of the Fwlib*.zip.
4. Verify the 32-bit DLL files are located in the aforementioned folder.
Note: The Focas 2 Library combines both Ethernet and HSSB capabilities.
1. To start the installation, copy the executable file to the System folder.
2. Access the command prompt to type "UMsgServ.exe –Install." This causes the message server to
automatically launch every time the computer is started.
3. Once the message server is running, its icon is visible in the System Tray.
4. Next, configure the TCP port number on which the message server listens (in addition to the mes-
sage timeout and the maximum number of CNCs). To do so, right-click the icon and then select Set-
ting. The default settings are as follows:
www. ptc.com
7 Fanuc Focas Ethernet Driver
5. To uninstall the message server, use the command prompt to type "UMsgServ.exe –Remove" and
then delete the executable file.
Model Software
B0F4/K1(M) or later
16i
B0H1/P5(M) or later
DDF4/K1(M) or later
18i
BDH1/P5(M) or later
BDF4/K1(M) or later
21i
DDH1/P5(M) or later
Note: Set the CNC parameter 904, bit 4 to 1 for unsolicited messaging by using the controller’s pro-
gramming software.
Ladder
A ladder program must be created that constructs and controls the transmission of unsolicited messages to
use the controllers unsolicited messaging capabilities. For more information, refer to Unsolicited Mes-
saging.
www. ptc.com
Fanuc Focas Ethernet Driver 8
Setup
Supported Devices
The Fanuc Focas Ethernet Driver can communicate to controllers that are compatible with the Focas 1 or
Focas 2 CNC / PMC data window control libraries. This includes, but is not limited to, the following:
Series 0i
Series 15
Series 15i
Series 16
Series 16i
Series 18
Series 18i
Series 21
Series 21i
Series 30i
Series 31i
Series 32i
Power Mate i
Open Addressing
Connect Timeout
Specify the amount of time that the driver waits for a connection to be made with a device. The connection
time depends on the network load and may vary with each connection attempt. The valid range is 1 to 60
seconds. The default setting is 3 seconds.
Request Timeout
Specify the amount of time that the driver waits on a response from the device before giving up and going
on to the next request. Longer timeouts only affect performance when a device is not responding. The valid
range is 100 to 9999 milliseconds. The default setting is 1000 milliseconds.
Retry Attempts
Specify the number of times that the driver retries a message before giving up and going on to the next mes-
sage. The valid range is 1 to 10. The default setting is 3.
Device IDs
Up to 20 devices may be defined on a given channel. Each device on the channel must be uniquely identified
by its own IP address.
www. ptc.com
9 Fanuc Focas Ethernet Driver
Identification
Name: User-defined identity of this channel. In each server project, each channel name must be unique.
Although names can be up to 256 characters, some client applications have a limited display window when
browsing the OPC server's tag space. The channel name is part of the OPC browser information. The prop-
erty is required for creating a channel.
For information on reserved characters, refer to "How To... Properly Name a Channel, Device, Tag, and Tag
Group" in the server help.
Driver: Selected protocol / driver for this channel. This property specifies the device driver that was selected
during channel creation. It is a disabled setting in the channel properties. The property is required for cre-
ating a channel.
Note: With the server's online full-time operation, these properties can be changed at any time. This
includes changing the channel name to prevent clients from registering data with the server. If a client has
already acquired an item from the server before the channel name is changed, the items are unaffected. If,
after the channel name has been changed, the client application releases the item and attempts to re-
acquire using the old channel name, the item is not accepted. With this in mind, changes to the properties
should not be made once a large client application has been developed. Utilize the User Manager to prevent
operators from changing properties and restrict access rights to server features.
Diagnostics
Diagnostics Capture: When enabled, this option makes the channel's diagnostic information available to
OPC applications. Because the server's diagnostic features require a minimal amount of overhead pro-
cessing, it is recommended that they be utilized when needed and disabled when not. The default is dis-
abled.
Note: This property is not available if the driver does not support diagnostics.
For more information, refer to "Communication Diagnostics" in the server help.
Ethernet Settings
www. ptc.com
Fanuc Focas Ethernet Driver 10
Network Adapter: Specify the network adapter to bind. When left blank or Default is selected, the oper-
ating system selects the default adapter.
Write Optimizations
Optimization Method: Controls how write data is passed to the underlying communications driver. The
options are:
l Write All Values for All Tags: This option forces the server to attempt to write every value to the
controller. In this mode, the server continues to gather write requests and add them to the server's
internal write queue. The server processes the write queue and attempts to empty it by writing data
to the device as quickly as possible. This mode ensures that everything written from the client applic-
ations is sent to the target device. This mode should be selected if the write operation order or the
write item's content must uniquely be seen at the target device.
l Write Only Latest Value for Non-Boolean Tags: Many consecutive writes to the same value can
accumulate in the write queue due to the time required to actually send the data to the device. If the
server updates a write value that has already been placed in the write queue, far fewer writes are
needed to reach the same final output value. In this way, no extra writes accumulate in the server's
queue. When the user stops moving the slide switch, the value in the device is at the correct value at
virtually the same time. As the mode states, any value that is not a Boolean value is updated in the
server's internal write queue and sent to the device at the next possible opportunity. This can greatly
improve the application performance.
Note: This option does not attempt to optimize writes to Boolean values. It allows users to optimize
the operation of HMI data without causing problems with Boolean operations, such as a momentary
push button.
l Write Only Latest Value for All Tags: This option takes the theory behind the second optimization
mode and applies it to all tags. It is especially useful if the application only needs to send the latest
value to the device. This mode optimizes all writes by updating the tags currently in the write queue
before they are sent. This is the default mode.
Duty Cycle: is used to control the ratio of write to read operations. The ratio is always based on one read for
every one to ten writes. The duty cycle is set to ten by default, meaning that ten writes occur for each read
operation. Although the application is performing a large number of continuous writes, it must be ensured
that read data is still given time to process. A setting of one results in one read operation for every write
operation. If there are no write operations to perform, reads are processed continuously. This allows optim-
ization for applications with continuous writes versus a more balanced back and forth data flow.
Note: It is recommended that the application be characterized for compatibility with the write optimization
enhancements before being used in a production environment.
www. ptc.com
11 Fanuc Focas Ethernet Driver
l Replace with Zero: This option allows a driver to replace non-normalized IEEE-754 floating point val-
ues with zero before being transferred to clients.
l Unmodified: This option allows a driver to transfer IEEE-754 denormalized, normalized, non-num-
ber, and infinity values to clients without any conversion or changes.
Note: This property is not available if the driver does not support floating point values or if it only supports
the option that is displayed. According to the channel's float normalization setting, only real-time driver tags
(such as values and arrays) are subject to float normalization. For example, EFM data is not affected by this
setting.
For more information on the floating point values, refer to "How To ... Work with Non-Normalized Floating
Point Values" in the server help.
Inter-Device Delay: Specify the amount of time the communications channel waits to send new requests to
the next device after data is received from the current device on the same channel. Zero (0) disables the
delay.
Note: This property is not available for all drivers, models, and dependent settings.
Identification
www. ptc.com
Fanuc Focas Ethernet Driver 12
Name: This property specifies the name of the device. It is a logical user-defined name that can be up to
256 characters long, and may be used on multiple channels.
Note: Although descriptive names are generally a good idea, some OPC client applications may have a
limited display window when browsing the OPC server's tag space. The device name and channel name
become part of the browse tree information as well. Within an OPC client, the combination of channel name
and device name would appear as "ChannelName.DeviceName".
For more information, refer to "How To... Properly Name a Channel, Device, Tag, and Tag Group" in server
help.
Channel Assignment: User-defined name of the channel to which this device currently belongs.
Model: This property specifies the specific type of device that is associated with this ID. The contents of the
drop-down menu depends on the type of communications driver being used. Models that are not supported
by a driver are disabled. If the communications driver supports multiple device models, the model selection
can only be changed when there are no client applications connected to the device.
Note: If the communication driver supports multiple models, users should try to match the model selec-
tion to the physical device. If the device is not represented in the drop-down menu, select a model that con-
forms closest to the target device. Some drivers support a model selection called "Open," which allows users
to communicate without knowing the specific details of the target device. For more information, refer to the
driver help documentation.
ID: This property specifies the device's driver-specific station or node. The type of ID entered depends on
the communications driver being used. For many communication drivers, the ID is a numeric value. Drivers
that support a Numeric ID provide users with the option to enter a numeric value whose format can be
changed to suit the needs of the application or the characteristics of the selected communications driver.
The format is set by the driver by default. Options include Decimal, Octal, and Hexadecimal.
Note: If the driver is Ethernet-based or supports an unconventional station or node name, the device's
TCP/IP address may be used as the device ID. TCP/IP addresses consist of four values that are separated by
periods, with each value in the range of 0 to 255. Some device IDs are string based. There may be additional
properties to configure within the ID field, depending on the driver. For more information, refer to the driver's
help documentation.
Operating Mode
Data Collection: This property controls the device's active state. Although device communications are
enabled by default, this property can be used to disable a physical device. Communications are not attemp-
ted when a device is disabled. From a client standpoint, the data is marked as invalid and write operations
are not accepted. This property can be changed at any time through this property or the device system tags.
www. ptc.com
13 Fanuc Focas Ethernet Driver
Simulated: This option places the device into Simulation Mode. In this mode, the driver does not attempt to
communicate with the physical device, but the server continues to return valid OPC data. Simulated stops
physical communications with the device, but allows OPC data to be returned to the OPC client as valid data.
While in Simulation Mode, the server treats all device data as reflective: whatever is written to the simulated
device is read back and each OPC item is treated individually. The item's memory map is based on the group
Update Rate. The data is not saved if the server removes the item (such as when the server is reinitialized).
The default is No.
Notes:
1. This System tag (_Simulated) is read only and cannot be written to for runtime protection. The System
tag allows this property to be monitored from the client.
2. In Simulation mode, the item's memory map is based on client update rate(s) (Group Update Rate for
OPC clients or Scan Rate for native and DDE interfaces). This means that two clients that reference
the same item with different update rates return different data.
Simulation Mode is for test and simulation purposes only. It should never be used in a production envir-
onment.
Scan Mode: Specifies how tags in the device are scanned for updates sent to subscribing clients. Descrip-
tions of the options are:
l Respect Client-Specified Scan Rate: This mode uses the scan rate requested by the client.
l Request Data No Faster than Scan Rate: This mode specifies the value set as the maximum scan
rate. The valid range is 10 to 99999990 milliseconds. The default is 1000 milliseconds.
Note: When the server has an active client and items for the device and the scan rate value is
increased, the changes take effect immediately. When the scan rate value is decreased, the changes
do not take effect until all client applications have been disconnected.
l Request All Data at Scan Rate: This mode forces tags to be scanned at the specified rate for sub-
scribed clients. The valid range is 10 to 99999990 milliseconds. The default is 1000 milliseconds.
l Do Not Scan, Demand Poll Only: This mode does not periodically poll tags that belong to the
device nor perform a read to get an item's initial value once it becomes active. It is the client's
responsibility to poll for updates, either by writing to the _DemandPoll tag or by issuing explicit device
reads for individual items. For more information, refer to "Device Demand Poll" in server help.
l Respect Tag-Specified Scan Rate: This mode forces static tags to be scanned at the rate specified
in their static configuration tag properties. Dynamic tags are scanned at the client-specified scan
rate.
Initial Updates from Cache: When enabled, this option allows the server to provide the first updates for
newly activated tag references from stored (cached) data. Cache updates can only be provided when the
new item reference shares the same address, scan rate, data type, client access, and scaling properties. A
www. ptc.com
Fanuc Focas Ethernet Driver 14
device read is used for the initial update for the first client reference only. The default is disabled; any time a
client activates a tag reference the server attempts to read the initial value from the device.
Communications Timeouts
Connect Timeout: This property (which is used primarily by Ethernet based drivers) controls the amount of
time required to establish a socket connection to a remote device. The device's connection time often takes
longer than normal communications requests to that same device. The valid range is 1 to 30 seconds. The
default is typically 3 seconds, but can vary depending on the driver's specific nature. If this setting is not sup-
ported by the driver, it is disabled.
Note: Due to the nature of UDP connections, the connection timeout setting is not applicable when com-
municating via UDP.
Request Timeout: This property specifies an interval used by all drivers to determine how long the driver
waits for a response from the target device to complete. The valid range is 50 to 9,999,999 milliseconds
(167.6667 minutes). The default is usually 1000 milliseconds, but can vary depending on the driver. The
default timeout for most serial drivers is based on a baud rate of 9600 baud or better. When using a driver
at lower baud rates, increase the timeout to compensate for the increased time required to acquire data.
Attempts Before Timeout: This property specifies how many times the driver issues a communications
request before considering the request to have failed and the device to be in error. The valid range is 1 to
10. The default is typically 3, but can vary depending on the driver's specific nature. The number of attempts
configured for an application depends largely on the communications environment. This property applies to
both connection attempts and request attempts.
Timing
Inter-Request Delay: This property specifies how long the driver waits before sending the next request to
the target device. It overrides the normal polling frequency of tags associated with the device, as well as
one-time reads and writes. This delay can be useful when dealing with devices with slow turnaround times
and in cases where network load is a concern. Configuring a delay for a device affects communications with
all other devices on the channel. It is recommended that users separate any device that requires an inter-
request delay to a separate channel if possible. Other communications properties (such as communication
serialization) can extend this delay. The valid range is 0 to 300,000 milliseconds; however, some drivers may
limit the maximum value due to a function of their particular design. The default is 0, which indicates no
delay between requests with the target device.
Note: Not all drivers support Inter-Request Delay. This setting does not appear if it is not available.
www. ptc.com
15 Fanuc Focas Ethernet Driver
Demote on Failure: When enabled, the device is automatically taken off-scan until it is responding again.
Tip: Determine when a device is off-scan by monitoring its demoted state using the _AutoDemoted sys-
tem tag.
Timeouts to Demote: Specify how many successive cycles of request timeouts and retries occur before the
device is placed off-scan. The valid range is 1 to 30 successive failures. The default is 3.
Demotion Period: Indicate how long the device should be placed off-scan when the timeouts value is
reached. During this period, no read requests are sent to the device and all data associated with the read
requests are set to bad quality. When this period expires, the driver places the device on-scan and allows for
another attempt at communications. The valid range is 100 to 3600000 milliseconds. The default is 10000
milliseconds.
Discard Requests when Demoted: Select whether or not write requests should be attempted during the
off-scan period. Disable to always send write requests regardless of the demotion period. Enable to discard
writes; the server automatically fails any write request received from a client and does not post a message
to the Event Log.
TCP/IP Port: Specify the TCP/IP port number that the remote device is configured to use. The default setting
is 8193.
Maximum Request Size: Specify the number of bytes that may be requested from a device at one time. To
refine the driver's performance, configure the request size to one of the following settings: 8, 16, 32, 64, 128,
256, or 512 bytes. The default setting is 256 bytes.
www. ptc.com
Fanuc Focas Ethernet Driver 16
Slave Device: This option should be enabled if the device receives unsolicited data from the CNC. All tags
belonging to a slave device read data cached in the driver, not directly from the CNC. The slave device's tags
displays a value of zero until it receives its first unsolicited data update. When disabled, all tags belonging to
the device read and write directly to the CNC. The default setting is disabled.
Unsolicited Message Server Port: Specify the port that the unsolicited message server application has
been configured to use. The default setting is 8196.
Transfer Control Memory Type: Specify the registers' PMC memory type for unsolicited message transfer
control. Options include R (internal relay) and E (extended relay). The default setting is R.
Transfer Control Start Address: Specify the start address of the registers used for unsolicited message
transfer control. The valid range is 0 to 7999, although the actual range of valid addresses depends on the
hardware. The default setting is 0.
Message Retries: Specify the number of times that the CNC should retry sending unsolicited messages. The
valid range is 0 to 10. The default setting is 3.
Message Timeout: Specify the unsolicited message timeout, which is the amount of time that the CNC waits
for the driver to respond to an unsolicited message. The valid range is 0 to 30. The default setting is 10
seconds.
Message Alive Time: Specify the unsolicited message alive time, which is the amount of time that the CNC
retains an unsolicited message for the driver to read. This setting must be less than the message timeout.
The valid range is 0 to 30. The default setting is 5 seconds.
www. ptc.com
17 Fanuc Focas Ethernet Driver
Data Area n
Note: All tags that are created for a slave device are validated according to the configured data areas. For
example, if a slave device is configured with a single area with D1000 to D1100, then a tag with address
D1000 would be valid, but tags with addresses D1101 or C0001 would be invalid. All tags belonging to a
slave device are Read Only.
l G: Signal to PMC->CNC
l F: Signal to CNC->PMC
l Y: Signal to PMC->machine
l X: Signal to machine->PMC
l A: Message demand
l R: Internal relay
l T: Changeable timer
l K: Keep relay
l C: Counter
l D: Data table
l Start Address: Specify an area's start address. The valid range is 0 and 7999, although the actual
range of valid addresses depends on the hardware. The default setting is 0.
l End Address: Specify an area's end address. The valid range is 0 and 7999, although the actual
range of valid addresses depends on the hardware. The total number of bytes must not exceed 1430,
1414, or 1398 for areas 1, 2, or 3 respectively. The default value is 0.
www. ptc.com
Fanuc Focas Ethernet Driver 18
Unsolicited Messaging
Before configuring a system for unsolicited messaging, it is important that users understand how the vari-
ous hardware and software components work together to transfer data. These components include one or
more CNC controllers equipped with Fast Ethernet communications boards, firmware that supports unso-
licited messaging, and a ladder program. To receive unsolicited data, a host computer must be equipped
with the OPC server, its Fanuc Focas Ethernet Driver , the Focas 1 Data Window Library software, and the
Unsolicited Message Server. Data can be read from the OPC server with OPC or DDE client applications run-
ning on the host or remote computer. For more information, refer to Additional Software Requirements.
During an unsolicited messaging session, the controller is only in direct communication with the Unsolicited
Message Server. The message server notifies the driver when the controller makes a request to send unso-
licited data. The Focas 1 Data Window Library allows the driver to receive the unsolicited data via the mes-
sage server, and also enables direct communications with the controllers for starting and ending unsolicited
messaging sessions.
Note: If unsolicited messaging is not used, the driver uses the library to issue read and write requests dir-
ectly to the controller. It is possible to simultaneously use both types of communication with a controller by
creating a slave and a non-slave device in the OPC server project.
1. To start, the ladder program places the message contents in a designated area of the PMC memory.
Once the message is prepared, the ladder controls the data transmission by setting and monitoring
bits in the Unsolicited Transfer Control area of PMC memory.
2. To trigger the unsolicited message transmission, the ladder sets the "REQ" (request to send) transfer
control bit. The controller sends an "Unsolicited data ready" notification to the message server imme-
diately after.
3. The message server relays the notification to the driver, which then responds by issuing a "Read
unsolicited message" command to the message server.
4. The driver receives the unsolicited message data in response to this command, and then replies to
the data ready notification with a response code indicating success or failure. The message server
then passes this response code to the controller.
www. ptc.com
19 Fanuc Focas Ethernet Driver
5. When the controller receives the response code, it copies it to the "RES_CODE" memory area. The
controller sets the "RES" (response ready) bit to indicate that the transaction completed immediately
after.
Note: The ladder program must be designed to detect when the RES bit has been set. Once it
detects that the RES bit has been set, it can read the response code and react as needed. If the data
fails to reach the driver, the controller will place its own response code that describes the problem in
RES_CODE and set the RES bit.
6. Once the ladder has read the response code, it must clear the REQ bit to ready the system for the
next message.
PMC Memory
The PMC memory area included in unsolicited messages is defined with the Fanuc Focas Ethernet Driver .
The driver transfers these area properties to the controller at the start of an unsolicited messaging session.
Data from the range of all areas is included each time an unsolicited message is sent. As such, these areas
should be made as small as possible. The ladder program must be written to use the exact address ranges
specified in the driver configuration.
Unsolicited data transmission is coordinated between the ladder program and communications board via 2
bytes of PMC R or E memory. This transfer control area is defined with the Fanuc Focas Ethernet Driver . The
transfer control area properties are then sent to the controller along with the data area properties when an
unsolicited messaging session starts. The ladder program must be written to use the specific addresses spe-
cified in the driver configuration. The various bits in the transfer control area, with starting address xxxx,
have the following locations and meanings:
REQ
Rxxxx.7 (or Exxxx.7)
After the ladder program constructs a message, it must set this bit to 1. This signals the communications
board to issue a notification that a new message is ready to be read.
COM
Rxxxx+1.6 (or Exxxx+1.6)
The communications board sets this bit to 1 when message transmission begins. The communications board
sets this bit back to 0 immediately before it sets RES to 1, and places the response code in RES_CODE.
RES
Rxxxx+1.7 (or Exxxx+1.7)
The communications board sets this bit to 1 immediately after message transmission completes. When the
ladder program detects that this bit is set to 1, it can read the response code from RES_CODE. The ladder
then acts depending on the value of RES_CODE. Once this is done, the ladder must set REQ back to 0. This
causes the communications board to clear RES_CODE and set the bit back to 0. Then the communications
board is ready to perform the next unsolicited transaction.
RES_CODE
www. ptc.com
Fanuc Focas Ethernet Driver 20
RES_ Meaning
CODE
Success. The communications board did not detect any failures in communication, and the driver
0x00
reported that it processed the received data successfully.
The transmission control properties are invalid or the unsolicited messaging session was not
0x01
started.
0x02 The unsolicited message server is not running.
0x03 The CNC failed to transmit message.
0x04 The CNC failed to receive response.
0x05 The transmission retry count was exceeded.
0x06 The CNC failed to construct the message data.
0x07 The CNC received an invalid packet.
0x08 The CNC accepted termination of unsolicited messaging session.
0x10 The driver experienced a Focas 1 Library error while reading message.
The driver found the message data to be invalid or experienced other problems while processing
0x11
message data.
The PC application to receive the message does not exist, though the message was received by
0x21
the PC. Either the OPC server or this driver is not running.
The PC application to receive the message was not recognized by the unsolicited message
server, though the message was received by the PC. The unsolicited message server may need
0x22
be restarted, or there may have been a problem when the driver was starting the unsolicited
messaging session.
0x23 The CNC failed in writing the received message to the PC.
0x24 The timeout period and retry count have expired.
0x25 Illegal data was included in the received message.
The Fanuc Focas Ethernet Driver stores unsolicited data in a memory cache. The OPC server makes this
data visible to client applications via tags, whose addresses must be the same as the controller's data
source. For example, if an unsolicited data area is configured to include the byte at D1000, then a tag with an
address of D1000 must be used to view the data. These tags show the last values sent to the driver, which
may not necessarily be the current values in the controller. To poll current values directly from the con-
troller, users would need additional tags belonging to a non-slave device. Slave device tags display a value of
zero until the driver receives its first unsolicited data update from the controller.
Notes:
1. In addition to data ready notifications, the Unsolicited Message Server also apprises the driver of
other important events. These include CNC power up, CNC power down, Unsolicited Message Server
shutdown, and communications error notifications. The driver responds to each of these events in
such a way that communication with the hardware is maintained, if possible.
www. ptc.com
21 Fanuc Focas Ethernet Driver
2. The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or
restarts the session after detecting a communications problem. Tags that belong to a slave device in
an error state will continue to display the last value received from the device or the initial value of
zero.
Optimizing Communications
The Fanuc Focas Ethernet Driver has been designed to provide the best performance with the least amount
of impact on the system's overall performance. While the driver is fast, there are a couple of guidelines that
can be used to control and optimize the application and gain maximum performance.
This server refers to communications protocols like Fanuc Focas Ethernet as a channel. Each channel
defined in the application represents a separate path of execution in the server. Once a channel has been
defined, a series of devices must then be defined under that channel. Each of these devices represents a
single Fanuc Focas controller from which data iscollected. While this approach to defining the application
provides a high level of performance, it won't take full advantage of the Fanuc Focas Ethernet Driver or the
network. An example of how the application may appear when configured using a single channel is shown
below.
Each device appears under a single channel. In this configuration, the driver must
move from one device to the next as quickly as possible to gather information at an
effective rate. As more devices are added or more information is requested from a
single device, the overall update rate begins to suffer.
If the Fanuc Focas Ethernet Driver could only define one single channel, then the example shown above
would be the only option available; however, the driver can define up to 256 channels. Using multiple chan-
nels distributes the data collection workload by simultaneously issuing multiple requests to the network. An
example of how the same application may appear when configured using multiple channels to improve per-
formance is shown below.
Each device has now been defined under its own channel. In this new configuration,
a single path of execution is dedicated to the task of gathering data from each
device. If the application has 256 or fewer devices, it can be optimized exactly how
it is shown here.
There is performance improvement even if the application has more than 256
devices. While 256 or fewer devices may be ideal, the application still benefits from
additional channels. Although spreading the device load across all channels causes
the server to move from device to device again, it can now do so with far less
devices to process on a single channel.
Request Size can also affect the Fanuc Focas Ethernet Driver performance. The request size refers to the
number of bytes that may be requested from a device at one time, and is available on every defined device.
To refine the driver's performance, configure the request size to one of the following settings: 8, 16, 32, 64,
128, 256, or 512 bytes. Depending on the model of the device being used, the setting chosen for request size
can dramatically affect the application. The default value of 256 bytes is recommended. If the application
www. ptc.com
Fanuc Focas Ethernet Driver 22
consists of large requests for consecutively ordered data, try increasing the request size setting for the
device. For more information, refer to Setup.
Word
bit 0 is the low bit
bit 15 is the high bit
Signed 16-bit value
DWord
bit 0 is the low bit
bit 31 is the high bit
Signed 32-bit value
Address Descriptions
Address specifications may vary depending on the model in use. Select a link from the following list to obtain
specific address information for the model of interest.
Note: If the model of interest is listed as supported but is not selectable, use the Open model.
Series 15i
Series 16i
Series 18i
Series 21i
Power Mate i
Open
www. ptc.com
23 Fanuc Focas Ethernet Driver
Series 15i
The following addresses are supported for this model. Not all address ranges may be valid for the particular
device being used. For more information, refer to the specific device's documentation. To jump to a specific
section, select a link from the list below.
CNC Data
Arrays
Strings
PMC Data
The default data types for dynamically defined DDE tags are shown in bold.
www. ptc.com
Fanuc Focas Ethernet Driver 24
CNC Data
Status Info Tags
Tool Offset
Workpiece Zero Offset
Parameter Read Values
Alarms Values
Diagnostic Values
Path Value
Read Axis Data Values
Arrays
Arrays are supported for all PMC addresses, except for Custom Macros in the system range and where
Boolean or string data types are used. Tool Offset data cannot be addressed as an array. The syntax for
declaring an array is as follows:
Note: For all arrays, the total number of bytes being requested cannot exceed the specified request size.
Strings
All address types can be read and written to as ASCII strings. Each byte of memory contains one ASCII char-
acter. The length of strings can range from 1 to 120 and is entered in place of the bit number. An additional
character "M" is appended to the address to distinguish string addresses from bit addresses.
Example
To address a string of length 100 characters, starting at D00200, enter: D00200.100 M.
Note: Use caution when modifying Word, Short, DWord, Long, and Float types. Since all addresses start at
a byte offset within the device, it is possible for the memory associated with tags to overlap. For example,
word tags D00000 and D00001 overlap at byte 1. Writing to D00000 also modifies the value held in D00001.
It is recommended that these memory types be used such that each value to be read and written to by the
driver occupy a unique range of memory in the device. For example, map 3 Word values to bytes D00000-
D00001, D00002-D00003, and D00004-D00005. Tags to access these values would then have addresses
D00000, D00002, and D00004 respectively, and a data type of Word.
www. ptc.com
25 Fanuc Focas Ethernet Driver
Series 16i
The following addresses are supported for this model. Not all address ranges may be valid for the particular
device being used. For more information, refer to the specific device's documentation. To jump to a specific
section, select a link from the list below.
CNC Data
Arrays
Strings
Unsolicited Data
PMC Data
The default data types for dynamically defined DDE tags are shown in bold.
www. ptc.com
Fanuc Focas Ethernet Driver 26
CNC Data
Status Info Tags
Tool Offset
Workpiece Zero Offset
Parameter Read Values
Alarms Values
Diagnostic Values
Path Value
Read Axis Data Values
Arrays
Arrays are supported for all PMC addresses, except for Custom Macros in the system range and where
Boolean or string data types are used. Tool Offset data cannot be addressed as an array. The syntax for
declaring an array is as follows:
Note: For all arrays, the total number of bytes being requested cannot exceed the specified request size.
Strings
www. ptc.com
27 Fanuc Focas Ethernet Driver
All address types can be read and written to as ASCII strings. Each byte of memory contains one ASCII char-
acter. The length of strings can range from 1 to 120 and is entered in place of the bit number. An additional
character "M" is appended to the address to distinguish string addresses from bit addresses.
Example
To address a string of length 100 characters, starting at D00200, enter D00200.100 M.
Unsolicited Data
If tags belong to a slave device, then their address types and ranges are validated according to the data
areas configured for that device) For example, if the slave device is configured with a single area with
D01000 to D01100, then a tag with address D01000 would be valid, but tags with addresses D01101 or
C00001 would be invalid. All tags belonging to a slave device are Read Only.
Note: Use caution when modifying Word, Short, DWord, Long, and Float types. Since all addresses start at
a byte offset within the device, it is possible for the memory associated with tags to overlap. For example,
word tags D00000 and D00001 overlap at byte 1. Writing to D00000 also modifies the value held in D00001.
It is recommended that these memory types be used such that each value to be read and written to by the
driver occupy a unique range of memory in the device. For example, map 3 Word values to bytes D00000-
D00001, D00002-D00003, and D00004-D00005. Tags to access these values would then have addresses
D00000, D00002, and D00004 respectively, and a data type of Word.
Series 18i
The following addresses are supported for this model. Not all address ranges may be valid for the particular
device being used. For more information, refer to the specific device's documentation. To jump to a specific
section, select a link from the list below.
CNC Data
Arrays
Strings
Unsolicited Data
PMC Data
The default data types for dynamically defined DDE tags are shown in bold.
www. ptc.com
Fanuc Focas Ethernet Driver 28
CNC Data
Status Info Tags
www. ptc.com
29 Fanuc Focas Ethernet Driver
Tool Offset
Workpiece Zero Offset
Parameter Read Values
Alarms Values
Diagnostic Values
Path Value
Read Axis Data Values
Arrays
Arrays are supported for all PMC addresses, except for Custom Macros in the system range and where
Boolean or string data types are used. Tool Offset data cannot be addressed as an array. The syntax for
declaring an array is as follows:
Note: For all arrays, the total number of bytes being requested cannot exceed the specified request size.
Strings
All address types can be read and written to as ASCII strings. Each byte of memory contains one ASCII char-
acter. The length of strings can range from 1 to 120 and is entered in place of the bit number. An additional
character "M" is appended to the address to distinguish string addresses from bit addresses.
Example
To address a string of length 100 characters, starting at D00200, enter D00200.100 M.
Unsolicited Data
If tags belong to a slave device, then their address types and ranges are validated according to the data
areas configured for that device. For example, if the slave device is configured with a single area with
D01000 to D01100, then a tag with address D01000 would be valid, but tags with addresses D01101 or
C00001 would be invalid. All tags belonging to a slave device are Read Only.
Note: Use caution when modifying Word, Short, DWord, Long, and Float types. Since all addresses start at
a byte offset within the device, it is possible for the memory associated with tags to overlap. For example,
word tags D00000 and D00001 overlap at byte 1. Writing to D00000 also modifies the value held in D00001.
It is recommended that these memory types be used such that each value to be read and written to by the
driver occupy a unique range of memory in the device. For example, map 3 Word values to bytes D00000-
D00001, D00002-D00003, and D00004-D00005. Tags to access these values would then have addresses
D00000, D00002, and D00004 respectively, and a data type of Word.
Series 21i
The following addresses are supported for this model. Not all address ranges may be valid for the particular
device being used. For more information, refer to the specific device's documentation. To jump to a specific
section, select a link from the list below.
CNC Data
www. ptc.com
Fanuc Focas Ethernet Driver 30
Arrays
Strings
Unsolicited Data
PMC Data
The default data types for dynamically defined DDE tags are shown in bold.
www. ptc.com
31 Fanuc Focas Ethernet Driver
CNC Data
Status Info Tags
Tool Offset
Workpiece Zero Offset
Parameter Read Values
Alarms Values
Diagnostic Values
Path Value
Read Axis Data Values
Arrays
Arrays are supported for all PMC addresses, except for Custom Macros in the system range and where
Boolean or string data types are used. Tool Offset data cannot be addressed as an array. The syntax for
declaring an array is as follows:
Note: For all arrays, the total number of bytes being requested cannot exceed the specified request size.
Strings
All address types can be read and written to as ASCII strings. Each byte of memory contains one ASCII char-
acter. The length of strings can range from 1 to 120 and is entered in place of the bit number. An additional
character "M" is appended to the address to distinguish string addresses from bit addresses.
Example
To address a string of length 100 characters, starting at D00200, enter D00200.100 M.
Unsolicited Data
www. ptc.com
Fanuc Focas Ethernet Driver 32
If tags belong to a slave device, then their address types and ranges are validated according to the data
areas configured for that device. For example, if the slave device is configured with a single area with
D01000 to D01100, then a tag with address D01000 would be valid, but tags with addresses D01101 or
C00001 would be invalid. All tags belonging to a slave device are Read Only.
Note: Use caution when modifying Word, Short, DWord, Long, and Float types. Since all addresses start at
a byte offset within the device, it is possible for the memory associated with tags to overlap. For example,
word tags D00000 and D00001 overlap at byte 1. Writing to D00000 also modifies the value held in D00001.
It is recommended that these memory types be used such that each value to be read and written to by the
driver occupy a unique range of memory in the device. For example, map 3 Word values to bytes D00000-
D00001, D00002-D00003, and D00004-D00005. Tags to access these values would then have addresses
D00000, D00002, and D00004 respectively, and a data type of Word.
Power Mate i
The following addresses are supported for this model. Not all address ranges may be valid for the particular
device being used. For more information, refer to the specific device's documentation. To jump to a specific
section, select a link from the list below.
CNC Data
Arrays
Strings
PMC Data
The default data types for dynamically defined DDE tags are shown in bold.
www. ptc.com
33 Fanuc Focas Ethernet Driver
CNC Data
Status Info Tags
Tool Offset
Workpiece Zero Offset
Parameter Read Values
Alarms Values
Diagnostic Values
Path Value
Read Axis Data Values
www. ptc.com
Fanuc Focas Ethernet Driver 34
Arrays
Arrays are supported for all PMC addresses, except for Custom Macros in the system range and where
Boolean or string data types are used. Tool Offset data cannot be addressed as an array. The syntax for
declaring an array is as follows:
Note: For all arrays, the total number of bytes being requested cannot exceed the specified request size.
Strings
All address types can be read and written to as ASCII strings. Each byte of memory contains one ASCII char-
acter. The length of strings can range from 1 to 120 and is entered in place of the bit number. An additional
character "M" is appended to the address to distinguish string addresses from bit addresses.
Example
To address a string of length 100 characters, starting at D00200, enter D00200.100 M.
Note: Use caution when modifying Word, Short, DWord, Long, and Float types. Since all addresses start at
a byte offset within the device, it is possible for the memory associated with tags to overlap. For example,
word tags D00000 and D00001 overlap at byte 1. Writing to D00000 also modifies the value held in D00001.
It is recommended that these memory types be used such that each value to be read and written to by the
driver occupy a unique range of memory in the device. For example, map 3 Word values to bytes D00000-
D00001, D00002-D00003, and D00004-D00005. Tags to access these values would then have addresses
D00000, D00002, and D00004 respectively, and a data type of Word.
Open
The following addresses are supported for this model. Not all address ranges may be valid for the particular
device being used. For more information, refer to the specific device's documentation. To jump to a specific
section, select a link from the list below.
CNC Data
Arrays
Strings
Unsolicited Data
PMC Data
The default data types for dynamically defined DDE tags are shown in bold.
www. ptc.com
35 Fanuc Focas Ethernet Driver
www. ptc.com
Fanuc Focas Ethernet Driver 36
CNC Data
Status Info Tags
Tool Offset
Workpiece Zero Offset
Parameter Read Values
Alarms Values
Diagnostic Values
Path Value
Read Axis Data Values
Arrays
Arrays are supported for all PMC addresses, except for Custom Macros in the system range and where
Boolean or string data types are used. Tool Offset data cannot be addressed as an array. The syntax for
declaring an array is as follows:
Note: For all arrays, the total number of bytes being requested cannot exceed the specified request size.
Strings
All address types can be read and written to as ASCII strings. Each byte of memory contains one ASCII char-
acter. The length of strings can range from 1 to 120 and is entered in place of the bit number. An additional
character "M" is appended to the address to distinguish string addresses from bit addresses.
Example
To address a string of length 100 characters starting at D00200, enter D00200.100 M.
Unsolicited Data
If tags belong to a slave device, then their address types and ranges are validated according to the data
areas configured for that device. For example, if the slave device is configured with a single area with
D01000 to D01100, then a tag with address D01000 would be valid, but tags with addresses D01101 or
C00001 would be invalid. All tags belonging to a slave device are Read Only.
Note: Use caution when modifying Word, Short, DWord, Long, and Float types. Since all addresses start at
a byte offset within the device, it is possible for the memory associated with tags to overlap. For example,
word tags D00000 and D00001 overlap at byte 1. Writing to D00000 also modifies the value held in D00001.
It is recommended that these memory types be used such that each value to be read and written to by the
driver occupy a unique range of memory in the device. For example, map 3 Word values to bytes D00000-
D00001, D00002-D00003, and D00004-D00005. Tags to access these values would then have addresses
D00000, D00002, and D00004 respectively, and a data type of Word.
www. ptc.com
37 Fanuc Focas Ethernet Driver
www. ptc.com
Fanuc Focas Ethernet Driver 38
*Except under manual mode and under cutter radius compensation outside corner.
**Under manual mode or under cutter radius compensation outside corner.
www. ptc.com
39 Fanuc Focas Ethernet Driver
www. ptc.com
Fanuc Focas Ethernet Driver 40
T Series
0 : Not editing
1 : Edit
2 : Search
3 : Output
4 : Input
5 : Compare
6 : Label Skip (Label skip status)
7 : Offset (During writing mode of tool length compensation amount)
8 : Work Shift (During writing mode of work shift amount)
9 : Restart (During program restart)
14 : PTRR (During tool retraction and recovery mode)
17 : Memory-Check (Checking tape memory)
19 : Save (Saving fine torque sensing data)
23 : NANO HP (Running of AI High-precision Contour Control)
24 : AI HPCC (Running of AI Nano High-precision Contour Control)
26 : OFSX (Change the manual active offset value: X-axis offset change mode)
27 : OFSZ (Change the manual active offset value: Z-axis offset change mode)
28 : WZR (change the manual active offset value: workpiece origin offset change mode)
29 : OFSY (Change the manual active offset value: Y-axis offset change mode)
31 : TOFS (Change the manual active offset value: Tool offset change mode)
39 : TCP (During tool center point control of 5-axes machining)
40 : TWP (During tilted working plane command)
41 : TCP+TWP (During tool center point control of 5-axes machining and tilted working
plane command)
42 : APC (Advanced Preview Control)
0 : Not emergency
statinfo_emer-
1 : Emergency
gency
2 : Reset
statinfo_hdck N/A
1 : Motion
statinfo_motion
2 : Dwell
0 : Others
statinfo_mstb
1 : FIN
0 : Reset
1 : Stop
statinfo_run 2 : Hold
3 : Start
4 : MSTR*
statinfo_ 0 : T Mode
tmmode 1 : M Mode
*During operation of Jog MDI, and retraction and re-positioning of tool retraction and recovery.
www. ptc.com
41 Fanuc Focas Ethernet Driver
Tool Offset
CNC Data
Address Type Range Data Type Access
TOFS:nn:o
www. ptc.com
Fanuc Focas Ethernet Driver 42
CNC Data
Address Type Range Data Type Access
ZOFS:aa:ooo
www. ptc.com
43 Fanuc Focas Ethernet Driver
Series 300i
1013#3 1013#2 1013#1 1013#0 Linear axis mm Linear axis inch Rotation
(ISE) (ISD) (ISC) ISA) input [mm] input [inch] axis [deg]
IS-
0 0 0 1 0.01 0.001 0.01
A
IS-
0 0 0 0 0.001 0.0001 0.001
B
IS-
0 0 1 0 0.0001 0.00001 0.0001
C
IS-
0 1 0 0 0.00001 0.000001 0.00001
D
IS-
1 0 0 0 0.000001 0.0000001 0.000001
E
For axis access, append .A to the parameter number, followed by the axis number. The first axis in the para-
meter is axis 1, the second axis 2, and so on. The highest axis to access is 8. If no axis is added to the
address, the first axis is read.
For bit in parameter access, append a dot (.) to the parameter number, followed by the bit number. The first
bit is bit 0. The maximum accessible bit is the 32nd bit. Bit access is allowed on axis access. Bit access is not
allowed on parameters with default data types of float or double.
**Bit in parameter tags can only be assigned the Boolean data type.
www. ptc.com
Fanuc Focas Ethernet Driver 44
Alarm Values
Specific alarm information can be read using the cnc_alarm2 tag. Refer to the machine's manual for which
bits correspond with which alarms. When a bit is set to true it means there is one or more alarms of that
type present in the machine.
For bit access, append a dot (.) to the cnc_alarm2 tag. The range is 32-bits starting at bit 0 (0-31). All bit tags
can only be assigned the Boolean data type.
Diagnostic Values
The diagnostic values of the machine can be read with cnc_diagnoss tags. The user must provide a diagnosis
number and the desired axis. For values that do not have an axis, 0 must be used. An axis value of -1 (ALL_
AXES) is not supported.
The format for these tag addresses are in the form cnc_diagnoss: A:B.C where A is the diagnosis number, B
is the axis, and C is optional bit access. Tag address examples include:
l cnc_diagnoss:301:1
l cnc_diagnoss:301:2
l cnc_diagnoss:301:3
l cnc_diagnoss:1140:0 (as a Byte)
l cnc_diagnoss:1140:0.0 (as a Boolean)
For bit access, append a dot (.) to the cnc_diagnoss tag. The range is 8-bits starting at bit 0 (0-7). All bit tags
can only be assigned the Boolean data type.
Address
Range Data Type Access
Type
cnc_diagnoss:1:0
through
cnc_diagnoss:A:B Boolean, Byte,
where A is the maximum diagnosis number and B is the Char, Word,
maximum axis defined. Short, DWord,
Diagnostic Read
These maximums are machine dependent. Long,
Reporting Only
Float, Double
For bit access to values:
cnc_diagnoss:1:0.0 Boolean
through
cnc_diagnoss:A:B.7
www. ptc.com
45 Fanuc Focas Ethernet Driver
Path Values
The target_path tag can be used to get and set the current path for the controller. Writing a value to the tar-
get_path tag produces a cnc_setpath call to the machine. A read produces a cnc_getpath call.
The format for these tag addresses are in the form cnc_rdaxisdata: A:B:C:data or cnc_rdaxisdata: A:B:C:-
flags.D where A is the class, B is the type, C is the axis, and D is optional bit access on the flags value.
Examples include:
cnc_rdaxisdata:1:0:1:flags
Boolean, Byte, Char,
through
Word,
cnc_diagnoss:5:9:4:flags
Axis Data Reporting Short, DWord, Long, Read Only
Float, Double
These maximums are device dependent.
Boolean
www. ptc.com
Fanuc Focas Ethernet Driver 46
Error Descriptions
The following categories of messages may be generated. Click the link for a list of the related messages.
Address Validation
Device Status Messages
General Driver Error Messages
Slave Device Driver Error Messages
Focas Data Window Library Error Codes
Address Validation
The following messages may be generated. Click the link for a description of the message.
Possible Cause:
A tag address that has been specified statically references a location that is beyond the range of supported
locations for the device.
Solution:
Verify that the address is correct; if it is not, re-enter it in the client application.
Possible Cause:
A tag address that has been specified statically is requesting an array size that is too large for the address
type or block size of the driver.
Solution:
Re-enter the address in the client application to specify a smaller value for the array or a different starting
point.
www. ptc.com
47 Fanuc Focas Ethernet Driver
Possible Cause:
A tag address that has been specified statically contains an array reference for an address type that doesn't
support arrays.
Solution:
Re-enter the address in the client application to remove the array reference or correct the address type.
Possible Cause:
A tag address that has been specified statically has been assigned an invalid data type.
Solution:
Modify the requested data type in the client application.
Possible Cause:
A tag address that has been specified statically contains one or more invalid characters.
Solution:
Re-enter the address in the client application.
Possible Cause:
A tag address that has been specified statically has a requested access mode that is not compatible with
what the device supports for that address.
Solution:
Change the access mode in the client application.
Missing address.
Error Type:
Warning
www. ptc.com
Fanuc Focas Ethernet Driver 48
Possible Cause:
A tag address that has been specified statically has no length.
Solution:
Re-enter the address in the client application.
Possible Cause:
1. The connection between the device and the host PC is broken.
3. The response from the device took longer to receive than the amount of time specified in the
"Request Timeout" device setting.
Solution:
1. Verify the cabling between the PC and the PLC device.
2. Verify that the IP address given to the named device matches that of the actual device.
3. Increase the Request Timeout setting so that the entire response can be handled.
Possible Cause:
1. The connection between the device and the host PC is broken.
Solution:
1. Verify the cabling between the PC and the PLC device.
2. Verify that the IP address given to the named device matches that of the actual device.
www. ptc.com
49 Fanuc Focas Ethernet Driver
Could not acquire library handle for device <channel.device>. FWLIB error: <code>.
Could not read one or more vacant macros in range starting at <address> on device
<device>.
Could not set request timeout for device <channel.device>. FWLIB error: <code>.
Invalid XML document. Reason: Error loading Unsolicited Data Areas for device <device
name>. End address can not be less than start address for area area-number.
Invalid XML document. Reason: Error loading Unsolicited Data Areas for device device-
name. Invalid area order or duplicate area number.
Invalid XML document. Reason: Error loading Unsolicited Data Areas for device device-
name. Maximum size of area area-number is size bytes.
Read error occurred for address starting at <address> on device <channel.device>. FWLIB
error: <code>.
Unable to start the Fanuc Focas Data Window Library services.
Write error occurred for address <address> on device <channel.device>. FWLIB error:
<code>.
Could not acquire library handle for device <channel.device>. FWLIB error:
<code>.
Error Type:
Warning
Possible Cause:
1. Call to Focas 1 Data Window Library to connect to device failed.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to connect on a subsequent retry.
See Also:
Focas 1 Data Window Library Error Codes
Could not read one or more vacant macros in range starting at <address>
on device <device>.
Error Type:
Warning
www. ptc.com
Fanuc Focas Ethernet Driver 50
Possible Cause:
The macro number is not configured in the device.
Solution:
Check the tag address and device configuration.
Could not set request timeout for device <channel.device>. FWLIB error:
<code>.
Error Type:
Warning
Possible Cause:
1. Call to Focas 1 Data Window Library to set request timeout failed.
2. Invalid timeout.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to set the timeout on a subsequent retry.
See Also:
Focas 1 Data Window Library Error Codes
Invalid XML document. Reason: Error loading Unsolicited Data Areas for
device <device-name>. End address can not be less than start address for
area <area-number>.
Error Type:
Fatal
Possible Cause:
The end address for the given unsolicited data area is greater than the start address.
Solution:
Make the end address greater than or equal to the start address.
Invalid XML document. Reason: Error loading Unsolicited Data Areas for
device <device-name>. Invalid area order or duplicate area number.
Error Type:
Fatal
Possible Cause:
www. ptc.com
51 Fanuc Focas Ethernet Driver
1. The unsolicited data areas are not listed in the correct order.
Solution:
1. Correct the ordering of the unsolicited data areas to be in the increasing order starting at 1.
See Also:
Unsolicited Data Areas
Invalid XML document. Reason: Error loading Unsolicited Data Areas for
device <device-name>. Maximum size of area <area-number> is <size>
bytes.
Error Type:
Fatal
Possible Cause:
The maximum number of bytes for areas 1, 2, or 3 are 1430, 1414, or 1398 respectively. The range that has
been defined for these areas is outside this limit.
Solution:
Correct the unsolicited data area size based on the limits above.
See Also:
Unsolicited Data Areas
Possible Cause:
1. Call to Focas 1 Data Window Library to read data failed.
3. Invalid address.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to read the data on a subsequent retry.
www. ptc.com
Fanuc Focas Ethernet Driver 52
See Also:
Focas 1 Data Window Library Error Codes
Possible Cause:
The driver was unable to load the Fanuc Focas Data Window Library.
Solution:
Make sure that the library is installed on the computer. Contact this software's distributor.
Possible Cause:
1. Call to Focas 1 Data Window Library to write data failed.
3. Invalid address.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to write the data on a subsequent retry.
See Also:
Focas 1 Data Window Library Error Codes
www. ptc.com
53 Fanuc Focas Ethernet Driver
Failed to connect slave device <channel.device>. Could not set data area start address.
Failed to connect slave device <channel.device>. Could not set data area type.
Failed to connect slave device <channel.device>. Could not set host IP.
Failed to connect slave device <channel.device>. Could not set host port.
Failed to connect slave device <channel.device>. Could not set message alive time.
Failed to connect slave device <channel.device>. Could not set message retries.
Failed to connect slave device <channel.device>. Could not set message timeout.
Failed to connect slave device <channel.device>. Could not set messaging properties.
FWLIB data error <code>.
Failed to connect slave device <channel.device>. Could not set messaging properties.
FWLIB error: <code>.
Failed to connect slave device <channel.device>. Could not set number of data areas.
Failed to connect slave device <channel.device>. Could not set request timeout. FWLIB
error: <code>.
Failed to connect slave device <channel.device>. Could not set transmission control PMC
type.
Failed to connect slave device <channel.device>. Could not set transmission control start
address.
Failed to connect slave device <channel.device>. Could not start messaging session.
FWLIB error: <code>.
Installed version of Focas 1 Library does not support unsolicited communication. Device
<channel.device> deactivated.
Received CNC power down notification from unsolicited message server. Reconnecting
slave devices.
Received CNC power up notification from unsolicited message server.
Received socket error notification from unsolicited message server.
Received unsolicited message server shutdown notification.
Unsolicited message server does not seem to be running. Attempting to launch.
Possible Cause:
The driver was not able to start the Unsolicited Message Server.
Solution:
For the restart to succeed, the message server executable file "UMsgServ.ext" must be located in the host
computer’s system folder.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
www. ptc.com
Fanuc Focas Ethernet Driver 54
See Also:
Unsolicited Messaging
Could not access necessary system resources for slave device: <chan-
nel.device>.
Error Type:
Serious
Possible Cause:
The driver could not create data objects needed for unsolicited communications.
Solution:
Close down all unnecessary applications running on the host computer.
Possible Cause:
1. Call to Focas 1 Data Window Library to connect to device failed.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to connect on a subsequent retry.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Focas 1 Data Window Library Error Codes
Possible Cause:
www. ptc.com
55 Fanuc Focas Ethernet Driver
Part of starting an unsolicited messaging session with a device includes informing the device of the IP of the
host computer. This message will be posted if the driver fails to determine the default IP of the host com-
puter.
Solution:
Make sure that an IP address is configured for the computer.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
Failed to connect slave device <channel.device>. Could not set data area
size.
Error Type:
Warning
Possible Cause:
Call to Focas 1 Data Window Library to set unsolicited message data area size failed.
Solution:
Ensure that the specified range of addresses is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Data Areas
Failed to connect slave device <channel.device>. Could not set data area
start address.
Error Type:
Warning
Possible Cause:
Call to Focas 1 Data Window Library to set unsolicited message data area start address failed.
Solution:
Ensure that the specified start address is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
www. ptc.com
Fanuc Focas Ethernet Driver 56
Failed to connect slave device <channel.device>. Could not set data area
type.
Error Type:
Warning
Possible Cause:
Call to Focas 1 Data Window Library to set unsolicited message data area type failed.
Solution:
Ensure that the specified type is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Data Areas
Failed to connect slave device <channel.device>. Could not set host IP.
Error Type:
Warning
Possible Cause:
Call to Focas 1 Data Window Library to set host IP of Unsolicited Message Server failed.
Solution:
Check the IP of the host computer.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
Failed to connect slave device <channel.device>. Could not set host port.
Error Type:
Warning
Possible Cause:
Call to Focas 1 Data Window Library to set host port of Unsolicited Message Server failed.
Solution:
Ensure that the specified port number is valid.
Note:
www. ptc.com
57 Fanuc Focas Ethernet Driver
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Transfer Control
Possible Cause:
Call to Focas 1 Data Window Library to set unsolicited message alive time failed.
Solution:
Ensure that the specified alive time value is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Transfer Control
Possible Cause:
Call to Focas 1 Data Window Library to set transmission control message retries failed.
Solution:
Ensure that the specified retries value is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Transfer Control
www. ptc.com
Fanuc Focas Ethernet Driver 58
Possible Cause:
Call to Focas 1 Data Window Library to set unsolicited message timeout failed.
Solution:
Ensure that the specified timeout value is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Transfer Control
Possible Cause:
1. Call to Focas 1 Data Window Library to set unsolicited messaging properties failed due to a data
related error.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to connect on a subsequent retry.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Focas 1 Data Window Library Error Codes
Unsolicited Transfer Control
www. ptc.com
59 Fanuc Focas Ethernet Driver
Possible Cause:
1. Call to Focas 1 Data Window Library to set unsolicited messaging properties failed due to a non-data
related error.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to connect on a subsequent retry.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Focas 1 Data Window Library Error Codes
Unsolicited Transfer Control
Possible Cause:
Call to Focas 1 Data Window Library to set number of unsolicited message data areas failed.
Solution:
Ensure that the device supports the number of data areas configured.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Data Areas
www. ptc.com
Fanuc Focas Ethernet Driver 60
Possible Cause:
1. Call to Focas 1 Data Window Library to set request timeout failed.
2. Invalid timeout.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to set the timeout on a subsequent retry.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Focas 1 Data Window Library Error Codes
Possible Cause:
Call to Focas 1 Data Window Library to set transmission control PMC type failed.
Solution:
Ensure that the specified PMC type is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Transfer Control
www. ptc.com
61 Fanuc Focas Ethernet Driver
Warning
Possible Cause:
Call to Focas 1 Data Window Library to set transmission control start address failed.
Solution:
Ensure that the specified start address is valid.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Transfer Control
Possible Cause:
1. Call to Focas 1 Data Window Library to start unsolicited messaging session failed.
Solution:
The error code provided by the library should help diagnose the problem. If the problem is transient, the
driver should be able to connect on a subsequent retry.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Focas 1 Data Window Library Error Codes
Unsolicited Transfer Control
Installed version of Focas Data Window Library does not support unso-
licited communication. Device <device> deactivated.
Error Type:
www. ptc.com
Fanuc Focas Ethernet Driver 62
Serious
Possible Cause:
The server project includes slave devices, but the version of the Focas 1 Data Window Library software
installed on the system does not support unsolicited communication.
Solution:
Contact the distributor for library update. The device's firmware may also need to be upgraded.
See Also:
Additional Software Requirements
Possible Cause:
The Unsolicited Message Server has notified the driver that with one of the devices it has started an unso-
licited messaging session with no longer appears to be running. The likely reason is that the CNC was
powered down. Network problems could also be responsible.
Solution:
Restart the CNC and check for networking problems such as cable breaks. The driver should automatically
resume communication with the device.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
Possible Cause:
The Unsolicited Message Server has notified the driver that one of the devices it has started an unsolicited
messaging session with has been powered up. This message likely follows a "Received CNC power down
notification" message.
Solution:
This is for information only. The driver should automatically resume communication with the device.
www. ptc.com
63 Fanuc Focas Ethernet Driver
Possible Cause:
The Unsolicited Message Server experienced a socket error for one or more of the connections to a device
on the network.
Solution:
If the problem is transient, the driver should recover from this error by restarting all unsolicited messaging
sessions. If not, investigate cabling, CNC power supply, and I/F board.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
Possible Cause:
The Unsolicited Message Server was shutdown while the driver was using it.
Solution:
This is for information only. The driver automatically restarts the message server. For the restart to succeed,
the message server executable file "UMsgServ.exe" must be located in the host computer’s system dir-
ectory.
Note:
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Messaging
Possible Cause:
The Unsolicited Message Server has stopped running, and was not shutdown normally.
Solution:
This is for information only. The driver automatically restarts the message server. For the restart to succeed,
the message server executable file "UMsgServ.exe" must be located in the host computer’s system folder.
Note:
www. ptc.com
Fanuc Focas Ethernet Driver 64
The device's _System._Error Tag is set if the driver fails to start an unsolicited messaging session, or restart
the session after detection of a communications problem. Tags belonging to a slave device in an error state
continue to show the last value received from the device or their initial value of zero.
See Also:
Unsolicited Messaging
www. ptc.com
65 Fanuc Focas Ethernet Driver
www. ptc.com
Fanuc Focas Ethernet Driver 66
Index
Boolean 22
Channel Assignment 12
Communications Parameters 15
Communications Timeouts 14
Connect Timeout 14
Could not access necessary system resources for slave device: <channel.device>. 54
Could not acquire library handle for device <channel.device>. FWLIB error <code>. 49
Could not read one or more vacant macros in range starting at <address> on device <device>. 49
Could not set request timeout for device <channel.device>. FWLIB error <code>. 50
Data Collection 12
Data Type <type> is not valid for device address <address>. 47
Data Types Description 22
Demote on Failure 15
Demotion Period 15
Device <device name> is not responding. 48
www. ptc.com
67 Fanuc Focas Ethernet Driver
Error Descriptions 46
External Dependencies 5
Failed to connect slave device <channel.device>. Could not acquire library handle. FWLIB error
<code>. 54
Failed to connect slave device <channel.device>. Could not determine host IP address. 54
Failed to connect slave device <channel.device>. Could not set data area size. 55
Failed to connect slave device <channel.device>. Could not set data area start address. 55
Failed to connect slave device <channel.device>. Could not set data area type. 56
Failed to connect slave device <channel.device>. Could not set host IP. 56
Failed to connect slave device <channel.device>. Could not set host port. 56
Failed to connect slave device <channel.device>. Could not set message alive time. 57
Failed to connect slave device <channel.device>. Could not set message retries. 57
Failed to connect slave device <channel.device>. Could not set message timeout. 58
Failed to connect slave device <channel.device>. Could not set messaging parameters. FWLIB data error
<code>. 58
Failed to connect slave device <channel.device>. Could not set messaging parameters. FWLIB error:
<code>. 59
Failed to connect slave device <channel.device>. Could not set number of data areas. 59
Failed to connect slave device <channel.device>. Could not set request timeout. FWLIB error <code>. 60
Failed to connect slave device <channel.device>. Could not set transmission control PMC type. 60
Failed to connect slave device <channel.device>. Could not set transmission control start address. 60
Failed to connect slave device <channel.device>. Could not start messaging session. FWLIB error
<code>. 61
www. ptc.com
Fanuc Focas Ethernet Driver 68
Float 22
Focas1 Data Window Library Error Codes 64
General 11
ID 12
Identification 11
Initial Updates from Cache 14
Install a Focas Library 5
Installed version of Focas Data Window Library does not support unsolicited communication. Device
<device> deactivated. 61
Inter-Request Delay 14
Invalid XML document. Reason: Error loading Unsolicited Data Areas for device <device-name>. End
address can not be less than start address for area <area-number>. 50
Invalid XML document. Reason: Error loading Unsolicited Data Areas for device <device-name>. Invalid
area order or duplicate area number. 50
Invalid XML document. Reason: Error loading Unsolicited Data Areas for device <device-name>. Max-
imum size of area <area-number> is <size bytes>. 51
Long 22
Missing address. 47
Model 12
Name 12
Network 8
www. ptc.com
69 Fanuc Focas Ethernet Driver
Open 34
Operating Mode 12
Optimizing Fanuc Focas Ethernet Communications 21
Overview 5
Scan Mode 13
Series 15i 23
Series 16i 25
Series 18i 27
Series 21i 29
Setup 8
Short 22
Simulated 13
Slave Device Driver Error Messages 52
Status Info Tags 37
www. ptc.com
Fanuc Focas Ethernet Driver 70
Timeouts to Demote 15
Tool Offset Tags 41
Unable to start the Fanuc Focas Ethernet Data Window Library services. 52
Unable to write tag <address> on device <device name>. 48
Unsolicited Data Areas 17
Unsolicited message server does not seem to be running. Attempting to launch. 63
Unsolicited Messaging 18
Unsolicited Transfer Control 16
Word 22
Workpiece Zero Offset Tags 42
Write error occurred for address <address> on device <channel.device>. FWLIB error <code>. 52
www. ptc.com