Function Block FS_INIT

The Function Block FS_INIT initializes a file system.

Tip: Use the Function Block FS_ISDEV to check if the medium is ready.

Input INIT

If the input is true, an attempt will be made to initialize the storage medium.

Input DEV

Defines the device from which files are written. The device is used per project and can be managed in the context menu under Project External Storage.

Input READONLY

If the input is true, only read operations are allowed. This mode can be changed at any time.

Output READY

The output is true upon success.

Warning: As long as the medium is initialized, it should not be removed to avoid data loss.

Output BUSY

If operations are being performed on the drive, the output is true. Depending on the speed of the medium, no pulses may occur.

Output ERROR

If initialization has failed, the output is true. The state is stored for later use.

Possible causes:

  • The service of the storage medium was not started
  • The storage medium does not exist
  • The storage medium has an unsupported format