Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - joseph_e2

Pages: 1 [2]
16
Support Questions / Re: Beckhoff Twincat 2 connection
« on: July 08, 2020, 09:01:59 AM »
Here it is.

17
Support Questions / Re: Beckhoff Twincat 2 connection
« on: July 07, 2020, 09:31:18 AM »
It's been a crazy time, but I finally got back out to the machine after downloading and installing Wireshark. I'm...not sure what I'm looking at. There are UDP packets going back and forth. I've attached a screenshot showing what's going on.
It looks like the replies are returning to the same port.
Where should I look for further details?

18
Support Questions / Re: Beckhoff Twincat 2 connection
« on: June 17, 2020, 12:34:47 PM »
Sorry for the delayed response. I'm tied up this week and out of the office next week, so I'll try Wireshark when I get back. I'll let you know what I find out. Or if I need help, since I'm not a Wireshark expert...

19
Support Questions / Re: Beckhoff Twincat 2 connection
« on: June 11, 2020, 02:01:38 PM »
I just realized that I never described the problem. The solution builds and tests without any warnings, but the panel meter almost immediately shows error 999, no value returned by driver.

I tried it again as a test with the network definitely not connected at all and there are no messages at all, the digital panel meter just sits there displaying "0" with no errors. The output window shows a bunch of lines like this:
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll

When I get the "no value returned by driver" error, the output window shows a bunch of lines like this:
Exception thrown: 'MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException' in MfgControl.AdvancedHMI.Drivers.dll



20
Support Questions / Re: Beckhoff Twincat 2 connection
« on: June 11, 2020, 07:37:18 AM »
TwinCAT is not installed on the AdvancedHMI PC. It's a clean Windows 7 install with Visual Studio.

Weird...I don't remember hitting the "Post" button, and the original post still shows up in edit mode on the laptop I was using for this yesterday.

Let me summarize the settings I've looked at on the TwinCAT PC:
In the TwinCAT System Properties dialog box, System tab.
TwinCAT Server list box:
TcCam
Tclo
TcNc
TcPlc
TcRTime
Auto Boot is Enabled with Auto Logon checked. User Name is Administrator, Password is blank.

Same dialog box, AMS Router tab, AMS Net Id: 192.168.20.1.1 (I changed this from the previous setting of 127.255.255.1.1.1

I logged out of Windows and back in to verify that the login name is Administrator and its password is also blank.

Inside the PLC control, I found a list of global variables and chose a few at random to try to reach, ending up with "RunCnt" which looks like something we want to read anyway.

21
Support Questions / Beckhoff Twincat 2 connection
« on: June 10, 2020, 03:17:06 PM »
I've spent a lot of time working with Siemens and Allen-Bradley PLCs, but I recently changed jobs to a facility with a number of Beckhoff Twincat systems. Some are v2, others are 3. The one I'm working on now is Twincat 2. I want to be able to read tags out of the machine onto a PC for logging. It's been a long time, but I've done this before with Advanced HMI and an AB processor. I remember recently testing communications again and it "just worked" on the first try with little trouble, but I can't get the Beckhoff system to talk to me. Here's what we're running:

Machine information:
Windows XP Embedded
Beckhoff TwinCAT version 2.11.1553
PLC Control Version 2.11.0 Build 1016
This is an industrial PC mounted inside the machine cabinet and connected to a touch screen monitor on a swing arm. The PC is also running the OEM's custom HMI software.
IP Address: 192.168.0.20

Advanced HMI information:
Windows 7 x64 virtual machine (no extra firewall, virus scanner, or weird network security software on it) with a dedicated USB Ethernet adapter to bypass any IT issues on the host. The USB Ethernet adapter is attached to the VM as a device so it's invisible to the host.
Advanced HMI v3.99x in Visual Studio 2015
IP address: 192.168.0.50

The usb ethernet adapter attached to the VM is patched directly to the Beckhoff PC's NIC. The Beckhoff PC replies to ping from the VM.

I added a TwinCATCom driver and a panel meter to the main form.
I went into the PC and found a global variable to read. I have screenshots showing what I've done so far. What am I doing wrong?



Pages: 1 [2]