Drv_Ctrl - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

DRV_CTRL

L
A
DRV_CTRL
D
EN
F
RUN
B
D
OFF2
OFF3
F_ACK
DIR
DRIVE
SPD_SP
S
CALL DRV_CTRL,RUN,
T
OFF2, OFF3,
L
F_ACK, DIR,
DRIVE,SPD_SP,
RSP_RCVD,ERR,
DRV_STAT,
DRV_SPD,
DRV_RUN,
DRV_DIR,
DRV_INH,
DRV_FLT
221
222 224
Note
Only one DRV_CTRL instruction should be assigned to each drive.
S7-200 Programmable Controller System Manual
A5E00066097-02
Using USS Protocol Instructions to Communicate with Drives
The DRV_CTRL instruction is used to control an ACTIVE
MicroMaster Drive. The DRV_CTRL instruction places
the selected commands in a communication buffer.
Commands in the buffer are sent to the addressed drive
(DRIVE parameter), if that drive has been selected in the
ACTIVE parameter of the USS_INIT instruction. Each
drive should have only one DRV_CTRL instruction.
The EN bit must be on to enable the DRV_CTRL
instruction. Typically, this instruction is always enabled.
RUN (RUN/STOP) indicates whether the drive is on (1)
or off (0). When the RUN bit is on, the MicroMaster Drive
RSP_R
receives a command to start running at the specified
ERR
speed and direction. In order for the drive to run, the
STATUS
following must be true:
SPEED
DRIVE must be selected as ACTIVE in USS_INIT.
RUN_EN
OFF1 and OFF2 must be set to 0.
DIR_CW
FAULT and INHIBIT must be 0.
INHIBIT
FAULT
When RUN is off, a command is sent to the MicroMaster
Drive to ramp the speed down until the motor comes to a
stop.
The OFF2 bit is used to allow the MicroMaster Drive to
coast to a stop. The OFF3 bit is used to command the
MicroMaster drive to stop quickly.
The F_ACK (Fault Acknowledge) bit is used to
acknowledge a fault in the drive. The drive clears the
fault (FAULT) when F_ACK goes from low to high.
The DIR (direction) bit indicates in which direction the
drive should move (0 - counterclockwise, 1 - clockwise).
The DRIVE (drive address) input is the address of the
MicroMaster Drive to which the DRV_CTRL command is
226
to be sent. Valid addresses are 0 to 31.
SPD_SP (speed setpoint) is drive speed as a percentage
of full speed (-200.0% to 200.0%). Negative values of
SPD_SP cause the drive to reverse its direction of
rotation.
11-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents