> 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?
r...@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!
main.c
Description: main.c
_______________________________________________ etherlab-dev mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-dev
