SD Card Mounting Functions

 Function - Mounting an SD card.

Name

Use

SD_ISREADY

Verify the SD card is mounted.

SD_MOUNT

Mount the SD card.

SD_UNMOUNT

Unmount the SD card.

SD_ISREADY

PLCopen motion icon - Verify the SD card is mounted.

Device

Action

Return Value

Example

AKD PDMM

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

SD Card is not supported by PCMM2G.

This does not perform any action.

It always returns FALSE.

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

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

SD Card is not supported by PCMM2G.

This does not perform any action.

It always returns FALSE.

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

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

SD Card is not supported by PCMM2G.

This does not perform any action.

It always returns FALSE.

Simulator

This does not perform any action.

It always returns TRUE.