However, other instructions can be used instead of the effect.
The simplest is to use the transfer instruction MOV, but the MOV instruction is a group of 4 components. Although simple, it cannot achieve any batch setting. For example, if M11 is used for other purposes and cannot be set with M0~M10 together, then the MOV instruction can’t do anything.
So, I have summarized four methods that enable batch placement of components.
Method 1: WOR instruction.
Use the or instruction to set the components in batches. Use a set of 11 high-order binary numbers to perform an OR operation with K4M0 and store the result in K4M0. The benefit of an OR operation is that the 0 bits in the binary are not reset to other components.
16-bit binary number: 0000 0111 1111 1111
Convert to hexadecimal as: H07FF.
The decimal is K2047.
It takes 11 scan cycles to complete all set, which can be done in one cycle using the FOR\NEXT loop instruction.
Method 2: SET+V instruction.
Note: The [SET M0V0] command can only be used in the FX3U series, and the FX2N series is not available.
1. In the GX-Develop (programming interface) menu, the “Display” drop-down – comment display, make sure all comments can be seen, then click on the “Device Comments” in the leftmost project bar, double-click “COMMENT” “All the uncommented X, Y, and M devices have been commented out. You can add them after you need to fill in the comments. You can see them by closing them back to the programming interface.” – This method is suitable for batch comments
2. On the programming interface menu bar, find the “Comment Edit” button, click on the double-click on the device you want to edit, and type it, but if you want to continue programming, you need to click this button again to return to the programming state.
Generally used in data display and data input, supporting some such as calculating and displaying the current value, setting some such as speed. Time, etc.
Inputs must be used in accordance with the application instructions, such as data comparison instructions:
DRVI is a relative positioning instruction (DRVI is 16 bits, DDRVI is 32 bits), and the current data in the current value register is used as a starting point to increase or decrease. It is a command to perform single speed position control in relative drive mode.
DDRVI K99999 K8000 Y0 Y03
Output pulse number Output pulse frequency Pulse output start address (only Y0 and Y1 are specified), rotation direction signal output
1, Mitsubishi PLC programming cable communications port and baud rate are set correctly. Such as: Point Serial Icon -> port RS232-> baud 9.6k/bps-> OK -> then click communications test, if successful, displays the communication hardware connection is no problem. 2, Mitsubishi PLC Are there written procedures, or that the PLC is worked properly. 3, the program is encrypted, the program also lost. 4, Mitsubishi PLC whether damage.