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 https //www fanucamerica com/fanuc america product support/fanuc product training/cnc robodrill training/online cnc training 2018/fanuc pmc training online rdpmc tags rdpmc tags provide all information about the address type , the address number to read data from, and size within the tag itself 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 note down the following information and refer to it when needed device fanuc 0i f communication i/f ethernet refer to the following figure press soft key five times to set up the ip address press the soft key embed port to set up the network parameters, and then press the soft key oprt press the soft key restart to activate the settings press the soft key execute to activate the settings press the soft key two times to reach this page, and then press the soft key focas2 set up the port number, and then press the soft key oprt step 2 set up the plc device in litmus edge devicehub configure the following parameters when you connect a device docid 3eyafppweuvmblcey17sq with this driver update default values to the specific setup of your device parameter value type fanuc corporation driver fanuc cnc ethernet (gen1) network address the device address you defined in step 1 port 8191 step 3 configure the list of registers when you add tags docid 8se7z3pmrfwl1nmzcwalx to the connected device, refer to the following register table and tag parameters refer to the following additional resources device and tag metadata use case docid 583p fbuozem6whgrdgkq tag formula variables docid\ ifbwcou90qtfodk hrysr register table 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 tag parameters name select a register name from the drop down list the available options depend on the names in the register table value type select a data type from the drop down list the available options depend on the register name selected polling interval enter a value in seconds this determines how often the tag should poll the register for data tag name enter a name for the tag description (optional) enter a description for the tag address enter a tag address the value must in the decimal format, within the allowed min/max range omit the leading zeros the device might use the decimal (d), hexadecimal (h), or octal (o) address format see the register table at the bottom of the dialog box for bit tags, append the bit address without the bit separator the lowercase letters in the address format indicate how many digits you should enter in the bit address path no enter the path number if you are using 2 path control with independent macros on each path, then entering 1 or 2 should be the correct configuration if you are using custom macro common variables (the macros used are the same for each path), then this value should be irrelevant and the default value of 1 can be used count enter the number of register values to read a count higher than 1 will generate an array of values from the address value configured and respective subsequent address values tag formula enter a formula for the tag to process the generated data two variables are permitted value (current tag value) and timestamp (current tag unix time in milliseconds) the following math functions are available sin cos sqrt tan power power( x ) performs the operation 10^x log log( x ) is the natural logarithm (the logarithm is in base e ) exp exp( x ) performs the operation e^x only publish on change of value select the checkbox to customize nats messages to be published only when the value parameter changes from a previous value to a new one change of value only applies to boolean, numeric (such as int or float), and simple string data types it does not apply to complex types, such as json or array poll once topics will not be affected by change of value settings these topics will still only see a single message meta data metadata summarizes basic information about data this feature allows you to define key value pair data for the device output payload later on it can then be used to find, use, and reuse particular instances of data note if you use special characters in meta data key names, the special characters are replaced with underscore characters in the payload this can cause two key names to be combined into one for example, configuring the key names a b and a&\&b will cause only one key name to be created (a b)