- Posts: 52
- Thank you received: 0
7i76e: MPG and Analog inputs with pncconf?
6 years 7 months ago #158975
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
Is the hm2_7i76e.0.read function definitely running?
- > I guess yes, coz I can read any digital inputs
- > I guess yes, coz I can read any digital inputs
Please Log in to join the conversation.
6 years 7 months ago #158976
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
I tried to import the signal through the variable "test_analog_input" with this line in custom.hal
net test_analog_input <= hm2_7i76e.0.7i76.0.0.analogin0
LinuxCNC start error:
PIN hm2_7i76e.0.7i76.0.0.analogin0 does not exist
Maybe some Loadrt missing ?
net test_analog_input <= hm2_7i76e.0.7i76.0.0.analogin0
LinuxCNC start error:
PIN hm2_7i76e.0.7i76.0.0.analogin0 does not exist
Maybe some Loadrt missing ?
Please Log in to join the conversation.
6 years 7 months ago #158986
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
I noticed one more thing...
the configuration (PNCConf) of the first 4 inputs on TB6 of the MESA should be foreseen for the analog-inputs (0..3).
By the way it seems only digital variables can be selected:
Limits
Manual Spindle CW
....
In fact I tried to set Manual Spindle CW as variable and "it works", I mean when I give the 24 Volts as input I get the signal = TRUE.
Moreover it's not possible to set the variable "Custom Signal"... it does not remain selected.
Anyway at least the raw signal should be readable somehow, noting the changing voltage value
the configuration (PNCConf) of the first 4 inputs on TB6 of the MESA should be foreseen for the analog-inputs (0..3).
By the way it seems only digital variables can be selected:
Limits
Manual Spindle CW
....
Attachment not found
In fact I tried to set Manual Spindle CW as variable and "it works", I mean when I give the 24 Volts as input I get the signal = TRUE.
Moreover it's not possible to set the variable "Custom Signal"... it does not remain selected.
Anyway at least the raw signal should be readable somehow, noting the changing voltage value
Please Log in to join the conversation.
6 years 7 months ago #158988
by PCW
Replied by PCW on topic 7i76e: MPG and Analog inputs with pncconf?
The analog value pins will only be available if you select sserial modes 1 or 2 for sserial channel 0 (via a "sserial_port_0=20xx" or similar token in the loadrt hm2_eth command line)
I doubt that pncconf supports connecting the analog signal, you must do this by hand editing the hal file
I doubt that pncconf supports connecting the analog signal, you must do this by hand editing the hal file
Please Log in to join the conversation.
6 years 7 months ago #158992
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
Thanks Peter,
Andy told me about the sserial-port connection... is that running anyway through ethernet, right ?
Is the hm2_7i76e.0.read function definitely running?
-> how to check it ?
The sserial is defined in hal as following, is it correct ?
and the input signal (defined digital) is imported from PNCConfig as following (should be corrected with the analog signal when imported correctly)
Andy told me about the sserial-port connection... is that running anyway through ethernet, right ?
Is the hm2_7i76e.0.read function definitely running?
-> how to check it ?
The sserial is defined in hal as following, is it correct ?
Attachment not found
and the input signal (defined digital) is imported from PNCConfig as following (should be corrected with the analog signal when imported correctly)
Attachment not found
Please Log in to join the conversation.
6 years 7 months ago #158993
by PCW
Replied by PCW on topic 7i76e: MPG and Analog inputs with pncconf?
You would need to change
sserial_port_0=00xxxx
to
sserial_port_0=20xxxx
or
sserial_port_0=10xxxx
to get access to the 7I76E analog inputs
sserial_port_0=00xxxx
to
sserial_port_0=20xxxx
or
sserial_port_0=10xxxx
to get access to the 7I76E analog inputs
Please Log in to join the conversation.
6 years 7 months ago #158995
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
will give a try...
finally I can read-in the analog input value from "hm2_7i76e.0.7i76.0.0.input-00"
-> how to define a variable where to store it
net "variable" <= hm2_7i76e.0.7i76.0.0.input-00 ?
finally I can read-in the analog input value from "hm2_7i76e.0.7i76.0.0.input-00"
-> how to define a variable where to store it
net "variable" <= hm2_7i76e.0.7i76.0.0.input-00 ?
Please Log in to join the conversation.
6 years 7 months ago #158996
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
what does define 20xxxx or 10xxxx ?
Please Log in to join the conversation.
6 years 7 months ago #158997
by Arro
Replied by Arro on topic 7i76e: MPG and Analog inputs with pncconf?
smart serial definition on PNCConfig
Attachment not found
Please Log in to join the conversation.
6 years 7 months ago #158999
by PCW
Replied by PCW on topic 7i76e: MPG and Analog inputs with pncconf?
The net command would be something like
net 7i76_analog0 <= hm2_7i76e.0.7i76.0.0.analogin0 => some_pin
The sserial_port_0="2134XXXX" statement sets
sserial port 0 channel 0 to mode 2
sserial port 0 channel 1 to mode 1
sserial port 0 channel 2 to mode 3
sserial port 0 channel 3 to mode 4
and disables sserial port 0 channels 4..7
man hostmot2
net 7i76_analog0 <= hm2_7i76e.0.7i76.0.0.analogin0 => some_pin
The sserial_port_0="2134XXXX" statement sets
sserial port 0 channel 0 to mode 2
sserial port 0 channel 1 to mode 1
sserial port 0 channel 2 to mode 3
sserial port 0 channel 3 to mode 4
and disables sserial port 0 channels 4..7
man hostmot2
Please Log in to join the conversation.
Time to create page: 0.071 seconds
