-

Y_RW_FileExists

Image
This function blocks checks to see if the specified file exists on the controller. If there is a file of the said name but without any data, it will get removed from the controller.

Parameters:

* Parameter Data Type Description Default
VAR_INPUT
B Execute BOOL Upon the rising edge, all other function block inputs are read and the function is initiated. FALSE
B FileName STRING Name of the file to be checked. STRING#’’
VAR_OUTPUT
B Done BOOL Set high when the commanded action has completed successfully. If another block takes control before the action is completed, the Done output will not be set. This output is reset when Execute goes low.
B Busy BOOL Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true.
B FileExists BOOL TRUE if a file exists at the specified location.
B Error BOOL Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low.
B ErrorID UINT If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low.

Notes:

ErrorDescription:

See the Function Block ErrorID List.

Examples:

 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.