DVP-15MC Series Motion Controller Operation Manual
11-404
the state of Pause to FALSE, the parsing of the CNC file continues and CurrentLine and axis
position outputs are recovered. When the parsing is complete, Done changes to TRUE.
Meanwhile Busy and Active change to FALSE. Done changes to FALSE by changing Execute
to FALSE.
Case 4: When Execute changes to TRUE and one of the parameter values for the instruction is incorrect,
Busy changes to TRUE. One cycle later, Error changes to TRUE, ErrorID outputs error ID and
Busy changes to FALSE. When Execute changes to FALSE, Error changes to FALSE and the
vlaue of ErrorID changes to 0.
Function
DMC_NC Instruction is used to parse the CNC file.
The instruction analyzes the position of each axis and outputs each axis position to corresponding output
parameters of the instruction (e.g. Pos_X, Pos_Y, etc.) every SYNC cycle. Actually the values of Pos_X and
Pos_Y do not control the axes and they are only the positions which are parsed out. If you want to control any
axis through this instruction, the position which is parsed out by the instruction can be assigned to Position of
the DMC_ControlAxisByPos instruction by using the DMC_NC instruction together with the
DMC_ControlAxisByPos instruction. By doing so, the axis motion can be controlled according to the path
planned in the CNC file.
1. The DMC_NC Instruction is executed by changing Execute from FALSE to TRUE. There is no impact on
the instruction execution by changing Execute of the instruction from TRUE to FALSE in the course of
the instruction execution.
2. Changing Execute from FALSE to TRUE once more during the execution of DMC_NC Instruction does
not affect the instruction execution.
3. By setting Stop to TRUE during the DMC_NC instruction execution, the CNC file parsing will end and
Done changes to TRUE.
4. By setting Pause to TRUE during the DMC_NC instruction execution, the CNC file parsing will stop for
a while and will continue after Pause is set to FALSE.
5. The NCFile input specifies the number of the CNC file to be executed, i.e. it is the ID of the CNC file
created in the programming software.
6. The AxesGroup input specifies the number of the axes group which is to execute the CNC file.
Programming Example
Axes are controlled to move according to the path planned in the CNC file by using DMC_NC and
DMC_ControlBypos instructions. Axis 1 and axis 2 are configured in the program. The initial positions of
the two axes are both 10000 units. Axis 1 is X axis and axis 2 is Y axis.
A new CNC file is created in the program with the file ID set to 1.
See the program as follows.
N00 G91
N01 G0 X40000 Y90000
CNC file execution result:
After G91 is executed, the end position of each axis in the G codes below G91 is calculated by the
incremental value starting from the current position. After G0 is executed, X axis moves 40000 units
from the current position (10000) to the end position (50000). Y axis moves 90000 units from current
position (10000) to end position (100000)
Variable name Data type Initial value