If there is no error, STATUS = 0000h or 8181h. With an error here the corresponding error
code may be found. As long as ERROR is set, the value of STATUS is available. The fol-
lowing status messages are possible:
STATUS Description
0000h There is no error.
0202h Possible sources of error:
n Handling block and CP are not synchronous (remedy: Trigger
synchronous reset)
n IO_SIZE is not valid (IO_SIZE = 0 or IO_SIZE > 60).
0301h DB is not valid.
070Ah Transfer failed, there is no response of the partner or the job was
negative acknowledged.
8090h HW_ID is unknown.
80A0h When accessing the periphery, an access error was detected.
80A1h
8181h Job is running (status and no error message).
8323h Receive DB available, but too short.
833Ah Receive DB not readable (DB not available or DB in optimized
block access).
Ä
Chap. 2.3 ‘No optimized block access’ page 16
n The handling blocks SEND and RECEIVE use the common parameter CONTROL for
the handshake.
n Assign to this parameter a common flag byte.
n The NDR output shows "order ready without error / data kept". If there was an
ERROR, the corresponding event number is displayed in the STATUS. If no error
occurs the value of STATUS is "0".
n NDR, ERROR and STATUS are also output in response to a reset of the FB. In the
event of an error, the binary result BR is reset. If the block is terminated without
errors, the binary result has the status "1".
n Please regard the parameter NDR, ERROR and STATUS are only available at one
block call. For further evaluation these should be copied to a free data area.
10.2.4 FB 65 - CP040_COM - Communication SLIO CP 040
The FB 65 serves the data in-/output from the System SLIO CPU to the CP 040. Here
you define the send/receive range via the identifiers DB_NO_SEND and DB_NO_RECV.
A rising edge at REQ_SEND a transmission is initiated and the data are sent. Via
EN_RECV the received data are enabled.
Parameters when used in VIPA CPUs or S7-300 CPUs from Siemens
Name Declaration Type Description
REQ_SEND IN BOOL Release SEND with positive edge.
EN_RECV IN BOOL Enable receive data.
STATUS
CONTROL
Error indication
Description
VIPA SPEED7
Serial Communication
CP040 > FB 65 - CP040_COM - Communication SLIO CP 040
HB00 | OPL_SP7 | Operation list | en | 18-30 225