Word variable that contains the number of the data word from where on the received
characters are stored.
Word variable that contains the amount of received bytes.
At proper function, all bits of this bit memory byte are "0". At errors an error code is
entered. The error setting is self-acknowledging, i.e. after elimination of the error cause,
the byte is set back to "0" again. The following errors may occur:
n 1 = Data block not present
n 2 = Data block too short
n 3 = Data block number outside valid range
By setting of EMFR the handling block shows that data has been received. Not until set-
ting back EMFR in the user application new data can be received.
These parameters are internally used. They serve the information exchange between the
handling blocks. For the deployment of the SYNCHRON_RESET (FC9) the control bits
EMFR, LETZTER_BLOCK, EMPF_LAEUFT and FEHLER_EMPF must always be stored
in a bit memory byte.
10.3.3 FC 8 - STEUERBIT - Modem functionality CP 240
This block allows you the following access to the serial modem lines:
Read: DTR, RTS, DSR, RI, CTS, CD
Write: DTR, RTS
Parameters
Name Declaration Type Comment
ADR IN INT Logical Address
RTS IN BOOL New state RTS
DTR IN BOOL New state DTR
MASKE_RTS IN BOOL
n 0: do nothing
n 1: set state RTS
MASKE_DTR IN BOOL
n 0: do nothing
n 1: set state DTR
RET_VAL OUT WORD Return value (0 = OK)
STATUS OUT /
IN_OUT
BYTE STATUS
n Status flags of Type BYTE as OUT parameter,
used in CPUs from VIPA or in S7-300 CPUs
from Siemens.
n Status flags of Type BYTE as IN_OUT param-
eter, used in S7-1500 CPUs from Siemens.
ABD
ANZ
PAFE
EMFR
GEEM, ANZ_INT,
LETZTER_BLOCK,
EMPF_LAEUFT,
FEHLER_EMPF, OFFSET
Description
VIPA SPEED7
Serial Communication
CP240 > FC 8 - STEUERBIT - Modem functionality CP 240
HB00 | OPL_SP7 | Operation list | en | 18-30 233