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
Содержание SIMATIC S5-115U
Страница 6: ...EWA 4NEB 811 6130 02b ...
Страница 16: ...EWA 4NEB 811 6130 02b ...
Страница 18: ...EWA 4NEB 811 6130 02b ...
Страница 26: ......
Страница 62: ...EWA 4NEB 811 6130 02b ...
Страница 64: ...EWA 4NEB 811 6130 02b ...
Страница 67: ......
Страница 74: ......
Страница 79: ......
Страница 80: ......
Страница 81: ......
Страница 82: ......
Страница 83: ......
Страница 84: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 114: ...EWA 4NEB 811 6130 02b ...
Страница 280: ...EWA 4NEB 811 6130 02b ...
Страница 372: ...EWA 4NEB 811 6130 02b ...
Страница 432: ...EWA 4NEB 811 6130 02b ...
Страница 442: ......
Страница 528: ...EWA 4NEB 811 6130 02b ...
Страница 590: ......
Страница 591: ......
Страница 592: ......
Страница 593: ......
Страница 594: ......
Страница 600: ...EWA 4NEB 811 6130 02b ...
Страница 602: ...EWA 4NEB 811 6130 02b ...
Страница 604: ...EWA 4NEB 811 6130 02b ...
Страница 624: ...EWA 4NEB 811 6130 02b ...
Страница 632: ...EWA 4NEB 811 6130 02b ...
Страница 644: ...EWA 4NEB 811 6130 02b ...
Страница 646: ...EWA 4NEB 811 6130 02b ...
Страница 652: ...EWA 4NEB 811 6130 02b ...
Страница 654: ...EWA 4NEB 811 6130 02b ...
Страница 660: ...EWA 4NEB 811 6130 02b ...
Страница 662: ...EWA 4NEB 811 6130 02b ...
Страница 666: ...EWA 4NEB 811 6130 02b ...
Страница 668: ...EWA 4NEB 811 6130 02b ...
Страница 674: ...EWA 4NEB 811 6130 02b ...