RE_240-1CA20
Chapter 3 Deployment Manual VIPA System 200V
3-10 HB97E - CP - RE_240-1CA20 - Rev. 12/42
This block allows you the following access to the serial modem lines:
Read: DTR, RTS, DSR, RI, CTS, CD
Write: DTR, RTS
Declaration Name Type Comment
in ADR INT Logical Address
in RTS BOOL New state RTS
in DTR BOOL New state DTR
in MASKE_RTS BOOL 0: do nothing
1: set state RTS
in MASKE_DTR BOOL 0: do nothing
1: set state DTR
out STATUS BYTE Status flags
out DELTA_STATUS BYTE Status flags of change between 2 accesses
in_out START BOOL Start bit of the function
in_out AUFTRAG_LAEU BOOL Status of function
out RET_VAL WORD Return Code (00=OK)
Note!
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.
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 following 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.
At this time, this parameter always returns 00h and is reserved for future
error messages.
STEUERBIT (FC 8)
ADR
RTS, DTR
MASK_RTS,
MASK_DTR
STATUS,
DELTA_STATUS
START
AUFTRAG_LAEU
RET_VAL