Software Development Center
Software Development Center
Edition 1.0
12-August-2004
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
<User files>
Ladder program
C-language executor
Macro executor
Order made macro
PMC C-language program
Up to now, these data are managed at CNC BOOT function with using memory cards at every
CNC control unit.
When Open CNC is introduced, the PC function is connected to CNC control unit through High
Speed Serial Bus (HSSB) or Ethernet. Then the input/output of these FROM/SRAM data can
be done at the remote place apart from the shop floor of CNC control units. And using PC
function, the centralized management of FROM/SRAM data of multiple CNC control units can
be achieved.
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
Operation on FROM
SAVE function : backs up the files stored in the FROM to any folder of PC.
DELETE function : deletes the files stored in the FROM.
LOAD function : restores the saved FROM files under any folder of PC into the
FROM of CNC.
Restored FROM file becomes effective after next power on cycle
of CNC.
Operation on SRAM
BACKUP function : backs up whole contents of SRAM data to any folder of PC.
RESTORE function : restores the saved SRAM data to CNC.
3. Caution
A. CNC ID information is included in the FROM/SRAM data that is backed up by this utility.
So, the backed-up data cannot be restored to CNC other than the original CNC from which
the data is backed up as a general rule.
B. When SRAM data is backed up and SRAM data is restored using this utility, CNC must be
in the emergency stop state.
C. Please do the backup and the restore operation of SRAM data immediately after the power
supply is turned on.
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
FROM file name (name on the display list) . xxx (xxx = 000, 001, 002,...)
The extension(xxx) will be added to the file name so that duplicated files do not exist under
the specified folder.
Space “ “, period “.” are replaced with underscore “_” at the FROM file name.
5. Supported CNCs
This utility is available to the following CNCs
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
Note)
In case that HSSB connection is not used, HSSB driver and FWLIB160.DLL, FWLIB16W.DLL
are not required.
In case that Ethernet connection is not used, FWLIBE1.DLL is not required.
The FOCAS2 libraries and Ethernet management firmware that enable this function is as
follows.
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
Option Function
-nNode Specify the Node number at HSSB connection (0..7)
-hHost:Port [-tTime] Specify the Host name/IP address and Port number. When the Timeout
value is not specified, it is assumed as 30 second by default.
-lst If specified, this utility writes the name of System files and User files
contained in the CNC’s FROM into the file specified by “path¥list_file”.
When the file name is written, space” ”, period”.” located on the FROM
program name is changed to underscore”_”.
-sav If specified, this utility reads the System files and User files contained in
the CNC’s FROM, and then places them under “Target_path¥”
according to the file name described in the file, “path¥list_file”.
If –service switch is not specified, the System files will not be read out.
-del If specified, this utility deletes the System files and User files contained
in the CNC’s FROM according to the file name described in the file,
“path¥list_file”.
If –service switch is not specified, the System files will not be deleted.
-lod If specified, this utility writes the System files and User files located
under “Target_path¥” into the CNC’s FROM according to the file name
described in the file, “path¥list_file”.
-r“path¥list_file” Specify the PC side file that is referred when the System files and User
files contained in CNC’s FROM are handled by any of the above
(Note 1) switches [-lst|-sav|-del|-lod].
-service Specify this switch in case that the System files contained in the CNC’s
FROM are handled by any of the above switches [-sav|-del].
“Target_path¥” Specify the PC side file location in case that the CNC’s FROM is
handled by any of the above switches [-sav|-lod], or in case that the
CNC’s SRAM is handled by any of the below switches [-bkup|-rstr].
-bkup If specified, this utility reads the CNC’s SRAM data and then saves it
under “Target_path¥”.
When the same name file has been located, the file is overwritten.
-rstr If specified, this utility restores the SRAM data file from “Target_path¥”
into the CNC’s SRAM area.
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
(*)The folder name and the file name can be specified by enclosing by a double quotation
marks.
ex.) -fC:¥Temp¥target” “d¥result.log”
NC_BASIC
DG_SERVO
PMC-RB
ETHE
NC_BASIC
. DG_SERVO
PMC-RB
; comment example
;ETHE
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
NC_BASIC.001
DG_SERVO.001
PMC-RB.001
; comment example
;ETHE.001
Example)
[HSSB connection]
fromutil2 -n0 -lst -r"C:¥fromsram¥list.txt" -f"C:¥fromsram¥log¥List.log"
[Ethernet connection]
fromutil2 -h"192.168.0.1:8193" -t10 -lst -r"C:¥fromsram¥¥list.txt"
-f"C:¥fromsram¥log¥List.log"
[HSSB connection]
fromutil2 -n0 -sav -r"C:¥fromsram¥list.txt" -service -f"C:¥fromsram¥log¥Save.log"
"C:¥fromsram¥target"
[Ethernet connection]
fromutil2 -h"192.168.0.1:8193" -t10 -sav -r"C:¥fromsram¥list.txt"
-service -f"C:¥fromsram¥log¥Save.log" "C:¥fromsram¥target"
[HSSB connection]
fromutil2 -n0 -lod -r"C:¥fromsram¥¥LoadList.txt" –service
-f"C:¥fromsram¥log¥Load.log" "C:¥fromsram¥target"
[Ethernet connection]
fromutil2 -h"192.168.0.1:8193" -t10 -lod -r"C:¥fromsram¥¥LoadList.txt"
-service -f"C:¥fromsram¥log¥Load.log" "C:¥fromsram¥target"
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification
[HSSB connection]
fromutil2 -n0 -del -r"C:¥fromsram¥list.txt" -service -f"C:¥fromsram¥log¥Delete.log"
[Ethernet connection]
fromutil2 -h"192.168.0.1:8193" -t10 -del -r"C:¥fromsram¥list.txt"
-service -f"C:¥fromsram¥log¥Delete.log"
[HSSB connection]
fromutil2 -n0 -bkup -f"C:¥fromsram¥log¥Bkup.log" "C:¥fromsram¥target"
[Ethernet connection]
fromutil2 -h"192.168.0.1:8193" -t10 –bkup
-f"C:¥fromsram¥log¥Bkup.log" "C:¥fromsram¥target"
[HSSB connection]
fromutil2 -n0 -rstr -f"C:¥fromsram¥log¥Rstr.log" "C:¥fromsram¥target"
[Ethernet connection]
fromutil2 -h"192.168.0.1:8193" -t10 –rstr
-f"C:¥fromsram¥log¥Rstr.log" "C:¥fromsram¥target"
TITLE
FANUC Open CNC
FROM/SRAM Management Utility for Command
Line Specification