Parameters
Parameter Declaration Data type Description
PROTOCOL IN BYTE 1=ASCII, 2=STX/ETX, 3=3964R
PARAMETER IN ANY Pointer to protocol-parameters
BAUDRATE IN BYTE Number of baudrate
CHARLEN IN BYTE 0=5bit, 1=6bit, 2=7bit, 3=8bit
PARITY IN BYTE 0=Non, 1=Odd, 2=Even
STOPBITS IN BYTE 1=1bit, 2=1.5bit, 3=2bit
FLOWCONTROL IN BYTE 1 - see note
RETVAL OUT WORD Return value (0 = OK)
All time settings for timeouts must be set as hexadecimal value. Find the Hex value by
multiply the wanted time in seconds with the baudrate.
Example:
n Wanted time 8ms at a baudrate of 19200baud
n Calculation: 19200bit/s x 0.008s ≈ 154bit → (9Ah)
n Hex value is 9Ah.
Here you fix the protocol to be used. You may choose between:
n 1: ASCII
n 2: STX/ETX
n 3: 3964R
n 4: USS Master
n 5: Modbus RTU Master
n 6: Modbus ASCII Master
At ASCII protocol, this parameter is ignored. At STX/ETX, 3964R, USS and Modbus you
fix here a DB that contains the communication parameters and has the following structure
for the according protocols:
Data block at STX/ETX
DBB0: STX1 BYTE (1. Start-ID in hexadecimal)
DBB1: STX2 BYTE (2. Start-ID in hexadecimal)
DBB2: ETX1 BYTE (1. End-ID in hexadecimal)
PROTOCOL
PARAMETER (as DB)
VIPA SPEED7
Serial Communication
Serial communication > FC/SFC 216 - SER_CFG - Parametrization PtP
HB00 | OPL_SP7 | Operation list | en | 18-30 205