SncDevDesc.FSpsVendorID (PROP) ¶ PROPERTY FSpsVendorID : UDINT Property of type ‘UINT’ to get the vendor ID of the F-SPS
SncServiceProvider.NumOfHandledServices (PROP) ¶ PROPERTY NumOfHandledServices : UDINT Property of type ‘UDINT’ to get the number of handled SNC services
SncServiceProvider.SimulateServiceRequest (METH) ¶ METHOD SimulateServiceRequest : ERROR Method to simulate a service request which comes normally from the RTS service handler. InOut: Scope Name Type Comment Input pParameter POINTER TO GSH.SERVICEHANDLER_PARAMETER pointer to the service data from a simulated service handler Return SimulateServiceRequest ERROR
tSysFileGetStatus (STRUCT) ¶ TYPE tSysFileGetStatus : STRUCT Parameter to get the file status InOut: Name Type Comment pOut POINTER TO SYS_FILE_STATUS [OUT] File status. See category file status
tSysFileGetTime (STRUCT) ¶ TYPE tSysFileGetTime : STRUCT Parameter to get file time of the specified file InOut: Name Type Comment szFile STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! pFileTime POINTER TO SYS_FILETIME Pointer to get the file time results. pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileOpen (STRUCT) ¶ TYPE tSysFileOpen : STRUCT Parameter to open a file asynchronously InOut: Name Type Comment szFile STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! am ACCESS_MODE Requested access mode to the file. See |ACCESS_MODE| for details. Here find some examples: AM_READ If file does not exist, an error is returned. If the file exists, the file will be opened AM_WRITE If file does not exist, a new file will be created. If the file exists, it will be overwritten! AM_APPEND If the file does not exist, an error is returned. If the file exists, the file will be opened pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) pulOut POINTER TO RTS_IEC_HANDLE [OUT] Handle to the file or RTS_INVALID_HANDLE if failed
tSysFileRead (STRUCT) ¶ TYPE tSysFileRead : STRUCT Parameter to read a file asynchronously InOut: Name Type Comment pbyBuffer POINTER TO BYTE Pointer to buffer for read data ulSize __XWORD Number of bytes to read from file. Must be less or equal the buffer size! pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) pulOut POINTER TO __XWORD [OUT] Number of bytes read from file. 0=if failed
tSysFileRename (STRUCT) ¶ TYPE tSysFileRename : STRUCT Parameter to rename a file asynchronously InOut: Name Type Comment szOldName STRING(254) Old file name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! szNewName STRING(254) New file name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileSetPos (STRUCT) ¶ TYPE tSysFileSetPos : STRUCT Parameter to set a position in a file asynchronously InOut: Name Type Comment ulOffset __XWORD Offset to set from the beginning of the file pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileWrite (STRUCT) ¶ TYPE tSysFileWrite : STRUCT Parameter to write a file asynchronously InOut: Name Type Comment pbyBuffer POINTER TO BYTE Pointer to buffer with data to write to file ulSize __XWORD Number of bytes to write in the file. Must be less or equal the buffer size! pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) pulOut POINTER TO __XWORD [OUT] Number of bytes written to the file. 0=if failed