Code Monkey home page Code Monkey logo

Comments (6)

bnjmnp avatar bnjmnp commented on July 17, 2024

Hi @ngblume,

You are talking about the digital input and digital output devices (EL1872/EL2872)? They don't support DC-Synchronisation, so for both of those guys you don't need any DC settings.

If I understand you right the outputs work fine on both 10ms and 100ms process data cycle time. But the inputs stay FALSE in both cases. So the digital inputs don't work at all?

from pysoem.

ngblume avatar ngblume commented on July 17, 2024

Hi @bnjmnp,

thanks for your answer!
I got it working properly (not the DC stuff, but the inputs and outputs including conversion to physical units), but I think it would help to get an idea of what DC is and how it is used (when not using TwinCat)..

Same for the timing in general..
I figured that the processdata thread updates info in the master object with each execution of the send and rec'v cycle.
So setting an output and directly afterwards reading it back with another module (i.e. setting with EL4114 and reading back with EL3144) might result in no immediate update on the outputs/inputs yet because the processdata thread hasn't run since the changes. Makes sense...

But I might need a little more infos....
Could you point me in the direction of some more info regarding these continuous tasks ?
I'm trying to understand the basic working principles of an EtherCAT master and from there work my way towards DC and setting custom PDOs, etc. ...

Thanks !

Cheers
Niels

from pysoem.

bnjmnp avatar bnjmnp commented on July 17, 2024

Hi Niels,

So far I don't know of any good books about this topic. But I find the datasheet of Beckhoff's ESC IP Core very helpful, and this is freely available on the net:
https://download.beckhoff.com/download/Document/io/ethercat-development-products/ethercat_esc_datasheet_sec1_technology_2i3.pdf

On the ETG Website you might also find some basic information, ether under technology or here under downloads in form of PDF documents.

Good luck!

Benjamin

from pysoem.

ngblume avatar ngblume commented on July 17, 2024

Hi,

thanks.. I will start there reading into the topic..

Last question: Can you give a rough guidance, as to how to set the cycle time for the separate send and receive process data thread? Just in general, not specific, since it clearly relies on the specific system...
Is usually 0.01 sufficient oder even already quite a high load for bus and / or computer / network interface ?

Thanks !

Cheers
Niels

from pysoem.

bnjmnp avatar bnjmnp commented on July 17, 2024

I'm not an expert but I think 1ms is a usual cycle time for PLCs. But that is dedicated hardware. However on a PC based system 10ms should not be to much of an issue.

from pysoem.

ngblume avatar ngblume commented on July 17, 2024

Forget to close this one...

from pysoem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.