Name Declaration Type Comment
DELTA_STATUS OUT /
IN_OUT
BYTE DELTA_STATUS
n Status flags of change between 2 accesses of
Type BYTE as OUT parameter, used in CPUs
from VIPA or in S7-300 CPUs from Siemens.
n Status flags of change between 2 accesses of
Type BYTE as IN_OUT parameter, used in
S7-1500 CPUs from Siemens.
START IN_OUT BOOL Start bit of the function
AUFTRAG_LAEUFT IN_OUT BOOL Status of function
This block must not be called as long as a transmit command is running
otherwise you risk a data loss.
Periphery address with which you may call the CP 240. Via the hardware configuration
you may set the periphery address.
This parameter presets the status of RTS res. DTR, which you may activate via
MASK_RTS res. MASK_DTR.
With 1, the status of the according parameter is taken over when you set START to 1.
At this time, this parameter always returns 00h and is reserved for future error messages.
STATUS returns the actual status of the modem lines. DELTA_STATUS returns the state
of the modem lines that have changed since the last access. The bytes have the fol-
lowing structure:
Bit no. 7 6 5 4 3 2 1 0
STATUS x x RTS DTR CD RI DSR CTS
DELTA_STATUS x x x x CD RI DSR CTS
By setting of START, the state, which has been activated via the mask, is taken over.
As long as the function is executed, this bit remains set.
10.3.4 FC 9 - SYNCHRON_RESET - Synchronization CPU and CP 240
The block must be called within the cyclic program section. This function is used to
acknowledge the start-up ID of the CP 240 and thus the synchronization between CPU
and CP. Furthermore it allows to set back the CP in case of a communication interruption
to enable a synchronous start-up.
ADR
RTS, DTR
MASK_RTS, MASK_DTR
RET_VAL
STATUS, DELTA_STATUS
START
AUFTRAG_LAEUFT
Description
VIPA SPEED7
Serial Communication
CP240 > FC 9 - SYNCHRON_RESET - Synchronization CPU and CP 240
HB00 | OPL_SP7 | Operation list | en | 18-30 234