In this manual, FOCAS2/Ethernet for Linux is described.
Available Linux distributions are as follows:
Ubuntu (X86, 32bit) version 12.04 LTS
Ubuntu (ARMhf, 32bit) version 12.04 LTS
Fedora (X86, 32bit) version 17
CentOS (X86, 32bit) version 6.3
Available CNCs are as follows:
FANUC Series 30i /31i /32i /35i-MODEL B
FANUC Series 31i-MODEL B5
FANUC Power Motion i-MODEL A
FANUC Series 0i-MODEL D/F
NOTE
.As for the details of the Linux distributions, see the following web sites.
Ubuntu :http://www.ubuntu.com/
Fedora :http://fedoraproject.org/
Cent OS :http://www.centos.org/
Overview
Page 3
2
NOTE
For the list of all supported functions, see "Appendix B supports FOCAS2 functions list".
FOCAS2/Ethernet Library
2.1
Setup the FOCAS2 library as follows:
1. Copy the library file "libfwlib32.so.1.0.1" to your appropriate library folder.
(The followings are described assuming that the library is copied to "/usr/local/lib/" folder.)
2. Run the following 2 commands to register the library to Linux.
sudo ldconfig
sudo ln –s /usr/local/lib/libfwlib32.so.1.0.1 /usr/local/lib/libfwlib32.so
2.2
Before you develop an application utilizing the FOCAS2 library, install GNU Compiler Collection (hereafter GCC) version 4.6.3 or
later.
As for the way to install, see the Web site of GCC "http://gcc.gnu.org/".
When you build an application, link the following libraries by specifying the link option "-lfwlib32 -lstdc++ -lpthread" of GCC.
・ FOCAS2/Ethernet library(fwlib32)
・ GNU Standard C++ library (stdc++)
・ POSIX thread library (pthread)
2.3
The FOCAS2 library saves its contents of the communication log to a file.
However, in Linux, each file and folder has permission to access and a file cannot be saved in a folder without proper permission.
So, before getting the library handle, make the log file in a folder with permission to read and write for your application by calling the
FOCAS2 function "cnc_startupprocess".
Setting
Application Development
FOCAS2 Function for Linux
NOTE
For the details of the cnc_startupprocess function, see "A.1 cnc_startupprocess function".
The contents of the log file can be seen as follows:
(The following is described assuming that the name of the log file is "fwlibeth.log".)
To see the log file in Linux:
1. Copy the log file to "/home/user_ name/.wine/drive_c/windows/fwlib/" folder, or make the log file in "/home/user_ name/.wine/drive_c/windows/fwlib/" folder directly by using the cnc_startupprocess function.
2. Run the log viewer "Fwlog.exe" that is stored in FOCAS1/2 Libraries CD (A02B-0207-K737) by using the Wine program
loader.
3. Select "fwlibeth.log" in the open dialog box.
To see the log file in Windows PC:
1. Copy the log file to "C:¥windows¥fwlib¥" folder in your Windows PC.
2. Run the log viewer "Fwlog.exe" that is stored in FOCAS1/2 Libraries CD (A02B-0207-K737).
3. Select "fwlibeth.log" in the open dialog box.
Page 4
2.4
The multi-thread in POSIX is available with the FOCAS2 functions.
After getting a library handle, do not invoke fork() system call. Otherwise, the FOCAS2 functions returns the socket error
(EW_SOCKET) in a child process created by fork().
Notes
2.5
The FOCAS2/Ethernet library for Linux can be redistributed freely.
This library is proprietary software complied by GCC through Eligible Compilation Process.
NOTE
As for GCC and Eligible Compilation Process, see <http://www.gnu.org/licenses/gcc-exception-3.1.html>.
Redistribution and Licenses
Page 5
APPENDIX A
FOCAS2 Function for Linux
A.1
Initialize the FOCAS2/Ethernet library in a process.
Specify the log level (0 to 3) of the communication long file.
Specify the file name of the communication long file to be created.
cnc_startupprocess Function
Declaration
#include "fwlib32.h"
FWLIBAPI short WINAPI cnc_startupprocess (long level, char* filename);
Description
Arguments
level [in]
filename [in]
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
Return code Meaning/Error handling
EW_NUMBER
(3)
NOTE
Be sure to call this function before getting a library handle. If an application gets a library handle before call the
function, the FOCAS library outputs "FOCAS2 log file is not found" to a stdout and signals SIGABRT in an
application, then an application will be terminated.
Do not call this function two or more times. If you call it again by specifying the log file which is different from
before, the last specified file becomes valid.
Data number error
The log level (level) is wrong.
A.2
Declaration
Description
Arguments
Return
cnc_exitprocess Function
#include "fwlib32.h"
FWLIBAPI short WINAPI cnc_exitprocess( );
Frees all library handles which have been allocated in the current process by this function at the exit of the process.
Nothing
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
Page 6
A.3
Declaration
Description
Arguments
Return
cnc_exitthread Function
#include "fwlib32.h"
FWLIBAPI short WINAPI cnc_exitthread( );
Frees all library handles which have been allocated in the current thread by this function at the exit of the thread.
Nothing
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
Page 7
APPENDIX B SupportsFOCAS2 Functions List
CNC : Function related to library handle, node
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_allclibhndl3 Get the library handle
2 cnc_freelibhndl Free library handle
3 cnc_settimeout Set timeout interval
V: Can be used, -: Cannot be used
CNC : Function related to controlled axis/spindle
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_actf Read actual axis feedrate(F)
2 cnc_absolute Read absolute axis position
3 cnc_absolute2 Read absolute axis position 2
4 cnc_machine Read machine axis position VVV
5 cnc_relative Read relative axis position
6 cnc_relative2 Read relative axis position 2
7 cnc_distance Read distance to go
8 cnc_rdposition Read position information
9 cnc_rdaxisdata Read various data relating servo axis or spindle axis
10 cnc_skip Read skip position
11 cnc_srvdelay Read servo delay value
12 cnc_accdecdly Read acceleration/deceleration delay value
13 cnc_rddynamic Read all dynamic data
14 cnc_rddynamic2 Read all dynamic data (2)
15 cnc_acts Read actual spindle speed(S) VV16 cnc_acts2 Read actual spindle speed(S) (2)
17 cnc_rdspcss Read constant surface speed data
18 cnc_rdspeed Read speed information
19 cnc_wrrelpos Set origin/preset relative axis position
20 cnc_prstwkcd Preset work coordinate
21 cnc_rdmovrlap Read manual overlapped motion value
22 cnc_canmovrlap Cancel manual overlapped motion value
23 cnc_rdhndintrpt Read manual overlapped motion information
24 cnc_rdspload Read load information of serial spindle
25 cnc_rdspmaxrpm Read maximum r.p.m. ratio of serial spindle
26 cnc_rdspgear Read gear ratio of serial spindle VV27 cnc_rdsvmeter Read servo load meter
28 cnc_rdspmeter Read spindle load meter
29 cnc_rdaxisname Read axis name
30 cnc_exaxisname Read the name of controlled axis and spindle name
31 cnc_exaxisname2 Read the name of controlled axis and spindle name(2)
32 cnc_rdspdlname Read spindle name
V: Can be used, -: Cannot be used
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V
V V
V V V
V V V
V V
V V V
V V V
V V V
V V
V V
V V V
V V V
V V
V
V
V V
-
-
-
-
-
-
-
V
-
V
-
Page 8
CNC : Function related to CNC program
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_dwnstart3 Start downloading NC program (3)
2 cnc_download3 Download NC program (3)
3 cnc_dwnend3 End of downloading NC program (3)
4 cnc_dwnstart4 Start downloading NC program (4)
5 cnc_download4 Download NC program (4)
6 cnc_dwnend4 End of downloading NC program (4)
7 cnc_vrfstart4 Start verification of NC program(4)
8 cnc_verify4 Verify NC program(4)
9 cnc_vrfend4 End of verification(4)
10 cnc_dncstart2 Start downloading DNC program (2) V*1 V*1 V*1
11 cnc_dnc2 Download DNC program (2) V*1 V*1 V*1
12 cnc_dncend2 End of downloading DNC program (2) V*1 V*1 V*1
13 cnc_rddncdgndt Read the diagnosis data of downloading DNC program V*1 V*1 V*1
14 cnc_upstart3 Start uploading NC program (3)
15 cnc_upload3 Upload NC program (3)
16 cnc_upend3 End of uploading NC program (3)
17 cnc_upstart4 Start uploading NC program (4)
18 cnc_upload4 Upload NC program (4)
19 cnc_upend4 End of uploading NC program (4)
20 cnc_search Search specified program
21 cnc_delall Delete all programs
22 cnc_delete Delete specified program
23 cnc_rdprogdir2 Read program directory (2)
24 cnc_rdprogdir3 Read program directory (3)
25 cnc_rdproginfo Read program information
26 cnc_rdprgnum Read program number under execution
27 cnc_exeprgname Read program name under execution
28 cnc_exeprgname2 Read program name under execution (2)
29 cnc_rdseqnum Read sequence number under execution
30 cnc_seqsrch Search specified sequence number
31 cnc_rewind Rewind cursor of NC program
32 cnc_rdblkcount Read block counter
33 cnc_rdexecprog Read program under execution
34 cnc_wrmdiprog Write program for MDI operation
35 cnc_rdmdipntr Read execution pointer for MDI operation
36 cnc_wrmdipntr Write execution pointer for MDI operation
37 cnc_copyprog Copy program
38 cnc_renameprog Change program number
39 cnc_condense Condense program
40 cnc_searchword Search string in NC program
41 cnc_searchresult Get result of string search in NC program
42 cnc_rdpdf_drive Read information of Program memory drive
43 cnc_rdpdf_inf Read information Program memory file
44 cnc_rdpdf_curdir Read information of current folder
45 cnc_wrpdf_curdir Set current folder
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
-
V
-
V
Page 9
46 cnc_rdpdf_subdir Read information of subfolder
47 cnc_rdpdf_alldir Read file information
48 cnc_rdpdf_subdirn Read number of subfolders or files
49 cnc_pdf_add Create folder or file
50 cnc_pdf_del Delete folder or file
51 cnc_pdf_delall Delete all programs
52 cnc_pdf_rename Rename folder or file
53 cnc_pdf_copy Copy file
54 cnc_pdf_move Move file
55 cnc_pdf_cond Rearrange the contents of the program
56 cnc_wrpdf_attr Change attribute of folder or file
57 cnc_pdf_rdmain Read main program
58 cnc_pdf_slctmain Select main program
59 cnc_pdf_searchword Search string in NC program(For arbitrary file name)
60 cnc_pdf_searchresult
61 cnc_pdf_rdactpt Get execution pointer(For arbitrary file name)
62 cnc_pdf_wractpt Set execution pointer(For arbitrary file name)
63 cnc_saveprog_start
64 cnc_saveprog_end
V: Can be used, -: Cannot be used
*1:Cannot be used Embedded Ethernet
Get result of string search in NC program(For arbitrary file
name)
Starts of the manual saving for the high speed program
management
Get execution result of the manual saving for the high speed
program management
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V
V V
-
-
CNC : Function related to CNC file data
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_rdtofs Read tool offset value
2 cnc_wrtofs Write tool offset value
3 cnc_rdtofsr Read tool offset value(area specified)
4 cnc_wrtofsr Write tool offset value(area specified)
5 cnc_rdtofsinfo Read tool offset information
6 cnc_rdtofsinfo2 Read tool offset information (2)
7 cnc_tofs_rnge Read the effective setting range of tool offset value
8 cnc_rdzofs Read work zero offset value
9 cnc_wrzofs Write work zero offset value
10 cnc_rdzofsr Read work zero offset value(area specified)
11 cnc_wrzofsr Write work zero offset value(area specified)
12 cnc_rdzofsinfo Read work zero offset information
13 cnc_zofs_rnge Read the effective setting range of work zero offset value
14 cnc_rdparam Read parameter
15 cnc_wrparam Write parameter
16 cnc_rdparam3 Read parameter(3)
17 cnc_rdparar Read parameter(area specified)
18 cnc_wrparas Write parameter(area specified)
19 cnc_rdparam_ext Read random number parameters
20 cnc_rdparainfo Read parameter information
21 cnc_rdparainfo3 Read parameter information (3)
22 cnc_rdparanum Read minimum, maximum, total number of parameter
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V
V V
V V
V V
V V
V V
V V V
V V V
V V V
V V V
V V V
V V V
-
V
V V V
V V V
V
-
-
-
-
-
-
Page 10
23 cnc_rdset Read setting data
24 cnc_wrset Write setting data
25 cnc_rdsetr Read setting data(area specified)
26 cnc_wrsets Write setting data(area specified)
27 cnc_rdsetinfo Read setting data information
28 cnc_rdsetnum Read minimum, maximum, total number of setting data
29 cnc_rdpitchr Read pitch error compensation data(area specified)
30 cnc_wrpitchr Write pitch error compensation data(area specified)
31 cnc_rdpitchinfo Read pitch error compensation data information
32 cnc_rdvolc Read 3-dimensional error compensation data
33 cnc_wrvolc Write 3-dimensional error compensation data
34 cnc_rdvolccomp
35 cnc_rdrotvolc Read the 3-dimensional rotary error compensation data
36 cnc_wrrotvolc Write the 3-dimensional rotary error compensation data
37 cnc_rdmacro Read custom macro variable
38 cnc_wrmacro Write custom macro variable
39 cnc_rdmacror Read custom macro variables(area specified)
40 cnc_wrmacror Write custom macro variables(area specified)
41 cnc_rdmacror2 Read custom macro variables(double precision)
42 cnc_rdmacror3 Read custom macro variables and name(area specified)
43 cnc_wrmacror2 Write custom macro variables(double precision)
44 cnc_rdmacroinfo Read custom macro variable information
45 cnc_getmactype Get type of custom macro variable
46 cnc_setmactype Set type of custom macro variable
47 cnc_rdpmacro Read P code macro variable
48 cnc_wrpmacro Write P code macro variable
49 cnc_rdpmacror Read P code macro variables(area specified)
50 cnc_rdpmacror2 Read P code macro variables(double precision)
51 cnc_wrpmacror Write P code macro variables(area specified)
52 cnc_wrpmacror2 Write P code macro variables(double precision) VVV
53 cnc_rdpmacroinfo2 Read P code macro variable information(2)
54 cnc_getpmactype Get type of P code macro variable
55 cnc_setpmactype Set type of P code macro variable
56 cnc_rdmgrpdata Read M code group data
57 cnc_wrmgrpdata Write M code group data
58 cnc_rdwkcdshft Read work coordinate shift value
59 cnc_wrwkcdshft Write work coordinate shift value
60 cnc_rdwkcdsfms Read work coordinate shift measured value
61 cnc_wrwkcdsfms Write work coordinate shift measured value
62 cnc_wksft_rnge Read the effective setting range of work coordinate shift value
V: Can be used, -: Cannot be used
Read 3-dimensional error compensation value at current
position
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
- -
V
- -
V
- -
V
- -
V
- -
V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
- -
V
- -
V
V V
V V
V V
V V
V V
-
-
-
-
-
Page 11
CNC : Function related to tool life management data
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_rdgrpid Read tool life management data(tool group number)
2 cnc_rdgrpid2 Read tool life management data(tool group number) 2
3 cnc_rdngrp Read tool life management data(number of tool groups)
4 cnc_rdntool Read tool life management data(number of tools)
5 cnc_rdlife Read tool life management data(tool life)
6 cnc_rdcount Read tool life management data(tool life counter)
7 cnc_rd1length Read tool life management data(tool length number-1)
8 cnc_rd2length Read tool life management data(tool length number-2)
9 cnc_rd1radius Read tool life management data(cutter compensation num.-1)
10 cnc_rd2radius Read tool life management data(cutter compensation num.-2)
11 cnc_t1info Read tool life management data(tool information-1)
12 cnc_t2info Read tool life management data(tool information-2)
13 cnc_toolnum Read tool life management data(tool number)
14 cnc_rdtoolrng
Read tool life management data(tool number, tool life, tool life
counter)(area specified)
15 cnc_rdtoolgrp Read tool life management data(all data within group)
16 cnc_wrcountr
Write tool life management data(tool life counter)(area
specified)
17 cnc_rdusegrpid Read tool life management data(used tool group number)
18 cnc_rdmaxgrp Read tool life management data(max. number of tool groups)
19 cnc_rdmaxtool
Read tool life management data(max. number of tool within
group)
20 cnc_rdusetlno Read tool life management data(used tool number within group)
21 cnc_rd1tlifedata Read tool life management data(tool data1)
22 cnc_rd1tlifedat2 Read tool life management data(tool data1) 2
23 cnc_rd2tlifedata Read tool life management data(tool data2)
24 cnc_wr1tlifedata Write tool life management data(tool data1)
25 cnc_wr1tlifedat2 Write tool life management data(tool data1) 2
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
26 cnc_wr2tlifedata Write tool life management data(tool data2) VV27 cnc_rdgrpinfo Read tool life management data(tool group information)
28 cnc_rdgrpinfo2 Read tool life management data(tool group information 2)
29 cnc_rdgrpinfo3 Read tool life management data(tool group information 3)
30 cnc_rdgrpinfo4 Read tool life management data(tool group information 4)
31 cnc_wrgrpinfo Write tool life management data(tool group information)
32 cnc_wrgrpinfo2 Write tool life management data(tool group information 2)
33 cnc_wrgrpinfo3 Write tool life management data(tool group information 3)
34 cnc_deltlifegrp Delete tool life management data(tool group)
35 cnc_instlifedt Insert tool life management data(tool data)
36 cnc_deltlifedt Delete tool life management data(tool data)
37 cnc_clrcntinfo
Clear tool life management data(tool life counter, tool
information)(area specified)
V V
V
V
V
V V
V
V
V V
V V
V V
V V
Read tool life management data(maximum number of tool
38 cnc_rdtlinfo
groups, maximum number of tool within group, maximum
VV
number of life count)
39 cnc_rdtlusegrp
40 cnc_rdtlgrp Read tool life management data(tool group information) (area
Read tool life management data(next/current/last used tool
Read tool life management data(Exchange necessary tool
group number)
V: Can be used, -: Cannot be used
CNC : Function related to tool management data
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_regtool New registration of Tool management data
2 cnc_regtool_f2 New registration of Tool management data (2)
3 cnc_deltool Delete Tool management data
4 cnc_rdtool Read Tool management data
5 cnc_rdtool_f2 Read Tool management data (2)
6 cnc_wrtool Write Tool management data
7 cnc_wrtool_f2 Write Tool management data (2)
8 cnc_wrtool2 Write individual data of Tool management data
9 cnc_regmagazine New registration of Magazine management data
10 cnc_delmagazine Delete Magazine management data
11 cnc_rdmagazine Read Magazine management data
12 cnc_wrmagazine Write individual data of Magazine management data
13 cnc_wrtoolgeom_tlm Write tool geometry data
14 cnc_rdtoolgeom_tlm Read tool geometry data
15 cnc_btlfpotsrh Search empty pot for oversize tool
16 cnc_rdmag_property Read the magazine property data
17 cnc_wrmag_property Write the magazine property data
18 cnc_delmag_property Delete the magazine property data
19 cnc_rdpot_property Read the pot property data
20 cnc_wrpot_property Write the pot property data
21 cnc_delpot_property Delete the pot property data
V: Can be used, -: Cannot be used
V V
V V -
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
- -
V
-
CNC : Function related to tool geometry size data
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_rdtlgeomsize_ext Read the tool geometry size data
V
2 cnc_wrtlgeomsize_ext Write the tool geometry size data V- -
V: Can be used, -: Cannot be used
CNC : Function related to history data
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_stopophis Stop logging operation history data
2 cnc_startophis Restart logging operation history data
3 cnc_rdophisno Read number of operation history data
4 cnc_rdophistry4 Read operation history data (4)
5 cnc_clearophis Clear operation history data
6 cnc_rdhissgnl3 Read signals related operation history(3)
7 cnc_wrhissgnl3 Write signals related operation history(3)
8 cnc_rdalmhisno Read number of alarm history data
9 cnc_rdalmhistry5 Read alarm history data (5)
10 cnc_stopomhis Stop logging external operator's message history data
11 cnc_startomhis Restart logging external operator's message history data
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
- -
Page 13
12 cnc_rdomhisno Read number of external operator's message history data
13 cnc_rdomhistry2 Read external operator's message history data (2)
14 cnc_clearomhis Clear external operator's message history data
V: Can be used, -: Cannot be used
CNC : Function related to servo/spindle
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_rdloopgain Read loop gain for servo adjustment
2 cnc_rdcurrent Read real current for servo adjustment
3 cnc_rdsrvspeed Read real speed for servo adjustment
4 cnc_rdnspdl Read number of spindle
5 cnc_rdopmode Read operation mode for spindle setting
6 cnc_rdposerrs Read position deflection S for spindle adjustment
7 cnc_rdposerrs2
8 cnc_rdposerrz
9 cnc_rdsynerrsy
10 cnc_rdsynerrrg
Read position deflection S1,S2 for spindle
adjustment(synchronous control mode)
Read position deflection Z of tapping axis for spindle
adjustment(rigid tapping mode)
Read synchronous error for spindle adjustment(synchronous
control mode)
Read synchronous error for spindle adjustment(rigid tapping
mode)
11 cnc_rdspdlalm Read spindle alarm for spindle monitor
12 cnc_rdctrldi Read control input signal for spindle monitor
13 cnc_rdctrldo Read control output signal for spindle monitor
V: Can be used, -: Cannot be used
V V V
V V V
V V V
V V V
V V V
V V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
V V
-
-
-
-
-
-
-
-
-
-
CNC : Function related to data server, DNC1, DNC2, OSI-Ethernet
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_wrdsdncfile Set file for DNC operation
2 cnc_dsremove Delete file
3 cnc_dsget_req Start GET of DATA SERVER
4 cnc_dsftpstat Read file transfer result of DATA SERVER
V: Can be used, -: Cannot be used
PMC : Function related to PMC
Function Name Brief description 30i-B 0i-D PM-i
1 pmc_rdpmcrng Read PMC data(area specified)
2 pmc_wrpmcrng Write PMC data(area specified)
3 pmc_rdkpm Read data from extended backup memory
4 pmc_wrkpm Write data to extended backup memory
5 pmc_rdkpm2 Read data from extended backup memory(2)
6 pmc_wrkpm2 Write data to extended backup memory(2)
7 pmc_kpmsiz Read maximum size of extended backup memory
8 pmc_rdpmcinfo Read PMC data information
9 pmc_rdcntldata Read control data of PMC data table
10 pmc_wrcntldata Write control data of PMC data table
11 pmc_rdcntlgrp Read the sum total group of control data
12 pmc_wrcntlgrp Write the sum total group of control data
13 pmc_set_timer_type Set the PMC timer accuracy
14 pmc_get_timer_type Get the PMC timer accuracy
15 pmc_getdtailerr Get detail error for PMC
- -
V
- -
V
- -
V
- -
V
V V V
V V V
- -
V
- -
V
- -
V
- -
V
- -
V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
Page 14
16 pmc_rdalmmsg Read PMC alarm messages
17 pmc_rdpmctitle Read PMC title data
18 pmc_rdprmstart Start uploading PMC parameter
19 pmc_rdpmcparam Upload PMC parameter
20 pmc_rdprmend End of uploading PMC parameter
21 pmc_wrprmstart Start downloading PMC parameter
22 pmc_wrpmcparam Download PMC parameter
23 pmc_wrprmend End of downloading PMC parameter
24 pmc_select_pmc_unit Select the PMC
25 pmc_get_current_pmc_unit Get the current PMC unit type
26 pmc_get_number_of_pmc Read the number of existing PMC paths
27 pmc_get_pmc_unit_types Read the PMC system information
V: Can be used, -: Cannot be used
PMC : PROFIBUS-DP Function related to PROFIBUS-DP
Function Name Brief description 30i-B 0i-D PM-i
1 pbm_rd_param Reading of the parameters of the PROFIBUS master function
2 pbm_wr_param Setting the parameters of the PROFIBUS master function
3 pbm_chg_mode Change of the operation mode
V: Can be used, -: Cannot be used
CNC : Function related to others
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_sysinfo Read CNC system information
2 cnc_sysinfo_ex Read CNC system information(2)
3 cnc_statinfo Read CNC status information
4 cnc_statinfo2 Read CNC status information(2)
5 cnc_alarm Read alarm status
6 cnc_alarm2 Read alarm status (2)
7 cnc_rdalminfo Read alarm information
8 cnc_rdalmmsg Read alarm message
9 cnc_rdalmmsg2 Read alarm message (2)
10 cnc_modal Read modal data
11 cnc_rdgcode Read G modal code VVV
12 cnc_rdcommand Read commanded data
13 cnc_diagnoss Read diagnosis data
14 cnc_diagnosr Read diagnosis data(area specified)
15 cnc_rddiag_ext Read random number diagnosis data
16 cnc_rddiaginfo Read diagnosis data information
17 cnc_rddiagnum Read minimum, maximum, total number of diagnosis data
18 cnc_adcnv Read A/D conversion data
19 cnc_rdopmsg Read operator's message
20 cnc_rdopmsg2 Read operator's message (2)
21 cnc_rdopmsg3 Read operator's message (3)
22 cnc_setpath Set path number(for multi-path)
23 cnc_getpath Get path number(for multi-path)
24 cnc_rdprstrinfo Read program restart information
25 cnc_rstrseqsrch Search sequence number for program restart
26 cnc_rdopnlsgnl Read output signal image of software operator's panel
V V V
V V V
V V
V V
V V
V V
V V
V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
-
-
-
-
-
-
Page 15
27 cnc_wropnlsgnl Write output signal of software operator's panel
28 cnc_rdopnlgnrl Read general signal image of software operator's panel
29 cnc_wropnlgnrl Write general signal image of software operator's panel
30 cnc_rdopnlgsname Read general signal name of software operator's panel
31 cnc_wropnlgsname Write general signal name of software operator's panel
32 cnc_getdtailerr Get detail error for CNC
33 cnc_getfigure Read maximum valid figures, number of decimal places
34 cnc_rdsyssoft3 Read series/version of CNC system software (3)
35 cnc_rdsyshard Read of CNC hardware configuration
36 cnc_gettimer Get calendar timer of CNC
37 cnc_settimer Set calendar timer of CNC
38 cnc_reset CNC reset
39 cnc_clralm Clear CNC alarm
40 cnc_rdcexesram Read SRAM variable area for C language executor
41 cnc_wrcexesram Write SRAM variable area for C language executor
42 cnc_cexesramsize
43 cnc_rdetherinfo Read Ethernet board information
44 cnc_rdpm_mcnitem
45 cnc_wrpm_mcnitem
46 cnc_rdpm_item Read maintenance item status for periodic maintenance
47 cnc_wrpm_item Write maintenance item status for periodic maintenance
V: Can be used, -: Cannot be used
Read maximum size of SRAM variable area for C language
executor
Read machine specific maintenance item for periodic
maintenance
Write machine specific maintenance item for periodic
maintenance
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
V V V
CNC : Function related to Servo guide
Function Name Brief description 30i-B 0i-D PM-i
1 cnc_sdtsetchnl Setting of channel data.
2 cnc_sdtclrchnl Clear of channel data.
3 cnc_sdtstartsmpl Start of Sampling.
4 cnc_sdtcancelsmpl Cancel of sampling
5 cnc_sdtreadsmpl Read of sampling data
6 cnc_sdtendsmpl End of sampling VVV
7 cnc_sdtread1shot 1 shot read of sampling data
V: Can be used, -: Cannot be used
V V V
V V V
V V V
V V V
V V V
V V V
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.