Siemens IP-Module Especificaciones Pagina 241

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 417
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 240
IP 240 Positioning
10.23 Data Block Contents and Initializing the Standard Function Blocks
10.23.1 The Data Block
Creating the data block
The standard function blocks (configuring FB and control FB) use a data block (DB) to interchange
data with the IP 240. You must create this data block and enter the required data prior to the first
FB call.
The length of the data block depends on the number of positions you want to store. The
minimum length is 60 data words (data word 0 to data word 59), and increases by 3 words for
each position. If, for instance, 65 positions are entered, the data block must comprise
60+3
.
65=255 data words (data word 0 to data word 254). For 254 positions, the data block
would have to comprise 822 data words.
When the configuring FB is invoked, the length of the DB is checked on the basis of the number of
positions to be transferred, which is in DR 58. When the control FB is invoked to change the
position data, the length of the DB is checked on the basis of the entry number specified in the
FKT parameter. If there is a discrepancy, the FB sets bit 2 in the PAFE byte.
Note that data words from DW 256 on can be addressed only with supplementary STEP 5
commands (system operations), e.g. ”LIR” and ”TIR” ( Section 10.24).
In the S5-135U and S5-155U, you can also create the data block in the extended DB area (DX area).
Specifying the data block number
The data block number is specified in the DBNR parameter.
During configuring, you must specify the number of the data block created. FB 167 opens this
data block.
After configuring you can either
use a DB that is already opened. In the S5 115U, this function is only available from CPU 943
onwards.
or specify the DB number, so that the DB is opened by FB 168.
The FB is to open the data block you created:
S5-115U and S5-150U S5-135U and S5-155U
: JU FB167 : JU FB 168
NAME : STRU.POS NAME : STEU.POS
::
DBNR : KF y DBNR : KF y
: JU FB167 : JU FB 168
NAME : STRU.POS NAME : STEU.POS
::
DBNR : KY x,y DBNR : KY x,y
y=3 to 255 Number of the data blockcreated
x=0 DB created in normal DB area
x=1 DB created in extended DB area
The data block that was already opened is to be used:
S5-115U and S5-150U S5-135U and S5-155U
: JU FB 168
NAME : STEU.POS
:
DBNR : KF y
: JU FB 168
NAME : STEU.POS
:
DBNR : KY x,y
y=0 the data block that was already opened is to be used
x=0 Regardless of whether the DB was created in the normal or in the extended DB area
EWA 4NEB 811 6120-02a
10-75
Vista de pagina 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 416 417

Comentarios a estos manuales

Sin comentarios