Many are the plans in a person's heart, but it is the Lord's purpose that prevails.
Proverbs 19:21 NIV
DeBug
All things about finding the bug and eliminate it!
Thursday, September 22, 2016
Plans that will Succeed
Thursday, October 16, 2014
Finding the IP address
Don't know or forgotten the IP address of #Beckhoff devices? Use the tips here to find IP address quickly without any fuss.
Quick steps to find IP address of Beckhoff device
1. Install and run #Wireshark on your laptop http://bit.ly/1WEaRPa
2. Connect the Beckhoff device directly to laptop using a patch cable
3. Power on the Beckhoff device
4. take note of ARP command or IP address where the Source not from laptop
5. Configure your laptop to the same IP address group
6. PING the device IP address
For more information, read the Wireshark forum. http://bit.ly/1U6NxWU
Tuesday, October 7, 2014
Diagnostics with EtherCAT
EtherCAT provides a powerful diagnostic mechanism that can be used by master applications to monitor the network status synchronously with the communication cycle. Master applications such as PLC programs can therefore react immediately to any error condition within the network with a simple evaluation of the Working Counter in the application software
Diagnostics with EtherCAT - Part2
In Part 1, the Working Counter was described as a mechanism for EtherCAT master devices to cyclic-synchronously monitor slave behavior. Part 2 covers further diagnostic mechanisms that allow master devices to precisely detect the location and cause of error conditions both at the hardware and at the application level of a slave.
Wednesday, October 1, 2014
Debug TwinCAT Ads Driver in IWS
The hardware configuration is very simple. There's a Beckhoff Embedded PC CX5020 and Panel PC CP2212 which are connected to a Wifi router. Both PCs are configured with static IP addresses.
Initially, the router DHCP was enabled. Thus, the router automatically assigned IP addresses for both PCs. We had to disable the DHCP in the router to prevent automatic assignment of IP addresses.
The Scada project was working fine in my last visit. After the recent Scada project update, the TwinCAT ADS driver just seems "bad".
The first thing that I zoomed in is the AMS route setting. Having check on both PCs that the route settings are correct, I diverted my focus on the InduSoft Main driver sheet.
Altogether, there are approximately 500 tags inside the Main driver sheet. From my development laptop, I use the Remote Management >> Connect to the Panel PC having the IWS Local Interface runtime.
Then, I start the remote Logwin where instantly the Logs tell me exactly what went wrong.One of the tag is accessing a PLC variable that is invalid. This pretty much screws up the entire Main driver sheet.
In order to avoid making much changes to the Scada project, I changed the Scan frequency from default "Always" to "Screen". This means that the tag will only be Read when the screen that requires it's status for update. The Scada status is up and running again after the change is downloaded.
Tuesday, September 30, 2014
Debug Daikin Bacnet/IP gateway
After many attempts and trials, we decided to go really deep into the protocol by using Wireshark to monitor the network traffic and protocol send between the 2 devices. Only then did we realize that the Daikin BacNet Gateway is totally ignoring all the read commands from the new PC.
Therefore, our black box assumptions could be wrong after all. We have no idea what to expect from the BacNet gateway and we can't tell for sure if the target device is functioning properly.
Our 2nd assumption on the Indusoft driver could also be wrong too. As the older Indusoft project uses OPC-DA, by assuming that things will works the same when we use BacNet/IP in replacement is a big mistake.
At the end of the day, we'll need Daikin specialist to provide us with professional advice if these assumptions are to be proven correct or not. That's just parts and parcels of an engineer life. Debug!
Tuesday, September 23, 2014
The black box
Engineering succeeds and fails because of the black box.
A black box is a conceptual container for the knowledge, processes, and working assumptions of an.engineering specialty. On multidisciplinary design teams, the output of one discipline's black box serves as the input for the black boxes of one or more other disciplines. The designer of a fuel system, for example, works within a "fuel system black box" that produces an output for the engine designer; the engine designers' blacks box output to the automatic transmission designer, and so on.
Design solution don't emerge linearly, however, and design teams work in interconnected webs of relationships. Hence, the black box model works best when employed as a momentary ideal that is adjusted and redefined throughout the design process as constraints become evident, opportunities emerge, prototypes are tested, and goals are clarified. It fails when expected to be permanent and orderly.
Excerpt from "101 things I learned in engineering school" by John Kuprenas with Matthew Frederick