Wednesday, January 1, 2020

CAES ... interesting ...

A cool presentation of CAES technology ... a key changer or a hype?


Saturday, January 26, 2019

Seting up Hirschmann swtiches for the first time without Serial cable ?!

Do you also have to set up Hirschmann swtiches for the first time ?!? Well yes, they dont come with default IP address and if you, like me, dont have a serial cable to configure them, yes you are also F*** !!!

Well good news, you could use Hirschmann Discovery tool, HiDiscovery to set up the IP and configure the settings. It's very well explained in this video ...

OBS: you have to set a static IP on your ethernet adapter, if not the HiDiscovery will go NUTS !!!


https://youtu.be/YgvzeXgi43Y

You're welcome, it took me half day to find something good enough that helps actually ...

Thursday, September 7, 2017

IEC6113-3 Standard - supported programming languages

IEC6113-3 Standard - supported programming languages :
  • Instruction List (IL)
  • Ladder Diagram (LD)
  • Structured Text (ST)
  • Sequential Function Chart (SFC)
  • Function Block Diagram (FBD)
ABB Control Builder for various ABB products supports all these programming languages.

Saturday, September 1, 2012

Auto formatting the code in Visual Studio


- CTRL-A to select the whole text.
- Ctrl+K- Ctrl + F


 Before Auto Format
Ctrl - A selects the whole text
Ctrl K + Ctrl F, auto formats the whole text

Thursday, May 31, 2012

LCD Keypad Shield for Arduino Duemilanove, DealExtreme

If you have ordered "LCD Keypad Shield for Arduino Duemilanove & LCD 1602" from DealExtreme and are wondering about how to get this thing working without datasheet, you are in the right place :-) This product seems to be very similar(!) a product called "DFRobot LCD Keypad Shield for Arduino" and the Datasheet and even a library (LCD4bit_mod) for easy programming of it is available at following link, http://www.robotshop.com/dfrobot-lcd-keypad-shield-arduino.html, under useful links.

 The only issue with the library is that this is built for old versions of Arduino and if one to make it work with newest version (Arduino 1.0), then some parts of the code should change. First you need to install the additional library in your Arduino on your computer ( tutorial on how to install). Afterwards one should change the content of LCD4bit_mod.cpp 


#include "LCD4Bit_mod.h"
#if (ARDUINO < 100)
  extern "C" {
    #include   //not needed yet
    #include //needed for strlen()
    #include
    #include "WProgram.h"
  }
#else
  #include
#endif

String to Double issues in C# .NET


If you are simply using 

double test = Double.Parse("12.45");

and it doesn't work due to formating issues, here is the right post for you. Almost certainly you're using the wrong CultureInfo. Try specifying CultureInfo.InvariantCulture to parse in. I suspect it's currently assuming that "." is a thousands separator rather than a decimal point.

CultureInfo Invc = new CultureInfo("");
Invc = CultureInfo.InvariantCulture;

x1 = Double.Parse("12.45", Invc);

alternative:

x1 = Double.Parse("12.45", CultureInfo.InvariantCulture);

Wednesday, May 30, 2012

Tab Order in C# Windows Form - Visual Studio 2010

Setting Tab order in C# (Visual Studio 2010):

1 - Select View - Tab Order. This activates the tab-order selection mode on the form. A number (representing the TabIndex property) appears in the upper-left corner of each control.
2-  Click the controls sequentially to establish the tab order you want.
3 - When you are done, click View - Tab Order to deactivate the indexing.

Source: http://msdn.microsoft.com/en-us/library/bd16a8cw.aspx