BK02. How to Simulate BECKHOFF TwinCAT PLC Project via Virtual Machine System

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2020
  • #Beckhoff #TwinCAT #VirtualMachine
    BECKHOFF Playlist • Beckhoff TwinCAT Controls
    Next: CX2030 Device Manager Dashboard • BK03. Beckhoff CX2030 ...
    Note: if your project has devices in "I/O" (e.g. EtherCAT devices), you need to 'Disable' the 'Device (EtherCAT)', then run 'Local' and download the project into your computer running as simulation.
    Continuing with the previous video (BK01.), this video introduces how to simulate TwinCAT PLC project in Virtual Machine System. It also shows how to activate the Trial License in TwinCAT3.
    I appreciate you could buy me a coffee via the PayPal link below:
    www.paypal.com/donate?hosted_...
    BK14. Upload TwinCAT3 Controller and Online/Offline Project Compare
    • BK14. Upload Beckhoff ...
    BK13. Beckhoff TwinCAT3 Encoder Settings EL5021(SinCos Encoder) EL5151(Incremental Encoder) • BK13. Beckhoff TwinCAT...
    BK12. How to Match Version of TwinCAT3 Software and Hardware (CX9020 OS Firmware Upgrade)
    • BK12. How to Match Ver...
    BK11b. [2/2] Beckhoff TwinCAT3 Sequence Control - Commissioning Test [Valve Sequence Control]
    • BK11b. [2/2] Beckhoff ...
    BK11a. [1/2] Beckhoff TwinCAT3 Sequence Control by Using "Case..Of" [Sequence Structure]
    • BK11a. [1/2]Beckhoff T...
    BK10. Beckhoff TwinCAT3 LD(Ladder Logic) & ST(Structure Text) Programming
    • BK10. Beckhoff TwinCAT...
    BK09. How to Retain/Persistent Variables using Beckhoff TwinCAT3 CX9020 U900 UPS
    • BK09. How to Retain/P...
    BK08. Beckhoff TwinCAT 3 Licensing
    • BK08. Beckhoff TwinCA...
    BK07. Use 'Scan' in TwinCAT 3 to Upload and Compare Hardware Configuration
    • BK07. Use 'Scan' in T...
    BK06. How to Retain Variables in Beckhoff TwinCAT3 via "PERSISTENT"
    • BK06. How to Retain Va...
    BK05. How to Link Tags/Variables to Hardware Signal Modules in TwinCAT3 PLC
    • BK05. How to Link Tags...
    BK04. How to Connect Beckhoff Controller using TwinCAT 3 (2 Scenarios)
    • BK04. How to Connect B...
    BK03. BECKHOFF CX2030 Device Manager Dashboard and Windows System Tutorial
    • BK03. Beckhoff CX2030 ...
    BK02. How to Simulate BECKHOFF TwinCAT PLC Project via Virtual Machine System
    • BK02. How to Simulate ...
    BK01.Getting Start with BECKHOFF TwinCAT 3 - PLC Project
    • BK01. Getting Started ...
    TwinCAT 3 Download from Beckhoff
    www.beckhoff.com/english.asp?...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 39

  • @ryno9732
    @ryno9732 3 ปีที่แล้ว +4

    thank you very much for going through the effort of making these videos. theres been alot of videos that i have seen about beckhoff. THIS IS THE BEST SO FAR> you show all the details and technicalities which is very insightful

    • @electricalautomation
      @electricalautomation  3 ปีที่แล้ว +1

      Thanks for your watching and your comments. There will be a couple of videos regarding Beckhoff PID videos (PID 26 -PID30) to be launched in this month. The PID 21 - PID 25 can be found from the playlist th-cam.com/play/PL762SfoJC-e_1CtDQoRe6PYEG6Iz_zdvz.html. Thanks again!

    • @paulfreed6394
      @paulfreed6394 2 ปีที่แล้ว

      have to agree.

  • @paulfreed6394
    @paulfreed6394 2 ปีที่แล้ว +1

    Thanks for sharing. I was batling with the simulation without hardware. This was a great help.

  • @user-rb4fi2oe7q
    @user-rb4fi2oe7q วันที่ผ่านมา

    Thank you for video. It was really clear 🙏🙂

  • @alexanderwallberg640
    @alexanderwallberg640 4 ปีที่แล้ว

    Amazing video! Thank you so much!!!

  • @michagoralczyk6335
    @michagoralczyk6335 3 ปีที่แล้ว

    Thank you so much! You are so helpfull!

  • @aaposour3305
    @aaposour3305 4 ปีที่แล้ว

    Hello do you know how to change the color config on background for the code edit area , I want make the black background and white text

  • @yoghurtedchikenpneumatics749
    @yoghurtedchikenpneumatics749 3 ปีที่แล้ว

    great job man

  • @3atze381
    @3atze381 4 ปีที่แล้ว

    Thank you!

  • @MrBlendino
    @MrBlendino 2 ปีที่แล้ว

    Great job man! One question: I have download the plc project from real target , when I try to go online, is asking about Login with online changes.
    Two projects are identical if i compare with target system. Do you have any idea why that happen?
    Thank you.

    • @electricalautomation
      @electricalautomation  2 ปีที่แล้ว +1

      May be the time stamp in the project, or the project was opened by different TwinCAT version. If you think there is no change on the PLC code, then just login the project to refresh the online code.

  • @ptipupu
    @ptipupu 3 ปีที่แล้ว

    Thank you for this really GREAT video ! I wish the all Beckhoff's documentation would be so clearly explained ;-)
    I have 2 questions: About the Real Time setting of the VM. Set on Target returns me 16 core. Should I assign more then 1 core as isolated ? and if I do, what will be the setting between I/O, PLC task and PLC aux. task ?...
    2nd Question: 9 months ago, pnn tmp asked you (here below) about connecting a device (e.g. EK1100) via EtherCAT to the VM ? Did you maneged ? I'm using now TC3 on WS10 and at moment, I failed...

    • @electricalautomation
      @electricalautomation  3 ปีที่แล้ว

      Hello Q1: At Real-Time item, you can assign multiple cores. This assignment depends on the actual cores of your beckhoff hardware controller. Using VM is a brief test, so one core for testing is enough. From application view, you might have Motiontask under the hierarchy. The Motiontask is recommended to assign a dedicated core. Other tasks can be assigned in one cores. Sometimes the VISU_TASK HMI task can be assigned to be separated with PlcTask.

    • @electricalautomation
      @electricalautomation  3 ปีที่แล้ว

      Q2: Using 'Simulation' or when set Target is "Local" is basically used to test program or code only. At this moment, you items under the I/O->Devices-> EtherCAT should be set as "Disable". So there is no way to communicate with actual external devices. Once you use a real beckhoff controller (e.g. CX9020) + EK1122, then the controller has EtherCAT Master function, it can connect EK1100(EtherCAT) station. (Tips: Likely a PC can be installed with EtherCAT Driver to run as EtherCAT Master, But I never tried that and never saw any actual project using this way. Personally I still highly recommend using Beckhoff controller to implement EtherCAT communication)

    • @electricalautomation
      @electricalautomation  3 ปีที่แล้ว

      Please let me know if you found some explanations got something wrong or the answers have some missing.

  • @pnntmp457
    @pnntmp457 4 ปีที่แล้ว +1

    All this works, thanks for the tutorial.
    But can you connect to and control EtherCAT slaves (e.g. servo drives) from TwinCAT running in a virtual machine?
    I can't make it work, when I scan for devices it finds nothing. If I switch target from to a physical Beckhoff PLC it finds EtherCAT slaves, but from it does not. Does this need some extra licenses added, or some configuration of the virtual machine network adapter?
    Thanks.

    • @electricalautomation
      @electricalautomation  4 ปีที่แล้ว

      Hi As I understand, the means 'internal' or simulation. If you are trying to connect actual device, you need to switch 'target' to an actual device's IP address. Meantime, you also need to do some settings on your virtual machine to allow your VM to connect in an actual device. I would have a actual beckhoff controller and EtherCAT devices in 2-3 weeks. I will record how to connect a controller and scan the EtherCAT device once I have them.

    • @electricalautomation
      @electricalautomation  4 ปีที่แล้ว

      I did use virtual machine to program, connect a Beckhoff controller before, as well as let the controller find the EtherCAT valve bank. VM should work for the online connection.

    • @electricalautomation
      @electricalautomation  4 ปีที่แล้ว

      Hi , if you try to "scan EtherCAT slave", your TwinCAT3 target must be connecting with "CX" controller instead of , and you must switch the CX controller into "configuration mode" rather than run mode. Beckhoff calls this mode is "Free Run" Status (configuration mode, but scan the EtherCAT slave ) I just tried today. At this mode, the icon on your bottom line of the TwinCAT will show Red/Blue Flashing

    • @electricalautomation
      @electricalautomation  4 ปีที่แล้ว

      Please check this video : th-cam.com/video/Be86qrIGpu8/w-d-xo.html BK04. How to Connect Beckhoff Controller using TwinCAT 3 (2 Scenarios)

    • @AudioJunkie79
      @AudioJunkie79 4 ปีที่แล้ว +1

      You can use TC3 inside a VM and control EtherCAT slave devices. I have found that in my VM's with VMware 15 and Windows 10 it doesn't work. The Ethernet Port disappears in the VM when the realtime driver is applied to that port. However, Win7 64bit or 32bit works like a champ. There is a lag with TwinSAFE. You would probably see Watchdog errors. I have seen this in my testing. These can be adjusted in the project but would need to be set back to defaults when real hardware is used. For regular IO it works really well for bench testing and development work. To get this all to work you have to have your VM network settings correct so that the VM nic can see the outside world. Then it works just fine.

  • @user-zx9bk8sx5s
    @user-zx9bk8sx5s ปีที่แล้ว

    Hai Sir, I am facing trouble at the timestamp in your video 8:18, where I cannot change the change number of cores of isolated to 1, when I set the shared number to 1 then automatically the isolated is 3, and if the shared is 2, then isolated is 2 as well, when shared is 3 the isolated is 1. So Can you please tell me how can keep both the values to 1. Thanks in advance

    • @electricalautomation
      @electricalautomation  ปีที่แล้ว

      You have to use the isolated core running as your PLC CPU.

  • @nuttapronp3185
    @nuttapronp3185 ปีที่แล้ว

    I’m very new with PLC. I try to learn by myself and mine it shows avoided by HyperV. What should I do? 😢

  • @voglair2400
    @voglair2400 3 ปีที่แล้ว

    Hi! Nice Video! I followed your Instructions but ran multiple times into the same Problem. After I’ve set the isolated core and restarted the system and started the configuration, the Error message Pops out:
    CPU setting mismatch!
    3/1 CPUs configured and 3/0 found on target.
    Please adjust settings.
    But before I assigned the isolated core, Twincat was showing all 4 Cores.
    In the Taskmanager the cores are showing as the following:
    Cores: 2
    Logical Cores: 3
    So the assignment kind of worked, but the Isolated core went somehow missing. We are not using a virtual Machine.
    Do you have a Solution for this Problem? Thanks a keep up the great work!

    • @electricalautomation
      @electricalautomation  3 ปีที่แล้ว

      Hello, I didn't have the problem on CPU isolated assignment. Are you using the latest TwinCAT software? Try to reinstall the TwinCAT software. What the CPU of your laptop. Is that Intel CPU? And did you click 'Read from target' before you assign the isolated core and set the target?

    • @voglair2400
      @voglair2400 3 ปีที่แล้ว

      ​@@electricalautomation Thanks for our reply. I am currently using the Twincat v3.1.4020 Version. I must use this version because different Projects in our laboratory are running on these Version. The Project usually runs on a Ethercat Devices, but due to corona we cannot connect to the devices.
      So, I’ve come across your vid. I’ve disabled the Devices in the twincat project, set the target system to local and read the CPU from target, then 4 CPUs popped up. I’ve assigned one core to isolated, saved and rebooted the PC. Then the Error message from the Comment above pops up.
      The CPU of my Laptop is a Intel Core i5-6200 CPU @ 2.30 GHz 2.40 GHz.
      The Taskmanager is showing 2 Cores with 4 Logical processors. If I assign one isolated core in Twincat, the Taskmanger is still showing 2 Cores, but with 3 Logical processors.
      Du you have any further idea, how to fix this problem?

    • @electricalautomation
      @electricalautomation  3 ปีที่แล้ว

      @@voglair2400 Likely the TwinCAT is fighting with Windows to occupy the CPU resources. Please check the BIOS setting such as Hyper-V, VT-x, and shutdown the anti-virus. And I also recommend to phone call your local Beckhoff support, sometimes they could have some patches with amazing solutions.

    • @voglair2400
      @voglair2400 3 ปีที่แล้ว

      @@electricalautomation I'll try that, thank you!

  • @yannsieyadjeu
    @yannsieyadjeu 10 หลายเดือนก่อน

    Hi sir, what VM are you using?

  • @jokerindia6875
    @jokerindia6875 11 หลายเดือนก่อน

    Is Twin CAT software Open source!!