10 Serial Communication
The block library can be found for download in the ‘Service/Support’ area of
www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Serial Communication -
SW90GS0MA’ . The library is available as packed zip file. As soon as you want to use
these blocks you have to import them into your project.
Ä
Chap. 5 ‘Include VIPA library’
page 69
10.1 Serial communication
10.1.1 SFC 207 - SER_CTRL - Modem functionality PtP
Please note that this block is not supported by SPEED7 CPUs!
The use in S7-1500 CPUs from Siemens is also not supported!
Using the RS232 interface by means of ASCII protocol the serial modem lines can be
accessed with this SFC during operation. Depending on the parameter FLOWCONTROL,
which is set by SFC 216 (SER_CFG), this SFC has the following functionality:
Read Write
FLOWCONTROL=0: DTR, RTS, DSR, RI, CTS, CD DTR, RTS
FLOWCONTROL>0: DTR, RTS, DSR, RI, CTS, CD not possible
Parameters
Name Declaration Type Description
WRITE IN BYTE
n Bit 0: New state DTR
n Bit 1: New state RTS
MASKWRITE IN BYTE
n Bit 0: Set state DTR
n Bit 1: Set state RTS
READ OUT BYTE Status flags (CTS, DSR, RI, CD, DTR, RTS)
READDELTA OUT BYTE Status flags of change between 2 accesses
RETVAL OUT WORD Return value (0 = OK)
With this parameter the status of DTR and RTS is set and activated by MASKWRITE.
The byte has the following allocation:
n Bit 0 = DTR
n Bit 1 = RTS
n Bit 7 ... Bit 2: reserved
Here with "1" the status of the appropriate parameter is activated. The byte has the fol-
lowing allocation:
n Bit 0 = DTR
n Bit 1 = RTS
n Bit 7 ... Bit 2: reserved
Block library "Serial Com-
munication"
Description
WRITE
MASKWRITE
VIPA SPEED7
Serial Communication
Serial communication > SFC 207 - SER_CTRL - Modem functionality PtP
HB00 | OPL_SP7 | Operation list | en | 18-30 203