Difference between revisions of "MC-Basic:axis.DRIVESTATUS"
m (Text replace - "Axystems:" to "") |
|||
Line 81: | Line 81: | ||
|SEE ALSO= | |SEE ALSO= | ||
* [[MC-Basic:axis.DRIVECONTROL|axis.DRIVECONTROL]] | * [[MC-Basic:axis.DRIVECONTROL|axis.DRIVECONTROL]] | ||
− | * [[MC-Basic: | + | * [[MC-Basic:PROCEDURECHANGEBIT|axis.PROCEDURECHANGEBIT]] |
* [[MC-Basic:axis.RTSB1 MODE|axis.RTSB1_MODE]] | * [[MC-Basic:axis.RTSB1 MODE|axis.RTSB1_MODE]] | ||
* [[MC-Basic:axis.RTSB2 MODE|axis.RTSB2_MODE]] | * [[MC-Basic:axis.RTSB2 MODE|axis.RTSB2_MODE]] |
Revision as of 10:49, 22 May 2014
This read-only property queries the drive status. The drive status is returned every SERCOS communication cycle and comprises 32 bits. Following are the most important bit descriptions. (Refer to the SERCOS specifications for more details.)
Bit 15 - Drive high power. 1 - high power on
Bit 14 - Drive status - 1 enabled, 0 disabled
Bit 13 - Drive Shutdown - Error in C1D
Bit 12 - Change bit for C2D
Bit 11 - Change bit for C3D
Bits 10, 9, 8 Actual operation mode
0 0 0 Primary operation mode (defined by S-0-0032)
0 0 1 Secondary operation mode 1 (defined by IDN 33)
0 1 0 Secondary operation mode 2 (defined by IDN 34)
0 1 1 Secondary operation mode 3 (defined by IDN 35)
Bit 7 - Real-time status bit 2
Bit 6 - Real-time status bit 1
Bit 5 - Procedure command change bit
Bit 4 - Parameterization levels (PL1, PL2) .
0 - PL1 and PL2 not active .
1- PL1 or PL2 active
Bit 3 - Status command value processing .
0 - Drive ignores the command values (e.g., during Halt drive, drive controlled functions, programmed delay times)
1 - Drive follows the command values
Bit 2 - Error in service channel
Bit 1 - Busy
0 Step finished, ready for new step
1 Step in progress, new step not allowed
Bit 0 - AHS . 0/1 Service transport handshake of the drive
Short form
<axis>.DStat
Syntax
?<axis>.DriveStatus
Availability
All versions
Type
Long
Scope
Configuration, Task or Terminal
Limitations
Read only. Executed only in SERCOS communication phase 4.
Examples
?a1.dstat
If (a1.dstat band 2^14) Then ‘Check whether the drive is enabled