Parker Hannifin VIX500IM Stepper Machine User Manual


 
VIX IM MICROSTEPPER INDEXER DRIVE USER GUIDE
70
User Fault Byte Reporting
In exactly the same way as the status variable, the user fault status can be reported a byte
at a time, using UFn within a read command. For example to read or test the first 8 bits (first
byte) of the UF variable status word, use UF1. Since the status word consists of 4 bytes the
relevant part of the word can be read using UF1 (bits 1 to 8), UF2 (bits 9 to 16), UF3 (bits 17
to 24) or UF4 (bits 25 to 32).
Resetting User Fault Bits
The User Fault variable (UF) is cleared to all zeroes once it has been read by issuing a
R(UF) command. Reading individual bytes of the User Faults variable will not clear any
particular byte, so issuing a R(UF2) command will keep byte 2 bits intact. Also testing a
particular byte using the IF or TR command will keep bits intact.
Note: sending the drive an ON command will immediately clear the User Fault variable, all
bytes will be set to 00000000.
Byte Testing
Remember, the code can be used to test a particular byte of the User Fault word. For
example:
1IF(UF2,<>,10X10X10) ; if contents of UF2 does not equal 10X10X10 execute
; the next line of code, otherwise skip the next line
1A500 ; acceleration and deceleration changed to 500rps
2
if
; previous test was true
1R(UF2) ; read the value of byte 2 of the user fault status word
*01010101 ; contents of byte 2
Note: When UF2 is tested or read it is not cleared to all zeroes.
This example uses a conditional test to compare UF2 with 10X10X10. The use of
conditional tests within IF and TR commands is described in the Conditional Code sub-
section.