Communication using function blocks
6.5 Use of function blocks for reading and controlling the RS 2332C secondary signals
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
119
Note
The EN and ENO parameters are only present in the graphical representation (LAD or FBD).
To process these parameters, the compiler uses the binary result.
The binary result is set to signal state "1" if the block was terminated without errors. If there
was an error, the binary result is set to "0".
A minimum pulse time is necessary for a signal change to be identified. Significant time
periods are the CPU cycle time, the updating time on the CP 340 and the response time of
the communication partner.
Assignment in the data area
The function V24_STAT FC does not occupy any data areas.
V24_STAT (FC 5) parameters
The table below lists the parameters of the V24_STAT function (FC 5).
Table 6- 5 V24_STAT (FC 5) parameters
Name Type Data type Comment Permitted values, remark
LADDR INPUT INT CP 340 base address The base address is taken from
STEP 7.
DTR_OUT OUTPUT BOOL Data terminal ready,
CP 340 ready
(CP 340 output)
DSR_IN OUTPUT BOOL Data set ready,
Communication partner ready
(CP 340 input)
RTS_OUT OUTPUT BOOL Request to send,
CP 340 ready to send
(CP 340 output)
CTS_IN OUTPUT BOOL Clear to send,
Communication partner can
receive data from the CP 340
(response to RTS = ON of the
CP 340) (see Chapter RS 232C
accompanying
signals
(Page 46)")
(CP 340 input)
DCD_IN OUTPUT BOOL Data Carrier detect,
receive signal level
(CP 340 input)
RI_IN OUTPUT BOOL Ring Indicator,
Indication of incoming call
(CP 340 input)