Chapter 9 Deployment CPU 21xSER-1 Manual VIPA CPU 21x
9-10 HB103E - Rev. 05/45
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.
Please regard that not all protocols support the complete value range of
the parameters. More detailed information is to be found in the description
of the according parameter.
Note!
Please regard that the SFC216 is not called again during a communication
because as a result of this all buffers are cleared.
If you don’t want to alter the communication parameter any more, you
should place the call of the SFC 216 in the start-up OB OB 100.
Name Declaration Type Comment
Protocol IN BYTE No. of protocol
Parameter IN ANY Pointer to protocol-parameters
Baudrate IN BYTE No 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 (fix)
RetVal OUT WORD Error Code ( 0 = OK )
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
7: Modbus RTU Slave
8: Modbus ASCII Slave
SFC 216
(SER_CFG)
Protocol