Hi Everybody,

I'm new to LinuxCNC and HAL, so before configuring AXIS I wanted to test my
new card 5i25+7i77 with analog output.

For that in mind, I did the following steps,

>> halrun
halcmd: loadrt trivkins
halcmd: loadrt motmod servo_period_nsec=1000000 num_joints=6
halcmd: loadrt hostmot2
halcmd: loadrt hm2_pci config="num_encoders=6 num_stepgens=0
sserial_port_0=000000xx"
halcmd: setp hm2_5i25.0.watchdog.timeout_ns 3000000
halcmd: addf hm2_5i25.0.read  servo-thread
halcmd: addf motion-command-handler  servo-thread
halcmd: addf motion-controller  servo-thread
halcmd: addf hm2_5i25.0.write servo-thread
halcmd: addf hm2_5i25.0.pet_watchdog servo-thread
halcmd: start
halcmd: setp hm2_5i25.0.7i77.0.1.analogena TRUE
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 2.5

However, there is no output in 7i77 analog chanel 0. It seems I missed
something.

show pin shows me,

     7  bit   IN           TRUE  hm2_5i25.0.7i77.0.1.analogena
     7  float IN            2.5  hm2_5i25.0.7i77.0.1.analogout0
     7  float IN              0  hm2_5i25.0.7i77.0.1.analogout1
     7  float IN              0  hm2_5i25.0.7i77.0.1.analogout2
     7  float IN              0  hm2_5i25.0.7i77.0.1.analogout3
     7  float IN              0  hm2_5i25.0.7i77.0.1.analogout4
     7  float IN              0  hm2_5i25.0.7i77.0.1.analogout5
     7  bit   IN          FALSE  hm2_5i25.0.7i77.0.1.spinena
     7  s32   OUT             0  hm2_5i25.0.encoder.00.count
     7  s32   OUT             0  hm2_5i25.0.encoder.00.count-latched
     7  bit   I/O         FALSE  hm2_5i25.0.encoder.00.index-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.00.latch-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.00.latch-polarity
     7  float OUT             0  hm2_5i25.0.encoder.00.position
     7  float OUT             0  hm2_5i25.0.encoder.00.position-latched
     7  s32   OUT             0  hm2_5i25.0.encoder.00.rawcounts
     7  s32   OUT             0  hm2_5i25.0.encoder.00.rawlatch
     7  bit   IN          FALSE  hm2_5i25.0.encoder.00.reset
     7  float OUT             0  hm2_5i25.0.encoder.00.velocity
     7  s32   OUT             0  hm2_5i25.0.encoder.01.count
     7  s32   OUT             0  hm2_5i25.0.encoder.01.count-latched
     7  bit   I/O         FALSE  hm2_5i25.0.encoder.01.index-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.01.latch-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.01.latch-polarity
     7  float OUT             0  hm2_5i25.0.encoder.01.position
     7  float OUT             0  hm2_5i25.0.encoder.01.position-latched
     7  s32   OUT             0  hm2_5i25.0.encoder.01.rawcounts
     7  s32   OUT             0  hm2_5i25.0.encoder.01.rawlatch
     7  bit   IN          FALSE  hm2_5i25.0.encoder.01.reset
     7  float OUT             0  hm2_5i25.0.encoder.01.velocity
     7  s32   OUT             0  hm2_5i25.0.encoder.02.count
     7  s32   OUT             0  hm2_5i25.0.encoder.02.count-latched
     7  bit   I/O         FALSE  hm2_5i25.0.encoder.02.index-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.02.latch-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.02.latch-polarity
     7  float OUT             0  hm2_5i25.0.encoder.02.position
     7  float OUT             0  hm2_5i25.0.encoder.02.position-latched
     7  s32   OUT             0  hm2_5i25.0.encoder.02.rawcounts
     7  s32   OUT             0  hm2_5i25.0.encoder.02.rawlatch
     7  bit   IN          FALSE  hm2_5i25.0.encoder.02.reset
     7  float OUT             0  hm2_5i25.0.encoder.02.velocity
     7  s32   OUT             0  hm2_5i25.0.encoder.03.count
     7  s32   OUT             0  hm2_5i25.0.encoder.03.count-latched
     7  bit   I/O         FALSE  hm2_5i25.0.encoder.03.index-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.03.latch-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.03.latch-polarity
     7  float OUT             0  hm2_5i25.0.encoder.03.position
     7  float OUT             0  hm2_5i25.0.encoder.03.position-latched
     7  s32   OUT             0  hm2_5i25.0.encoder.03.rawcounts
     7  s32   OUT             0  hm2_5i25.0.encoder.03.rawlatch
     7  bit   IN          FALSE  hm2_5i25.0.encoder.03.reset
     7  float OUT             0  hm2_5i25.0.encoder.03.velocity
     7  s32   OUT             0  hm2_5i25.0.encoder.04.count
     7  s32   OUT             0  hm2_5i25.0.encoder.04.count-latched
     7  bit   I/O         FALSE  hm2_5i25.0.encoder.04.index-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.04.latch-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.04.latch-polarity
     7  float OUT             0  hm2_5i25.0.encoder.04.position
     7  float OUT             0  hm2_5i25.0.encoder.04.position-latched
     7  s32   OUT             1  hm2_5i25.0.encoder.04.rawcounts
     7  s32   OUT             1  hm2_5i25.0.encoder.04.rawlatch
     7  bit   IN          FALSE  hm2_5i25.0.encoder.04.reset
     7  float OUT             0  hm2_5i25.0.encoder.04.velocity
     7  s32   OUT             0  hm2_5i25.0.encoder.05.count
     7  s32   OUT             0  hm2_5i25.0.encoder.05.count-latched
     7  bit   I/O         FALSE  hm2_5i25.0.encoder.05.index-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.05.latch-enable
     7  bit   IN          FALSE  hm2_5i25.0.encoder.05.latch-polarity
     7  float OUT             0  hm2_5i25.0.encoder.05.position
     7  float OUT             0  hm2_5i25.0.encoder.05.position-latched
     7  s32   OUT             0  hm2_5i25.0.encoder.05.rawcounts
     7  s32   OUT             0  hm2_5i25.0.encoder.05.rawlatch
     7  bit   IN          FALSE  hm2_5i25.0.encoder.05.reset
     7  float OUT             0  hm2_5i25.0.encoder.05.velocity
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.000.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.000.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.000.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.001.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.001.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.001.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.002.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.002.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.002.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.003.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.003.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.004.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.004.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.005.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.005.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.005.out
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.006.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.006.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.006.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.007.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.007.in_not
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.008.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.008.in_not
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.009.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.009.in_not
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.010.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.010.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.011.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.011.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.012.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.012.in_not
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.013.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.013.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.014.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.014.in_not
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.015.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.015.in_not
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.016.in
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.016.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.017.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.017.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.017.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.018.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.018.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.018.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.019.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.019.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.019.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.020.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.020.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.020.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.021.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.021.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.021.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.022.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.022.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.022.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.023.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.023.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.023.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.024.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.024.in_not
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.025.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.025.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.025.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.026.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.026.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.026.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.027.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.027.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.027.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.028.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.028.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.028.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.029.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.029.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.029.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.030.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.030.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.030.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.031.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.031.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.031.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.032.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.032.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.032.out
     7  bit   OUT          TRUE  hm2_5i25.0.gpio.033.in
     7  bit   OUT         FALSE  hm2_5i25.0.gpio.033.in_not
     7  bit   IN          FALSE  hm2_5i25.0.gpio.033.out
     7  bit   IN          FALSE  hm2_5i25.0.led.CR01
     7  bit   IN          FALSE  hm2_5i25.0.led.CR02
     7  u32   IN     0x00000000  hm2_5i25.0.sserial.channel
     7  u32   IN     0x00000000  hm2_5i25.0.sserial.parameter
     7  u32   IN     0x00000000  hm2_5i25.0.sserial.port
     7  u32   OUT    0x00000000  hm2_5i25.0.sserial.port-0.fault-count
     7  u32   OUT    0x00000001  hm2_5i25.0.sserial.port-0.port_state
     7  bit   IN           TRUE  hm2_5i25.0.sserial.port-0.run
     7  bit   IN          FALSE  hm2_5i25.0.sserial.read
     7  u32   OUT    0x00000000  hm2_5i25.0.sserial.state
     7  u32   IN     0x00000000  hm2_5i25.0.sserial.value
     7  bit   IN          FALSE  hm2_5i25.0.sserial.write
     7  bit   I/O         FALSE  hm2_5i25.0.watchdog.has_bit

I really appreciate any help,



Eugenio.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to