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)
COM_Baudrate (ENUM) ¶ TYPE COM_Baudrate : <category>Baudrates</category> <description></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
COM_Parity (ENUM) ¶ TYPE COM_Parity : <category>Parity</category> <description></description> InOut: Name Initial SYS_NOPARITY 0 SYS_ODDPARITY SYS_EVENPARITY
COM_Ports (ENUM) ¶ TYPE COM_Ports : <category>Com ports</category> <description>Com port numbers</description> InOut: Name Initial SYS_COMPORT_NONE 0 SYS_COMPORT1 1 SYS_COMPORT2 SYS_COMPORT3 SYS_COMPORT4
COM_Settings (STRUCT) ¶ TYPE COM_Settings : STRUCT <category>Com port settings</category> <description> <element name=”sPort” type=”IN”>Port number: 0=disabled, 1=COM1, 2=COM2, …. See category “Com ports”</element> <element name=”ulBaudRate” type=”IN”>Baudrate. See “category “Baudrates”</element> <element name=”byStopBits” type=”IN”>Stop bits. See category “Stop bits”</element> <element name=”byParity” type=”IN”>Parity. See category “Parity”</element> <element name=”ulTimeout” TYPE=”IN”>Hardware timeout. The Timeout is the TIME between two received OR sent characters until the read or write operation will return. Typically this value should be 0 (returns immediately)</element> <element name=”ulBufferSize” type=”IN”>Buffersize of FIFO buffer</element> </description> InOut: Name Type sPort COM_Ports byStopBits COM_StopBits byParity COM_Parity ulBaudrate COM_Baudrate ulTimeout COM_Timeout ulBufferSize UDINT
COM_SettingsEx (STRUCT) ¶ TYPE COM_SettingsEx : STRUCT <category>Com port extended settings</category> <description> <element name=”byByteSize” TYPE=”IN”>Number OF bits/BYTE, 4-8</element> <element name=”bBinary” TYPE=”IN”>binary mode, no EOF check</element> <element name=”bOutxCtsFlow” TYPE=”IN”>CTS handshaking on output</element> <element name=”bOutxDsrFlow” TYPE=”IN”>DSR handshaking on output</element> <element name=”bDtrControl” TYPE=”IN”>DTR Flow control</element> <element name=”bDsrSensitivity” TYPE=”IN”>DSR Sensitivity</element> <element name=”bRtsControl” TYPE=”IN”>Rts Flow control</element> <element name=”bTXContinueOnXoff” TYPE=”IN”>XOFF continues Tx</element> <element name=”bOutX” TYPE=”IN”>XON/XOFF out flow control</element> <element name=”bInX” TYPE=”IN”>XON/XOFF in flow control</element> <element name=”XonChar” TYPE=”IN”>Tx AND Rx XON character</element> <element name=”XoffChar” TYPE=”IN”>Tx AND Rx XOFF character</element> <element name=”XonLim” TYPE=”IN”>transmit XON threshold</element> <element name=”XoffLim” TYPE=”IN”>transmit XOFF threshold</element> </description> InOut: Name Type byByteSize BYTE bBinary BOOL bOutxCtsFlow BOOL bOutxDsrFlow BOOL bDtrControl BOOL bDsrSensitivity BOOL bRtsControl BOOL bTXContinueOnXoff BOOL bOutX BOOL bInX BOOL byXonChar BYTE byXoffChar BYTE wXonLim WORD wXoffLim WORD
COM_StopBits (ENUM) ¶ TYPE COM_StopBits : <category>Stop bits</category> <description></description> InOut: Name Initial SYS_ONESTOPBIT 1 SYS_ONE5STOPBITS SYS_TWOSTOPBITS
COM_Timeout (ENUM) ¶ TYPE COM_Timeout : <category>Timeouts</category> <description></description> InOut: Name Initial SYS_NOWAIT 0 SYS_INFINITE 16#FFFFFFFF
SysComClose30 (FUN) ¶ FUNCTION SysComClose30 : RTS_IEC_RESULT InOut: Scope Name Type Return SysComClose30 RTS_IEC_RESULT Input hCom RTS_IEC_HANDLE
SysComGetSettings30 (FUN) ¶ FUNCTION SysComGetSettings30 : RTS_IEC_RESULT InOut: Scope Name Type Return SysComGetSettings30 RTS_IEC_RESULT Input hCom RTS_IEC_HANDLE pSettings POINTER TO COM_Settings pSettingsEx POINTER TO COM_SettingsEx