Navigation

    REXYGEN Community Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. cechurat
    3. Posts
    • Profile
    • Following 0
    • Followers 1
    • Topics 16
    • Posts 210
    • Best 7
    • Groups 1

    Posts made by cechurat

    • RE: How to read/write to MySQL?

      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

      posted in Database (MySQL
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      @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

      posted in Development tools
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      @mikeyh said in Announcement of a new pre-release Version 3:

      @cechurat Ok, that makes sense. Do you have an example of that?

      The naming error I get seems to be from naming the bock and item/array the same, for example. But only when using the array setting.

      The other thing I get now is the below older way of doing it, passive. No longer works. I get no data from the driver. Even though the registers are ok. If I call SrG on it's own it works. But when SrG is passive and the array is used I get no data.

      63ba61d7-92d9-40f6-8b6e-e6eece3c8be4-image.png
      e1e3679f-2ff3-415c-b1fa-287fb0c44fda-image.png

      Hi Mike,

      does this error with Modbus persists? Can you provide more details, please? E.g. error messages or Rexygen System log?

      Cheers, Tomas

      posted in Development tools
      cechurat
      cechurat
    • RE: SSD Storage

      Hi Mike,

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

      Kind Regards,
      Tomas

      posted in Monarco HAT
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      @mikeyh said in Announcement of a new pre-release Version 3:

      Has how the way Modbus arrays work changed in V3?

      I can no longer seem to get arrays to work. Read a large group of registers, then use passive items to read from the array.

      I see the new option of array in the item setup, but I keep getting a naming issue.
      a0ddba2d-94fd-455b-889c-eae102d09c76-image.png
      b4980b87-1c03-4881-82f1-5433c181c995-image.png

      Cheers

      Mike

      Hi Mike,

      you are right - the flag "As array" is new. The documentation says: As Array (V) – The values are transmitted to the REXYGEN algorithm in the form of an array. If multiple values are involved, a From block is utilized to connect the array signal from the driver, along with one or more VTOR blocks.

      The use case behind this is that you will read a large group of registers, sign it as "As array" and within the task you use just one From flag and decompose it manually.

      Another approach is to decompose the group of registers by passive items and use From / INQUAD / INOCT / INHEXD blocks in your task.

      What naming issue are you getting?

      Cheers,
      Tomas

      posted in Development tools
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      @mikeyh said in Announcement of a new pre-release Version 3:

      Just looking at the DWM, Does REXYGEN now have it's own database? Is that linked to the Archives or a separate thing?

      Right now I use Influx as a database, can I replace that with this?

      Cheers

      Mike

      Hi Mike,
      I wouldn't call it a database but there is an archive subsystem (which was there also in version 2.XX). There were not many differences in this between versions 2 and 3. However, improvements were made in the display of archived values (so far there was just the command line utility called RexArc to export the data from the archive to CSV/JSON).

      It can be an option for the Influx DB, however, it depends on how you further process the data.

      Cheers, Tomas

      posted in Development tools
      cechurat
      cechurat
    • RE: What is the easyest way to hide the headers completely

      @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

      posted in REXYGEN HMI Designer
      cechurat
      cechurat
    • RE: Communication with USBRLY82

      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

      posted in Communication (RS232
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      @mikeyh Hi Mike,

      This error can be caused by several issues:

      • RexCore is not running on the target device - try to reboot the device and reconnect.
      • RexCore is running on a different port (you need to change it manually via rexcore.cfg file)

      Let me know if it helped.

      Cheers, Tomas

      posted in Development tools
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      @mikeyh Hi Mike,

      Thank you for your question. As a rule of thumb, we recommend using the same version of REXYGEN Development tools and RexCore running on your target device. Please, update the runtime as well.

      @Studio Documentation: Basic documentation for the new Studio is part of the installation - just open the TrayMon and select "Documentation" -> "REXYGEN Studio - User Guide".

      In the meantime, we are working on documentation for many enhancements integrated into the Studio. We will keep you posted.

      Kind Regards,
      Tomas

      posted in Development tools
      cechurat
      cechurat
    • RE: Announcement of a new pre-release Version 3

      UPDATE: The REXYGEN HMI Designer is no longer part of the REXYGEN Windows Installer. Please, install the REXYGEN HMI Designer separately - this is one-shot action.
      You can use the following link: https://download.rexcontrols.cz/partner/testing/rexygen/hmidesigner

      Cheers, Tomas

      posted in Development tools
      cechurat
      cechurat
    • Announcement of a new pre-release Version 3

      📣 Announcement: New Version of REXYGEN is ready for Beta Testers!

      We are thrilled to announce that the latest version of REXYGEN, the industrial automation and control system, is now available for beta testing. This release introduces several exciting key features and enhancements, including a completely redesigned REXYGEN Studio, expanded compatibility with Linux operating systems, and numerous bug fixes.

      📄 https://download.rexcontrols.cz/partner/testing/

      🎉 What's New in REXYGEN pre-release Version 3:

      1️⃣ Completely New REXYGEN Studio: We have revamped the REXYGEN Studio with a modern and intuitive user interface, making it easier than ever to design, simulate, and deploy your automation projects. The new Studio offers enhanced functionality, improved project management capabilities, and a more streamlined workflow.

      2️⃣ Linux Compatibility: We understand the importance of flexibility in choosing the operating system that best suits your needs. In response to user feedback, we have added support for running REXYGEN Studio on Linux, expanding the range of platforms available to our users. Now you can leverage the power of REXYGEN on your preferred Linux distribution.

      3️⃣ Bug Fixes: Our dedicated team of developers has been hard at work addressing reported issues and enhancing the stability and performance of REXYGEN. This release includes a significant number of bug fixes, ensuring a smoother and more reliable experience.

      🔧 Installation Options:

      To accommodate diverse user preferences, we provide two installation options for REXYGEN:

      1️⃣ Manual Package Installation: If you prefer manual installation, you can download the necessary packages from our website. Follow the instructions here: https://download.rexcontrols.cz/partner/testing/ - just choose the proper Linux distribution. It will enable you to integrate REXYGEN seamlessly into your existing setup.

      2️⃣ Ready-to-Use OS Image Files: For users utilizing Monarco HAT or UniPi Patron hardware, we offer ready-to-use OS image files. These files are preconfigured with the latest version of REXYGEN and provide a hassle-free setup experience. Simply flash the image onto your device, and you'll be up and running in no time.
      RPi + MonarcoHAT: https://download.rexcontrols.cz/partner/testing/rexygen/monarcohat/ (Linux credentials: pi/rexygen)
      UniPi Patron: https://download.rexcontrols.cz/partner/testing/rexygen/unipi-patron/ (Linux credentials: root/rexygen)

      🚀 Join the Beta Testing Program:

      We invite you to participate in the beta testing program and be among the first to experience the new features and improvements in REXYGEN. Your feedback and insights are crucial to helping us refine and enhance the software further.

      You don't have to sign up anywhere - just navigate to our website https://download.rexcontrols.cz/partner/testing/ and gain early access to REXYGEN pre-release Version 3. Don't miss this opportunity to shape the future of REXYGEN.

      Thank you for your continued support, and we look forward to your participation in the beta testing program. Together, let's make REXYGEN even better!

      Best regards,
      Tomas

      posted in Development tools
      cechurat
      cechurat
    • RE: Post editing is not possible

      @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

      posted in Bug reports
      cechurat
      cechurat
    • RE: REXduino and TSC2007

      @hrabalo Hi,

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

      Good luck with your project.

      Cheers, Tomas

      posted in Communication (RS232
      cechurat
      cechurat
    • RE: REXduino and TSC2007

      @hrabalo Hi,

      thanks for your question. First of all, I would like to mention that the REXduino repository is not maintained any more - therefore the full functionality is not guaranteed.

      REXduino_commands.ino file contains all the commands - have a look at line 605 where communication with MPL115A2 starts (https://github.com/jaroslavs/REXduino/blob/master/REXduino_slave/REXduino_commands.ino#L605)
      You can try to modify this function to read out TSC2007.

      You will also need to modify REXduino_master.c accordingly so the appropriate data will show up at userRecv output.

      What about connecting the TSC2007 directly to the RPi I2C pins? Have a look at I2C examples in REXYGEN: 0502 Generic I2C Communication

      Hope it helps.

      Cheers
      Tomas

      posted in Communication (RS232
      cechurat
      cechurat
    • RE: measuring relative quadrature encoder movement.

      @gerritjan1 Hi,

      have a look at function block "ABSROT". It might help you solve your task. Just set the lolim and hilim parameters as a range of the counter output.

      Let us know if you managed get the desired behaviour.

      Cheers,
      Tomas

      posted in REXYGEN Studio
      cechurat
      cechurat
    • RE: REXduino 4-wire touchscreen

      Hi!
      Thanks for reaching out. In general, it is possible.
      However, you would need to edit the sketch for REXduino in order to read out the touch position and communicate it to REXYGEN which could be pretty challenging (depending on your programming skills). It would require knowledge of the REXduino communication mechanism which is not documented (except the code).

      What about posting the touch position information via REST API to REXYGEN? Example "0302-11 ESP8266 REST API" might be used as a hint.

      Kind Regards,
      Tomas

      posted in General
      cechurat
      cechurat
    • RE: Change IP address for ModBus TCP/IP from HMI

      @rexpeter Hi Peter,

      I have an update on your Topic. It is possible to change the Slave IP address by configuring "Address" parameter (e.g. GoTo flag "MTM__1_Address" in your case).

      f8a090e9-9a03-4eec-9c12-a64115101392-image.png

      Cheers,
      Tomas

      posted in REXYGEN HMI Designer
      cechurat
      cechurat
    • RE: Change IP address for ModBus TCP/IP from HMI

      @rexpeter Hi Peter, Thank you for your question. Welcome back!

      The answer to your question is in Modbus Driver Documentation within Chapter 3.4: https://www.rexygen.com/doc/ENGLISH/MANUALS/MbDrv/MbDrv_ENG.html#x1-200003.4

      It is possible to change the "Slave" parameter of selected Item (e.g. GoTo flag MTM__Adam_9_Slave). However, all the Slave addresses must be declared prior to compilation. Afterwards, you can switch the reference to the Slave at each Item (by introducing the GoTo flag mentioned above).

      I hope it helps.

      Let me know if it works for you.

      Kind Regards,
      Tomas

      posted in REXYGEN HMI Designer
      cechurat
      cechurat
    • RE: HMI on PC (localhost)

      @jackobocze Dobrý den,

      RPiDrv nemůže běžet na Windows targetu - RPiDrv na Windows neexistuje.

      Pokud to potřebujete pro potřeby vývoje HMI, stačí do pole target funkce "Browse" zadat IP adresu Raspberry Pi s běžícím projektem místo "localhost".

      Znovu prosíme o používání fora čistě v angličtině. Pokud je angličtina problém, použijte nějaký z překladačů, které jsou dnes již na velmi dobré úrovni. Důvod je ten, aby i ostatní uživatelé mohli tyto rady použít. Děkuji.

      Zdraví Tomáš

      posted in REXYGEN HMI Designer
      cechurat
      cechurat