[etherlab-users] Setting a port to open
fp at igh-essen.com
Wed Aug 27 10:58:46 CEST 2008
On Tue, Aug 26, 2008 at 10:11:31PM -0700, Aaron Edsinger wrote:
> Hello. I am trying to set port 3 on the ET1200 to open, or auto. By
> default it is set to closed, and the master must manually set it to open
> by changing bits 15/14 in register 0x0100 on the ET1200. Has anyone done
> this with success?
yes. The attached patch adds physical-memory read/write operations to
the master 1.4. They can be accessed with the ethercat tool. Though this
is not a permanent solution for this problem, you could try opening the
port via userspace with something like:
echo -ne \\0<octal-byte> | ethercat phy_write -p<your-slave> 0x0100 -
> Or can someone suggest the proper way to patch the
> EtherLab master to do this? I have modified fsm_slave.c (by adding a new
> fsm state) to do this but without any luck.
This is the correct approach. It would have to be done in the slave
configuration state machine, perhaps before going to PREOP.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5160 bytes
Desc: not available
More information about the Etherlab-users