SD Card Size & Free Space Check

SD Card Size & Free Space Check

Additional FILE commands for Trio Controllers with Firmware v2.0306 onwards will allow
for checks to be made of the size and free space on the SD card fitted into the controller.

The two new commands are:
FILE "DISK_SIZE"
FILE "DISK_FREE"

Example program below.

DIM sdsize, sdfree, sdused AS INTEGER

 sdsize = FILE "DISK_SIZE"

sdfree = FILE "DISK_FREE"

 VR(400)=sdsize

VR(401)=sdfree

 sdused = sdsize-sdfree

VR(402)=sdused




    • Related Articles

    • FILE command for Rename file

      To rename a file on the SD card use the FILE "REN " function. It was not documented in the Help with Motion Perfect 5.2 but will be included in the MP version 5.3 release. Typical syntax is FILE "REN" "test_file.txt" "test.txt"
    • Loading encrypted project from SD card

      This is the content for the SD card TRIOINIT.BAS ' *** ' SD Card decryption demo. ' Prepared by Trio Motion Technology Ltd. ' ' *** PROJECT_KEY "O5/A6qXkaXc" FILE "LOAD_PROJECT" "training ecr1" Replace the key above with yours and use your project ...
    • AN-408 Using SD card to change IP Address

      This document explains how to change the IP address, subnet mask and default gateway by using a SD card or micro SD card on Trio Motion Coordinator
    • Recovery SD card file name

      When recovery of a Motion Coordinator with the recovery boot system, a special file name is used for the firmware file on the SD card. Go to the Trio website www.triomotion.com, log in and go to the Software->All Firmware page. Select the firmware ...
    • SD card sizes

      The max SD card size is firmware dependent. All the MC4/5/6 Motion Coordinators with the latest firmware can handle SD and Micro SD cards up to 64 GB.   The card must be formatted FAT 32.