How To Use USB Memory Sticks On NB HMI IntroductionThe NB*-TW01B series is equipped with a USB HOST port, which is a USB A-type port. Through this port, USB memory can be connected to perform uploading, downloading, project operation and storage of related data. This article explains the different options that are available when using an USB stick with the HMI.
USB memory stick An USB flash drive is a data storage device that includes flash memory with an integrated Universal Serial Bus (USB) interface. Flash drives use little power, have no fragile moving parts, and for most capacities are small and light. Data stored on flash drives is not sensitive to mechanical shock, magnetic fields, scratches and dust. These properties make them suitable for transporting data from place to place and keeping the data readily at hand. Like all flash memory devices, flash drives can sustain only a limited number of write and erase cycles before the drive fails. This should be a consideration when using a flash drive to run application software or when using them for data logging. USB flash drives use the USB mass storage standard, supported natively by modern operating systems such as Microsoft Windows, Mac OS X, Linux and other Unix-like systems, as well as many BIOS boot ROMs. The memory in flash drives is commonly engineered with multi-level cell (MLC) based memory that is good for around 3,000-5,000 program-erase cycles, but some flash drives have single-level cell (SLC) based memory that is good for around 100,000 writes. Industrial grade single-level cell (SLC) USB flash memory drives are designed for industrial, medical, and military applications and are much more durable and reliable than the consumer grade and the "industrial" consumer-grade multi-level cell (MLC) USB flash disks. The industrial grade USB flash disks are built to endure severe operating environments such as extreme cold and hot temperatures, continuous vibration, high shock impact, intensive read-write cycles, etc. The industrial grade USB flash memory disk features vital benefits such as wear-leveling, error correction, sustained write speed, shock and vibration strength, and temperature range extension. Such features are essential to industries that require a more robust and rugged digital storage option to ensure repeatable and reliable operation. There are many memory sticks available on the market in various capacities and designs. Even though most makers of USB devices, including Omron, design according the USB standard (www.usb.org), it is good to know that not all memory sticks will be recognized by the USB driver of the NB HMI. Content1. Import/export HMI Program and Recipe files
1. Import/export HMI Program and Recipe filesThe USB stick can be used to transfer the NB HMI project to/from NB HMI screen or transferring recipe files. System Menu options:
Function key options:
2. Using Picture from Extended MemoryNB-Designer also supports to load the pictures directly from the external memory in order to save memory space of the HMI.
3. Historical Event StorageHistorical Data Display, Trend Curve and XY Plot can be stored in the external devices only by checking the [Save to External Device] option in the [Historical Events Storage] tab in the [HMI Attribute] dialog box.
4. Operation LogThe Operation Log component can be used to record and display the operations done by the users of the HMI. The operation log will be stored into the external memory in CSV format.
5. Data EncryptionFor the data stored in the external memory (USB stick), data encryption function can be used to limit the user to make modifications, editing and so on to the data files in CSV format on the USB stick.
6. Save ScreenshotThe “.bmp” pictures stored in the external storage device is named in storage time form (i.e. “yyyy-mmdd, hour: minute; second; millisecond” form) by default, such as “2010-09-01, 10:12:50:203.bmp”. But the picture name can be customized by the user through the system register LW9470 to control the prefix title of the picture file. Note: After the “Save Screenshot to The Extended Memory” operation is performed, wait about 1 minute, before the external storage is removed to ensure the successful storage of the screenshot.
7. Project downloads via USB DiskWhen the project is too large, it can be directly downloaded to the external storage device to operate it from this memory.
8. System registersLW9154 LW9470 LWB9297.10 LB9154 LB9157 LW9470~LW9485
9. Program exampleThe example program that’s attached to this article shows the possibility to test if the USB stick is recognized. Also functions like Historical Event Display, Historical Data display, Trend Curve, Operation log, File list, Bitmap from memory disk and Screenshot that create files are in this example program. There is also a NB Setup screen to Adjust settings like Date, Time, Buzzer, Screen Saver, Brightness adjust and Calibrate screen (tap on the NB in the Main screen).
How to test if a Memory stick works:1. Extended image load: NotesSupported Disk formats:
The project directly copied into the external storage device doesn’t work. When downloading project from NB-Designer or transferring project from the USB disk to the NB Unit, if there is a message like “Please update Kernel and Rootfs (NB-D v1.22 or later).” or “Please update Kernel and Rootfs in the NB-Designer.” displayed, it means user should update the NB Kernel and root file system (See article: How To Update The NB Kernel And Root File System). The data in ERW will be stored into the specified external memory with “erp” as the file format and the storage path of “/exmem/erwx.erp”. (x = 0, 1, 2) When connecting the equipment with the USB HOST connector, make sure the supply equipment’s current capacity is below 150mA before using it. The DC+5V voltage output of the NB Unit is +5V (±5%), and the maximum current is 150mA. Do not perform the following operations during the communication of the USB memory: Do not use the USB memory in the environment subject to strong vibration. ReferencesHost Connection Manual (Cat. No. V108) NB-series Manuals are installed within NB-Designer. Program versions: NB-Designer version 1.23 Link: |
Comments | ||
|