CODESYS: OPC UA - Using CODESYS PLC as an OPC UA Server

Поділитися
Вставка
  • Опубліковано 29 сер 2024

КОМЕНТАРІ • 46

  • @PersecutedPursuer
    @PersecutedPursuer 11 місяців тому +7

    Thanks again, Mr. Alizadeh! Much appreciated! 🤩

    • @TohidAlizadeh
      @TohidAlizadeh  11 місяців тому +5

      Thanks for your comment. I am glad you liked it 👍

  • @fashionworld2
    @fashionworld2 10 місяців тому +5

    Great tutorial, thanks for your efforts 💯💯💯

  • @ricardosolanofadul2541
    @ricardosolanofadul2541 4 місяці тому +2

    Mr. Alizadeh, help me a lot, thank you very much

  • @iran_siemens
    @iran_siemens 11 місяців тому +9

    🌷

  • @user-cx9jt2ej9x
    @user-cx9jt2ej9x 11 місяців тому +4

    Thank you for posting a good video.
    Thanks to you, I learn a lot

    • @TohidAlizadeh
      @TohidAlizadeh  11 місяців тому +2

      My pleasure! Thanks for your comment 👍

  • @user-vf3wl2fc2c
    @user-vf3wl2fc2c 9 місяців тому +4

    Thank you very much, you are helping a lot!😀

    • @TohidAlizadeh
      @TohidAlizadeh  9 місяців тому +2

      Thanks for your comment 👍. I am glad you find my video tutorials useful 😊

  • @leejinhong2977
    @leejinhong2977 11 місяців тому +5

    Hi Mr Tohid,
    Thanks for the information they are so useful.
    I am facing one problem at the moment. Can you do some sort of tutorials to teach us how to manage multiple PLCs at one time ? And implement the data resource manager instead of MODBUS for the communication between them. I am using 3 PFC200 WAGO and 1 WAGO Touch Panel 600 at the moment. However, the screen can't mirror the information from the PLC which I am trying to use the data resource management.
    I will appreciate so much if you can help us out with this.

    • @TohidAlizadeh
      @TohidAlizadeh  11 місяців тому +2

      Hi, thanks for your comment and suggestion. I am considering to use multiple PLCs and demonstrate how to share data among them. It will take some time though to do it and publish the video tutorial. Stay tuned!

    • @leejinhong2977
      @leejinhong2977 11 місяців тому +2

      Thank you very much !@@TohidAlizadeh

    • @tomas111video
      @tomas111video 10 місяців тому +2

      What are the challenges of managing multiple PLCs? You have a bus and devices. Who is your online master? Panel or PLC? What is the operating logic of the PLC and the panel? Do you know all this?

  • @amywilliams1021
    @amywilliams1021 7 місяців тому +2

    Very clear, thank you!

  • @stefanAH97
    @stefanAH97 11 місяців тому +5

    Thank u very nuch for the useful session.
    How or where to add user/pw to the target device?

    • @TohidAlizadeh
      @TohidAlizadeh  10 місяців тому +2

      Hi, thanks for your comment. To encrypt data and exchange it with the client safely,, you would need to create a certificate which would require installing CODESYS Security Agent add-on. I may demonstrate this in another short video later.

  • @abdodabour4306
    @abdodabour4306 11 місяців тому +4

    2:53
    Hi .. i got this message ( The selected target system 'CODESYS Control Win V3' is
    different from the connected device 'CODESYS Control Win V3
    x64'.
    ID mismatch: Selected=0000 0001, Online-0000 0004 )
    Also i don't know what user name and password i should enter at 2:48

    • @TohidAlizadeh
      @TohidAlizadeh  11 місяців тому +3

      Hi, thanks for your comment.
      It seems that the device that you are using in your project is different than the virtual PLC running. Try to update your device in the project and make it the same as the virtual PLC.
      There is a way to remove the username and password and setup new ones. This is done by deleting some files on your PC. You can look it up ( I may also make a video explaining this soon).
      I hope this helps.

    • @abdodabour4306
      @abdodabour4306 11 місяців тому +3

      @@TohidAlizadeh i solved this problem .. thanks .. i have other questions and i need help .. can i mail you ?

    • @abdodabour4306
      @abdodabour4306 11 місяців тому +3

      @@TohidAlizadeh i solved this problem .. thanks .. i have other questions and i need help .. can i mail you ?

  • @lildavide221
    @lildavide221 5 місяців тому +2

    Hello my friend, great video! I have a little question. How can I apply the values in CoDeSys, to change them ( OPC UA-Server)?

    • @TohidAlizadeh
      @TohidAlizadeh  5 місяців тому

      Hi, thanks for your comment. I didn't understand your question fully, but if you mean that how to change the values f the variables on the CODESYS side, while the project is running, you can do it through visualization or by forcing values to the variables.

  • @kaizokudc
    @kaizokudc 8 місяців тому +3

    Hello, thank you very much for the video. It is very helpful. I got a question. How can we configure codesys plc as an opc ua client? Is there a resource for this?

    • @TohidAlizadeh
      @TohidAlizadeh  7 місяців тому +1

      Thanks. There is one example in CODESYS store to use CODESYS as the OPC UA client. Though I have not checked it myself.

  • @tomas111video
    @tomas111video 10 місяців тому +4

    Thanks for the video, but I would be interested in how to create an OPC server with a password? This is a more difficult task.

    • @TohidAlizadeh
      @TohidAlizadeh  10 місяців тому +2

      Hi, thanks for your comment. For this, you would need to create a certificate which would require installing CODESYS Security Agent add-on. I may demonstrate this in another short video later.

  • @manasavamshidhar2607
    @manasavamshidhar2607 6 місяців тому +2

    Hello sir, thank you for sharing this video. In my application , i want to send acsii data (string) from raspberry pi to a scada software. Maybe with opc ua and codesys as common platforms. Is it possible? And to include raspberry pi as upc server what should be done?

    • @TohidAlizadeh
      @TohidAlizadeh  6 місяців тому +1

      Thanks for your comment. Yes, I think it is possible. You can use CODESYS runtime for your Raspberry Pi, then use your Raspberry Pi as an OPC UA server, like what I did here, and then read the data using an OPC UA client on the other end.
      I hope this helps. Let us know if you succeed in doing it.

  • @Time4yes
    @Time4yes 11 місяців тому +5

    Is the port number always 4840?

    • @TohidAlizadeh
      @TohidAlizadeh  11 місяців тому +2

      This is the default value, so it may be changed if you change the settings of the PLC.

    • @Time4yes
      @Time4yes 11 місяців тому +3

      @@TohidAlizadeh Alright, thanks

    • @TohidAlizadeh
      @TohidAlizadeh  11 місяців тому +3

      You are welcome 🤗

  • @user-kv2cl5xl5s
    @user-kv2cl5xl5s 3 місяці тому +1

    What software u use for editing opc?

  • @darshans7056
    @darshans7056 Місяць тому

    thank you so much..but one question..do we have to install opc ua server before doing the connection with ua expert..if so , is it not available for free.
    I'm not getting connected once i type the url and my server is not showing in the add server box

  • @darshans7056
    @darshans7056 Місяць тому

    could u plsss.. clarify my doubt in detail sir..

  • @rodrigueroland
    @rodrigueroland 7 місяців тому +1

    I've got this error:
    Used UserTokenType: Anonymous
    The server returned no certificate, all certificate checks will be skipped.
    Error 'BadIdentityTokenInvalid' was returned during ActivateSession
    Connection status of server 'OPCUAServer@PCNAME' changed to 'Disconnected'.

    • @TohidAlizadeh
      @TohidAlizadeh  6 місяців тому +1

      What version of CODESYS do you use?

    • @rodrigueroland
      @rodrigueroland 6 місяців тому

      @@TohidAlizadeh I installed the last version: 3.5 SP19 Patch 6+ (64-bit). I don't know really know what it's wrong.

    • @jaceksieradzki1505
      @jaceksieradzki1505 6 місяців тому +5

      @@rodrigueroland I also struggled with this. Solution is very simple - go to Communication Settings -> drop down menu: Device -> Change Runtime Security Policy... -> tick the Allow anonymous login box. Works fine for me. Thank you @TohidAlizadeh for great video.

    • @phamminhtri16
      @phamminhtri16 4 місяці тому

      @@jaceksieradzki1505 thank you very much.

    • @braismartinez8558
      @braismartinez8558 4 місяці тому

      @@jaceksieradzki1505 thanks a lot