SMC_FileStream (FB)ΒΆ
FUNCTION_BLOCK SMC_FileStream IMPLEMENTS SMC_ITextStream
Opens a file and presents the file contents as a stream of characters
- InOut:
Scope
Name
Type
Comment
Input
bExecuteBOOLRising Edge: Starts operation
sFileNameSTRING(255)Absolute or relative file path to the input file. Leave empty if the file name is to be set later by method ChangeDataSource.
Output
bDoneBOOLbBusyBOOLbErrorBOOLErrorIDSMC_ERRORdwFileSizeDWORDSize of the file in bytes.
dwPosDWORDCurrent Position of the cursor in the file.
stream
Properties:
Structure: