REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. Recent
    Log in to post
    Load new posts
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • M

      REXYGEN Studio 2.50.12.14711 (x64) freezing

      REXYGEN Studio
      • • • martinpies
      2
      1
      Votes
      2
      Posts
      164
      Views

      cechuratC

      @martinpies Hello Martin,

      Thank you for your feedback. I'm sorry to hear that you are struggling with using REXYGEN Studio. In version 2.50.12 there is a known issue with the closing of diagnostic protocol. The recommended workflow is disconnecting completely from the target (F8) before Compile and Download (F6). In other words - avoid reconnecting to the running target when developing the project.

      Please, let me know your findings.

      Cheers,
      Tomas

    • S

      HW PWM on RPi?

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • stepan.ozana
      2
      1
      Votes
      2
      Posts
      274
      Views

      J

      @stepan-ozana Hello, yes PWM flags should work as HW PWM on GPIO12, GPIO13, GPIO18, GPIO19 pins. The functionality should be the same as described here: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html
      https://www.electronicwings.com/raspberry-pi/raspberry-pi-pwm-generation-using-python-and-c

      Best regards,
      Jan

    • J

      PT100 thermocouple ADC conversion UniPi

      General
      • • • Jarek
      5
      1
      Votes
      5
      Posts
      363
      Views

      cechuratC

      @jarek If the UniPi you are using have RS485 bus it will work.

    • I

      Database connection with PHPMyAdmin

      Database (MySQL, MariaDB, PostgreSQL, MSSQL)
      • • • IstrateSorin01
      2
      1
      Votes
      2
      Posts
      322
      Views

      cechuratC

      @istratesorin01
      Hi Istrate,

      it seems that the issue is remote access to the Database which is forbidden by default. Have a look at this tutorial: https://webdock.io/en/docs/how-guides/database-guides/remote-access-your-mariadb-mysql-database-ubuntu-focal-mariadb-v106

      Kind regards,
      Tomas

    • M

      How to read/write to MySQL?

      Database (MySQL, MariaDB, PostgreSQL, MSSQL)
      • • • Mateo
      2
      1
      Votes
      2
      Posts
      275
      Views

      cechuratC

      Hi Mateo,

      Thank you for your question. The error you are referring to is not related to the Database connection - it's about the connection between Studio and the target device.

      I recommend you start with simple examples 0404-01 MySQL Simple Export and 0404-02 MySQL Simple Import.

      The most tricky part is remote access to the Database which is forbidden by default. Have a look at this tutorial: https://webdock.io/en/docs/how-guides/database-guides/remote-access-your-mariadb-mysql-database-ubuntu-focal-mariadb-v106

      First, you can try to run the Database on the same target as the REXYGEN is running. Send data locally from REXYGEN to MySQL DB should be done without any issues.

      Let me know if it helped.

      Cheers, Tomas

    • cechuratC

      Announcement of a new pre-release Version 3

      Development tools
      • beta studio • • cechurat
      17
      2
      Votes
      17
      Posts
      1.5k
      Views

      cechuratC

      @mikeyh Hi Mike,

      According to the screenshots provided, I would suspect that the Response timeout parameter in MBDrv is too short - did you try to enlarge it?

      I also use passive tag in my projects and don't face any issues when the communication parameters are correctly set.

      One more question: What is the RS485 Baudrate set in the Monarco Driver?

      Kind regards
      Tomas

    • C

      Delay function in REXLANG

      REXYGEN Studio
      • • • contactform
      3
      0
      Votes
      3
      Posts
      3.1k
      Views

      C

      @jaroslav_sobota said in Delay function in REXLANG:

      Hi Tobby,
      why do you need such a function?
      There is the Sleep() function in REXLANG, but it is highly recommended not to use it. You should write your REXLANG code so that it executes as fast as possible. For details see REXLANG documentation.
      Best regards,
      Jaroslav

      The "Sleep()" function in REXLANG should be avoided as it's recommended to write code that executes quickly for optimal performance. Refer to the REXLANG documentation for more details.

    • G

      ASCII Commands Over RS485

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • GeorgeDumitru
      19
      1
      Votes
      19
      Posts
      1.7k
      Views

      J

      @georgedumitru I think the best documentation is this thread here on the forum. Byte array reading from communication is also discussed there.

      Another helpful tool is definitely the example located at C:\Program Files\REX Controls\REXYGEN 2.50.12.14711\Examples\0203_Function_Blocks_REXLANG.

    • M

      SSD Storage

      Monarco HAT
      • • • MikeyH
      2
      0
      Votes
      2
      Posts
      221
      Views

      cechuratC

      Hi Mike,

      I know that @RexPeter use it on his setups with REXYGEN - maybe he can share some experiences with that.

      Kind Regards,
      Tomas

    • M

      Modbus RTU in REXLANG or Python

      Modbus RTU
      • • • MikeyH
      2
      0
      Votes
      2
      Posts
      493
      Views

      J

      Hi Mike,

      I recommend checking out the examples in the 0401_Modbus_RTU folder or take a look at the 0121-10_Monarco_HAT_Modbus_RTU_ADAM-4024 and 0121-11_Monarco_HAT_Modbus_RTU_Loopback_USB examples. These are all provided in REXLANG. Hopefully, these examples will provide some assistance.

      Cheers,
      Jan

    • M

      Modbus over RS485 and USB

      Monarco HAT
      • • • MikeyH
      2
      0
      Votes
      2
      Posts
      200
      Views

      J

      @mikeyh
      Hello Mike,

      Yes, it's possible to use both RS485 for RTU on the Monarco and the USB on the RPi for RTU simultaneously. Check out the illustrative example "0121-11_Monarco_HAT_Modbus_RTU_Loopback_USB." This example features two distinct Modbus drivers: one for /dev/ttyAMA0 (Monarco HAT) and another for /dev/ttyUSB0.

      Cheers,
      Jan

    • G

      What is the easyest way to hide the headers completely

      REXYGEN HMI Designer
      • • • Gerritjan1
      4
      1
      Votes
      4
      Posts
      337
      Views

      cechuratC

      @gerritjan1 Hi,

      for now, there is no option to hide the header by the end user. However, our developers can make a custom change for you to hide the header completely as a paid service. If you are interested just let me know and I will get back to you with details.

      Cheers,
      Tomas

    • C

      Communication with USBRLY82

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • serial rexlang • • contactform
      2
      0
      Votes
      2
      Posts
      381
      Views

      cechuratC

      Hi George,

      Thanks for your question. You need to create a kind of state machine which basically does the following (one line = one task period):

      Write() - send a read request to the device Read() - save received data and length into a global buffer/variable and distinguish if the received message is complete Retry and repeat Read() if the previously received message was not complete

      You will need to introduce a timeout - it can happen that you lost some data so there should be some timeout when you say "Message incomplete, resend the read request".

      Cheers,
      Tomas

    • G

      Conditional exectution of code block.

      REXYGEN Studio
      • • • Gerritjan1
      9
      0
      Votes
      9
      Posts
      565
      Views

      J

      @gerritjan1 I've observed that you are currently using the flags MTM__readBlock_ReadEnable and MT__writeBlock2_WriteEnable. However, in a previous post, you mentioned flags named MTM__readBlock1 and MTM__writeBlock1. It is important to ensure that the flag names correlate properly. Therefore, for MTM__readBlock1, the corresponding enabling flag should be MTM__readBlock1_ReadEnable, and for MTM__writeBlock1, the enabling flag should be MTM__writeBlock1_WriteEnable.

    • S

      Post editing is not possible

      Bug reports, Feature requests
      • • • Serg
      2
      0
      Votes
      2
      Posts
      2.0k
      Views

      cechuratC

      @serg Hi Serg, thanks for reporting. This is not a bug. 3600 seconds is 60 minutes. If you want to edit your post after 60 minutes just write a new post underneath.

      Cheers, Tomas

    • S

      Is certificate expired?

      Bug reports, Feature requests
      • • • Serg
      6
      0
      Votes
      6
      Posts
      361
      Views

      S

      Closed. Solved in another way. Thanks support!

    • M

      Floating Run Time License

      General
      • • • MikeyH
      2
      0
      Votes
      2
      Posts
      277
      Views

      J

      @mikeyh Hi Mike,
      I'm sorry for the late reply. Unfortunately, we do not have a floating licenses yet. We are counting on something similar in the future, but I'm irfaid it will take some time.
      Cheers,
      Jan

    • S

      Licensing error after OS update

      General
      • • • sblackmo
      3
      1
      Votes
      3
      Posts
      228
      Views

      S

      The problem was indeed a licensing issue, it is now solved thanks to Rexygen support - excellent customer service as always.

    • H

      REXduino and TSC2007

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • hrabalo
      4
      1
      Votes
      4
      Posts
      544
      Views

      cechuratC

      @hrabalo Hi,

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

      Good luck with your project.

      Cheers, Tomas

    • C

      Problem rex-odbc and libmaodbc/libmyodbc

      Database (MySQL, MariaDB, PostgreSQL, MSSQL)
      • • • chytra
      6
      1
      Votes
      6
      Posts
      515
      Views

      C

      @jan-reitinger
      Great! Installation completed successfully! Thank you.