134
Command, function and parameter description
Section 6-3
Examples:
Example 1
Reading the “Input signal selection 1” parameter, which contains a hexadeci-
mal selection value.
>> VR(0)=DRV_READ($50A)
>> PRINT HEX(VR(0))
2881
Reading the “Speed loop gain“ parameter, which contains an integer value.
>> PRINT DRV_READ($100)
80
Example 2
Monitoring cumulative load ratio (Un009) parameter.
>> PRINT DRV_READ($009,1)
Example 3
Reading the capacity of the connected Servomotor from Fn011-P.
>> PRINT DRV_READ(1,2)
3.0000
Apparently this is a 30 W Servomotor.
6-3-58
DRV_RESET
Type:
Servo Driver Command
Syntax:
DRV_RESET
Alternatives:
EX, INITIALISE
Description:
The DRV_RESET command will software reset both the Servo Driver as the
MC Unit. Execution of DRV_RESET will have the following actions:
• The Servo Driver parameter changes are initiated.
• Programs will read again from Flash memory and run depending on the
RUNTYPE settings. Be sure to write program data to Flash memory
before executing the command
• All data of Table and VR variables is erased and possibly re-read from
Flash memory.
• All axis parameters are set to default.
During the DRV_RESET communication between the MC Unit and other
devices is temporarily not possible. If a connection with Motion Perfect was
present, this will disconnect.
!Caution
Be sure that no Parameter Unit or Personal Computer Software is connected
to the Servo Driver when executing this command. Otherwise the program
task will be paused until the connection of the other device to the Servo Driver
is removed.
6-3-59
DRV_STATUS
Type:
Servo Driver Parameter
Description:
The DRV_STATUS parameter contains the current servo alarm code of the
Servo Driver. The alarm codes are given as hexadecimal values. No alarm
will return value 99 Hex. Please refer to 8-2 Error Handling for further details
on Servo Driver alarms.
Note This parameter is read-only.
See also:
DRV_CLEAR, HEX (PRINT)
Example:
The Servo Driver of this system has an overcurrent alarm:
>> PRINT HEX(DRV_STATUS)
10