VB6 - Clear faults

In my application I need to check error status bits.
Since some of them are latched how can I reset them using VB6?
Thanks,
Michael

You can send the Clear Faults (4) command to the RMC. It will clear all the error bits whose underlying error condition has gone away.

Jacob,
I saw that but what is the syntax in VB? I couldn’t find that.
Thanks,
Michael

I don’t have VB6 to give you the exact syntax, but you just need to send the command number, which is 4, to the command register of the axis. Pretty much the same as sending any command, except that the Clear Faults command does not have any parameters, all you need to send is the command number.

I am curious why you are using VB6.

Jacob,
Thanks, it works. The syntax is: “rmc.WriteFFile fn150CommandArea, 0, 1, 4”

Why VB6. The ABCS is working for about 20 years and it has quite extensive software with about 15,000 lines of code including automatic data acquisition program, data reduction programs, data bases and other system utilities. To change it requires a lot of man hours. Also, VB is very friendly programming software and does the job quite well.

Until next request for help, thanks.
Michael