1. Try to avoid using "double words" when you can use "words", and try to prevent using real numbers when you can use integers.
2. Give priority to the use of surplus (other than hardware connection) IB, IW, ID, QB, QW, QD, followed by M and S;
3. Try to prevent the conversion of data types, and try to use AC to store intermediate variables when necessary to reduce the number of conversions. For example, when using VW2 to save integers, VW0 can directly visit the data in VW2 in the form of VD0.
4. Reduce unnecessary network scanning, and classify the network that can be executed conditionally (especially AIW and AQW) into subroutines for conditional invocation (such as punctual interruption);
5. Use XOR instructions to negate any bit (this instruction is slightly difficult, and it is necessary to carefully align the position in debugging, and it is advocated to use binary numbers when programming);
6. Under the premise of ensuring the process requirements, appropriately reduce the frequency of interruption;
7. The subroutine should try to reduce the number of condition discrimination, standardize the import and export parameters of the subroutine, and then reduce the code redundancy.
8. For repetitive and time-consuming missions, it should be handled in cycles; This includes spreading the initialization job over multiple cycles. The sampling time of multiple PID loops is slightly different to prevent multiple interrupt calls in the same cycle, making the scan cycle more uniform and stable.
9. Regarding the subroutine call with less input data, you can first judge whether the input data has changed, if there is no change (please refer to the 48th floor for comparison method), you can directly bypass the subprogram, and then reduce the scanning cycle.
10. Try to arrange the bit variables in the V region in V511.7, and arrange the VB/VW/VD variables with high frequency in V4095, which can shorten the program scanning cycle.
11. If SM0.0 is connected in series with other signals, it only increases the program size and execution time, and has no other role (if the network has met the necessary contacts on the left, there is no need to connect SM0.0 in series);
12. When there is no need to share signals, multiple instructions placed in the same network will have a rated entry and exit stack operation (the details can be converted into STL for analysis), and if it is not a logical requirement, it should be prevented from being connected horizontally, so that at least one "and" instruction can be reduced. The good thing is that it's just a little bit more compact in a network.
13. Rational use of immediate IO instructions (try to reduce the use) to save the time of PLC processing of immediate instruction.
14. Try to use the accounting result memory in the accounting, instead of the transition memory.
|
More on that
|
Mitsubishi FX5U series PLC ten advantages
1. CPU function
As a MELSEC IO-F series PLC actuator, it is equipped with executable structured programs and multiple program actuators, and can be written to ST language and FB.
2. Built-in analog input and output (alarm output by the way)
Built-in 12-bit 2-channel analog input ...
|
|
Mitsubishi PLC Programming FAQs
1. Can the PLC of FX1N be extended to connect with FX2N's input and output modules, positioning modules, analog modules, etc.?
The PLC of the FX1N is fully capable of expanding the expansion modules connected to the FX2N. Such as FX2N-16EX, FX2N-16EYR, FX2N-4A...
|
|
Mitsubishi servo motor one-button adjustment function
In the MR Configurator2 servo commissioning software, Mitsubishi has developed a "one-button adjustment" function to solve the problem of rigid noise of servo motors, as follows:
1. Set PA08 to 0003 and adjust the gain to ...
|
|
Low-voltage electrical faults and maintenance methods - Mitsubishi
In the process of operation, low-voltage electrical appliances will present problems due to improper use or long-term operation of aging components, and there are many kinds of problems, and the common problems are analyzed and dealt with.
1. Contact problems and repairs
The contact is the primary component of the low-voltage switching coupon, ...
|
|
Mitsubishi PLC floating-point number comparison and arithmetic instruction usage
The floating-point arithmetic instruction (FNC110-FNC1320) is used to process floating-point numbers, which are 32 digits and contain 13 instructions such as floating-point number comparison, transformation, four-rule operation, open-squared operation and trigonometric function.
All floating-point processing instructions are 32-bit instructions, and when used ...
|
|
Mitsubishi servo motor is now commonly used
Torque control: Torque control is based on external simulation imitation typing or direct address assignment to set the output torque of the motor shaft. For example, 10V matches 5Nm. When the external simulation simulation is set to 5V, the output of the motor shaft is 2.5Nm. If the load of the motor shaft is less than 2.5Nm, then when ...
|
|
Mitsubishi tension controller principle
1. Tension Manipulator Principle - Introduction
The tension manipulator can be called the tension manipulator, which is usually used with magnetic particle brake, magnetic particle clutch and tension detector, and is suitable for winding, unwinding, tension control, etc. It also has the so-called manual control function, which generally refers to the human ability to ...
|
|
PLC industrial automation production line construction steps - Mitsubishi
When we select PLC as a controller for the construction of industrial automation production line, we should go through the following process, which is briefly described below:
1. First of all, the demand side, that is, Party A, needs to tell Party B what they want to achieve.
|
|
Mitsubishi controller and driver function and function
Functions and functions of the Mitsubishi controller:
To control the speed of the motor, the controller is also required to have corresponding maintenance functions such as brake power-off, under-voltage maintenance, under-voltage recovery value setting, over-current maintenance, etc. Some of the smart energy controllers also have multiple riding modes and have an electric ...
|
|
Pay attention to the wiring of the Mitsubishi PLCI/O terminal
1. Enter the wiring
(1) The input wiring should generally not exceed 30 meters. However, if the environmental disturbance is small and the voltage drop is not large, the input wiring can be appropriately longer.
(2) The input/output lines cannot be separated by the same cable, and the input/output lines should be separated.
(3) As far as possible, choose normally open ...
|
|
Features of Mitsubishi PLC commonly used models
FX Series PLC: FX3G PLC has a built-in large-capacity program memory, 32K steps, and the basic instruction processing speed can reach 0.21μs in specification mode. In the meantime, the FX series 5U is suitable for any industry, and is used by small and medium-sized enterprises. For example, this year's very popular mask machine is suitable for FX5U, and he can ...
|
|
Mitsubishi servo system failure problem
The origin position is incorrect, and the encoder debugs/zeros the bit
Replacement bearings, bearing groove wear, rotor cracking, shaft cracking
Gear groove wear
The magnet bursts steel, the magnet falls, gets stuck and doesn't move
Encoder wear, code ...
|
|
Fault analysis of Mitsubishi inverter OC1 and OC3
Mitsubishi inverter OC (overcurrent problem) will be caused by the following reasons, taking A500 series inverter as an example:
1). Caused by improper parameter setting problems, such as time setting is too short.
2). ...
|
|
PLC troubleshooting method - Mitsubishi
1. If the PLC stops in the middle of some outputs where the output is excited, then look for the signal that caused the next operation (input, timer, line, drum manipulator, etc.). The programmer will show the ON/OFF status of that signal.
...
|
|
Mitsubishi servo motor shaft failure causes and solutions
1. The cause of the failure
(1) Unreasonable mechanical design leads to excessive radial load force;
(2) The load side is stuck, or the moment of severe overload;
(3) The motor and reducer are not centered when installed;
2. Fault cleaning
...
|
|
Application of Mitsubishi FX PLC in speed measurement
[Example] a motor is equipped with an optical encoder (the optical encoder is coaxially installed with the motor), and the FX2N-32MT is used to measure the speed of the motor.
【Solution】
Because the photoelectric encoder is coaxially installed with the motor, the ...
|
|
Mitsubishi PLC control servo motor method
1. The transistor output type of the FX series generally sends pulses to the servo through the output point of Y0, Y1 or the positioning module, and the speed and direction of the servo depend on the frequency and direction of the pulse in your program.
Mitsubishi FX3U series ...
|
|
Mitsubishi inverter FR-E700 series is selected
Q: When will I choose the E740 series inverter?
A: E700 is an economical and small inverter with high driving performance, with the function of holding the brake, and can also add options to expand the function, which can be used for transportation, lifting occupations, and has high cost performance.
Q: Mitsubishi inverter E740 should ...
|
|
A brief description of Mitsubishi's PLC network structure
1. The equipment layer/fieldbus CC-Link equipment layer is a field network that connects PLC and other control equipment, sensors and drive equipment, which is the lowest layer of the entire network system. CC-Link fieldbus connection is selected, the number of wiring is greatly reduced, and the maintainability of the system is improved. Whereas...
|
|
Introduction to the principle of Mitsubishi tension controller
The tension controller can be called the tension manipulator, which is generally equipped with magnetic powder brake, magnetic particle clutch and tension detector, and is suitable for winding, unwinding, tension control, etc. It also has the so-called manual control function, which generally refers to the ability to give a certain amount of output through the tension manipulator ...
|
|