7i76e: MPG and Analog inputs with pncconf?

More
6 years 7 months ago #158986 by Arro
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

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #158988 by PCW
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

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #158992 by Arro
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)

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #158993 by PCW
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
Last edit: 6 years 7 months ago by PCW.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #158995 by Arro
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 ?

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #158996 by Arro
what does define 20xxxx or 10xxxx ?

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.494 seconds
Powered by Kunena Forum