• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Putting a set of real numbers in an array

    Mervis
    2
    3
    53
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HPC last edited by

      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?

      Martin Kudláček 1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček administrators @HPC last edited by

        @HPC
        The definition of the programming is in the IEC61131-3:

        VAR
            all_reals  : ARRAY[0..20] OF real;
            tmp: real;
        END_VAR
        
        tmp := all_reals[5];
        H 1 Reply Last reply Reply Quote 0
        • H
          HPC @Martin Kudláček last edited by

          @Martin-Kudláček Thank you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post