Ethercat HAL driver

More
6 years 8 months ago #157902 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi @jirKam,
Just add this line.
Code:
<slave idx="1" type="EL4004" name="EL4004"/>
greeting
Chimeno

Please Log in to join the conversation.

More
6 years 8 months ago #157903 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hello.
In the .xml file I have:
Code:
<masters> <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000"> <slave idx="0" type="EK1100" name="EK1100"/> <slave idx="1" type="EL1819" name="DIN1"/> <slave idx="2" type="EL1819" name="DIN2"/> <slave idx="3" type="EL2809" name="DOUT1"/> <slave idx="4" type="EL3064" name="AIN"/> <slave idx="5" type="EL4004" name="AOUT"/> <slave idx="6" type="EL2622" name="RELE1"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> </master> </masters>
but for EL4004 I'm still in PREOP mode. The other modules are OP.
And I do not know why.

For compilation I gave:
Code:
cd linuxcnc-ethercat sudo make clean sudo make -j4 cp src/lcec.so ~/linuxnc-dev/rtlib/ sudo make install
Everything went without error.

I thought you needed to sign another .xml file.
Like this:
Code:
https://docs.google.com/document/d/1GiB065ZIAaoMHPtVfTg9JV1Kn-19xGQl2X9DM9-THNM/edit
Thank you.

Please Log in to join the conversation.

More
6 years 8 months ago #157933 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi @jirKam,
EL2622 is a relay output device does not require DC mode, can you try it again?
Code:
<masters> <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000"> <slave idx="0" type="EK1100" name="EK1100"/> <slave idx="1" type="EL1819" name="DIN1"/> <slave idx="2" type="EL1819" name="DIN2"/> <slave idx="3" type="EL2809" name="DOUT1"/> <slave idx="4" type="EL3064" name="AIN"/> <slave idx="5" type="EL4004" name="AOUT"/> <slave idx="6" type="EL2622" name="RELE1"/> </master> </masters>
without or it works, you can pass me the linuxcnc-ethercat folder to see how the EL4004 controller is described.
Greeting
Chimeno

Please Log in to join the conversation.

More
6 years 8 months ago #157936 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hello.
Still is PREOP.
This is a test version.
The final version will be:
Code:
<masters> <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000"> <slave idx="0" type="EK1100" name="EK1100"/> <slave idx="1" type="EL1819" name="DIN1"/> <slave idx="2" type="EL1819" name="DIN2"/> <slave idx="3" type="EL2809" name="DOUT1"/> <slave idx="4" type="EL2809" name="DOUT2"/> <slave idx="5" type="EL3064" name="AIN"/> <slave idx="6" type="EL4004" name="AOUT"/> <slave idx="7" type="EL2622" name="RELE1"/> <slave idx="8" type="EL2622" name="RELE2"/> <slave idx="9" type="EL2622" name="RELE3"/> <slave idx="10" type="EL2622" name="RELE4"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> <slave idx="11" type="DeASDA" name="X"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> <slave idx="12" type="DeASDA" name="Y1"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> <slave idx="13" type="DeASDA" name="Y2"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> <slave idx="14" type="DeASDA" name="Z"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> <slave idx="15" type="DeASDA" name="A"> <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/> </slave> </master> </masters>

Thank you very much.
Jirka

Please Log in to join the conversation.

More
6 years 8 months ago #158221 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hello.
I tried another order of modules.
But still PREOP

Can you think of any solution?

Thank you very much.
Jirka
Code:
@CNCRouter:~$ ethercat slaves 0 0:0 OP + EK1100 EtherCAT-Koppler (2A E-Bus) 1 0:1 PREOP + EL4004 4K. Ana. Ausgang 0-10V, 12bit 2 0:2 OP + EL3064 4K.Ana. Eingang 0-10V 3 0:3 OP + EL2622 2K. Relais Ausgang, Schlie�er (230V AC / 30V DC) @CNCRouter:~$ ethercat slaves 0 0:0 OP + EK1100 EtherCAT-Koppler (2A E-Bus) 1 0:1 OP + EL1819 16K. Dig. Eingang 24V, 10�s 2 0:2 OP + EL1819 16K. Dig. Eingang 24V, 10�s 3 0:3 OP + EL2809 16K. Dig. Ausgang 24V, 0.5A 4 0:4 OP + EL3064 4K.Ana. Eingang 0-10V 5 0:5 PREOP + EL4004 4K. Ana. Ausgang 0-10V, 12bit 6 0:6 OP + EL2622 2K. Relais Ausgang, Schlie�er (230V AC / 30V DC)

Please Log in to join the conversation.

More
6 years 8 months ago #158228 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hi
Maybe the problem is here?

Please Log in to join the conversation.

More
6 years 8 months ago #158230 by tommylight
Replied by tommylight on topic Ethercat HAL driver
The first error is regarding an AMD Radeon graphic card, most probably a flashed card used for mining.
The last error is most probably due to an invalid entry in the /etc/fstab, usually searching for a partition that was there during install and now missing. A quick fix for that would be to edit the /etc/fstab and omit all the lines under the main partition line, save and reboot.

Please Log in to join the conversation.

More
6 years 8 months ago #158231 by jirkam
Replied by jirkam on topic Ethercat HAL driver
Hi.
Comment on the last two lines (#)?
Thanks
Code:
# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=d0e2d0a5-0ec2-4cdd-a552-73b48fbe497d / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=a124b862-e3c6-4322-9608-0c85930116c2 none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Please Log in to join the conversation.

More
6 years 8 months ago #158233 by tommylight
Replied by tommylight on topic Ethercat HAL driver
Not the first, just the second.
If you omit the first one the computer will not boot complaining about missing root partition.

Please Log in to join the conversation.

More
6 years 8 months ago #158234 by jirkam
Replied by jirkam on topic Ethercat HAL driver
I wouldn't like that. :)

Thus?

I'd hate to ruin something.

Thanks
Code:
UUID=d0e2d0a5-0ec2-4cdd-a552-73b48fbe497d / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation #UUID=a124b862-e3c6-4322-9608-0c85930116c2 none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Please Log in to join the conversation.

Time to create page: 0.224 seconds
Powered by Kunena Forum