Reference – Lenze E94P PositionServo with MVOB User Manual

Page 103

Advertising
background image

PM94H201B_13xxxxxx_EN

L

101

Reference

Table 59: STOREVARS

STOREVARS

EPM access statements STOREVARS

Statement

Purpose

STOREVARS is the command to store the values of the user variables (V0-V31) to the drive’s
EPM. Using this statement any combinations of variables V0-V31 can be stored to the EPM with a
single statement. Stores the values of the user’s variables (V0-V31) to the EPM. The purpose of the
STOREVARS command is to store user variables from the drives operational memory to the EPM
memory so they are retained on power down, or so they can be restored back to the operational
memory should their values be altered during the execution of the user program (or by host interface).

Syntax

STOREVARS [Va, Vx-Vy]
a,x,y

any number from 0 - 31

Remarks

Values that are stored in EPM memory for the User Variables V0-V31 (using StoreVars command) are
automatically transferred into operational memory at power up (a LoadVar statement is not required).
Should a User Variable be altered by the user program, it is altered only in the operational memory of
the drive and can be restored back to its EPM value using the LoadVars statement.
Care must be taken with the STOREVAR statement not to exceed EPM write capacity of 1 million
cycles.

See Also

LOADVARS

Example:

…{statements}…

V1=12

;Set V1=12 in drives operational memory (volatile)

…{statements}…

STOREVARS [V1]

;store V1 variable to EPM Memory (non-volatile)

…{statements}…

LOADVARS [V1]

;Restore value of V1 from EPM memory

END

;End main program

;--------------------------------------------------------

;Example to specify multiple variables list in a single STOREVARS statement

STOREVARS [V0,V1,V5-V20]

;store values of V0, V1, V5-V20

Table 60: VELOCITY ON/OFF

VELOCITY

ON/OFF

Velocity Mode

Statement

Purpose

The VELOCITY ON statement enables the drive to simulate velocity mode operation while remaining in
internal position mode. This allows the drive to transition between internal velocity and position mode
while the drive is still enabled. The VELOCITY OFF statement disables velocity mode and returns drive to
position mode. The velocity value for this mode is set by writing to the System Variable “VEL”. All position
related variables are valid in this mode.

Syntax

VELOCITY ON
VELOCITY OFF

Remarks

The “VELOCITY ON” statement has to be implemented when the drive is enabled. If the “VELOCITY ON”
statement is executed while the drive is disabled, fault # 27 - ”Motion Attempted While Drive Disabled” will
occur. Execution of any motion related profiles while the drive is in Velocity mode will be loaded into the
Motion Queue. When the “VELOCITY OFF” statement is executed the drive will default back to Position
mode and any motion commands contained in the Motion Queue will execute in sequence. Please note
that the “VEL” variable can be set on the fly, allowing dynamic control of the velocity.

See Also

Example:

VEL=0

;Set velocity to 0

VELOCITY ON

;Turn on Velocity Mode

VEL = 10

;Set velocity to 10

…{statements}

VELOCITY OFF

;Turn off Velocity Mode

Advertising