18.2.3
Drive name assignment and format
The following memories can be accessed from FTP, Telnet and user programs.
For access from the user program, and file reading/writing by FTP, the target memory is specified by a drive
name.
The procedure for drive name assignment to the memory, supported file systems, and formatting methods are
described below.
Memory
System ROM
Standard ROM
*1
Work RAM
Standard RAM
SD memory card
USB device
*1 :
A RAM disc can be created by using VxWorks function from the user program.
*2 :
Do not assign the same name as any other drives. Otherwise, the system may fail.
*3 :
When connecting multiple USB Mass Storage compliant devices, up to 5 devices can be
connected and the second and subsequent devices will be "/USB0:2","USB0:3". If the drive is
partitioned, the second and subsequent partitions are "/USB0:2","USB0:3".
(1) Format operation of standard ROM
1.
Write the following script file "STARTUP.CMD" to the SD memory card, insert it into the C
Controller module, and then start the C Controller module.
(The RUN LED flashes during processing the script file "STARTUP.CMD".)
*1 :
The sample script file for standard ROM formatting is registered to the development environment (personal computer)
after installation of SW4PVC-CCPU.
2.
The dot matrix LED indicates "END" upon completion of standard ROM format.
The ERR. LED flashes if the standard ROM formatting is terminated in error.
In this case, initialize C Controller module. (Page 62, Section 6.1)
3.
Power OFF the C Controller module, and remove the SD memory card.
● Do not format the standard ROM using a command from Workbench Shell.
● Do not perform any of the following operations. Doing so may cause the data corruption or file system abnormal error.
• Power OFF
• Reset
• Restarting user CPU
(a) After formatting standard ROM
After formatting a standard ROM, the data such as user programs are deleted. Write the user programs after
the connection.
Drive name
File systems
/SYSTEMROM
FAT16
/ROM
FAT16
*2
(FAT16/FAT32)
(arbitrary)
/RAM
FAT16
/SD
FAT16/FAT32
*3
FAT16/FAT32
/USB0
<Sample script file for standard ROM formatting
STARTUP.CMD
diskFormat("/ROM")
CCPU_SetDotMatrixLED(1,"END")
CHAPTER 18 MEMORIES AND FILES
Formatting method
Cannot be formatted.
Page 323, (1) in this section
–
Page 324, (2) in this section
Page 324, (3) in this section
*1
>
18
323