Butler Dry-Contacts in e:script

e:cue Forum Foren English Discussion Forums e:script Macro Language (E) Butler Dry-Contacts in e:script

Ansicht von 1 Antwort-Thema
  • Autor
    Beiträge
    • #218518
      m.holzhauer
      Teilnehmer

      Hello,

      I don’t find any information on how to read the state of the dry-contacts of the butler(s) and I don’t have any such device here to try.
      Is it the same way as I access the ports of the Moxa- and W&T-devices with following function?
      int Hi_or_Lo = DriverGetInputStatus (Handle, PortNr);

      Thanks a lot
      Martin

    • #226414
      bkruse
      Teilnehmer

      Hello Martin,

      your assumption is correct.
      int handle = DriverGetHandle(“dmxout#1”);
      int i;
      for (i=0; i<8; i++)
      printf("port %d is %dn", i, DriverGetInputStatus(handle, i));
      [/ts]
      Note: the ports are 0-based in e:script, but 1-based labeling on Butler case ; )

      Best regards,
      Björn

Ansicht von 1 Antwort-Thema
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.