SYS_COM_BAUDRATE (ENUM) ¶ TYPE SYS_COM_BAUDRATE : <category>Baudrates</category> <description>: Supported baudrates</description> InOut: Name Initial SYS_BR_4800 4800 SYS_BR_9600 9600 SYS_BR_19200 19200 SYS_BR_38400 38400 SYS_BR_57600 57600 SYS_BR_115200 115200
SYS_COM_PARITY (ENUM) ¶ TYPE SYS_COM_PARITY : <category>Parity</category> <description>: Supported parity</description> InOut: Name Initial Comment SYS_NOPARITY 0 <element name=”SYS_NOPARITY” TYPE=”IN”>No parity</element> SYS_ODDPARITY <element name=”SYS_ODDPARITY” TYPE=”IN”>Odd parity</element> SYS_EVENPARITY <element name=”SYS_EVENPARITY” TYPE=”IN”>Even parity</element>
SYS_COM_PORTS (ENUM) ¶ TYPE SYS_COM_PORTS : <category>Com ports</category> <description>: Supported com port numbers</description> InOut: Name Initial SYS_COMPORT_NONE 0 SYS_COMPORT1 1 SYS_COMPORT2 SYS_COMPORT3 SYS_COMPORT4
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
SysCom23 Library Documentation ¶ Company System Title SysCom23 Version 3.5.13.0 Categories System|SysLibs23 Author 3S - Smart Software Solutions GmbH Description 1 ¶ Compatibility library for CoDeSys 2.3 projects, to get access to a serial interface (RS232). Contents: ¶ Data types COMSETTINGS (Struct) COMSETTINGSEX (Struct) PORTS (Enum) Global Variables Globale_Variablen (GVL) POUs SysComClose (Function) SysComGetVersion2300 (Function) SysComOpen (Function) SysComRead (Function) SysComSetSettings (Function) SysComSetSettingsEx (Function) SysComWrite (Function) extern30 COM_Baudrate (Enum) COM_Parity (Enum) COM_Ports (Enum) COM_Settings (Struct) COM_SettingsEx (Struct) COM_StopBits (Enum) COM_Timeout (Enum) SysComClose30 (Function) SysComGetSettings30 (Function) SysComOpen30 (Function) SysComRead30 (Function) SysComSetSettings30 (Function) SysComWrite30 (Function) Indices and tables ¶ 1 Based on SysCom23.library, last modified 03.07.2018, 10:34:32. LibDoc 4.4.0.0-b.27 The content file SysCom23.clean.json was generated with CODESYS V3.5 SP13 on 03.07.2018, 10:34:32.
Data types ¶ COMSETTINGS (Struct) COMSETTINGSEX (Struct) PORTS (Enum)
COMSETTINGS (STRUCT) ¶ TYPE COMSETTINGS : STRUCT InOut: Name Type Comment Port PORTS dwBaudRate DWORD 4800, 9600, 19200, 38400, 57600, 115200 byStopBits BYTE 0 = ONESTOPBIT, 1=ONE5STOPBITS, 2=TWOSTOPBITS byParity BYTE 0 = NOPARITY, 1 = ODDPARITY, 2 = EVENPARITY dwTimeout DWORD Timeout in ms of interface, 0 = default value dwBufferSize DWORD Buffer size of device internal buffer, 0 = default value dwScan DWORD Scan time of serial interface, should be set to 0
COMSETTINGSEX (STRUCT) ¶ TYPE COMSETTINGSEX : STRUCT InOut: Name Type Comment Size INT Fill in sizeof(this structure) Port PORTS COM1,COM2… dwBaudRate DWORD 4800, 9600, 19200, 38400, 57600, 115200 byStopBits BYTE 0 = ONESTOPBIT, 1=ONE5STOPBITS, 2=TWOSTOPBITS byParity BYTE 0 = NOPARITY, 1 = ODDPARITY, 2 = EVENPARITY dwTimeout DWORD Timeout in ms of interface, use a time that fits your longest message, example 5000 /0 = default value, may cut off messages/ dwBufferSize DWORD Buffer size of device internal buffer, 0 = default value dwScan DWORD Scan time of serial interface, should be set to 0 cByteSize BYTE 4…8: number of databits. fOutxCtsFlow BOOL Specifies whether the CTS (clear-to-send) signal is monitored for output flow control. If this member is TRUE and CTS is turned off, output is suspended until CTS is sent again. fDtrControl BYTE 0:Disables the DTR line when the device is opened and leaves it disabled. 1:Enables the DTR line when the device is opened and leaves it on. 2:Enables DTR handshaking. fDsrSensitivity BOOL Specifies whether the communications driver is sensitive to the state of the DSR signal. If this member is TRUE, the driver ignores any bytes received, unless the DSR modem input line is high. fRtsControl BYTE 0:Disables the RTS line when the device is opened and leaves it disabled. 1:Enables the RTS line when the device is opened and leaves it on. 2:Enables RTS handshaking. The driver raises the RTS line when the “type-ahead” (input) buffer is less than one-half full and lowers the RTS line when the buffer is more than three-quarters full. 3:Specifies that the RTS line will be high if bytes are available for transmission. After all buffered bytes have been sent, the RTS line will be low. fOutxDsrFlow BOOL Specifies whether the DSR (data-set-ready) signal is monitored for output flow control. If this member is TRUE and DSR is turned off, output is suspended until DSR is sent again.
PORTS (ENUM) ¶ TYPE PORTS : InOut: Name Initial COM1 1 COM2 COM3 COM4 COM5 COM6 COM7 COM8
Global Variables ¶ Globale_Variablen (GVL)