Closed Hopperpop closed 4 months ago
Hi @Hopperpop!
That certainly would be one option. I remember connecting to EtherCAT devices by creating the route manually to StaticRoutes.xml. I need to test this.
I will look into this during development of v2 version.
In version 2, every method has optional parameter targetOpts
(targetOpts: Partial<AmsAddress> = {}
), that allows providing amsNetId and/or adsPort. This way it's easily possible to connect different ports with the same connection.
To read CoE data from an EtherCat master over ads, you need to use another AMS_NetId than the one you use for setting up the route. Standard the first EtherCat master is assigned x.x.x.x.2.1. The raw read-write-read/write commands should have an additional optional Ams_NetId argument to make it possible to send commands to other ads-devices like an EtherCat master.
Does this make sense? Or is this already possible in another way?