Fanuc Power Mate i Additional Manual Page 6

Additional Manual
------------------------------------------------------------------------------
2. Unmount memory card. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
aux_file_unmount
[Syntax]
#include <auxfile.h>
int aux_file_unmount( unsigned char drive ) ;
[Arguments]
drive Drive name. ( ='B' )
[Return]
Returns 0 if successfully unmounted the memory card.
If failed, returns non-0, and store one of the following values in
the global variable "errno".
Symbol Meaning
---------------+-----------------------------------------------------
ENOTMOUNT Failed to unmount.
ENOTINSERT No memory card inserted.
EBATVOLDEC Battery voltage is low.
ENOTSRAM Not supported card. (Not S-RAM card.)
EDRIVENAME Invalid drive name.
EAUTHREJ The other software already uses the memory card slot.
[Description]
Unmounts the memory card.
The drive name "drive" is always "B:".
Call this function to finish accessing the memory card using input/
output functions (such as "fopen", "fread", "remove", "fclose", etc.).
[Example]
See example of "Mount memory card (aux_file_mount)".
EDIT
DATE DISIGNE
DESCRIPTION
TITLE
DRAW
FANUC Power Mate i - MODEL D/H
C Language Executor
The function for access to the memory card
A-76520E
SHEET
5/7
APPROV.
FANUC LTD
030217
01
New design

Contents Summary of Fanuc Power Mate i Additional Manual

  • Page 1TECHNICAL REPORT (MANUAL) NO. TMN 03/018E Date: Feb.26.2003 General Manager of Software Development Center FANUC Power Mate i – MODEL D/H C Language Executor The function for access to the memory card 1. Communicate this report to: ○ Your information ○ GE Fanuc-N, GE Fanuc-E FANUC Robotics MILACRON
  • Page 2FANUC Power Mate i – MODEL D/H C Language Executor The function for access to the memory card 1. SPECIFICATION The application program can access a memory card which is inserted in the card slot equipped on the main board of the Power Mate as a disk device. To read/write a memory card, execute the f
  • Page 32. EXPLANATION FOR ADDED FUNCTIONS 2.1 Lists of Functions -------------------------------------------------------------------------------------------------------------- Name Function -------------------------------------------------------------------------------------------------------------- 1. aux
  • Page 4------------------------------------------------------------------------------ 1. Mount memory card. ------------------------------------------------------------------------------ [Name] aux_file_mount [Syntax] #include int aux_file_mount( unsigned char drive ) ; [Argum
  • Page 5[Example] The following program reads character by character from "TESTFILE.DAT" in the memory card and writes them to the stdout. #include #include int example( void ) { FILE *fp ; signed char ch ; int ret ; unsigned int stat ; ret = aux_file_mount( 'B' ) ; if ( ret ) return (
  • Page 6------------------------------------------------------------------------------ 2. Unmount memory card. ------------------------------------------------------------------------------ [Name] aux_file_unmount [Syntax] #include int aux_file_unmount( unsigned char drive ) ;
  • Page 7------------------------------------------------------------------------------ 3. Get memory card information. ------------------------------------------------------------------------------ [Name] aux_file_memcinfo [Syntax] #include int aux_file_memcinfo( unsigned int *
  • Page 83. SUPPORTED MEMORY CARD The usable memory cards at this function are only the memory cards which surport the data input and data output of the Power Mate. Please refer to the following specifications for detail of the supported memory cards. 「Power Mate i-MODEL D/H MAINTENANCE MANUAL(B-63175EN) APP