Monthly Archives: March 2018

Instructions for Installing PCB to A06B-6052-H001/4 and more

The following is a list of instructions for installing the these Spindle Drives:

With the A16B-1100-0080 Spindle Drive PCB.

This guide covers the same installation procedure for the following parts:

spindle drive pcb

Instructions:

  1. Make sure the jumpers on the new spindle PCB match the jumpers on your old spindle PCB.
  2. Check to see the status of the 200/230 voltage switch on the old spindle PCB and set it to the same setting on the new spindle drive. You can locate the switch underneath the lid on smaller drives.
  3. Remove the software chip on the old spindle drive and install it into the new one.
  4. If you used a DAC chip in your old spindle, you can can remove it from your old spindle PCB and install it into your new one.

It is very important to follow the manual and make sure that the chips and cards you are moving around are installed correctly. For instance, if you were to incorrectly install the software chips, not only would the display not show anything, you are leaving open the possibilities for a short and causing yourself even more trouble.

Sometimes you may not have the necessary equipment to make a diagnosis on your motor, but we do. MRO Electric and Supply offers high quality repair services on all motors and spindle drives so you don’t have to worry about it. Please take a look at our website to see all available brands and parts we can service for you. Our rebuilds for these size drives usually only take 2-3 days, which includes rebuilding the part, painting the part, and fully testing the part to ensure top quality. By getting your part back to you as soon as possible, you are able to minimize downtime, and by doing the job right you can have peace of mind knowing that your FANUC drive will now work properly and not be the reason for downtime in the future.

MRO Electric and Supply has new and refurbished FANUC CNC parts available. For more information, please call 800-691-8511 or email sales@mroelectric.com.

Proper Maintenance on your FANUC Spindle Motor can Extend its Life

Taking care of your FANUC spindle motor and maintaining it properly is the number one way to ensure it will continue to properly run when you need it. Taking the time to understand why it is important to properly maintain your drives and motors is important in itself. Old equipment is definitely more likely fail than newer equipment, but it is entirely possible for new equipment to fail due to improper lubrication, overheating, contamination of other machine fluids, etc.

Regular Maintenance Checklist

  1. Make sure that there is no other fluids leaking into the Fanuc spindle drive from external sources.
  2. Check the installation to ensure that everything is connected correctly.
  3. Check to make sure the spindle is lubricated correctly. Both too much and too little lubrication is a bad thing so make sure to follow your manual to learn how much you need to use.
  4. Minimizing the amount of vibration on the spindle drive will prevent the dislodging or unseating of any chips/cards/wiring.
  5. Using proper impact prevention on the bearings inside the spindle will ensure the least amount of physical stress on the machine itself.

fanuc cnc

By following these steps at least once a month, you are doing yourself a service by making sure your spindle drive is maintained properly. You are saving yourself from having to get parts repaired or buying new parts, and in turn saving money and preventing downtime.

Sometimes you may not have the necessary equipment to make a diagnosis on your motor, but we do. MRO Electric and Supply offers high quality repair services on all motors so you don’t have to worry about it. Please take a look at our website to see all available brands and parts we can service for you.

MRO Electric and Supply has new and refurbished FANUC CNC parts available. For more information, please call 800-691-8511 or email sales@mroelectric.com.

 

Instructions for Installing PCB to A06B-6059-H001/4 and A06B-6060-H001/7 Spindle Drives

The following is a list of instructions for installing the these Spindle Drives with the A16B-1100-0200 Spindle Drive PCB:

And these Spindle Drives with the A16B-1100-0241 Spindle Drive PCB:

  • A06B-6060-H001
  • A06B-6060-H002
  • A06B-6060-H003
  • A06B-6060-H004
  • A06B-6060-H005
  • A06B-6060-H006
  • A06B-6060-H007

fanuc cnc

Instructions:

  1. Make sure the jumpers on the new spindle PCB match the jumpers on your old spindle PCB.
  2. Remove the software chips from the old spindle PCB and install them onto the new spindle PCB.
  3. If possible, remove the NVRAM chip from the old spindle PCB and install it onto the new spindle PCB. This way you will not have to reprogram the chip as the new spindle will have the same instructions as the previous one.

It is very important to follow the manual and make sure that the chips and cards you are moving around are installed correctly. For instance, if you were to incorrectly install the software chips, not only would the display not show anything, you are leaving open the possibilities for a short and causing yourself even more trouble.

Sometimes you may not have the necessary equipment to make a diagnosis on your motor, but we do. MRO Electric and Supply offers high quality repair services on all motors and spindle drives so you don’t have to worry about it. Please take a look at our website to see all available brands and parts we can service for you. Our rebuilds for these size drives usually only take 2-3 days, which includes rebuilding the part, painting the part, and fully testing the part to ensure top quality. By getting your part back to you as soon as possible, you are able to minimize downtime, and by doing the job right you can have peace of mind knowing that your FANUC drive will now work properly and not be the reason for downtime in the future.

MRO Electric and Supply has new and refurbished FANUC CNC parts available. For more information, please call 800-691-8511 or email sales@mroelectric.com.

Setting the Sensor Gap on your Fanuc Spindle Motor

Today we will be helping you with your installation of a spindle motor. Alarms are caused by tensions issues with the belt – either being too tight or too loose in relation to the sensor. MRO Electric and Supply offers both new and refurbished FANUC Spindle amps, troubleshooting on our blog for a wide variety of parts, and repair services on any product we offer.

Steps for fixing the sensor gap

  1. Disconnect the wiring inside of the terminal box.
  2. Next take out the 4 bolts that hold the shroud/fan to the motor.
  3. Remove the screws from the cover of the sensor on the motor.
  4.  Loosen the screws holding the sensor in place until you have enough room to be able to slide a piece of paper between the gear and sensor.
  5. Tighten the 2 screws that hold the sensor in place to make sure they do not rub against each other at all.
  6. Fasten the sensor cover back to the sensor and tighten accordingly.
  7. Reattach the shroud and the fan to the motor.
  8. Configure the wiring back to what it was originally.

fanuc cnc

Now that the sensor for your FANUC Spindle amp is corrected, it should work properly. If you are still having issues we recommend looking throughout our blog as we have many articles based on helping the user troubleshoot any and all issues with their motor.

Sometimes you may not have the necessary equipment to make a diagnosis on your motor, but we do. MRO Electric and Supply offers high quality repair services on all motors so you don’t have to worry about it. Please take a look at our website to see all available brands and parts we can service for you.

MRO Electric and Supply has new and refurbished FANUC CNC parts available. For more information, please call 800-691-8511 or email sales@mroelectric.com.

 

Diagnosing your FANUC Current Alarm

If you are getting a high current alarm on your FANUC motor, it is going to be caused by either the motor itself, the drive, or a cable. To begin the process of figuring out which alarm you are receiving you must disconnect the leads from the motor. Try powering it up and look to see if the alarm LED is lit. Fanuc alarms include the HC LED, alarm 8/9/A/B for Servo motors, and alarm 12 for Spindle motors.

fanuc high current

  • If you no longer are seeing an alarm, the motor is most likely bad.
  • If you have powered the motor and are receiving the alarm, the issue is most likely with the drive.

Because you have disconnected the leads from the motor, you are able to use an ohm meter/megger to monitor the power levels of the cable and motor, and make sure they are working as intended. Using a megger will help you decide if your motor is grounded correctly where an ohm reader will let you know if your motor has shorted.

Using your ohm meter check for shorts both leg-to-leg and leg-to-ground on each of the legs. The leg-to-leg readings should be consistently low between every leg while the leg-to-ground readings will stay open. The megger is used to check between the leg and ground to see if the problem could be with the terminal box on the motor or any cables connected to it.

Sometimes you may not have the necessary equipment to make a diagnosis on your motor, but we do. MRO Electric and Supply offers high quality repair services on all motors so you don’t have to worry about it. Check out our website to see all available brands and parts we can service for you.

MRO Electric and Supply has new and refurbished FANUC CNC parts available. We also offer repair pricing. For more information, please call 800-691-8511 or email sales@mroelectric.com.

 

Repairing your Modicon Magelis HMI

Any amount of downtime is too much for most companies. Parts will break from time to time, and repairs will be necessary. Here at MRO Electric and Supply we are dedicated to providing the best service making sure that your downtime is minimal. Human Interface Terminals(HMIs) are a crucial part of any automation process nowadays, so it is important to make sure it is working correctly. Along with selling both new and remanufactured products, MRO Electric and Supply offers both repair and exchange services.

modicon hmi

Modicon was the first manufacturer to release programmable logic controllers onto the market, and since have been one of the top brands for PLC’s. MRO Electric and Supply have all the parts necessary to run the Magelis HMI at it full potential, including panels, cables, controllers, adapters and any software that may be needed. Along with repairs, we handle installations and programming of drives and controllers so that you don’t have to.

We also offer the option to retrofit your old machines with newer interfaces for the most up-to-date applications and processes. By fitting existing HMI’s with new interfaces you are able to add years to the life span of your automation set up. It is a lot easier to update and fix your existing displays and HMIs than taking the time and money to purchase and fit new parts.

All of our repairs come with a 12 month guarantee. Our repair service is based on doing the right job, and getting your part back to you as soon as possible. Every part we refurbish is tested to make sure they work the way they are supposed to. Our factory-trained technicians have many years working with Modicon products.

For a free Modicon Magelis HMI repair quote, please email sales@mroelectric.com or call 800-691-8511.  For more information on our Modicon repair capabilities, you can visit our Modicon Repair page.
KUKA Controllers

KUKA Error Codes

The list below contains common KUKA Error Codes. These codes are applicable to all KUKA controllers, including the KRC1, KRC2, KRC3, and the KRC4.

Common KUKA Error Codes

  • Error Code 14 – SOFTPLC: @P1@
  • Error Code 284 – Accu–voltage at <kps number> below <voltage level> during last buffering
    • Cause
      • The accu voltage was too low at the last switch off to buffer the
        shutdown.
      • The accu is not charged correctly anymore.
      • The accu is to old or broken.
    • Effect
      • Eventually loss of reference.
      • Cold boot.
      • Active commands inhibited
    • Remedy
      • Exchange accu.
  • Error Code 310 – Safety Circuit for drives not ready
    • Cause
      • Safety circuit is telling drives not to move.
      • Faulty X11
      • Faulty ESC board
      • Faulty KPS 600
    • Remedy
      • Check ESC monitor and other messages to narrow down the root cause with the safety circuit
      • Replace faulty components
  • Error Code 364 – Unknown operation mode
    • Possible Cause
      • Faulty KPS 600 Drive
    • Remedy
      • Replace KPS 600
  • Error Code 420 – Local protective stop (QE)
    • Possible Cause
      • Faulty KPS600 Drive
    • Remedy
      • Replace KPS600
  • Error Code 1033 – ERROR ON READING, DRIVER: ** **
  • Error Code 1034 – ERROR ON WRITING, DRIVER: ** **
  • Error Code 1133 – GEAR TORQUE EXCEEDED AXIS
    • Cause
      • The calculated gear torque is larger than the maximum permissible gear torque.
    • Monitor
      • Cyclic in interpolation cycle.
    • Effect
      • Motion and program are stopped.
    • Remedy
      • Reteach points.
  • Error Code 1239 – ACKN. SYNCHRONISATION ERROR DRIVE
  • Error Code 1376 – ACTIVE COMMANDS INHIBITED
    • Cause
      • A message which causes the active commands to be inhibited has been set.
    • Monitor
      • In command processing.
    • Effect
      • Command is not executed.
    • Remedy
      • Acknowledge active messages in the message window.
  • Error Code 2029 – SYNTAX ERROR IN KUKA MODULE
  • Error Code 2135 – NAME NOT DECLARED AS SUBROUTINE
  • Error Code 6502 – Error during reading INI file init/iosys.ini 1
    • Remedy
      • Check iosys.ini file
      • Ensure correct DeviceNET driver is installed
      • Check data cable between robot / cabinet
  • Error Code 10053
    • Remedy
      • Check fan to ensure it isn’t vibrating. This could be causing the Mfc card to move into the motherboard’s slot.

 

MRO Electric carries replacement KUKA Robotics parts such as teach pendants, drives, motors, and more. To request a quote, please call 800-691-8511 or email sales@mroelectric.com.

KUKA teach pendant

KUKA Teach Pendants

MRO Electric and Supply distributes a variety of KUKA Teach Pendants for KRC1, KRC2, and KRC3 controls. We also can supply the new KRC4 smartPAD. The smartPAD pendant  is the latest type of KUKA teach pendant, designed to allow users to perform even the most complex operating tasks with ease – even those with little experience.  It features an 8.4″ display size with a industrial touch screen.

KUKA smartPAD Teach Pendant

The ergonomic design of the KUKA smartPAD creates a pendant with reduced weight and an anatomically comfortable operation. It can be used to operate all KUKA robots that have a KR C4 controller. Its 6D mouse allows for movement and reorientation of the robot on all axes.

All smartPADs are programmed using the KRL – KUKA programming language. This easy to learn robotics language is very intuitive, and can be used to create customized robotic motions with ease. You can also synchronize your programming with up to 6 KUKA robots. The other major benefit of the smartPAD teach pendant is that  it can be hot swapped at any time from a KR C4 controller – just simply plug it in and use.

Legacy KUKA Teach Pendants

MRO Electric also distributes a number of legacy KUKA teach pendants. We recognize that there are still a variety of older KUKA controllers still in use today. Rather than having to upgrade your control system when one of your pendants fail, we can ship you a replacement pendant to minimize any downtime.

If for some reason our stock is depleted, we can usually repair your KUKA pendant in as little as 3-5 days. Visit our main KUKA product page to see all the KUKA teach pendants that we can supply or repair.

For more information or to request a quote on a replacement pendant or panel, please call 800-691-8511 or email sales@mroelectric.com.

6AV2124-0MC01-0AX0

Siemens 6AV2124-0MC01-0AX0 TP1200 Comfort Panel

6AV2124-0MC01-0AX0 TP1200 Overview

The Siemens 6AV2124-0MC01-0AX0 is a 12 inch SIMATIC HMI with touch operation and a Widescreen TFT display. Its screen is a capable of 16 million colors.

Additionally, the 6AV2124-0MC01-0AX0 has a PROFINET interface, MPI/PROFIBUS DP interface, 12 MB configuration memory, Windows CE 6.0, and is configurable from WinCC Comfort V11.

6AV2124-0MC01-0AX0

6AV2124-0MC01-0AX0  Specifications

Design of display TFT
Screen diagonal 12.1 in
Display width 261.1 mm
Display height 163.2 mm
Number of colors 16777216
Resolution (pixels)
horizontal image resolution 1280
vertical image resolution 800
Backlighting
MTBF backlighting (at 25 °C) 80000 h
Backlight dimmable Yes ; 0-100 %
Number of function keys 0
Keys with LED No
System keys No
Numeric/alphabetical input
Numeric keyboard Yes ; Onscreen keyboard
alphanumeric keyboard Yes ; Onscreen keyboard
Touch operation Yes
Expansions for operator control of the process  
DP direct LEDs (LEDs as S7 output I/O)
F1…Fx 0
Direct keys (keys as S7 input I/O)
F1…Fx 0
Direct keys (touch buttons as S7 input I/O) 40
Installation type/mounting
Mounting in portrait format possible Yes
Mounting in landscape format possible Yes
Supply voltage
Type of supply voltage DC
Rated value (DC) 24 V
permissible range, lower limit (DC) 19.2 V
permissible range, upper limit (DC) 28.8 V
Input current
Current consumption (rated value) 0.85 A
Inrush current A²s 0.5 A²·s
Power
Power consumption, typ. 20 W
Processor
X86 Yes
ARM No
Memory
Flash Yes
RAM Yes
usable memory for user data 12 Mbyte
Type of output
Info LED No
Power LED No
Error LED No
Acoustics
Buzzer No
Speaker Yes
Time of day
Hardware clock (real-time clock) Yes
Software clock No
battery-backed Yes ; Back-up duration typically 6 weeks
synchronizable Yes
Interfaces
Number of RS 485 interfaces 1 ; RS 422/485 combined
Number of USB interfaces 2 ; USB 2.0
Number of USB Mini B interfaces 1 ; 5-pole
Number of SD card slots 2
Number of parallel interfaces 0
Number of 20 mA interfaces (TTY) 0
Number of RS 232 interfaces 0
Number of RS 422 interfaces 1
Number of other interfaces 0
With software interfaces No
Industrial Ethernet
Number of industrial Ethernet interfaces 2
Industrial Ethernet status LED 2
Number of ports of the integrated switch 2
Protocols
PROFINET Yes
PROFINET IO Yes
IRT, supported Yes ; As of WinCC V12
MRP supported Yes ; As of WinCC V12
PROFIBUS Yes
MPI Yes
Protocols (Ethernet)
TCP/IP Yes
DHCP Yes
SNMP Yes
DCP Yes
LLDP Yes
WEB characteristics
HTTP Yes
HTTPS No
HTML Yes
XML No
CSS Yes
Active X No
JavaScript Yes
Java VM No
Further protocols
CAN No
MODBUS Yes
EtherNet/IP Yes
Degree and class of protection
IP (at the front) IP65
Enclosure Type 4 at the front Yes
Enclosure Type 4x at the front Yes
IP (rear) IP20
Standards, approvals, certificates
CE mark Yes
KC approval Yes
cULus Yes
RCM (former C-TICK) Yes
Marine approval
Germanischer Lloyd (GL) Yes ; As of product version: 10
American Bureau of Shipping (ABS) Yes ; As of product version: 10
Bureau Veritas (BV) Yes ; As of product version: 10
Det Norske Veritas (DNV) Yes ; As of product version: 10
Lloyds Register of Shipping (LRS) Yes ; As of product version: 10
Nippon Kaiji Kyokai (Class NK) Yes ; As of product version: 10
Polski Rejestr Statkow (PRS) No
Use in hazardous areas
ATEX Zone 2 Yes
ATEX Zone 22 Yes
IECEx Zone 2 Yes
IECEx Zone 22 Yes
cULus Class I Zone 1 No
cULus Class I Zone 2, Division 2 Yes
FM Class I Division 2 Yes
Mounting position vertical
maximum permissible angle of inclination without external ventilation 35 °
Operating temperature
Operation (vertical installation)
in vertical mounting position, minimum 0 °C
in vertical mounting position, maximum 50 °C ; (55 °C, see entry ID:64847814)
Operation (max. tilt angle)
at maximum tilt angle, minimum 0 °C
at maximum tilt angle, maximum 40 °C
Operation (vertical installation, portrait format)
in vertical mounting position, minimum 0 °C
in vertical mounting position, maximum 40 °C
Operation (max. tilt angle, portrait format)
at maximum tilt angle, minimum 0 °C
at maximum tilt angle, maximum 35 °C
Storage/transport temperature
min. -20 °C
max. 60 °C
Relative humidity
Operation, max. 90%
Operating systems
Windows CE Yes
proprietary No
Executable with configuration operating system
other No
Configuration
Message indicator Yes
With alarm logging system (incl. buffer and acknowledgment) Yes
Process value display (output) Yes
Process value default (input) possible Yes
Recipe administration Yes
Configuration software
STEP 7 Basic (TIA Portal) No
STEP 7 Professional (TIA Portal) No
WinCC flexible Compact No
WinCC flexible Standard No
WinCC flexible Advanced No
WinCC Basic (TIA Portal) No
WinCC Comfort (TIA Portal) Yes ; from V11
WinCC Advanced (TIA Portal) Yes ; from V11
WinCC Professional (TIA Portal) Yes ; from V11
Languages
Online languages
Number of online/runtime languages 32
Project languages
Languages per project 32
Project languages
D Yes
GB Yes
F Yes
I Yes
E Yes
Chinese traditional Yes
Chinese simplified Yes
DK Yes
FIN Yes
GR Yes
J Yes
KP/ROK Yes
NL Yes
N Yes
PL Yes
P Yes
RUS Yes
S Yes
CZ Yes
SK Yes
TR Yes
H Yes
Functionality under WinCC (TIA Portal)
Libraries Yes
Applications/options
Internet Explorer Yes
Pocket Word Yes
Pocket Excel Yes
PDF Viewer Yes
Media Player Yes
SIMATIC WinCC Sm@rtServer Yes
SIMATIC WinCC Audit Yes
Number of Visual Basic Scripts Yes
Task planner
time-controlled Yes
task-controlled Yes
Help system
Number of characters per info text 70
Message system
Number of alarm classes 32
Number of bit messages 4000
Number of analog messages 200
S7 alarm number procedure Yes
System messages HMI Yes
System messages, other (SIMATIC S7, Sinumerik, Simotion, etc.) Yes
Number of characters per message 80
Number of process values per message 8
Acknowledgment groups Yes
Message indicator Yes
Message buffer
Number of entries 1024
Circulating buffer Yes
retentive Yes
maintenance-free Yes
Recipe administration
Number of recipes 300
Data records per recipe 500
Entries per data record 1000
Size of internal recipe memory 2 Mbyte
Recipe memory expandable Yes
Variables
Number of variables per device 2048
Number of variables per screen 400
Limit values Yes
Multiplexing Yes
Structures Yes
Arrays Yes
Number of configurable images 500
Permanent window/default Yes
Global image Yes
Start screen configurable Yes
Image selection by PLC Yes
Image number in the PLC Yes
Image objects
Number of objects per image 400
Text fields Yes
I/O fields Yes
Graphic I/O fields (graphics list) Yes
symbolic I/O fields (text list) Yes
Date/time fields Yes
Switch Yes
Buttons Yes
Graphic display Yes
Icons Yes
geometric objects Yes
Complex image objects
Number of complex objects per screen 20
Alarm view Yes
Trend view Yes
User view Yes
Status/control Yes
Sm@rtClient view Yes
Recipe view Yes
f(x) trend view Yes
System diagnostics view Yes
Media Player Yes
Bar graphs Yes
Sliders Yes
Pointer instruments Yes
Analog/digital clock Yes
Lists
Number of text lists per project 500
Number of entries per text list 500
Number of graphics lists per project 500
Number of entries per graphics list 500
Archiving
Number of archives per device 50
Number of entries per archive 20000
Message archive Yes
Process value archive Yes
Archiving methods
Sequential archive Yes
Short-term archive Yes
Memory location
Memory card Yes
USB memory Yes
Ethernet Yes
Data storage format
CSV Yes
TXT Yes
RDB Yes
Security
Number of user groups 50
Number of user rights 32
Number of users 50
Password export/import Yes
SIMATIC Logon Yes
Logging through printer
Alarms Yes
Report (shift log) Yes
Hardcopy Yes
Electronic print to file Yes ; pdf, html
Character sets
Keyboard fonts
US English Yes
Fonts
Tahoma Yes
Arial Yes
Courier New Yes
WinCC Standard Yes
Ideographic languages Yes
Font size freely scalable Yes
additional character sets loadable Yes
Transfer (upload/download)
MPI/PROFIBUS DP Yes
USB Yes
Ethernet Yes
using external storage medium No
Process coupling
S7-1200 Yes
S7-1500 Yes
S7-200 Yes
S7-300/400 Yes
LOGO! Yes
WinAC Yes
SINUMERIK Yes
SIMOTION No ; With WinCC, subsequent version
Allen Bradley (EtherNet/IP) Yes
Allen Bradley (DF1) Yes
Mitsubishi (MC TCP/IP) Yes
Mitsubishi (FX) Yes
OMRON (FINS TCP) No
OMRON (LINK/Multilink) Yes
Modicon (Modbus TCP/IP) Yes
Modicon (Modbus) Yes
OPC UA Client Yes
OPC UA Server No
Service tools/configuration aids
Clean screen Yes
Touch calibration Yes
Backup/Restore manually Yes
Backup/Restore automatically Yes
Simulation Yes
Device switchover Yes
Delta transfer Yes
Peripherals/Options
Peripherals
Printer Yes
Multimedia Card Yes
SD card Yes
USB memory Yes
Network camera Yes
Mechanics/material
Type of housing (front)
Plastic No
Aluminum Yes
Stainless steel No
Dimensions
Width of the housing front 330 mm
Height of housing front 241 mm
Mounting cutout/device depth (W x H x D)
Mounting cutout, width 310 mm
Mounting cutout, height 221 mm
Overall depth 65 mm
Weights
Weight without packaging 2.8 kg
Weight incl. packaging 3.5 kg
Status Jul 30, 2014

 

MRO Electric and Supply as new and refurbished SIMATIC 6AV2124-0MC01-0AX0 HMIs available, as well as other Siemens HMIs. We can also repair most panels.

For more information to to request a quote, email sales@mroelectric.com or call 800-691-8511.

FANUC M-Codes List for 16i, 18i, and More

M-code are CNC program instructions which help machinists and CNC programmers control CNC hardware like chuck, tailstock, quill, coolant. Here are listed M-code which are mostly used on 16i and 18i FANUC Controls.

Auxiliary Function (M Function)

When a numeral is specified following address M, code signal and a strobe signal are sent to the machine. The machine uses these signals to turn on or off its functions. Usually, only one M code can be specified in one block.

In some cases, however, up to three M codes can be specified for some types of machine tools. Which M code corresponds to which machine function is determined by the machine tool builder.

The machine processes all operations specified by M codes except those specified by M98, M99,M198 or called subprogram(Parameter No.6071 to 6079), or called custom macro (Parameter No.6080 to 6089). Refer to the machine tool builder’s instruction manual for details.

The following M codes have special meanings:

  • M02, M03 (End of Program)
    • This indicates the end of the main program Automatic operation is stopped and the CNC unit is reset.
    • This differs with the machine tool builder. After a block specifying the end of the program is executed, control returns to the start of the program. Bit 5 of parameter 3404 (M02) or bit 4 of parameter 3404 (M30) can be used to disable M02, M30 from returning control to the start of the program.
  • M00 (Program Stop)
    • Automatic operation is stopped after a block containing M00 is executed. When the program is stopped, all existing modal information remains unchanged. The automatic operation can be restarted by actuating the cycle operation. This differs with the machine tool builder.
  • M01 (Optional Stop)
    • Similarly to M00, automatic operation is stopped after a block containing M01 is executed. This code is only effective when the Optional Stop switch on the machine operator’s panel has been pressed.
  • M98 (Calling of Sub-Program)
    • This code is used to call a subprogram. The code and strobe signals are not sent.
  • M99 (End of Subprogram)
    • This code indicates the end of a subprogram. M99 execution returns control to the main program. The code and strobe signals are not sent.
  • M198 (Calling a Subprogram)
    • This code is used to call a subprogram of a file in the external input/output function. See the description of the subprogram call function (III–4.7) for details.

 

Multiple M Commands in a Single Block

In general, only one M code can be specified in a block. However, up to three M codes can be specified at once in a block by setting bit 7 (M3B) of parameter No. 3404 to 1. Up to three M codes specified in a block are simultaneously output to the machine. This means that compared with the conventional method of a single M command in a single block, a shorter cycle time can be realized in machining.

CNC allows up to three M codes to be specified in one block. However, some M codes cannot be specified at the same time due to mechanical operation restrictions. For detailed information about the mechanical operation restrictions on simultaneous specification of multiple M codes in one block, refer to the manual of each machine tool builder. M00, M01, M02, M30, M98, M99, or M198 must not be specified together with another M code. Some M codes other than M00, M01, M02, M30, M98, M99, and M198 cannot be specified together with other M codes; each of those M codes must be specified in a single block.

Such M codes include these which direct the CNC to perform internal operations in addition to sending the M codes themselves to the machine. To be specified, such M codes are M codes for calling program numbers 9001 to 9009 and M codes for disabling advance reading (buffering) of subsequent blocks. Meanwhile, multiple of M codes that direct the CNC only to send the M codes themselves (without performing internal operations ) can be specified in a single block.

M Code Group Check Function

The M code group check function checks if a combination of multiple M codes (up to three M codes) contained in a block is correct.

This function has two purposes. One is to detect if any of the multiple M codes specified in a block include an M code that must be specified alone. The other purpose is to detect if any of the multiple M codes specified in a block include M codes that belong to the same group. In either of these cases, P/S alarm No. 5016 is issued. For details on group data setting, refer to the manual available from the machine tool builder.

  • M Code Setting
    • Up to 500 M codes can be specified. In general, M0 to M99 are always specified. M codes from M100 and up are optional.
  • Group Numbers
    • Group numbers can be set from 0 to 127. Note, however, that 0 and 1 have special meanings. Group number 0 represents M codes that need not be checked. Group number 1 represents M codes that must be specified alone.