Author Topic: Read an analog input from DSPMC-V2 with MACH3  (Read 6019 times)

0 Members and 1 Guest are viewing this topic.

Offline vasco.carvalho

  • Holding
  • Posts: 2
    • View Profile
Read an analog input from DSPMC-V2 with MACH3
« 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

Offline mrprecise44

  • Active Member
  • Posts: 278
    • View Profile
Re: Read an analog input from DSPMC-V2 with MACH3
« Reply #1 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