If you have a question about the software please ask it here.
by walt_cnc » Fri Jul 08, 2022 4:49 pm
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!
-
walt_cnc
-
- Posts: 16
- Joined: Tue Jun 28, 2022 1:20 pm
by dezsoe » Fri Jul 08, 2022 9:09 pm
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;
-
dezsoe
-
- Posts: 2093
- Joined: Sun Mar 12, 2017 4:41 pm
- Location: Csörög, Hungary
by walt_cnc » Sat Jul 09, 2022 1:17 am
Thank You!!
-
walt_cnc
-
- Posts: 16
- Joined: Tue Jun 28, 2022 1:20 pm
Return to Ask a question from support here
Who is online
Users browsing this forum: No registered users and 25 guests