Tag Archives: mitsubishi plc instruction list

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 use the ALT instruction in Mitsubishi PLC

ALT instruction is alternate output
Assume that Y0 is the indicator light.
LDP X0
ALT Y0
At this time, Y0 is off, and when X0 is pressed, the indicator lights up. Press again to turn off the light, then press it again. It’s as simple as that, it will alternate output. This can also be used as a single button to start the stop program!
Just use it when using the rising edge to achieve the alternation. If X0 does not use the rising edge, it is very likely that the PLC has actually read this switch twice.

MITSUBISHI FX2N PLC special auxiliary relay

mitsubishi plc special relays include M8000 …M8008  M8011….M8019  M8020….M8029  M8030…M8039   Different functions of different special relays serve MITSUBISHI PLC at the same time. 

here  have some mitsubishi plc special relays example you can see

RUN monitoring M8000, M8001

RUN monitoring (M8000, M8001) which shows the running state of PLC can be used as the driving condition of instructions and the external display of “display in normal operation”

RUN is in ON state when normal, and Y0 leads.

M8001 is in OFF state when RUN is normal.

Initial pulse M8002, M8003

After the start of PLC operation, M8002 is ON in one instant (one operation cycle) and remains OFF in the rest of the time. The read pulse is used as initialization signal in the case of program initialization and writing specified value.
M8003 is OFF only at one instant (one operation cycle) after the start of PLC operation, and the rest of the time is in ON state.

SHAPE \* MERGEFORMAT

Operational error flag auxiliary relay M8067

M8067 performs error detection in operation or RUN when PLC is removed from STOP to RUN. When M8067 is ON, save the smallest address number in D8004, M8004 action.

Mitsubishi SPD instructions on how to calculate the speed

Mitsubishi SPD instructions on how to calculate the speed?
N = (60 * D0 * 1000) / nt r / min
n What does it mean
Speed ​​detection command using the SPD,Its function number is FNC56,Speed ​​detection instruction is used in the detection unit time (time unit is ms) read from the specified number of pulses input into the relay (rising edge),And stored in the specified data register.
Command
ld m8000
spd k100 d100
dmul d100 k60 d128
ld x3
rst c235
N is a detected value per minute
N represents the number of pulses when the turntable revolution needs: supplement