S5-115U Manual
Integral Blocks
The SEND block must be called in the control program in "ALL" mode at least once per interface
when
•
the CP can request data from a PLC on its own initiative, e.g., the CP 525 for display output or
the CP 535 with the job mode "READ PASSIVE".
•
a CP job is initiated with SEND DIRECT, but the CP asks the PLC for the data for this job via
"background communications".
•
the amount of data to be transmitted to the CP with SEND DIRECT is greater than the speci-
fied 1 frame size.
Description of the SEND DIRECT Function
The SEND DIRECT function works with the following parameters:
•
SSNR -
interface number
•
A-NR
-
job number (assign " 0")
•
ANZW -
job status word
•
PAFE
-
parameter assignment error byte
•
QTYP -
source type
•
DBNR -
data block number
•
QANF -
source start address
•
QLAE
-
amount of source data
Normally, the SEND DIRECT function is called in the cyclic part of the control program. The block
can be invoked in an interrupt service routine, but the job status word would not be updated
cyclically in this case. This task must then be performed by the CONTROL block.
The following two conditions must be met to transfer data or to activate a SEND job:
•
RLO "1" was forwarded to the function block
•
The CP enabled the job. (The "SEND/FETCH in progress" bit of the condition code word is "0").
If RLO "0" is forwarded (empty run), only the job status word is updated.
If "NN" is entered in the QTYP parameter, the source parameters have to be stored in the CP. If
not, the job is aborted with error.
Data interchange can proceed as follows:
•
The requested data is transferred directly to the CP.
•
The CP asks only for the job parameters.
•
The amount of data to be transmitted is too large. The block transfers the parameters and the
first data block to the CP. Then the CP requests the remaining data or an additional data
frame from the PLC via the SEND ALL function.
For the block user, the operator interface is the same in all initiation words. However, in the last
two cases, the instant of data transfer is postponed by at least one program cycle.
Description of the WRITE Function
If "RW" is entered in the QTYP parameter, the block transfers the indirectly specified source and
destination parameters to the CP. Then the destination parameters are sent along with the useful
data (requested via the SEND ALL function) to the communications partner (WRITE function).
EWA 4NEB 811 6130-02b
11-21
Summary of Contents for SIMATIC S5-115U
Page 6: ...EWA 4NEB 811 6130 02b ...
Page 16: ...EWA 4NEB 811 6130 02b ...
Page 18: ...EWA 4NEB 811 6130 02b ...
Page 26: ......
Page 62: ...EWA 4NEB 811 6130 02b ...
Page 64: ...EWA 4NEB 811 6130 02b ...
Page 67: ......
Page 74: ......
Page 79: ......
Page 80: ......
Page 81: ......
Page 82: ......
Page 83: ......
Page 84: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 114: ...EWA 4NEB 811 6130 02b ...
Page 280: ...EWA 4NEB 811 6130 02b ...
Page 372: ...EWA 4NEB 811 6130 02b ...
Page 432: ...EWA 4NEB 811 6130 02b ...
Page 442: ......
Page 528: ...EWA 4NEB 811 6130 02b ...
Page 590: ......
Page 591: ......
Page 592: ......
Page 593: ......
Page 594: ......
Page 600: ...EWA 4NEB 811 6130 02b ...
Page 602: ...EWA 4NEB 811 6130 02b ...
Page 604: ...EWA 4NEB 811 6130 02b ...
Page 624: ...EWA 4NEB 811 6130 02b ...
Page 632: ...EWA 4NEB 811 6130 02b ...
Page 644: ...EWA 4NEB 811 6130 02b ...
Page 646: ...EWA 4NEB 811 6130 02b ...
Page 652: ...EWA 4NEB 811 6130 02b ...
Page 654: ...EWA 4NEB 811 6130 02b ...
Page 660: ...EWA 4NEB 811 6130 02b ...
Page 662: ...EWA 4NEB 811 6130 02b ...
Page 666: ...EWA 4NEB 811 6130 02b ...
Page 668: ...EWA 4NEB 811 6130 02b ...
Page 674: ...EWA 4NEB 811 6130 02b ...