Transmit GVLs in reading and writing

lorenzop
2022-08-11
2022-08-12
  • lorenzop - 2022-08-11

    Hello there,

    I have to send my variables that are in a GVL block to an external management system.

    These variables must be able to be written, same with another group of GVLs that must be read

    I give an example with TIA PORTAL from siemens
    On TIA PORTAL I can go to the properties of a DB, uncheck the compressed variables and the various offsets of the variables appear.
    I communicate the slot and rack data and my job is done, the owner of the management software is able to communicate and take variables and write without problems.

    Here on codesys I have seen that on properties of a GVL block I can uncheck the compressed variables, but how can I get them?

    I don't see any offset of the variables, I can't see any racks and slots, surely there is another method, can you tell me?

    Thank you very much

     
  • gatto

    gatto - 2022-08-12

    Hi, you need to give more information about the two devices and what protocol you use.
    Maybe are you using a plc and an HMI ?

     
  • lorenzop - 2022-08-12

    Ciao Gatto,
    utilizzo una Raspberry della Elsist come PLC e un pannello Weintek MT8092XE, tra loro due comunicano in Ethernet.
    Il gestionale deve ancora essere fatto ma si pensava ad una comunicazione Modbus TCP/IP oppure Profinet.

    Ti ringrazio per avermi risposto e spero che si riesca a trovare la soluzione.
    Buona giornata

     
  • gatto

    gatto - 2022-08-12

    Hi, please write in English.
    Our Italian is a beautiful language but it is very difficult to understand.

    I have never used those devices.

    For the communication between plc and hmi, in the plc you have to create the variables that you want to exchange for example GVL_HMI group
    MyVar1: word;
    MyVar2: real;
    Then in the symbols select the object
    In the project folder you will find an .xml file that contains the symbols.
    This file is usually imported into the hmi project and you end up with the tags with their name.
    In the hmi you have to select the cedesys V3 ethernet protocol.

    For communication between plc and scada you can use modbus tcp/ip.
    In this case you need to use a modbus server in codesys.

     
  • lorenzop - 2022-08-12

    Yes yes, I can do the communication between HMI panel and PLC, even the import of symbols, what I was asking is something else.

    I have an external management system of a customer in his PC who, in order to satisfy the 4.0 requirements, must read from my PLC a GVL block and write some recipes on a GVL block.
    On siemens I can easily make these data available and in profinet I come to take them with the management system, on codesys instead I don't know how to make them available not having available (so far I have not found it) a number of racks and slots and the various offsets of the variables.
    So my problem is just how to pass the data from the PLC to an external management in reading and writing which can be in Modbus TCP / IP or in PROFINET (Better in PROFINET)

    thanks

     
  • gatto

    gatto - 2022-08-12

    About 4.0 I did a few works with modbus tcp/ip.
    In codesys there is a modbus server.
    Scada can read or write holding register from 40001

     

Log in to post a comment.