Hi Aaron, 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. -- Best regards, Florian Pose http://etherlab.org
phy.patch.bz2
Description: Binary data
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
