[etherlab-dev] EtherCAT :: generating voltage onBeckhoff EL4732terminal fails

Daniel Bechter daniel.bechter at omicron.at
Fri Apr 17 11:25:11 CEST 2009


> That should be handled by the EC_WRITE_S16() macro. Did you use it?

Yes I did, I output 7FFF with EC_WRITE_S16(), which should translate to 10V.
>From the ethercat data command you can see that data is written to the image.
I again attach the code of my little example.

> THis looks strange. Could you please post the output of 'ethercat pdos
> -p<your slave>' after a power cycle?

root at SWES-Linux:/home/daniel/EtherCAT/ethercat-devel-r1680/tool# ./ethercat
pdos -p 1
SM0: PhysAddr 0x1000, DefaultSize    0, ControlRegister 0x64, Enable 9
  RxPDO 0x1680 "Ch1 CycleCount"
    PDO entry 0x7800:01, 16 bit, "Ch1 CycleCount"
  RxPDO 0x1600 "Ch1 Sample"
    PDO entry 0x7000:01, 16 bit, "Ch1 Value"
SM1: PhysAddr 0x1400, DefaultSize    0, ControlRegister 0x64, Enable 9
  RxPDO 0x1780 "Ch2 CycleCount"
    PDO entry 0x7800:02, 16 bit, "Ch2 CycleCount"
  RxPDO 0x1700 "Ch2 Sample"
    PDO entry 0x7000:02, 16 bit, "Ch2 Value"
SM2: PhysAddr 0x0998, DefaultSize    0, ControlRegister 0x00, Enable 4
  TxPDO 0x1a82 "StartTimeNextOutput"
    PDO entry 0x1d09:98, 32 bit, "StartTimeNextOutput"

Thanks for your help!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: application/octet-stream
Size: 10107 bytes
Desc: main.c
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20090417/1df247d8/attachment-0003.obj>


More information about the Etherlab-dev mailing list