Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

EtherCAT : enable/disable slave by IEC code

totorovic
2022-11-23
2023-01-06
  • totorovic - 2022-11-23

    Hello,

    Codesys IDE : 3.5.17.21
    Master Ethercat : 3.5.17.0

    When we need to disable/enable a Ethercat Slave by IEC code, the following code could be executed and works fine if we don't executed it on program startup :

    // Disable
    Slavename.SlaveEnable := FALSE;
    
    // Enable
    Slavename.SlaveEnable := TRUE;
    

    Why there is no auto-completion for this ?
    Why it is not related in the Ethercat help ?

    What are the tips or restrictions on using this code?

    Thank you

     
    πŸ‘
    1
  • mahmutonx - 2023-01-06
     

    Last edit: mahmutonx 2023-01-06
  • mahmutonx - 2023-01-06
     

    Last edit: mahmutonx 2023-01-06

Log in to post a comment.