Installation manual
CNC 8055
CNC 8055i
PLC PROGRAMMING
10.
SOFT: V02.2X
·457·
Directing instructions
MRD
Updates the values of resources M5000/5957 and R500/559 with the values of the logic outputs
of the CNC.
Care must be taken when using this instruction since the current values of those resources will
be lost. After executing this instruction, the new values will match those of the logic outputs of the
CNC (internal variables).
MWR
Updates the logic inputs of the CNC (internal variables) with the current real values of resources
M5000/5957 and R500/559.
TRACE
This instruction must be used when working with the logic analyzer. It is used to capture data during
the execution of a PLC cycle.
It must be born in mind that the logic analyzer performs a data capture at the beginning of each cycle
(PRG and PE) after reading the physical inputs and updating the marks corresponding to the CNC
logic outputs and just before starting the program execution.
To also capture data while executing the PLC cycle, the "TRACE" instruction must be used.
Example of how to use the "TRACE" instruction:
The data capture while executing the trace in this program takes place:
• At the beginning of each PRG cycle.
• Every time the periodic module is executed (every 5 milliseconds).
• 3 times within the PRG module.
• Once within the PE module.
This way, by using the "TRACE" instruction it is possible to capture data more often by inserting this
instruction at critical points.
The "TRACE" instruction must be used only when debugging the PLC program and it should be
removed once the debugging process is over.
PRG
-----------
TRACE
-----------
TRACE
-----------
TRACE
-----------
END
PE 5
-----------
TRACE
-----------
END
Data capture.
Data capture.
Data capture.
Data capture.