SD Card Mounting Functions

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - These functions handle mounting of an SD card:

Name

Use

SD_MOUNT

Mount an SD card.

SD_UNMOUNT

Unmount an SD card.

SD_ISREADY

Verify the SD card is ready for read/write.

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.

SD_ISREADY

PLCopen motion icon

Device

Action

Return Value

Example

AKD PDMM

Verify the SD Card is mounted in the AKD PDMM.

If the SD Card is mounted, the return value is TRUE.

If the SD Card is not mounted, the 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

If the SDCard folder exists, the return value is TRUE.

If the SDCard folder does not exist, the return value is FALSE.

OK := SD_ISREADY();

OK : BOOL

TRUE if the SDCard folder exists.