Recent content by HPC

  1. H

    timer excution in ST code in Mervis

    Hi, I have a question regarding the implementation of a timer in ST code in Mervis. I have written the below code to set B := 10 after 10s since A becomes bigger than 5 and stays bigger than 5. However, it does not work properly. It sometimes set B := 10 after more than 15s since A>5. I...
  2. H

    Saving Momentary Declared Integer Values

    Hi, I am running a function block in only one scan cycle in my Mervis main program. The output of this function block is a set of 8 int numbers. As I am running this FB only in one scan cycle, I am not able to use the outputs of FB in the main program because after the first scan cycle, the...
  3. H

    Buubblesorting in Mervis

    Hi, I have written the below code as a function block for sorting 8 integer numbers. The sorted numbers will be put in an array named H_S in ascending order. The order of each input number will be put in an array named Rank. For example R[0] is the order of input 1, R[1] is the order of input...
  4. H

    Putting a set of real numbers in an array

    Hi, I am using Mervis for PLC programming in ST. How can I put a set of real numbers in an array? Then how can I use the elements of this array individually in my ST program?
  5. H

    CAN Protocol-Device Mode

    Hi, I am using a software for CAN communication between a Gateway and a controller where a parameter named "Device Mode" must be set as either "Sending" or "Receiving". In the software, a CAN channel is set up where the Gateway is defined as a controller and the other controller is defined as a...
  6. H

    Starting Element

    Thanks alot.
  7. H

    Starting Element

    Hi , I have a modbus register map where in Zone 0, on top of modbus address column, it is written "Offset of 1". What does it mean? What will be the "starting element" in Mervis for reading the status of the coil at, for example, modbus register 0x4042?
  8. H

    Multibyte Length (Parser)

    Hi, When reading from a coil, what should I put in the "Multibyte Length" which is shown under the "Modbus Data Point Parameters" in my software? Since I am reading a coil, the associated modbus address (0*4053 in this case) contains only one bit. So, I don't have a multibyte to read from! It...
Top