Quick start manual
Premium and Advantys STB on Profibus DP.doc – Juni-05
Schneider Electric
37
Creating the
application
program
1
First, you need to declare
variables and assign them to
input and output data of the
drive island, assuming that
you do not intend to make use
of direct addresses.
Two types of variable are used
in the example program:
1. Individual variables for the
digital inputs and outputs
2. Structural variables for
data exchange with the
variable speed drive
2
Next, you need to program a
DriveCom state machine for
the purpose of controlling the
variable speed drive. For this
purpose, the example program
includes a dedicated function
block (DFB), which can be
called for each variable speed
drive. As a result, the
application remains flexible.
Two rotational directions and
two speeds, plus fault
acknowledgement, are
controlled via this function
block.
3
Finally, the DriveCom state
machine is connected (in this
case the function block) by
means of external logic, e.g.,
using the additional input and
output signals of the drive
island. Instead of this
connection, a graphic interface
was created in the example
program for the purpose of
controlling the drives. This
enables direct access to the
blocks.