Thanks to Andy and Peter io is working

In the end it was to things not quite right:

- Vin was off on TB1 pin 5        (unable to communicate with field IO)

- Syntax errors in Hal              (functioning Hal below)

Hope this is some use to some one in the future.

thanks again linden



**# external output signals


net coolant-flood  =>  hm2_7i76e.0.7i76.0.0.output-12

# --- COOLANT-MIST ---

#net coolant-mist hm2_7i76e.0.0.7i76.0.0.output-01

# external input signals

# --- HOME-X ---
net home-x     <=  hm2_7i76e.0.7i76.0.0.input-20

# --- HOME-Y ---
net home-y     <=  hm2_7i76e.0.7i76.0.0.input-21

# --- HOME-Z ---
net home-z     <=  hm2_7i76e.0.7i76.0.0.input-22

On 2019-03-12 6:56 a.m., Peter C. Wallace wrote:
On Tue, 12 Mar 2019, Linden wrote:

Date: Tue, 12 Mar 2019 01:51:42 -0700
From: Linden <>
Reply-To: "Enhanced Machine Controller (EMC)"
Subject: [Emc-users] mesa 7i76e io

Hello all

    I am not sure if i understand correctly how the D0 work between hal and TB5&TB6

What I have currently is:

- Axis gui loads and displays with no errors

- 3 stepper motors configured and turning on command

- 24volts supplied to pin 5 of TB1 Ground to pin 8 of TB1 I also measure 24 volts between pin 8 Ground and pins 1 2 3 and 4 of TB1

- I do not get any measurable voltage between ground pin 8 of TB1 and any of the pins on TB5 & TB6 regardless of weather the check boxes for coolant are checked or not in the GUi

If I understand this correctly i would expect 24 volts from the field power on the active DO when the check box for coolant is checked. Is this assumption wrong??

How do the physical pins of TB5 & TB6 relate to the pin numbers in .hal??

Below is the .hal section regarding external signals. Is there some thing wrong here with the syntax?

Yes, the field outputs and outputs are named differently.
Typically you would never use GPIO pins on a 7I76/7I76E Here are the field I/O pins:

    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-00
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-00-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-01
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-01-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-02
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-02-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-03
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-03-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-04
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-04-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-05
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-05-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-06
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-06-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-07
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-07-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-08
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-08-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-09
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-09-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-10
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-10-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-11
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-11-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-12
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-12-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-13
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-13-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-14
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-14-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-15
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-15-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-16
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-16-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-17
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-17-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-18
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-18-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-19
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-19-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-20
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-20-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-21
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-21-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-22
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-22-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-23
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-23-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-24
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-24-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-25
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-25-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-26
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-26-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-27
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-27-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-28
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-28-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-29
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-29-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-30
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-30-not
    23  bit   OUT         FALSE  hm2_7i76e.0.7i76.0.0.input-31
    23  bit   OUT          TRUE  hm2_7i76e.0.7i76.0.0.input-31-not
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-00
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-01
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-02
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-03
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-04
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-05
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-06
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-07
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-08
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-09
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-10
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-11
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-12
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-13
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-14
    23  bit   IN          FALSE  hm2_7i76e.0.7i76.0.0.output-15

thanks linden

# external output signals

setp hm2_7i76e.0.gpio.049.is_output true
net coolant-flood hm2_7i76e.0.gpio.049.out

# --- COOLANT-MIST ---
setp hm2_7i76e.0.gpio.050.is_output true
net coolant-mist hm2_7i76e.0.gpio.050.out

# external input signals

# --- HOME-X ---
net home-x     <=

# --- HOME-Y ---
net home-y     <=

# --- HOME-Z ---
net home-z     <=

Peter Wallace
Mesa Electronics

(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.

Emc-users mailing list

Emc-users mailing list

Reply via email to