-
PLC has the concept of macro, in fact, the so-called macro is any kind of programming software, it is just a thought, the specific form may be different, but the function is the same, is to simplify the process of repeated programming and the establishment of the concept of macro, and Excel in the macro concept is similar. It refers to a set of algorithms. For example, Mitsubishi PLC's Q series, there is a macro function, that is, a macro function, the approximate usage is that you write a program, you can register this program as a macro, and then set some macro parameters, and then you can call the macro and set some parameters that you set when establishing the macro, you can automatically generate the corresponding program, simplifying the writing steps.
Hope it helps.
-
A macro is a type of pseudo-instruction in an assembly language program.
A macro is a piece of source program that represents a function.
It is formatted:
Macro name ] macro [formal parameter].
**Segment. endm e.g
mov_ macro f1,f2
mvl f1,w,acce ;Put the data in the F1 address into the W register.
The data for f1 is unchanged.
mvf f2,w,acce ;Put the data in the W register to the F2 address.
endm ;This command is equivalent to assigning the data in f1 to f2, and the data in f1 does not change.
"Formal parameters" are used, which refer to macros and are replaced by some given name or value (real parameters). The use of formal parameters gives macros a lot of flexibility.
Macro call format.
Macro name ] Actual Argument].
The real parameter item will replace the formal parameter in the macro accordingly. If the formal parameter is a label, the argument should also be a label in the macro call, and the argument must be unique. If the macro is defined.
, the assembler automatically turns the designator into a unique designator when the macro is called.
-
There are no macros in the PLC, but they are usually in the touchscreen program, and the other way of saying it is a script, which is generally similar to VB
-
1. A macro is a kind of pseudo instruction in the assembly language program, which represents a piece of a functional lead source program.
2. Macro refers to a specific single instruction defined by the programmer in advance, which is a set of recurring abbreviations of rulers, and then where the macro appears, the assembler always automatically replaces it with the corresponding defined block.
-
Yonghong PLC's sequential control system instructions are as follows: circular imitation of trapped orange diagram:
-
For example, if you select action 1, you will work in the order of 1, 2, and 3.
Note: 1) Penetration must touch (locked on the curve) and coincidence is not necessarily, i.e., penetration is a special case of coincident. >>>More
ActionScript language reference.
ActionScript language elements > global functions > on handlers. >>>More
The declining account of assets refers to the fact that when a type of asset decreases, it is not reduced on its credit, but is accounted for and reflected by the corresponding declining account. The decreasing account for fixed assets must be accumulated depreciation; The declining accounts for temporary facilities are temporary facilities amortization, etc.
In the Chinese character cultural circle, China and North Korea were both called "American" when they first came into contact with the United States, referred to as "American", also known as "Citigroup". However, due to the fact that Japan and China are less influenced, it is called "Amiliga Country", or "Rice Country" for short. But there are still people in China who call it the rice country, such as Zeng Guofan, who said: >>>More
Chain refers to the system of activating and solving the effects of magic traps, corresponding to the activation of one effect and the act of activating other effects. >>>More