I could not succeed yet in setting up things. My potentiometer range is from 0 to 10V, hopefully you can give me some little help more.
Currently my $iosys.ini file looks like this:
Code
[DEVNET]
;--------- Inputs ---------
ANIN1=5,0,16,2,CAL132767 ;Read Value from potentiometer 0 to 10V
INB0=5,0 ;inputs [1-8] from node 5 (WAGO)
INB1=5,1 ;inputs [9-16] from node 5 (WAGO)
INB2=5,2 ;inputs [17-24] from node 5 (WAGO)
INB3=6,0,x2 ;input 16bit [25-40] from node 6 (TDE AMP)
INB4=6,2,x2 ;input 16bit [41-56] from node 6 (TDE SPEED)
INB6=6,4,x2 ;input 16bit [57-72] from node 6 (TDE STATE)
;--------- Outputs ---------
OUTB0=5,0 ; output [1-8] to node 5
OUTB1=5,1 ;output [9-16] to node 5
OUTB2=5,2 ;output [17-24] to node 5
OUTB3=6,0,x4 ;output 32-bit [25-56] to node 6 (TDE Logic Functions State)
OUTB7=6,4,X2 ;output 16-bit [57-72] to node 6 (TDE Speed_ref)
Display More
and my $config.dat file looks like this:
Code
SIGNAL HSD_AMP $IN[25] to $IN[40] ;Read AMP from TDE 16bit
SIGNAL HSD_SPEED_IN $IN[41] TO $IN[56] ;Read Speed from TDE 16bit
SIGNAL HSD_STATE_IN $IN[57] TO $IN[72] ;Read State from TDE 16bit
SIGNAL HSD_LOGIC $OUT[25] TO $OUT[56] ;Write logic functions 32bit
SIGNAL HSD_SPEED $OUT[57] TO $OUT[72] ;Write Speed to TDE
I added a line to the $config.dat with SIGNAL R_OVERRIDE_IN $ANIN[1] to $ANIN[16], but I get a configuration error. I do not understand if the numbering of bits runs in parallel for digital and analog in/out or if they are consequential. Therefore I have to fix all bit numbers.
What is the right way to fix this?
Best,
Marco