Installation manual
CNC 8035
9.
CNC-PLC COMMUNICATION
Auxiliary M, S, T functions
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·318·
9.1 Auxiliary M, S, T functions
MBCD1 (R550) MBCD2 (R551) MBCD3 (R552) MBCD4 (R553)
MBCD5 (R554) MBCD6 (R555) MBCD7 (R556) MBCDP1 (R565)
MBCDP2 (R566) MBCDP3 (R567) MBCDP4 (R568) MBCDP5 (R569)
MBCDP6 (R570) MBCDP7 (R571)
MBCD* resgisters correspond to the main channel whereas MBCDP registers are for the PLC
channel.
The CNC tells the PLC by means of these 32 bit registers, the miscellaneous M functions
programmed in the block being executed.
If there are less than 7 miscellaneous M functions in each block, the CNC will send the information
in the lower-numbered registers, assigning the value $FFFFFFFF to those which are left free.
This way, if a block contains functions M100, M120 and M135, the CNC will transfer the following
information to the PLC:
MBCD1 (R550) = $100
MBCD2 (R551) = $120
MBCD3 (R552) = $135
MBCD4 (R553) = $FFFFFFFF.
MBCD5 (R554) = $FFFFFFFF.
MBCD6 (R555) = $FFFFFFFF.
MBCD7 (R556) = $FFFFFFFF.
To know whether a particular M function is programmed in the execution block, use one of the
following methods:
1. Check all MBCD registers one by one until the specific “M” function is found or until one of them
contains the $FFFFFFFF value.
2. Use the “MBCD*” format which permits checking all MBCD registers at the same time.
The miscellaneous M functions can be executed at the beginning or end of the block, according to
how these are set in the miscellaneous M function table.
Besides, this table will indicate whether the CNC must wait, or not, for the general logic input
AUXEND to consider the execution of the corresponding M as having been completed
Example:
CPS MBCD* EQ $30 = ...
It returns a “1” if it detects an M30, and a “0” if otherwise.