Fanuc Alarm 5242 ILLEGAL AXIS NUMBER (M series)
Fanuc Alarm Description
The axis number of the synchronous master axis or slave axis is incorrect. (This alarm is issued when flexible synchronization is turned on.) Alternatively, the axis number of the slave axis is smaller than that of the master axis.