[etherlab-users] The working counter is always 0.
Sam Chien
sam.ethercat at gmail.com
Fri Jun 15 05:48:03 CEST 2012
Hi,
I have a big problem with TI AM3359ICE, the working_count still 0.
sam at debian:/opt/etherlab/bin$ sudo ./ethercat domain -v
Domain0: LogBaseAddr 0x00000000, Size 8, WorkingCounter 0/3
SlaveConfig 0:0, SM3 ( Input), LogAddr 0x00000000, Size 4
00 00 00 00
SlaveConfig 0:0, SM2 (Output), LogAddr 0x00000004, Size 4
00 00 00 00
That means slave doesn't answer the master, right??
when running the application, i get messages below
[ 8843.093320] EtherCAT DEBUG 0: Stopping master thread.
[ 8843.093355] EtherCAT DEBUG 0: Master IDLE thread exiting...
[ 8843.093396] EtherCAT 0: Master thread exited.
[ 8843.093402] EtherCAT DEBUG 0: FSM datagram is f5db2be0.
[ 8843.093404] EtherCAT 0: Starting EtherCAT-OP thread.
[ 8843.093491] EtherCAT DEBUG 0: Operation thread running with fsm interval
= 4000 us, max data size=45000
[ 8843.093495] EtherCAT DEBUG 0: mmap()
[ 8843.093500] EtherCAT WARNING 0: 1 datagram UNMATCHED!
[ 8843.093503] EtherCAT DEBUG 0: Vma fault, virtual_address = b7764000,
offset = 0, page = c2c874c0
[ 8845.095442] EtherCAT DEBUG 0: Configuration changed (aborting state
check).
[ 8845.095446] EtherCAT DEBUG 0: Writing system time offsets...
[ 8845.095449] EtherCAT WARNING 0: No app_time received up to now, but
master already active.
[ 8845.095451] EtherCAT DEBUG 0: Requesting OP...
[ 8845.135401] EtherCAT DEBUG 0-0: Changing state from PREOP to OP.
[ 8845.135405] EtherCAT DEBUG 0-0: Configuring...
[ 8845.171887] EtherCAT DEBUG 0-0: Now in INIT.
[ 8845.171888] EtherCAT DEBUG 0-0: Clearing FMMU configurations...
[ 8845.191858] EtherCAT DEBUG 0-0: Clearing sync manager configurations...
[ 8845.211832] EtherCAT DEBUG 0-0: Configuring mailbox sync managers...
[ 8845.211834] EtherCAT DEBUG 0-0: SM0: Addr 0x1000, Size 128, Ctrl 0x26,
En 1
[ 8845.211836] EtherCAT DEBUG 0-0: SM1: Addr 0x1400, Size 128, Ctrl 0x22,
En 1
[ 8845.271751] EtherCAT DEBUG 0-0: Now in PREOP.
[ 8845.271758] EtherCAT DEBUG 0-0: SM2: Addr 0x1800, Size 4, Ctrl 0x64,
En 1
[ 8845.271759] EtherCAT DEBUG 0-0: SM3: Addr 0x1C00, Size 4, Ctrl 0x20,
En 1
[ 8845.291725] EtherCAT DEBUG 0 0:0: FMMU: LogAddr 0x00000000, Size 4,
PhysAddr 0x1C00, SM3, Dir in
[ 8845.291727] EtherCAT DEBUG 0 0:0: FMMU: LogAddr 0x00000004, Size 4,
PhysAddr 0x1800, SM2, Dir out
[ 8845.351644] EtherCAT DEBUG 0-0: Now in SAFEOP.
[ 8845.391591] EtherCAT DEBUG 0-0: Now in OP. Finished configuration.
[ 8845.415009] EtherCAT 0: Slave states: OP.
sam at debian:/opt/etherlab/bin$ sudo ./ethercat config -v
Alias: 0
Position: 0
Vendor Id: 0xe000059d
Product code: 0x54490001
Attached slave: 0 (OP)
Watchdog divider: (Default)
Watchdog intervals: (Default)
SM2, Dir: Output, Watchdog: Enable
PDO 0x1601
PDO entry 0x7010:00, 32 bit
SM3, Dir: Input, Watchdog: Disable
PDO 0x1a00
PDO entry 0x6000:00, 32 bit
SDO configuration:
None.
IDN configuration:
None.
Do I miss some configuration??
In windows with twincat master, I can get digital input data and set
digital output to turn led on.
Any suggestion, thanks...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20120614/fae51613/attachment-0003.htm>
More information about the Etherlab-users
mailing list