Easybuilder Pro question #9

What does that macro actually do.

I can tell you, but even if you can't write text-based programming yet, if you want to learn about it you need to learn by reading it.

First, you must identify an area of memory to hold a value, and what type the value is. The typing is very confusing at first, but tells the program how to handle the information. In the Easybuilder macro case, the int type is a 16 digit binary integer value. The identifiers are the names that will be associated with the value contained in that memory address. This is called "declaring a variable."

Then, I get the value held in a PLC memory location and store it into the memory space of the variable I declared using a function built into the EasyBuilder software. After that, use an assignment statement to add one to the value, but store it in the same place. Then I write that value to a memory location within the HMI so that I can use that value for comparison to set my limits.

I strongly suggest you start learning SOME text-based language. From what I hear python is pretty popular. I've generally used C, but it is a VERY difficult language to learn, so I strongly suggest python. It is pretty popular around school and just about every class in every branch of our of STEM departments use it, including econ and finance classes. Even my diff EQ class suggests we use python for some applications when we are doing numeric evaluation.
 
Was just wondering because I seen some macros record timers and other stuff. Ima have to find someone to sit wit me and explain it to me. I always have a hard time learning stuff like that.
 
Was just wondering because I seen some macros record timers and other stuff. Ima have to find someone to sit wit me and explain it to me. I always have a hard time learning stuff like that.

You might consider taking an introductory programming class at a local school. I've had an incredibly difficult time learning programming as well, but those classes also teach you computational thinking algorithms.

Perhaps you should start by studying algorithms which require no programming, then try learning a programming language.
 

Similar Topics

I have EB Pro installed on windows 11, I can open an existing project and edit but when I got to parameters tab and open page I get the hourglass...
Replies
0
Views
48
Hi, I would like to know if it is possible to modify the properties of an object via a macro? For example I have a value of 100, via conditions...
Replies
0
Views
858
Hi, I'm an intern student engineer and I'm tasked with creating a HMI for a control system in EBPro. I need to make an object (motor) which has...
Replies
5
Views
1,724
Hello everyone Im Newbie to Easybuilder and im designing and HMI application where I gotta display a warning message in a pop up window...
Replies
3
Views
1,764
I am banging my head trying to get EB Pro to convert simple math expressions. Ex: 1 Pump conversion coming from a SCP instruction O0 1.1 value...
Replies
2
Views
1,840
Back
Top Bottom