REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. HW/SW integration
    3. Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • B

      SPI Communication / Rexlang / RelayPlate / DAQCPlate

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      1k Views
      cechuratC

      Hi Paul,

      thanks for reaching out. You can now integrate Python scripts within REXYGEN 2.50.10 - for upgrade see post https://forum.rexygen.com/topic/120/installation-of-rexygen-2-50-10-testing

      Python block documentaton: https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/PYTHON.html#x272-27100016

      Let us know if it helped.

      Regards,
      Tomas

    • S

      Best way to send commands over Ethernet to a 2Dcode (QRcode) reader

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      912 Views
      cechuratC

      Hi Ivan,

      thank you for your question.
      Using REXLANG function block you can manage Ethernet communication - see REXLANG documentation - part Communication functions: https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=447

      Have a look also at "0504-01 Generic UDP Sender Receiver" example which can help you to start with the implementation.

      Regards, Tomas

    • S

      Connecting Racing Wheel to REXYGEN

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      3k Views
      jaroslav_sobotaJ

      Thanks for the explanation, now I understand. Nice solution.

      Jaroslav

    • H

      Telegraf (influxDB) integration

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      2k Views
      H

      Hi @Scoobsalamander, thanks for info, I will look into it.

      Hubert

    • S

      Ethercat compatible?

      Watching Ignoring Scheduled Pinned Locked Moved
      13
      0 Votes
      13 Posts
      6k Views
      S

      No problem, it is only for some hobby-related stuff so no rush.

      Grtz,

      Kris

    • C

      Interfacing SX1509 pin expander

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      2k Views
      cechuratC

      Hi Chris,

      thank you for reaching out.

      Yes, it is possible to interface with SX1509 via I2C using REXYGEN. However, it will require a bit of hand-coding.

      Have a look at function block called REXLANG and its function "OpenI2C" - https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=439

      There are also some examples on I2C communication available - "0502 Generic I2C Communication" folder in Examples library (which is part of REXYGEN Studio) - these might help you to see how to implement the I2C communication according to your needs.

      Let us know about your progress.

      Regards, Tomas

    • C

      SPI communication in REXLANG

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      2k Views
      jaroslav_sobotaJ

      Hi,

      In this case you just use spi_bufTx[0] = 0;

      If you wanted e.g. SPI_MODE = 2 and LSBFIRST, you would use

      spi_bufTx[0] = 2 | 8;

      In other words, the first 2 bits define mode, the 3rd bit defines CS behavior, the 4th defines LSB etc.

      CS signal is controlled by operating system. You can only change its behavior by the 3rd bit as mentioned above.

      As for the delay function, I have turned it into a separate topic.

      Best regards,
      Jaroslav

    This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

    There is also an outdated REXYGEN community forum.

    Powered by NodeBB.