SD Card / USB Flash Drive Mounting Functions


    • AKD PDMM and PCMM use SD cards.
    • PCMM2G uses a USB flash drive as removal media for File Management functions.
      • PCMM2G uses an auto-mount feature for USB Flash Drive.
      • With auto-mount enabled, removable media is automatically mounted upon insertion and safely unmounted upon removal.
      • This eliminates the need to invoke mount and unmount functions before performing any file management tasks.

Name

Use

SD_ISREADY

  • AKD PDMM / PCMM: Verify the SD card is mounted.
  • PCMM2G: Verifies whether a USB flash drive is inserted.

SD_MOUNT

  • AKD PDMM / PCMM: Mount the SD card.
  • PCMM2G: Verifies whether a USB flash drive is inserted.

SD_UNMOUNT

AKD PDMM / PCMM: Unmount the SD card.

SD_ISREADY

PLCopen motion icon - Verify the SD card is mounted.

Device

Action

Return Value

Example

AKD PDMM / PCMM

Verify the SD card is mounted.

  • Mounted SD card = return value is TRUE.
  • Unmounted SD card = return value is FALSE
OK := SD_ISREADY();

OK : BOOL

TRUE if the SD card is mounted.

PCMM2G

Verifies whether a USB flash drive is inserted.

Returns TRUE if the USB flash drive is inserted.

Simulator

Verify the SDCard folder exists here:

C:\Users\[user's name]\AppData\Local\Kollmorgen\KAS\Sinope Simulator\Application\userdata\SDCard

  • SDCard folder exists = return value is TRUE.
  • SDCard folder does not exist = return value is FALSE.
OK := SD_ISREADY();

OK : BOOL

TRUE if the SDCard folder exists.

SD_MOUNT

PLCopen motion icon - Mount the SD card.


  • Recommended: Stop all motion before using SD_MOUNT.

Device

Action

Return Value

Example

AKD PDMM / PCMM

Mount the SD card.

  • If the mount is successful, the return value is TRUE.
  • If the mount is not successful, the return value is FALSE.
OK := SD_MOUNT();

OK : BOOL

TRUE if mounting the SD card is successful.

PCMM2G

Verifies whether a USB flash drive is inserted.

Returns TRUE if the USB flash drive is inserted.

Simulator

This does not perform any action.

It always returns TRUE.

SD_UNMOUNT

PLCopen motion icon - Unmount the SD card.


  • Recommended: Stop all motion before using SD_UNMOUNT.

Device

Action

Return Value

Example

AKD PDMM / PCMM

Unmount the SD card.

  • If the unmount is successful, the return value is TRUE.
  • If the unmount is not successful, the return value is FALSE.
OK := SD_UNMOUNT();

OK : BOOL

TRUE if unmounting the SD card is successful.

PCMM2G

This does not perform any action.

It always returns TRUE.

Simulator

This does not perform any action.

It always returns TRUE.