How to use Assembly in B&R PLC
B&R PLC could be programmed with C and C++. But you can also use Assembly. Below short instruction how to do that.
B&R PLC could be programmed with C and C++. But you can also use Assembly. Below short instruction how to do that.
It is necessary to set Working Directory, otherwise ConEmu will not start Far Manager.
The AutoHotkey script for Win+F:
#Requires AutoHotkey v2.0
#f::
{
SetWorkingDir("C:\Program Files\ConEmu")
Run ("C:\Program Files\ConEmu\ConEmu64.exe")
}
B&R PLC could be programmed with C++. State Machine is common used pattern. There are lot of examples of how to implement State Machines in C++. One of the example was taken and turned to B&R State Machine
Today I noticed that my computer was slower than usual. A brief investigation revealed that PowerLauncher.exe was causing other running MSI installers to fail when setting up shortcuts.
The DICONDE Value Representation of a Data Element describes the data type and format of that Data Element’s Value(s).
Time to time I need “quick and dirty” benchmark to check performance. Sometimes using CPU Bench from CPU-Z or AIDA, but there is quicker way with Power Shell…
I was experiencing extremely poor performance of the VMWare Workstation on a Xeon PC running Windows 11 LTSC 24H2. Below the command with some magic.
In some cases we need to measure a very short intervals (hundreds of the CPU Tacts) directly in Assembler. We can perform measurement by using cpuid/rdtsc combination.
Collection of useful small Snippets
Small but useful snippet about CPU’s Name and to get it programmatically using WMI. Useful for Information and benchmarking purposes.
In some cases we need to have dedicated Drive in absence of the physical Drive. In this case we can add drive mapped to the Folder. Typically this could be done using SUBST command, but there is more convenient way.
Sometimes you need to prevent Windows updates and following restarts of the PC (for example during long endurance test while PC Stays connected to Internet). An easiest way to do this - is just set Metered Connection to public interface
A very simple and basic TCP communication example for Python and LabVIEW
Many beginner users may be frustrated with .net and how it used in LabVIEW as well as why .NET Core and .NET Framework exists and what the differences. Since last LabVIEW 2024 supported both Core and Standard below is “demystification” with practical examples and some notes.
Interesting question was raised on NI Forum. “I have created an app that works without issue… As a DLL called by Python, 1 of the functions work… the other just freezes.”. The reason is — the Execution System was set “same as caller” (which is default), but Python is not LabVIEW.