
Сообщение от
Валерий_Н
Добрый день. В действии "Передача файлов" есть поле "Управляющие флаги", которое не описано в документации. Для чего оно и как им пользоваться?
передача файлов.png
Добрый день.
https://content.helpme-codesys.com/e...iguration.html
Код:
Note: The variable is evaluated only for transfer direction From Visualization to PLC.
Variable (type DWORD) // битовая маска флагов
Determines how the object (file or instance object) is handled on the file system of the PLC. Two flags are provided for this with which the variable can be set.
Flag 1: VisuElems.VisuEnumFileTransferControlFlags.UseOriginalFileName
Flag 2: VisuElems.VisuEnumFileTransferControlFlags.ConfirmFileOverwriteInPlc
Options
No flag set:
The user selects a file which is saved in the path specified in File name or Streaming instance name.
Flag 1 is set:
The path, which is specified by the user at visualization runtime, is applied and used as the path in the PLC file system.
Both flags are set:
The path is also checked. If an object already exists in the path specified on the client side, then a message prompt is displayed in the visualization. There the visualization user can confirm that the file will be overwritten.