Installation manual.
CNC 8060
CNC 8065
5.
CN
C-PLC COMMUNICATION.
Auxil
iary –M– fu
ncti
ons.
·378·
(R
EF
: 1709)
5.1
Auxiliary –M– functions.
Up to 7 M functions in the same block. The CNC indicates to the PLC which auxiliary M
functions are programmed in the execution block using 32-bit registers MFUN1 through
MFUN7. 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 a block contains functions M100, M120 and M135, the CNC will transfer the
following information to the PLC.
Command MFUN*. Checking if a function has been programmed in the block.
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 the MFUN* command to check all the registers at the same time.
Sending the function and synchronizing the execution.
Within the CNC machine parameters, the auxiliary M function table indicates when the
function is sent and when the PLC execution is synchronized. In either case, it may be before
or after the movement.
The sending and synchronizing types may be the following:
M not synchronized.
M sent out and synchronized before the movement.
M sent out before the move and synchronized after the movement.
M sent out and synchronized after the movement.
M functions with different types of synchronization may be programmed in the same block.
Each one of them will be sent out to the PLC at the right moment. The transfer of auxiliary
M functions is described later on in this chapter. See
"5.4 Transferring auxiliary functions
MFUN1
MFUN2
MFUN3
MFUN4 - MFUN7
100
120
135
$FFFFFFFF
Example to detect M30. If it has been programmed, it will return a "1", and a "0" if otherwise.
CPS MFUN* EQ 30 = ...
The functions may be set as follows:
M11 not synchronized.
M12 is sent and synchronized before the movement.
M13 is sent before and synchronized after the movement.
M14 is sent and synchronized after the movement.
When executing a block like this:
X100 F1000 M11 M12 M13 M14
The functions are transferred as follows:
1
It sends the M11 M12 and M13 functions out to the PLC.
2
waits for the PLC to execute the M12.
3
The CNC moves the axis to X100.
4
It sends the M14 function to the PLC.
5
It waits until the PLC executes the M13 and M14.
Содержание CNC 8060
Страница 1: ...Ref 1709 8060 8065 CNC Installation manual...
Страница 10: ...BLANK PAGE 10...
Страница 14: ...BLANK PAGE 14...
Страница 20: ...BLANK PAGE 20...
Страница 32: ...BLANK PAGE 32...
Страница 36: ...BLANK PAGE 36...
Страница 38: ...BLANK PAGE 38...
Страница 40: ...BLANK PAGE 40...
Страница 41: ...PART 1 INSTALLATION MANUAL...
Страница 42: ...BLANK PAGE 42...
Страница 58: ...Installation manual CNC 8060 CNC 8065 1 SOFTWARE INSTALLATION Software configuration 58 REF 1709...
Страница 340: ...Installation manual CNC 8060 CNC 8065 3 INTRODUCTION TO THE PLC Operation of a counter 340 REF 1709...
Страница 448: ...Installation manual CNC 8060 CNC 8065 6 LOGIC CNC INPUTS AND OUTPUTS Keystroke modifiable signals 448 REF 1709...
Страница 532: ...Installation manual CNC 8060 CNC 8065 9 CNC VARIABLES 532 REF 1709...
Страница 533: ...PART 2 CONCEPTS...
Страница 534: ...BLANK PAGE 534...
Страница 548: ...Installation manual CNC 8060 CNC 8065 10 GENERAL SETUP Configuration examples 548 REF 1709...
Страница 574: ...Installation manual CNC 8060 CNC 8065 11 CONFIGURING AN AXIS Home search 574 REF 1709 X Z H OM OW ZMH ZMW XMH...
Страница 598: ...Installation manual CNC 8060 CNC 8065 12 VOLUMETRIC COMPENSATION Error messages cause and solution 598 REF 1709...
Страница 644: ...Installation manual CNC 8060 CNC 8065 14 SUBROUTINES Assistance for subroutines 644 REF 1709...
Страница 668: ...Installation manual CNC 8060 CNC 8065 15 HARDWARE Configure the PT100 inputs 668 REF 1709...
Страница 697: ...Installation manual CNC 8060 CNC 8065 697 User notes REF 1709...