Data Area Requirements - Siemens SIMATIC S5 Manual

Positioning module 1p 247 for stepper motors
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Standard Function Block FB165
6.3.7

Data Area Requirements

The standard function block FBI 65 works with data block DB1 65. It requires data words DW3 up
to and including DW47 for its working area.
An axis data block must be specified using the parameter DBNR. A job field with a length of 15
data words must be available in this axis data block for each axis.
6.3.7.1
Indirect Assignment ofParameterstoFB165
It is possible to assign parameters to the function blockFB165 indirectly. The parameter DBNR
must have the
set as the actual operand. FB165 then obtains the parameters DBNR and DWNR from the data
block open before its call. The remaining input parameters are supplied from the specified axis
data block.
Any permitted data block can be used. Even data block DB165 or the axis data block are
possible.
Indirect parameter assignment requires data words DWI and DW2 of the open data block.
When using DB1 65, conflicts do not arise, sinceFB165 uses DW3 to DW47 as its working area. If
the axis data block is open before FBI 65 is called, you must enter at least the value 3 in DW2
(parameter DWNR) as the first data word, to ensure that the data are not overwritten when using
indirect parameter assignment.
Structure of the data block with indirect parameter assignment.
Free
Parameter DBNR KY DB type, DB number
Parameter DWNR (first data word)
You must supply values for DW1 and DW2 when using indirect parameter assignment before
function block FB165 is called.
The DB type (DL1 ) and DB number (DR1 ) define the axis data block. The DW number (DW2) indi-
cates the start of the job field of the job to be executed in the axis data block.
6 - 3 6
value KY 0,0
of the axis data block
Recommended
data format
KH
KY
KF

Advertisement

Table of Contents
loading

Table of Contents