[etherlab-dev] EtherCAT :: generating voltage on Beckhoff EL4732 terminal fails
Daniel Bechter
daniel.bechter at omicron.at
Wed Apr 15 11:44:44 CEST 2009
Hey guys,
my name is Daniel Bechter and I am currently evaluating the EtherLab
EtherCAT-Master. I already succeeded in writing some sample tasks.
One for example reads out DIP switches (input data) and mirrors the binary
value, which is being set, to LED's (output data). This example works with
the Beckhoff EL9800 Evaluation-Board and its DIP switches and LED's connected
to the simple digital I/O interfaces of the ET1100 ASIC (configured for
16-bit digital I/O).
Another task is a port of the Beckhoff PLC application which communicates
with the Slave Sample Code written to the PIC on the Beckhoff EL9800
Evaluation-Board (ET1100 configured for SPI).
I then went a step further with Beckhoff EtherCAT terminals. My simple
configuration looks as follows:
EK1100 (coupler) -> EL4732 (analog out)
What I tried to do was generating a voltage on the analog output of the
EL4732. So I wrote a little task which maps SM0 (PDO's 0x1600 and 0x1680) and
then writes 0x7FFF (which the EL4732 should translate to 10V) to the offset
of PDO 0x1600 (Ch1 Sample Value) cyclicly. I tried to measure the voltage
with a multimeter, but I failed (measured 0V). Attached you will find some
files for debugging:
main.c: source code of the task
ec_user_example_output: console output of the task
commandline_tool_output: slaves, their XML device descriptions and states
when running the task, I/O data
syslog: EtherCAT-Master log messages
More information about the etherlab-dev
mailing list