Mitsubishi PLC instruction DHCMOV
The high-speed counter transmits the clear and unclear instructions, [DHCMOV C521 D0 K0] K0 is cleared, and k1 is the value of c251.
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.
ALT instruction is alternate output
Assume that Y0 is the indicator light.
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 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) 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.
SHAPE \* MERGEFORMAT
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.
spd k100 d100
dmul d100 k60 d128
N is a detected value per minute
N represents the number of pulses when the turntable revolution needs: supplement