USB Flash Drive Mounting Functions


    • 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

  • PCMM2G: Verifies whether a USB flash drive is inserted.

SD_MOUNT

  • PCMM2G: Verifies whether a USB flash drive is inserted.

SD_ISREADY

PLCopen motion icon - Verify the USB flash drive is mounted.

Device

Action

Return Value

Example

PCMM2G

Verifies whether a USB flash drive is inserted.

Returns TRUE if the USB flash drive is inserted.

OK := SD_ISREADY();

OK : BOOL

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 - Insert the USB flash drive.


  • Recommended: Stop all motion before using SD_MOUNT.

Device

Action

Return Value

Example

PCMM2G

Verifies whether a USB flash drive is inserted.

Returns TRUE if the USB flash drive is inserted.

OK := SD_MOUNT();

OK : BOOL

TRUE if inserting the USB flash drive is successful.

Simulator

This does not perform any action.

It always returns TRUE.

OK := SD_MOUNT();

It always returns TRUE.

SD_UNMOUNT

PLCopen motion icon - Unmount the USB flash drive.


  • Recommended: Stop all motion before using SD_UNMOUNT.

Device

Action

Return Value

Example

PCMM2G

This does not perform any action.

It always returns TRUE.

OK := SD_UNMOUNT();

It always returns TRUE.

Simulator

This does not perform any action.

It always returns TRUE.

OK := SD_UNMOUNT();

It always returns TRUE.