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.
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.
Nowadays development on pure Assembler is not very popular, because modern compilers can generate “good” code. On the other hand this is a very good exercise, which helps to understand a calling conventions and how it work in very low details.
Calling external code from different languages is great feature of LabVIEW. In general you can wrap almost anything into DLL, then call it by Call Library Function Node. This time we will mix Rust code with LabVIEW.