QuickStart Guide
...
Industrial Systems Connection ...
Fanuc Corporation

Fanuc CNC Ethernet (Gen1)

9min

Review the following information for setting up and configuring the Fanuc CNC Ethernet (Gen1) driver.

Litmus Edge Compatible Series

Compatibility parameter

Compatible items

Driver type

Ethernet

Validated devices/series

Any PLC model that supports FANUC FOCAS

To set up and configure this device in Litmus Edge, you will need to do the following:

  • Step 1: Set up and Configure the PLC Device
  • Step 2: Set up the PLC Device in Litmus Edge DeviceHub
  • Step 3: Configure the List of Registers

Step 1: Set up and Configure the PLC Device

If the device is configured for Ethernet access, find its network parameters. Otherwise, follow the steps below.

Review the following parameters for the PLC Configuration.

Supported Data Types

Refer to the following supported data types by Fanuc and Litmus Edge. Below is the Fanuc PMC (Programmable Machine Control).

Fanuc Macro variables support the FLOAT data type.

Table 1

Data Type

Size

BYTE

1 byte

WORD

2 bytes

Table 2

Signed Value

Data Type

Size

INT8

SINT

1 byte

INT16

INT

2 bytes

INT32

DINT

4 bytes

Table 3

Unsigned Value

Data Type

Size

UINT8

USINT

1 byte

UINT16

UINT

2 bytes

UINT32

UDINT

4 bytes

The Fanuc PMC System is the interface between the Fanuc CNC and the machine tool. For information on the PMC system, visit the Fanuc Corporation website.

RDPMC Tags

RDPMC tags provide all information about the Address Type, the Address Number to read data from, and Size within the tag itself.

Address types
Address types


Example of an RDPMC Tag

Tag

Address Type

Address Number

Size

Rdpmc [9_746_2]

D

746

4 bytes

In the previous example, 9 refers to an address type listed in the image, 746 is the address number to read data from, and 2 means that the data is four bytes long.

Configure Device

Refer to the following configurations if the device doesn't connect right away.

To configure the device:

  1. Note down the following information and refer to it when needed. Device: Fanuc 0i-F Communication I/F: Ethernet. Refer to the following figure.

    Fanuc CNC Ethernet reference
    Fanuc CNC Ethernet reference
    
  2. Press Soft key five times to set up the IP Address.

    IP Address set up screen
    IP Address set up screen
    
  3. Press the Soft key Embed Port to set up the network parameters, and then press the Soft key OPRT.

    Set up network parameters screen
    Set up network parameters screen
    
  4. Press the Soft key Restart to activate the settings.

    Activate settings screen [1]
    Activate settings screen [1]
    
  5. Press the Soft key Execute to activate the settings.

    Activate settings screen [2]
    Activate settings screen [2]
    
  6. Press the Soft key two times to reach this page, and then press the Soft key FOCAS2.

    FOCAS2 button reference
    FOCAS2 button reference
    
  7. Set up the port number, and then press the Soft key OPRT.

    Port setup screen
    Port setup screen
    

Step 2: Set up the PLC Device in Litmus Edge DeviceHub



Parameter

Value

Type

Fanuc Corporation

Driver

Fanuc CNC Ethernet (Gen1)

Network Address

The device address you defined in Step 1

Port

8191



Name

Value Types

Access Types

Address Format

Min Address

Max Address

Description

G_Bit

bit

R/W

DDDDo

0

999977

 

F_Bit

bit

R/W

DDDDo

0

99997

 

Y_Bit

bit

R/W

DDDDo

0

99997

 

X_Bit

bit

R/W

DDDDo

0

99997

 

A_Bit

bit

R/W

DDDDo

0

99997

 

R_Bit

bit

R/W

DDDDDo

0

599997

 

T_Bit

bit

R/W

DDDDo

0

99997

 

K_Bit

bit

R/W

DDDDo

0

99997

 

C_Bit

bit

R/W

DDDDo

0

99997

 

D_Bit

bit

R/W

DDDDo

0

99997

 

E_Bit

bit

R/W

DDDDo

0

99997

 

G

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

F

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

Y

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

X

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

A

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

R

usint,sint,int,uint,dint,udint

R/W

DDDD

0

59999

 

T

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

K

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

C

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

D

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

E

usint,sint,int,uint,dint,udint

R/W

DDDD

0

9999

 

cnc_absolute

dint

R/W

D

1

8

 

cnc_absolute2

dint

R/W

D

1

8

 

cnc_machine

dint

R/W

D

1

8

 

cnc_relative

dint

R/W

D

1

8

 

cnc_distance

dint

R/W

D

1

8

 

cnc_acts

dint

R/W

D

0

0

 

cnc_acts2

dint

R/W

D

1

8

 

cnc_actf

dint

R/W

DDDD

0

0

 

cnc_rdmacror

float

R/W

DDDD

1

9999

 

cnc_rdtoolrng_number

dint

R/W

DDDD

0

9999

 

cnc_rdtoolrng_life

dint

R/W

DDDD

0

9999

 

cnc_rdtoolrng_count

dint

R/W

DDDD

0

9999

 

cnc_rdparam

sint, int,float

R/W

DDDDDDD

0

9999947

Address consists of 2 parts. last 2 numbers are axis.

cnc_rdparam3

sint,int,float

R/W

TDDDDDDD

0

19999947

Address consists of 3 parts; last 2 number are axis, T:0 Relative axis, 1 Absolute axis.

cnc_rdalmmsg

custom

R/W

D

0

0

 

cnc_rdalmmsg2

alarm

R/W

D

0

0

 

cnc_rdalminfo

alarmInfo

R/W

D

0

19

 

cnc_statinfo

statinfo

R/W

D

0

0

 

cnc_statinfo2

statinfo

R/W

D

0

0

 

cnc_gettimer_date

date

R/W

D

0

0

 

cnc_gettimer-time

time

R/W

D

0

0

 

cnc_rdtpfsr

dint

R/W

TDDDD

0

19999

T 0: Machining Mode, 1: Lathe mode

cnc_rdsvmeter

custom

R/W

D

0

0

 

cnc_rdspmeter_meter

custom

R/W

D

0

0

 

cnc_rdspmeter_speed

custom

R/W

D

0

0

 

cnc_exeprgname

custom

R/W

D

0

0

 

cnc_rdseqnum

custom

R/W

D

0

0

 

cnc_rdblkcount

custom

R/W

D

0

0

 

cnc_rdopnlsgnl

custom

R/W

D

0

0

 

cnc_sysinfo

custom

R/W

D

0

0

 

cnc_sysinfo_ex

custom

R/W

D

0

0

 

cnc_alarm

custom

R/W

D

0

0

 

cnc_alarm2

custom

R/W

D

0

0

 

cnc_rdposition

custom

R/W

D

0

0

 

cnc_rdtofsinfo

custom

R/W

D

0

0

 

cnc_rdtofsinfo2

custom

R/W

D

0

0

 

cnc_tofs_mge

custom

R/W

TTTDDDD

0

1029999

 

cnc_rdparainfo

custom

R/W

DDDD

0

9999

 

cnc_rdparainfo3

custom

R/W

DDDD

0

9999

 

cnc_rdactfixofs

custom

R/W

DD

1

48

 

pmc_rdpmcinfo

custom

R/W

DD

0

99

 

pmc_getdtailerr

custom

R/W

D

0

0

 

pmc-rdalmmsg

custom

R/W

DD

1

99

 

cnc_diagnoss

sint,int,float

R/W

DDDDDDD

0

9999947

 

cnc_diagnosr

sint,int,float

R/W

DDDDDDD

0

9999947

Address consist of 2 parts. last 2 numbers are axis,

cnc_rddiaginfo

custom

R/W

DDDDD

0

99999

 

cnc_rdopmsg

custom

R/W

D

0

9

 

cnc_rdopmsg2

custom

R/W

D

0

9

 

cnc_rdopmsg3

custom

R/W

D

-1

9

 

cnc_rdspcss

custom

R/W

D

0

0

 

cnc_rdspeed

custom

R/W

D

0

0

 

cnc_rdspload

custom

R/W

DD

0

99

 

cnc_rdspmaxrpm

custom

R/W

DD

0

99

 

cnc_rdspgear

custom

R/W

DD

0

999

 

cnc_rdgrpid2

custom

R/W

DDDDD

0

99999



cnc_rdngrp

custom

R/W

D

0

0

 

cnc_rdntool

custom

R/W

DDDDD

0

99999

 

cnc_rdlife

custom

R/W

DDDDD

0

99999

 

cnc_rdcount

custom

R/W

DDDDD

0

99999

 

cnc_rd1length

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rd2length

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rd1radius

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rd2radius

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_t1info

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_t2info

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_toolnum

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rdtoolgrp

custom

R/W

DDDDD

0

99999

 

cnc_rdtoolgrp

custom

R/W

D

0

0

 

cnc_rdusegrpid

custom

R/W

D

0

0

 

cnc_rdmaxgrp

custom

R/W

D

0

0

 

cnc_rdmaxtool

custom

R/W

D

0

0

 

cnc_rdusetlno

custom

R/W

DDDDD

0

99999

 

cnc_rd1tlifedata

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rd1tlifedat2

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rd2tlifedata

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rdgrpinfo

custom

R/W

DDDDD

0

99999

 

cnc_rdgrpinfo2

custom

R/W

DDDDD

0

99999

 

cnc_rdgrpinfo3

custom

R/W

DDDDD

0

99999

 

cnc_rdgrpinfo4

custom

R/W

DDDDD

0

99999

 

cnc_rdtinfo

custom

R/W

D

0

0

 

cnc_rdtlusegrp

custom

R/W

D

0

0

 

cnc_rdtlgrp

custom

R/W

DDDDD

0

99999

 

cnc_rdtltool

custom

R/W

TTTTTDDDDD

0

9999999999

Address consist of 2 parts. first 5 numbers are group number.

cnc_rdexchgtgrp

custom

R/W

DDDDD

0

99999

 

cnc_rdtlgeomsize_ext

custom

R/W

DDDDDD

0

199999

Address consist of 2 parts. first 1 numbers are coordinate.

cnc_rdzofs

dint

R/W

DDDdd

0

99948

Address consist of 2 parts. first 3 numbers are offset number, second 2 numbers are axis.

cnc_rdzofsinfo

dint

R/W

D

0

0



cnc_rdfixofs

dint

R/W

Ddd

101

848

Address consist of 2 parts. first 1 numbers are c fixture offset number.

cnc_rdintchk

dint

R/W

DDDDd

0

99997

Address consist of 2 parts. first 4 numbers are check data number, second 1 number is type of coordinate.

cnc_rdwkcdshft

dint

R/W

DD

1

48



cnc_rdwkcdsfms

dint

R/W

DD

1

48



cnc_wksft_rnge

custom

R/W

DD

1

48



cnc_dtsvcnclupdn

custom

R/W

D

0

0



cnc_dtsvgetdncpg

custom

R/W

D

0

0



cnc_rddncfname

custom

R/W

D

0

0



cnc_rddsdncfile

custom

R/W

D

0

1

0: DATA SERVER, 1: DATA SERVER Host

cnc_dsftpstat

custom

R/W

D

0

0



cnc_dsftpcancel

custom

R/W

D

0

0



cnc_rdloopgain

custom

R/W

D

0

0



cnc_rdcurrent

custom

R/W

D

0

0



cnc_rdsrvspeed

custom

R/W

D

0

0



cnc_rdnspdl

dint

R/W

D

0

0



cnc_rdopmode

custom

R/W

D

0

0



cnc_rdposerrs

custom

R/W

D

0

0



cnc_loadtorq

short

R/W

Ddd

0

147

D 1: Spindle motor, 0: Servo motor, dd: Axis

cnc_rddiag_ext

custom

R/W

DDDD

0

9999

DDDD: Specify the pointer to the array of the diagnosis data numbers.

cnc_getpath

dint

R/WR/W

D

0

0



cnc_sysconfig

custom



D

0

0

Reads the CNC system configuration information.

cnc_rdmenuswitch

dint

R/W

D

0

0



cnc_rdradofs

custom

R/W

D

0

0



cnc_rdlenofs

custom

R/W

D

0

0



cnc_rdfixcycle

customcustom

R/W

D

0

0



cnc_rdcdrotate

custom

R/W

D

0

0



cnc_rd3dcdcnv

custom

R/W

D

0

0



cnc_rdmirimage

custom

R/W

D

0

0



cnc_rdscaling

custom

R/W

D

0

0



cnc_rd3dtofs

custom

R/W

D

0

0



cnc_rdposofs

custom

R/W

D

0

0



cnc_rdaxisdata

custom

R/W

Dd

10

59

D: class of data, d: type

cnc_skip

custom

R/W

DD

1

48

DD: axis

cnc_srvdelay

custom

R/W

DD

1

48

DD: axis

cnc_accdecdly

custom

R/W

DD

1

48

DD: axis

cnc_rdmovrlap

custom

R/W

DD

1

48

DD: axis

cnc_canmovrlap

custom

R/W

DD

1

48

DD: axis

cnc_rdhndintrpt

custom

R/W

D

0

1

0: input unit, 1: output unit

cnc_rd3dtooltip

custom

R/W

D

0

0



cnc_rd3dpulse

custom

R/W

D

0

0



cnc_rd3dmovrlap

custom

R/W

D

0

0



cnc_rd3dofschg

dint

R/W

D

0

0



cnc_rdunsolicprm

custom

R/W

0

0



cnc_rdunsolicprm2

custom

R/W

D

0

0



cnc_rdunsolicmsg

custom

R/W

D

0

0



cnc_rdunsolicmsg2

custom

R/W

D

0

0



cnc_modal

custom

R/W

DDDD

0

3033

Address consist of 2 parts. First 3 numbers are the type.

cnc_rdgcode

custom

R/W

DDDD

0

1032

Address consist of 2 parts. First 3 numbers are the group of G code.

cnc_rdcommand

custom

R/W

DD

10

32

Address consist of 2 parts. First number is type. 1: Read all modal data except G code at a time, 2: Read all commanded data at a time, 3: Read all commanded data concerning axis at a time. Second Number is block.

cnc_rdmacro

float

R/W

DDDD

0

9999

custom macro variable number

cnc_rdmacror2

float

R/W

DDDD

0

9999

custom macro variable number

cnc_wrmacro

float

R/W

DDDD

0

9999

custom macro variable number

cnc_wrmacror

float

R/W

DDDD

0

9999

custom macro variable number

cnc_wrmacror2

float

R/W

DDDD

0

9999

custom macro variable number

pmc_wrcntldata

custom

R/W

DDDD

0

9999

group number

pmc_wrcntlgrp

uint

R/W

D

0

0

group number

pmc_wrkpm

custom

R/W

DDDDD

0

65535

start address

pmc_wrkpm2

custom

R/W

DDDDD

0

65535

start address

pmc_wrmsg

custom

R/W

0

0

0

start address

pmc_wrpmcparam

custom

R/W

0

0

0

start address