Machsupport Forum

Third party software and hardware support forums. => dspMC/IP Motion Controller => Topic started by: vasco.carvalho on October 09, 2012, 11:18:05 AM

Title: Read an analog input from DSPMC-V2 with MACH3
Post by: vasco.carvalho on October 09, 2012, 11:18:05 AM
Hello I'm using a DSPMC-V2 and MACH3. I already have motors, connectors etc... everything works well.
But, now I need read a analog input and I don't know how.
I'm using the pin "analog input 0" of the connector "J2-ANALOG I/O".

Thank you
Vasco Carvalho
Portugal
Title: Re: Read an analog input from DSPMC-V2 with MACH3
Post by: mrprecise44 on October 13, 2012, 08:52:56 PM
Vasco:
Read up on brains. I don't have the v.2, with the built in analog inputs. My dspmc is the older version, and I use a PLC. The brain in Mach3 reads the "address" of the analog input, and activates the appropriate OEM code for Mach3.

On my mill, the plc address for the Feedrate is 28,682; the OEM code for the brain is 821.

Rapid override address is 28683; OEM code for the brain is 223.

Spindle percent override address is 28684; OEM code for the brain is 74

You must put a formula in the brain, to achieve the correct value.

John