Siemens KS7 Series Specifiche Pagina 211

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 257
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 210
CP 523 Using the ”SEND” and ”Receive” Function Blocks
8.2 Using "RECEIVE" FB 201
"RECEIVE" FB 201 transfers message frames from the CP 523 to the CPU.
You must specify the following when calling "RECEIVE" FB 201:
The start address of the CP 523
The number of the target data block in which the message frame is to be stored on the CP 523
The number of the target data word starting from which the message frame is to be stored
A byte address where "RECEIVE" FB 201 can store the number of data words received
A byte address where "RECEIVE" FB 201 is to store the status byte
A byte address where ”RECEIVE” FB 201 is to store the CBR (= KBE)
Receive enable is RLO = 1.
8.2.1 Calling and Setting "RECEIVE" FB 201 Parameters
"RECEIVE" FB 201 can be called in cyclic programs and in programs servicing timed interrupts* and
process interrupts
*.
FB 201
: JU FB 201
NAME : RECEIVE
DES : BADR : KF
DES : Z-DB : B
DES : ZANF : KF
DES : ZLAE : MB
DES : STAT : MB
DES : KBE
STL LAD/CSF
BADR
Z-DB
ZANF ZLAE
STAT
KBE
MB
MB
FY
Table 8-3. Block Parameters for "RECEIVE" FB 201
Name Parameter Data Description
Type Type
BADR D KF Initial address of the module
Z-DB B Number of the destination data block
ZANF D KF Number of the 1st destination data word
ZLAE Q BY Number of data words received (destination length)
STAT Q BY Status byte
KBE Q BY Coordination byte 'receive' (relevant only in 3964(R)
mode)
Note:
The scan time may be exceeded if several message blocks are received.
Remedy: Program OB 31 "Set scan time" in FB 201 (address 00F0, network 6).
* Please note that FB 201 uses scratch flags.
EWA 4NEB 811 6044-02a
8-21
Vedere la pagina 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 256 257

Commenti su questo manuale

Nessun commento