Manual VIPA System 300S SPEED7 Chapter 6 Deployment PtP communication
HB140E - CPU SC - RE_313-6CF03 - Rev. 07/45 6-9
Parameterization
The parameterization happens during runtime deploying the SFC 216
(SER_CFG). You have to store the parameters for STX/ETX, 3964R, USS
and Modbus in a DB.
Name Declaration Type Comment
Protocol IN BYTE 1=ASCII, 2=STX/ETX, 3=3964R
Parameter IN ANY Pointer to protocol-parameters
Baudrate IN BYTE Number of the baudrate
CharLen IN BYTE 0=5Bit, 1=6Bit, 2=7Bit, 3=8Bit
Parity IN BYTE 0=None, 1=Odd, 2=Even
StopBits IN BYTE 1=1Bit, 2=1.5Bit, 3=2Bit
FlowControl IN BYTE 1 (fix)
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: Wanted time 8ms at a baudrate of 19200Baud
Calculation: 19200Bit/s x 0,008s ≈ 154Bit → (9Ah)
Hex value is 9Ah.
Here you fix the protocol to be used. You may choose between:
1: ASCII
2: STX/ETX
3: 3964R
4: USS Master
5: Modbus RTU Master
6: Modbus ASCII Master
SFC 216
(SER_CFG)
Parameter
description
Protocol