Page 1 of 1

how to get output voltage value from AXBB

PostPosted: Fri Jul 08, 2022 4:49 pm
by walt_cnc
So the AXBB output sends 0-10v to the spindle for speed control; works good...
How can I read the voltage value sent into a variable to use in a macro?
Thanks!

Re: how to get output voltage value from AXBB

PostPosted: Fri Jul 08, 2022 9:09 pm
by dezsoe
Read field #911. Its value will be 0..65535 which can be scaled down to 0..10 to get the voltage.

Code: Select all
double volts = AS3.Getfielddouble(911) / 65535.0 * 10.0;

Re: how to get output voltage value from AXBB

PostPosted: Sat Jul 09, 2022 1:17 am
by walt_cnc
Thank You!!