Author: Jan

BSA – Grid Alignement

The purpose of a design grid is to force symbols to align to a grid line at left, top, right and bottom so they are easy to position and size compared to eachother. This speeds up drawing/design as you use less time sizing and positioning symbols on the screen. The default design grid is 10…

Read the full article

C# assign behavior

     double h = Height = newSize.Height; Height is a property with set and get functions in C#, so what I expected was that set Height was called first – which it does and then that get Height was called secondly – which it does not. In fact the assign operation will execute the…

Read the full article

Happy New Year 2022

Happy new year to you all. It’s been a few years of blogging since I started and what keeps me bothering to do this is all you who read my ranting and give feedback, so thank you for reading.

BSA – Text Alignment

This show a classic label and an associated edit field. Notice that the text “label” and “Text” are not aligned. In my case I force the controls to align to the grid and in this case I get the side effect that these two texts do not align. One solution would be to switch off…

Read the full article

BSA – Mini Text Editor

I just copied text from an earlier blog into my mini text editor for demonstration –  and this works out very nicely. The capability to edit text is usually a dinosourus in these apps, so I am very happy to see that this one actually works out well and are very functional. I need to…

Read the full article

BSA – HMI Controls

Many of the HMI controls use actual Windows Controls as base. In the example above I draw a simulated design form as a symbol and use various build-in controls to get the result as real as possible. The challenge is that these controls are designed to be in control – not be controlled by a…

Read the full article

BSA – HMI Border Colors

Just to prove my point with borders being to dark I encreased them from 0x32,0x32,0x32 to 0x64 and it makes a big difference as you now actually can see the outline of the control. Keep in mind that these border lines are design help, not actual borders on the real Form. In design mode we…

Read the full article

New Motor Controller

This is a Dev kit from ST that is a complete Motor Controller in ESC format with 3 current sensors, 3 BEMF, 3 discrete Gate Drivers, Hall sensors, temperature sensors and 28V@120A Solution. The MOSFETS are rated at 120A with 480A pulse, but heat dissipation causes them to be limited to max 40A with hard…

Read the full article