SysComSettingsEx (STRUCT) ¶ TYPE SysComSettingsEx : STRUCT <category>Com port extended settings</category> <description>: This structure can be used to get and set the settings of a COM port. NOTE: The difference of this structure to SysComSettingsEx2 are the 2 members bDtrControl and bRtsControl! Here you can specify only BOOL instead of BYTE values in SysComSettingsEx2! </description> InOut: Name Type Comment byByteSize BYTE <element name=”byByteSize” TYPE=”IN”>Number of bits/BYTE, 4-8</element> bBinary BOOL <element name=”bBinary” TYPE=”IN”>Binary mode, no EOF check</element> bOutxCtsFlow BOOL <element name=”bOutxCtsFlow” TYPE=”IN”>CTS handshaking on output</element> bOutxDsrFlow BOOL <element name=”bOutxDsrFlow” TYPE=”IN”>DSR handshaking on output</element> bDtrControl BOOL <element name=”bDtrControl” TYPE=”IN”>DTR flow control</element> bDsrSensitivity BOOL <element name=”bDsrSensitivity” TYPE=”IN”>DSR Sensitivity</element> bRtsControl BOOL <element name=”bRtsControl” TYPE=”IN”>Rts flow control</element> bTXContinueOnXoff BOOL <element name=”bTXContinueOnXoff” TYPE=”IN”>XOFF continues Tx</element> bOutX BOOL <element name=”bOutX” TYPE=”IN”>XON/XOFF out flow control</element> bInX BOOL <element name=”bInX” TYPE=”IN”>XON/XOFF in flow control</element> byXonChar BYTE <element name=”XonChar” TYPE=”IN”>Tx AND Rx XON character</element> byXoffChar BYTE <element name=”XoffChar” TYPE=”IN”>Tx AND Rx XOFF character</element> wXonLim WORD <element name=”XonLim” TYPE=”IN”>transmit XON threshold</element> wXoffLim WORD <element name=”XoffLim” TYPE=”IN”>transmit XOFF threshold</element>
SysComGetVersion2300 (FUN) ¶ FUNCTION SysComGetVersion2300 : DWORD InOut: Scope Name Type Return SysComGetVersion2300 DWORD Input bDummy BOOL
SysComSettingsEx2 (STRUCT) ¶ TYPE SysComSettingsEx2 : STRUCT <category>Com port extended settings</category> <description>: This structure can be used to get and set the settings of a COM port. NOTE: The difference of this structure to SysComSettingsEx are the 2 members byDtrControl and byRtsControl! Here you can specify BYTE instead of BOOL values in SysComSettingsEx! </description> InOut: Name Type Comment byByteSize BYTE <element name=”byByteSize” TYPE=”IN”>Number of bits/BYTE, 4-8</element> bBinary BOOL <element name=”bBinary” TYPE=”IN”>Binary mode, no EOF check</element> bOutxCtsFlow BOOL <element name=”bOutxCtsFlow” TYPE=”IN”>CTS handshaking on output</element> bOutxDsrFlow BOOL <element name=”bOutxDsrFlow” TYPE=”IN”>DSR handshaking on output</element> byDtrControl BYTE <element name=”byDtrControl” TYPE=”IN”>DTR (data-terminal- ready) flow control. See SYS_COM_DTR_CONTROL for possible values.</element> bDsrSensitivity BOOL <element name=”bDsrSensitivity” TYPE=”IN”>DSR Sensitivity</element> byRtsControl BYTE <element name=”byRtsControl” TYPE=”IN”>Rts (request-to-send) flow control. See SYS_COM_RTS_CONTROL for possible values.</element> bTXContinueOnXoff BOOL <element name=”bTXContinueOnXoff” TYPE=”IN”>XOFF continues Tx</element> bOutX BOOL <element name=”bOutX” TYPE=”IN”>XON/XOFF out flow control</element> bInX BOOL <element name=”bInX” TYPE=”IN”>XON/XOFF in flow control</element> byXonChar BYTE <element name=”XonChar” TYPE=”IN”>Tx AND Rx XON character</element> byXoffChar BYTE <element name=”XoffChar” TYPE=”IN”>Tx AND Rx XOFF character</element> wXonLim WORD <element name=”XonLim” TYPE=”IN”>transmit XON threshold</element> wXoffLim WORD <element name=”XoffLim” TYPE=”IN”>transmit XOFF threshold</element>
SysComWrite (FUN) ¶ FUNCTION SysComWrite : UDINT <description><p>Writes the number of bytes to the send buffer of the specified device.</p> <p>IMPLEMENTATION NOTE: If the timeout elapsed until the requested number of bytes are sent, the function returns the number of bytes already sent! This must be considered in the caller and the implementation!</p></description> <result><p>RESULT: Number of actual written bytes</p></result> InOut: Scope Name Type Comment Return SysComWrite UDINT Input hCom RTS_IEC_HANDLE <param name=”hCom” type=”IN”>Handle to com port</param> pbyBuffer POINTER TO BYTE <param name=”pbyBuffer” type=”IN”>Pointer to data buffer for sent data</param> ulSize UDINT <param name=”uiSize” type=”IN”>Requested number of bytes to sent. Must be less or equal the size of the sent buffer!</param> ulTimeout SYS_COM_TIMEOUT <param name=”ulTimeout” type=”IN”>Timeout in milliseconds to sent data to the device. [0]=Immediate return. If the timeout elapsed, the function returns with the still sent data (could be less then the requested number of bytes!)</param> pResult POINTER TO RTS_IEC_RESULT <param name=”pResult” type=”OUT”>Pointer to return the runtime system error code (see CmpErrors.library).</param>
SysComOpen (FUN) ¶ FUNCTION SysComOpen : DWORD InOut: Scope Name Type Return SysComOpen DWORD Input Port PORTS
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 16:01:39 companyName string 3S-Smart Software Solutions GmbH libraryFile SysCom.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile SysCom.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 20.04.2021, 16:01:39 LibraryCategories library-category-list System|SysLibs Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Description See: Description Placeholder SysCom Project SysCom Title SysCom Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. 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)
SysComRead (FUN) ¶ FUNCTION SysComRead : DWORD InOut: Scope Name Type Return SysComRead DWORD Input dwHandle DWORD dwBufferAddress DWORD dwBytesToRead DWORD dwTimeout DWORD
SysComSetSettings (FUN) ¶ FUNCTION SysComSetSettings : BOOL InOut: Scope Name Type Return SysComSetSettings BOOL Input dwHandle DWORD ComSettings POINTER TO COMSETTINGS
SysComWrite (FUN) ¶ FUNCTION SysComWrite : DWORD InOut: Scope Name Type Return SysComWrite DWORD Input dwHandle DWORD dwBufferAddress DWORD dwBytesToWrite DWORD dwTimeout DWORD