REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. contactform
    3. Topics
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 19
    • Posts 21
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by contactform

    • C

      Display alarms in HMI

      REXYGEN HMI Designer
      • • • contactform
      3
      0
      Votes
      3
      Posts
      145
      Views

      B

      @cechurat hi there, would you happen to have an example of how to configure & deploy this?

    • 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

    • C

      Integer Overflow

      General discussion
      • • • contactform
      2
      0
      Votes
      2
      Posts
      507
      Views

      cechuratC

      Hi Larry,

      the COUNT:cnt output is of I32 type. Therefore the cnt overflows from 2147483647 -> -2147483648.
      This is standard behaviour all over the REXYGEN Control System.

      Kind Regards,
      Tomas

    • C

      How to choose string using HMI?

      REXYGEN HMI Designer
      • hmi designer string combobox • • contactform
      5
      0
      Votes
      5
      Posts
      553
      Views

      D

      You have remarked very interesting points! ps decent website. link text

    • C

      Multiscreen application

      REXYGEN HMI Designer
      • • • contactform
      2
      0
      Votes
      2
      Posts
      536
      Views

      jaroslav_sobotaJ

      Hello Juan,
      please have a look at example project 0301-07 which is included in REXYGEN Studio. It includes an application with 3 HMI screens.

      You simply create 3 separate .hmi.svg files in the hmisrc subfolder and create hyperlinks between them.

      Hope this helps, let me know.

      Jaroslav

    • C

      Counting minutes in REXYGEN

      REXYGEN Studio
      • • • contactform
      9
      0
      Votes
      9
      Posts
      1.3k
      Views

      jaroslav_sobotaJ

      Hello Martijn,
      this will save the total number of run-minutes to database everytime the RUN input drops to OFF (FALSE):
      0_1576604316928_rexygen-hour-meter-database.png

      See example 0404-01 and Database connection driver manual for details.

      Hope it helps.

      Jaroslav

    • C

      Putting source files into target device

      REXYGEN Studio
      • • • contactform
      2
      0
      Votes
      2
      Posts
      563
      Views

      jaroslav_sobotaJ

      Hi,
      this is possible. Put the PROJECT block into your project main file (the one with EXEC block) and tick the SourcesOnTarget parameter.
      0_1575385871267_rexygen-source-files-on-target.png

      Hope this helps, let me know.

      Jaroslav

    • C

      Switch to different HMI webpage in case of Alarm

      REXYGEN HMI Designer
      • hmi designer multiple pages • • contactform
      8
      0
      Votes
      8
      Posts
      1.5k
      Views

      jaroslav_sobotaJ

      Hi Emmanuel,
      thanks for the links, now I understand. You are right, for local HMI you can simply kill Chromium and reload it with a different starting page. For me, this is not appealing at all, but that's not important.

      You can always run a bash script from REXYGEN using the EPC function block, killing and restarting Chromium in case of an event. See example 0202-11 for inspiration.

      Best regards
      Jaroslav

    • C

      HMI with multiple pages

      REXYGEN HMI Designer
      • hmi designer multiple pages • • contactform
      8
      0
      Votes
      8
      Posts
      2.3k
      Views

      cechuratC

      @mikeyh

      @mikeyh said in HMI with multiple pages:

      Also when ever I place an object down to use as a link it creates a button in the HMI config, is this right?

      Not sure exactly what you mean. You can turn a rectangle into "link button" as written at the beginning of this post.

      What link do you see when you stop above the rectangle with the link on active HMI page? Do you see e.g. YOUR_IP_ADDRESS/hmi/designer-rig1.html?

      Can you share your source files?

      Cheers,
      Tomas

    • C

      Help with function blocks

      REXYGEN Studio
      • • • contactform
      6
      0
      Votes
      6
      Posts
      1.6k
      Views

      cechuratC

      Hi Phil,

      let me answer your questions:

      ad 1) Yes, in order to count time connect CNI=1 to "ti" input as you proposed.
      ad 2) Correct, "Y" should contain time.
      ad 3) Exactly.

      It also assumes that your boolean signal from pushbutton is connected to input "u".

      For more details about the INTE function block see docs: https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/INTE.html#x81-800005

      Cheers, Tomas

    • C

      Read Raspberry Pi System Information

      General
      • rest api python • • contactform
      2
      0
      Votes
      2
      Posts
      910
      Views

      cechuratC

      Hi James,

      There is no direct support in REXYGEN for reading the Raspberry Pi System Information.
      However I can imagine using Python script to read out the desired information (i.e. http://cagewebdev.com/raspberry-pi-showing-some-system-info-with-a-python-script/) and write it via REST API into REXYGEN algorithm.

      Have a look at example 0302-03_REST_API_Python_Bash_etc, which will help you with REXYGEN REST API integration.

      Hope the above is useful for you.

      Cheers,
      Tomas

    • C

      How to force DbDrv to write the data every 5 minutes (xx:00,xx:05,xx:10, ...)?

      Database (MySQL, MariaDB, PostgreSQL, MSSQL)
      • • • contactform
      6
      0
      Votes
      6
      Posts
      2.2k
      Views

      cechuratC

      @petrch Glad I could help 😉
      Our developers already implemented the new functionality. Starting from new REXYGEN release it will behave as you expected - that Group itself will have also _Trigger flag.

      Good luck with your project.

      Regards, Tomas

    • C

      Looping 3 LEDs on 3 different pins

      REXYGEN Studio
      • • • contactform
      2
      0
      Votes
      2
      Posts
      887
      Views

      cechuratC

      Hi Sid,

      thank you for your question. Custom made solution is far beyond our "free of charge" support. However here are some function blocks which might help you achieve your goal:

      TIMER_ - Multipurpose timer
      BINS – Controlled binary sequence generator
      EDGE_ - Falling/rising edge detection in a binary signal

      If there is anything unclear, let us know.

      Regards, Tomas

    • C

      Measuring water flow with UniPi

      REXYGEN Studio
      • • • contactform
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      jaroslav_sobotaJ

      @enovikoff said in Measuring water flow with UniPi:

      after searching fruitlessly for a Pi HAT that included a counter

      What about the Monarco HAT? It has 2 high-speed counters onboard...

      c4629344-c4c5-48a8-a65e-7e00fd14755d-obrazek.png

      Jaroslav

    • C

      Arduino Mega - analog inputs

      General
      • • • contactform
      3
      0
      Votes
      3
      Posts
      1.5k
      Views

      jaroslav_sobotaJ

      Hello Martin,
      the main problem is that the pin modes are in reversed order. By setting pinmodes_A0_A7 to 0x66600000 you enabled A7, A6 and A5, not A0, A1 and A2 as you expect.

      The nonzero readings are then caused by picking up noise and other channels as mentioned by @sisktom2

      Regards,
      Jaroslav

    • C

      Interfacing SX1509 pin expander

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • contactform
      2
      0
      Votes
      2
      Posts
      1.1k
      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

      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.

    • C

      Raspberry Pi and Click PLC, Modbus TCP

      Modbus TCP
      • • • contactform
      6
      0
      Votes
      6
      Posts
      2.7k
      Views

      S

      Hello folks,

      I just wanted to confirm that reducing the "Max. requests" number to 1 allows multiple Modbus reads of the Click PLC.
      I agree that reading registers in groups of 4 or 8 is more elegant and will try that next.

      Cheers,
      Tom Sisk

    • C

      SPI communication in REXLANG

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • contactform
      4
      0
      Votes
      4
      Posts
      1.6k
      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