Array variables through opcua

Forum Home Forums Communicating with Devices OPC Array variables through opcua

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14341
    BrainBranchetti99
    Participant

    I would be looking for the possibility of accessing via opc ua in a 1500 cpu.
    Is there the possibility of accessing the array locations with a pointer/vector? For example:
    var “counter” = 13;
    var “ActState”= array[counter].state;

    #14342
    Mikhail
    Moderator

    Hello,

    OPC UA driver in Rapid SCADA 6 can read arrays from the OPC server. On SCADA level each array element is stored in a separate channel. It’s easier to try and watch how it works.

    #14343
    BrainBranchetti99
    Participant

    Isn’t it possible to multiplex the various channels into a single one using a pointer?

    #14355
    Mikhail
    Moderator

    Could you provide an example?

    #14363
    BrainBranchetti99
    Participant

    Ad example, i need to use on the html page a variable for example “motor state”.

    Now.. “MotorState” address is: motors[3].state

    If i have 10 motor to show, i need to replicate the variable address 10times.

    I prefer having a variable who indicate the actual motor that i need to show, for example “actual motor number” and with the change of this number change the address in to the plc.

    #14374
    Mikhail
    Moderator

    If an OPC UA server provides motor states as an array, you can read them as an array and store in a single channel having length 10. But in the scheme view, you need to address channels by their numbers. Provide screenshots of the settings for more details.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.