EVTPARAM_CmpChS_ChannelOpened (STRUCT) ¶ TYPE EVTPARAM_CmpChS_ChannelOpened : STRUCT InOut: Name Type ulChannelHandle UDINT
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 15:36:52 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpChannelServer.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpChannelServer.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 20.04.2021, 15:36:52 LibraryCategories library-category-list System|SysLibs Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 DefaultNamespace Description See: Description DocFormat reStructuredText Placeholder CmpChannelServer Project CmpChannelServer Title CmpChannelServer Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpApp ¶ Library Identification ¶ Placeholder: CmpApp Default Resolution: CmpApp, * (System) Namespace: CmpApp Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpApp CmpEventMgr ¶ Library Identification ¶ Placeholder: CmpEventMgr Default Resolution: CmpEventMgr, * (System) Namespace: CmpEventMgr Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpEventMgr SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
CmpCharDevice Implementation Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title CmpCharDevice Implementation Version 3.5.17.0 Categories System|SysLibs Author CODESYS Development GmbH Placeholder CmpCharDevice Implementation Description 1 ¶ Linux Library to access character devices Contents: ¶ CDClose (Function) CDIoctl (Function) CDLseek (Function) CDMmap (Function) CDMunmap (Function) CDOpen (Function) CDRead (Function) CDWrite (Function) Indices and tables ¶ 1 Based on CmpCharDevice Implementation.library, last modified 20.04.2021, 15:37:28. LibDoc 4.4.0.0-b.27 The content file CmpCharDevice Implementation.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 15:37:28.
CDClose (FUN) ¶ FUNCTION CDClose : DINT Close a character device file. InOut: Scope Name Type Comment Return CDClose DINT 0 on success Input hFile RTS_IEC_HANDLE File descriptor/handle, that was previously created with Open() pResult POINTER TO DINT Pointer to linux errno error code, 0 is ok
CDIoctl (FUN) ¶ FUNCTION CDIoctl : DINT Control a character device file. This function manipulates the underlying device parameters of special files. InOut: Scope Name Type Comment Return CDIoctl DINT 0 if ok or errno if failed. Input hFile RTS_IEC_HANDLE File descriptor/handle, that was previously created with Open() dRequest __XWORD Request id. dParameter __XWORD Request parameter. pResult POINTER TO DINT Pointer to linux errno error code
CDLseek (FUN) ¶ FUNCTION CDLseek : DINT Repositions the file offset of an open file. lseek() sets the file offset of hFile to the argument offset according to the directive whence InOut: Scope Name Type Comment Return CDLseek DINT the resulting offset location as measured in bytes from the beginning of the file or -1 if failed. Input hFile RTS_IEC_HANDLE File descriptor/handle, that was previously created with Open() offset DINT offset in bytes whence DINT one of the following flags: SEEK_SET: The file offset is set to offset bytes SEEK_CUR: The file offset is set to its current location plus offset bytes SEEK_END:The file offset is set to the size of the file plus offset pResult POINTER TO DINT Pointer to linux errno error code, 0 is ok
CDMmap (FUN) ¶ FUNCTION CDMmap : POINTER TO BYTE Map files or devices into memory. mmap() creates a new mapping in the virtual address space of the calling process. InOut: Scope Name Type Comment Return CDMmap POINTER TO BYTE pointer to the mapped area, or MAP_FAILED if failed. Input addr POINTER TO BYTE Pointer to starting address for the new mapping length UDINT Number of bytes mapped prot DINT Memory protection of the mapping. It is either PROT_NONE or the bitwise OR of one or more of the following flags: PROT_EXEC: Pages may be executed PROT_READ: Pages may be read PROT_WRITE: Pages may be written PROT_NONE: Pages may not be accessed flags DINT one of the following flags MAP_SHARED: Share this mapping MAP_SHARED_VALIDATE: This flag provides the same behavior as MAP_SHARED except that MAP_SHARED mappings ignore unknown flags in flags MAP_PRIVATE: Create a private copy-on-write mapping Optional flags for mmap: See linux man page for Details hFile RTS_IEC_HANDLE File descriptor of the file to be mapped offset DINT Offset in the file (or other object) where mapping starts pResult POINTER TO DINT Pointer to linux errno error code, 0 is ok
CDMunmap (FUN) ¶ FUNCTION CDMunmap : DINT Unmap files or devices into memory. The munmap() system call deletes the mappings for the specified address range. InOut: Scope Name Type Comment Return CDMunmap DINT 0 on success, -1 if failed. Input addr POINTER TO BYTE Pointer to starting address length UDINT Number of bytes mapped pResult POINTER TO DINT Pointer to linux errno error code, 0 is ok
CDOpen (FUN) ¶ FUNCTION CDOpen : RTS_IEC_HANDLE Open a character device file. Given a pathname for a file, open() returns a file descriptor handle for use in subsequent system calls (read(), write(), ioctl(), etc.). InOut: Scope Name Type Comment Return CDOpen RTS_IEC_HANDLE Handle or RTS_INVALID_HANDLE if failed. Input szFile STRING(80) File name. File name must be an absolute path to the file. Path entries must be separated with a ‘/’ and not with a ‘"! dFlags DINT Requested ACCESS_MODE for fileaccess: dwFlags must include one of the following flags: O_RDONLY: read-only access O_WRONLY: write-only access O_RDWR: read/write access Optional flags for fileaccess: See linux man page for Details pResult POINTER TO DINT Pointer to linux errno error code, 0 is ok