Mitsubishi PLC instruction “DRVA”

The Mitsubishi PLC instruction DRVA refers to absolute positioning.

“—-||—–[DRVA K3000 K500 Y001 Y003]”

I/O points can be accessed directly if immediate I/O instructions are used during program execution. Even if an I/O command is used, the value of the input process image register will not be updated.

The program takes values directly from the I/O module and the output process image registers are updated immediately. Only the status and data of the input points in the I/O map area will not change, while the status and data of other output points and soft devices in the I/O map area or system RAM storage area may change.

14-34-01-15-1

[S1·]: Target position (absolute designation)
[16-bit instruction 1:-32 768~+32 767
[32-bit instruction 1: -999 999~+999 999
[S2·]: Output pulse frequency
[16-bit instruction]: 10~32 767 (Hz)
[32-bit instruction]: 10~100 000 (Hz)
But not less than the lowest frequency of the output pulse.
[D1·]: Pulse output start address
Only Y000 or Y001 can be specified.
The programmable controller output must use the transistor output mode.
[D2·]: Rotation direction signal output start address
According to the difference between [S1·] and the current position, the operation is performed as follows.
[+(正)] ON
[-(negative)] OFF
The target position is [S1·], which corresponds to the current value register below as the absolute position.
When outputting to [Y000] → [D8141 (high), D8140 (low)] (using 32 bits)
When outputting to [Y001] → [D8143 (high), D8142 (low)] (using 32 bits)
When inverted, the value of the current value register decreases.
During the execution of the instruction, even if the content of the operand is changed, it cannot be displayed in the current operation, and is valid only when the next instruction is executed.
If the contact of the command drive turns OFF during the execution of the command, it will decelerate to a stop. At this time, the execution completion flag M8029 does not operate.
When the command drive contact is turned OFF, the pulse drive output flag (Y000: [M8147], Y001: [M8148]) is turned ON, and the command drive will not be accepted again.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.