Tag Archives: mitsubishi plc basics

How to set up Mitsubishi PLC Set batch?

The Mitsubishi PLC_FX series does not have a batch set command.

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.

Method 3: BON+V instruction.

Method 4: SFTL (SFTR) instruction.

How to insert comments in Mitsubishi PLC programming software

Insert comments

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.

Mitsubishi plc programming Ladder diagram: motor is rotating for 10 seconds, inversion for 8 seconds, cycle

Ladder diagram:

Press X0, M0 is energized and self-locked.
At the same time, KT1 is turned on and Y0 is output. At this time, the motor is rotating 10S.

When the 10S time is up, T1 disconnects YO, and M1 is powered on and locked.

At the same time Y1 output, the motor is reversed.

KT28 seconds to the time, M0 reset, at this time a working cycle is over, automatically enter the next cycle.

What is the command of Mitsubishi PLC [DDRVI K99999 K8000 Y0 Y03]

DDRVI instruction

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

What is the meaning of MOVP in PLC?

The MOV in PLC is the transmission instruction, for example [mov K15 D100] means to transfer the decimal constant K15 to register D100.

MOV is continuous execution, that is, each scan cycle is transmitted once.



MOV K100 D10

When X0 is ON, K100 is transmitted to D10 and automatically converted to binary number.

MOVP is a pulse execution, that is, the instruction is activated once, and a transfer is performed.

MOVP K2M200 D40

The value of m200–m207 in decimal form is assigned to D40
MOVP K11 D0:

A transfer process is performed when conditions are available.

(pass constant 11 to D0 data register). It is usually performed only when there is a rising edge.


It is to transmit H1A1 to module 0, buffer 0.

Mitsubishi plc FX2N-2AD type Analog Input Module Features

FX2N-2AD Resolution 12 binary precision Mitsubishi plc analog input module
FX2N-2AD available for 2-channel voltage input (DC0-10V DC0-5V) or current input (DC4 – 20mA)

Voltage Input
Current input
Analog Input Range
DC 0-10V  DC 0 -5V
(Input Resistance200KQ)
The absolute maximum input:-0.5V +15V
DC4 – 20MA(Input Resistance250Q) The absolute maximum input:-2MA +60MA
FX2N-2ADInput Characteristics
Mixed voltage and current inputs. The same input features two channels.
Effective digital output
12 binary
2.5MV(10V x 1/4000)1.25MV (5VX 1/4000)
4MA((20-4)MAX 1/4000)
Combined accuracy
(For the full-scale10V)
(For the full-scale(20-4)MA)
Conversion speed
2.5ms/1个Channel (and sequencers synchronized action)
Isolation mode
Input and PLC’s power Using optocouplers and DC / DC converter isolation (no isolation between each input)
FX2N-2ADPower supply
DC5V 20mA(PLCInternal power supply)DC24V 50mA(PLCInternal power supply)
Input and output 
Occupied points
8 channel
Mitsubishi plc applicable