Installation manual.
CNC 8060
CNC 8065
CN
C-PLC COMMUNICATION.
5.
Auxil
iary –M– fu
ncti
ons.
·379·
(R
EF
: 1709)
5.1.1
Special considerations with the multi-spindle option and channels.
The CNC may have up to 4 channels and each channel can execute a part-program in
parallel with the rest. This means that each channel can execute seven auxiliary functions
simultaneously. The auxiliary functions executed from each channel are treated
independently; to do that, each channel has its own marks and registers.
Since each channel may have four spindles, it is possible to program in the same block 6
non-spindle-related M functions, the startup of all four spindles M3 / M4 and a speed for each
of them involving an automatic gear change. This means that, because some functions are
generated automatically, it may exceed the maximum of seven auxiliary functions per block.
In this case, the CNC will send the M functions out to the PLC in two stages.
Marks and registers in the channels option.
Each channel has 32-bit registers MFUN1 to MFUN7 to indicate to the PLC which auxiliary
M functions are programmed in the execution block.
MFUN1C1 - MFUN7C1
for the first channel.
MFUN1C2 - MFUN7C2
for the second channel.
MFUN1C3 - MFUN7C3
for the third channel.
MFUN1C4 - MFUN7C4
for the fourth channel.
Each one of them indicates the number of one of the M functions programmed in the block.
If all the registers are not used, the CNC assigns $FFFFFFFF to the unused ones (those
with the highest numbers).
This way, if functions M100 and M135 are programmed in the first channel and functions M88
and M75 in the second channel, the CNC will transfer the following data.
Commands MFUNC1* - MFUNC4*. Checking if a function has been programmed in the
channel.
To know whether a particular M function is programmed in the execution block, use one of
the following methods:
• Check all the MFUN registers one by one until that particular M function is found or until
one of them has the value of $FFFFFFFF.
• Use one of the following commands to check all the MFUN registers of the channel at
the same time.
MFUNC1*
For channel 1
MFUNC2*
For channel 2.
MFUNC3*
For channel 3.
MFUNC4*
For channel 4.
MFUN1C1
MFUN2C1
MFUN3C1 - MFUN7C1
100
135
$FFFFFFFF
MFUN1C2
MFUN2C2
MFUN3C2 - MFUN7C2
88
75
$FFFFFFFF
Example for detecting M04 in channel 1. If it has been programmed, it will return a "1", and
a "0" if otherwise.
CPS MFUNC1* EQ 4 = ...
Summary of Contents for CNC 8060
Page 1: ...Ref 1709 8060 8065 CNC Installation manual...
Page 10: ...BLANK PAGE 10...
Page 14: ...BLANK PAGE 14...
Page 20: ...BLANK PAGE 20...
Page 32: ...BLANK PAGE 32...
Page 36: ...BLANK PAGE 36...
Page 38: ...BLANK PAGE 38...
Page 40: ...BLANK PAGE 40...
Page 41: ...PART 1 INSTALLATION MANUAL...
Page 42: ...BLANK PAGE 42...
Page 532: ...Installation manual CNC 8060 CNC 8065 9 CNC VARIABLES 532 REF 1709...
Page 533: ...PART 2 CONCEPTS...
Page 534: ...BLANK PAGE 534...
Page 548: ...Installation manual CNC 8060 CNC 8065 10 GENERAL SETUP Configuration examples 548 REF 1709...
Page 644: ...Installation manual CNC 8060 CNC 8065 14 SUBROUTINES Assistance for subroutines 644 REF 1709...
Page 668: ...Installation manual CNC 8060 CNC 8065 15 HARDWARE Configure the PT100 inputs 668 REF 1709...
Page 697: ...Installation manual CNC 8060 CNC 8065 697 User notes REF 1709...