NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC PnCConf Wizard Mesa 5i20 - 7i37TA - 7i48

Welcome, Guest
Username: Password: Remember me

TOPIC: Mesa 5i20 - 7i37TA - 7i48

Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 10:35 #18997

I'm totally new to LinuxCNC. I'm working on a retrofit of a Tree Journeyman 320 vertical mill with Mesa boards and AMC drives.

I've done a bunch of wiring and I finally turned the computer on yesterday. I'm working on getting the relay outputs straightened out before I jump into getting the drives going. Here is my wiring diagram:


I generated my hal file with PnCConf. Wire 231 is connected to OUT7+ and wire 500 is connected to OUT7- on the 7i37. Here is part of the hal file.

# --- MACHINE-IS-ENABLED ---
setp hm2_5i20.0.gpio.047.is_output true
net machine-is-enabled hm2_5i20.0.gpio.047.out

I'm getting logic opposite to what I want. I open LinuxCNC. When OFF is displayed in lower left I can push the start button and the relay will energize. When ON is displayed I push start and nothing happens. I looked in HAL CONFIG and the machine-is-enabled signal is doing what I expect (TRUE when ON and FALSE when OFF).

Thanks.
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 10:40 #18998

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1671
  • Thank you received: 87
  • Karma: 116
7I37TA inputs and outputs are inverted so for the outputs you would need for example:
setp hm2_5i20.0.gpio.047.invert_output true
for inputs you use the in_not pins
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 12:05 #18999

I opened the hal file. Changed to this:
MACHINE-IS-ENABLED ---
setp hm2_5i20.0.gpio.047.invert_output true
net machine-is-enabled hm2_5i20.0.gpio.047.out

Now I can't get relay to energize in ON or OFF.

Also for inputs would I use something like this:
# --- HOME-X ---
net home-x <= hm2_5i20.0.gpio.025.in_not

Thanks.
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 12:25 #19000

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4962
  • Thank you received: 87
  • Karma: 134
Unless your home-x signal is connected to axis.0.home-sw-in somewhere else in your hal file you will need that in your net line.

net home-x axis.N.home-sw-in <= hm2_5i20.0.gpio.025.in_not

John
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 12:33 #19001

ok i get the inputs. why isnt this working for me:

MACHINE-IS-ENABLED ---
setp hm2_5i20.0.gpio.047.invert_output true
net machine-is-enabled hm2_5i20.0.gpio.047.out
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 12:52 #19002

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4962
  • Thank you received: 87
  • Karma: 134
Do you have something hooked to the machine-is-enabled signal somewhere else in your hal file to actually turn the output on?

John
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 05 Apr 2012 12:53 #19003

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4962
  • Thank you received: 87
  • Karma: 134
And have you read this basic hal info?

John
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 06 Apr 2012 09:19 #19013

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1671
  • Thank you received: 87
  • Karma: 116
"I opened the hal file. Changed to this:
MACHINE-IS-ENABLED ---
setp hm2_5i20.0.gpio.047.invert_output true
net machine-is-enabled hm2_5i20.0.gpio.047.out"

Note that you need both:

setp hm2_5i20.0.gpio.047.is_output true
setp hm2_5i20.0.gpio.047.invert_output true

in case that was not clear
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 06 Apr 2012 09:49 #19014

BigJohnT wrote:
And have you read this basic hal info?

John
Yes., but I need to read it several times and actually do it to understand it.

PCW wrote:
"I opened the hal file. Changed to this:
MACHINE-IS-ENABLED ---
setp hm2_5i20.0.gpio.047.invert_output true
net machine-is-enabled hm2_5i20.0.gpio.047.out"

Note that you need both:

setp hm2_5i20.0.gpio.047.is_output true
setp hm2_5i20.0.gpio.047.invert_output true

in case that was not clear

Ah ha!
The administrator has disabled public write access.

Re:Mesa 5i20 - 7i37TA - 7i48 08 Apr 2012 13:46 #19030

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1493
  • Thank you received: 40
  • Karma: 89
Obviously you figured out how to do this by hand but for others info:

In PNCconf there is a check button beside the signal pin type combo box, it is an invert checkbox.
Checking it will add the proper HAL code to invert the signal.
The administrator has disabled public write access.
Moderators: cmorley
Time to create page: 0.933 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.