SD Card Mounting Functions
Function 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 |
---|---|
Mount an SD card. |
|
Unmount an SD card. |
|
Verify the SD card is ready for read/write. |
SD_MOUNT
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();
|
||
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
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();
|
||
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
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();
|
||
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();
|