- Posts: 1317
- Thank you received: 454
(Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
1 year 1 month ago #335437
by Hakan
Replied by Hakan on topic (Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
Don't see anything wrong there.
To try to diagnose this, we would need to see
ini file
hal file
ethercat-conf.xml file
and last say 40 lines of ouput from the command "sudo dmesg"
To try to diagnose this, we would need to see
ini file
hal file
ethercat-conf.xml file
and last say 40 lines of ouput from the command "sudo dmesg"
Please Log in or Create an account to join the conversation.
1 year 1 month ago - 1 year 1 month ago #335439
by kb58
Replied by kb58 on topic (Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
Files attached.
Last edit: 1 year 1 month ago by kb58.
Please Log in or Create an account to join the conversation.
1 year 1 month ago - 1 year 1 month ago #335446
by Hakan
Replied by Hakan on topic (Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
"Invalid output mapping" is what it says.
infosys.beckhoff.com/english.php?content...stem/1058704779.html
What I think you should do is minimize the config to one slave, slave 0, and make that go OP.
Comment out all references to the other slaves lcec.0.1 and lcec.0.2 in the hal files.
Comment out/remove all sdoconfigs from ethercat-conf.xml and only leave slave 0 in there.
Comment out pdos, leave 6040, 6060, 607a, 6041,6061,6064 only.
With that, the slave should go to OP mode, check with "ethercat slaves".
Then gradually bring back the mods you took out, and fix what doesn't work.
What I think you should do is minimize the config to one slave, slave 0, and make that go OP.
Comment out all references to the other slaves lcec.0.1 and lcec.0.2 in the hal files.
Comment out/remove all sdoconfigs from ethercat-conf.xml and only leave slave 0 in there.
Comment out pdos, leave 6040, 6060, 607a, 6041,6061,6064 only.
With that, the slave should go to OP mode, check with "ethercat slaves".
Then gradually bring back the mods you took out, and fix what doesn't work.
Last edit: 1 year 1 month ago by Hakan. Reason: link to beckhoff
The following user(s) said Thank You: kb58
Please Log in or Create an account to join the conversation.
1 year 1 month ago #335456
by kb58
Replied by kb58 on topic (Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
Thank you very much! Though I don't know Linux or XML, I'm familiar with other languages so feel assured that I can get myself in way over my head! First thing I'll do is save off a backup, then give your suggestion a go.
Thanks again.
Thanks again.
Please Log in or Create an account to join the conversation.
1 year 1 month ago - 1 year 1 month ago #335463
by kb58
Replied by kb58 on topic (Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
I followed your suggestions and am running into the following errors:
Machine configuration directory is '/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM'
Machine configuration file is '2axis-WireEDM.ini'
INIFILE=/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM/2axis-WireEDM.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=baxkins
PARAMETER_FILE=baxedm_mm.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=XYZ
KINEMATICS=baxkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./2axis-WireEDM.hal
Shutting down and cleaning up LinuxCNC...
*** baxkins.comp setup ok
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
./2axis-WireEDM.hal:51: Pin 'lcec.0.0.actual-velocity' does not exist
5318
Stopping realtime threads
Unloading hal components
Traceback (most recent call last):
File "/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM/baxuipushbuttons.py", line 168, in <module>
Traceback (most recent call last):
File "/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM/baxmisc.py", line 462, in <module>
while True:
KeyboardInterrupt
time.sleep(0.01)
KeyboardInterrupt
baxkinsdata: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
Note: Using POSIX realtime
Machine configuration directory is '/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM'
Machine configuration file is '2axis-WireEDM.ini'
INIFILE=/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM/2axis-WireEDM.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=baxkins
PARAMETER_FILE=baxedm_mm.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=XYZ
KINEMATICS=baxkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./2axis-WireEDM.hal
Shutting down and cleaning up LinuxCNC...
*** baxkins.comp setup ok
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
./2axis-WireEDM.hal:51: Pin 'lcec.0.0.actual-velocity' does not exist
5318
Stopping realtime threads
Unloading hal components
Traceback (most recent call last):
File "/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM/baxuipushbuttons.py", line 168, in <module>
Traceback (most recent call last):
File "/home/kurt/linuxcnc/configs/BaxEDM-2axis-WireEDM/baxmisc.py", line 462, in <module>
while True:
KeyboardInterrupt
time.sleep(0.01)
KeyboardInterrupt
baxkinsdata: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
Note: Using POSIX realtime
Last edit: 1 year 1 month ago by kb58.
Please Log in or Create an account to join the conversation.
1 year 1 month ago - 1 year 1 month ago #335467
by kb58
Replied by kb58 on topic (Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60
I went back and carefully made the mods again, in case I missed something, but it still reports errors. Through a great deal of trial and error, I found that some of the configurations marked for removal must remain in the XML file for the program to run without error. Deleting any of the 0x60xx vars below cause many errors. Regardless, even with all the other mods in place, it's still stuck at "PrOp."
<slave idx="0" type="generic" vid="00000a88" pid="0A880002" configPdos="true">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0" />
<sdoConfig idx="60FE" subIdx="2"> <!-- -->
<sdoDataRaw data="00 00 03 00" /> <!-- set the bit mask for out1 and out2 (bit 16 and 17 should be 1) -->
</sdoConfig>
<!-- Note: 0x2007 address default value is 0x00000006, not what the manual claims -->
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="60FE" subIdx="1" bitLen="32" halPin="set60FE-1" halType="u32" />
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword" halType="u32" />
<pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="opmode" halType="s32" />
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position" halType="s32" />
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1a00">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="cia-statusword" halType="u32" />
<pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="opmode-display" halType="s32" />
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-position" halType="s32" />
<pdoEntry idx="60FD" subIdx="00" bitLen="32" halPin="digital-inputs" halType="u32" />
</pdo>
</syncManager>
</slave>
<slave idx="0" type="generic" vid="00000a88" pid="0A880002" configPdos="true">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0" />
<sdoConfig idx="60FE" subIdx="2"> <!-- -->
<sdoDataRaw data="00 00 03 00" /> <!-- set the bit mask for out1 and out2 (bit 16 and 17 should be 1) -->
</sdoConfig>
<!-- Note: 0x2007 address default value is 0x00000006, not what the manual claims -->
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="60FE" subIdx="1" bitLen="32" halPin="set60FE-1" halType="u32" />
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword" halType="u32" />
<pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="opmode" halType="s32" />
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position" halType="s32" />
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1a00">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="cia-statusword" halType="u32" />
<pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="opmode-display" halType="s32" />
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-position" halType="s32" />
<pdoEntry idx="60FD" subIdx="00" bitLen="32" halPin="digital-inputs" halType="u32" />
</pdo>
</syncManager>
</slave>
Last edit: 1 year 1 month ago by kb58.
Please Log in or Create an account to join the conversation.
Time to create page: 0.318 seconds