Function Block FS_RAW

The Function Block FS_RAW executes a remote RAW command.

Warning: System commands can endanger or damage the remote system. In addition, existing files may be overwritten without warning.

The file system must have been initialized beforehand using FS_INIT. All operations are performed asynchronously per storage medium created.

Input RUN

A positive edge executes the specified command.

Input DEV

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

Input PATH

Specifies the path to the directory on the storage medium. The path corresponds to a Unix file path in UTF-8 format, if this is supported. The path is represented as follows:

Folder/Subfolder

Input CMD

Defines the RAW command to be executed.

Output DONE

The output returns a pulse on success to perform the next operation. The pulse occurs when the process ends, even if an error has occurred.

Output RETURN

Returns the return value of the command upon successful execution. The value is stored for later use.

Output ERROR

In case of an error, returns a text with an error message. This is FALSE if no error has occurred. The state is stored for later use.

Possible causes:

  • The service of the storage medium was not started.
  • The memory was not initialized.
  • The login credentials are invalid.
  • The remote server could not be reached.
  • The storage medium does not exist.
  • The specified path is invalid.
  • Writing to the storage medium is not possible.
  • No more memory space available on the storage or the storage is write-protected.