5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-251
State output pin
Name Function
Data
type
Time when there is
a transition in an
output pin’s signal
from low to high
Time when there is a transition in an
output pin’s signal from high to low
Valid
The Valid output pin
is set to True when
an M-code is
executed.
BOOL
There is a
transition in the
Valid output pin’s
signal from low to
high when an
M-code is
executed.
There is a transition in the Valid
output pin’s signal from high to
low when there is a transition in
the Enable input pin’s signal from
low to high.
There is a transition in the
CLRMcode input pin’s signal
from low to high when the Valid
output pin is set to True. There is
a transition in the Valid output
pin’s signal from high to low
when there is a transition in the
CLRMcode input pin’s signal
from low to high.
Busy
function block is
BOOL
high when there is
low when the
re is a tra
nsiti
The motion control
There is a
transition in the
Busy output pin’s
signal from low to
a transition in the
Execute input
pin’s signal from
low to high.
There is a transition in the Busy
output pin’s signal from high to
on in
the Error output pin’s signal from
low to high.
being exe
cut
ed.
Error
An error occurs in
the motion control
function block.
BOOL
Input values are
incorrect.
There is a transition in the Error
output pin’s signal from high to
low when there is a transition in
the Enable input pin’s signal from
high to low.
Value output pin
Name Function
Data
type
Output range Time when a value is valid
Value
When the Valid
output pin is set to
True, the value of
the V t
he
is
W
When the Valid output pin is set to
Tru ut
pin is updated repeatedly.
alue outpu
pin indicates t
M-code which
executed.
ORD K0 ~ 4095 e, the value of the Value outp
3. Troubleshooting
Error Troubleshooting
The values of
function block
i n
ether
d.
nput pins in the motio
are incorrect.
control Check wh
ranges allowe
the values of the input pins are in the
4. Example
Purpose:
When the first G-code motion is executed, the motion control function block T_Mcode is used to
check the status of an M-code. If an M-code is executed, the motion control function block
T_Mcode will be used to clear the M-code.