Navigation

    REXYGEN Community Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. HW/SW integration
    3. Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • C

      SPI communication in REXLANG
      • contactform

      4
      0
      Votes
      4
      Posts
      1256
      Views

      jaroslav_sobota

      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

    • C

      Interfacing SX1509 pin expander
      • contactform

      2
      0
      Votes
      2
      Posts
      732
      Views

      cechurat

      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

    • S

      Ethercat compatible?
      • Scoobsalamander

      13
      0
      Votes
      13
      Posts
      2499
      Views

      S

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

      Grtz,

      Kris

    • H

      Telegraf (influxDB) integration
      • hubert

      3
      0
      Votes
      3
      Posts
      758
      Views

      H

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

      Hubert

    • S

      Connecting Racing Wheel to REXYGEN
      • stepan.ozana

      5
      0
      Votes
      5
      Posts
      1113
      Views

      jaroslav_sobota

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

      Jaroslav

    • S

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

      2
      0
      Votes
      2
      Posts
      130
      Views

      cechurat

      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

    • B

      SPI Communication / Rexlang / RelayPlate / DAQCPlate
      • Butcher

      3
      0
      Votes
      3
      Posts
      162
      Views

      cechurat

      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

      I2C with REXDuino
      • stepan.ozana

      2
      0
      Votes
      2
      Posts
      144
      Views

      S

      Me and my colleague finally implemented some functional solution. We make it public if anyone is interested. Many thanks to Ing. Tomáš Dočekal!
      MCP4725_REXDuino_2_50_10.zip

    • B

      SOLVED Can driver
      • Bentoni

      9
      0
      Votes
      9
      Posts
      298
      Views

      R

      Hi Toni,
      FilterIdMask can be used for filtering messages from more devices. In your case, there is only one device, so you can set FilterIdMask as 0xfff. For message decomposing, use the INTSM blocks (www.rexygen.com/doc/ENGLISH/MANUALS/BRef/INTSM.html). The basic example of using INTSM block can be found in this thread: https://forum.rexygen.com/topic/174/reading-and-writing-4-byte-floating-point-from-modbus?_=1609251284153
      For decomposing a byte value into bits can be used block BDOCT(www.rexygen.com/doc/ENGLISH/MANUALS/BRef/BDOCT.html).

      Cheers,
      Jan

    • B

      SOLVED I2C EZO component
      • belgacom

      20
      0
      Votes
      20
      Posts
      796
      Views

      R

      @belgacom You are welcome 🙂

    • S

      This topic is deleted!
      • sabinadipu53

      1
      0
      Votes
      1
      Posts
      14
      Views

      No one has replied

    • P

      eBUS
      • pancirm

      2
      0
      Votes
      2
      Posts
      374
      Views

      J

      @pancirm
      Hello Michal,
      as far as we know, no one implemented the eBUS in REXYGEN. However, implementation should be possible, for example, via eBUS <-> USB converter and REXLANG or Python programming block.

      Cheers,
      Jan

    • M

      VSD single wire Modbus
      • MikeyH

      1
      0
      Votes
      1
      Posts
      135
      Views

      No one has replied

    • K

      This topic is deleted!
      • kimtrong0147

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • N

      This topic is deleted!
      • NikalJohnson

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • H

      REXduino and TSC2007
      • hrabalo

      4
      0
      Votes
      4
      Posts
      186
      Views

      cechurat

      @hrabalo Hi,

      Thanks for getting back to us. I'm glad it works for you now.

      Good luck with your project.

      Cheers, Tomas

    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.