Siemens SIMATIC S5 Manual page 219

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

Advertisement

The Standard Function Block FB164
6.2.9
Using Function Block FB164
In cyclic operation it is not possible to address a module both with indirect and direct para-
meter assignment.
Function block FBI 64 works with data block DB1 64. This must be installed up to and including
data word DW15. A particular assignment of the data words is not necessary.
Data block DB164 is divided into two areas, in which data words DW1 to DW7 are reserved for in-
direct assignment of parameters to the function block. Data wordsDW8toDW15 are the working
area for FB1 84. You must not change the working area.
Before calling FB1 64, the axis parameters (byte, word and double word parameters) must be
written to the axis data block (parameter DBNR) as required for the mode to be started. The data
block must be a minimum of x words long, where
x . parameter DWNR + 19
axis 1 : parameter DWNR = 1
axis 2 : parameter
axis 3 : parameter DWNR = 41 -> x = 60
If only one axis is required, the data block must be available up to and including data word DW20,
If all three axes are used and if the parameters for the axes are contained in one data block, this
must be available up to and including data word DW60. The data block number (parameter
selected as required.
The data block is setup with a programmer, e.g. with the PG685 STEP5 under S5-DOS using the
following commands (see programming instructions for STEP 5):
P c
DWO: KY = 000,000
DW 1 : KF = +00000
DW 2: KH = 0000
DW3: KH = 0000
DW 19: KF = +00000
The function block FB164 must be called unconditionally once per cycle for each axis. This is
necessary in order to update the edge flags (binary identifiers in the axis DB) of the parameters
STAR, STOP, VORW, RUCKand UEBN,
6 - 2 6
(input)
(block)
(input device)
(block)
-> x = 20
enter key <1>
enter key <[>

Advertisement

Table of Contents
loading

Table of Contents