Category Archives: Configuration

FANUC 18i M-Codes

Fanuc Motors

In the world of automation, whether we’re talking about factory or shop automation, understanding how to operate and maintain FANUC CNC parts is imperative. Several businesses and companies suffer from dreaded downtime because a team isn’t well-rounded; many team members may know how to manage machine operators, etc., but are unaware of how to operate a CNC themselves. For a manager, knowing and understanding exactly what to look for to avoid an operating issue starts with understanding the basics of CNC machining and programming.

CNCs originally started coming about in the late 1940s, not long after World War II as NCs (Numerical Controls). They were engineered to be a reliable, cost-effective way to manufacture and design an increased amount of parts for the aircraft industry. Based on already-existing modified tools equipped with motors that manipulated the controls, CNCs were quickly and abruptly built up with computers, both digital and analog. As time has gone on, CNCs have continued to evolve as technology evolves.

Early Numerical Controls initially lacked computers. They also lacked calculating ability, which is absolutely unheard of in today’s world. After the 1960s, numerical controls eventually gained calculating and computer functions. Onboard processing became feasible and, as a result, CNC machines came about. Via the initiation of CNCs, a handful of features were then attainable, fortunately, including canned cycles, tool length compensation, sub programming, radial compensation and tool diameter.

Preparatory Codes

NC and CNC G Codes are referred to as preparatory codes. By preparing the machine to perform a specific function like, for example, rapid travel G0 / G00, the preparatory process is important to understand, as all of the stages of production are.

Miscellaneous Codes

NC / CNC M codes are known as miscellaneous codes.  CNC M codes basically perform on and off functions such as:

  • stopping processing of CNC code M0 / M00
  • turning the spindle on M3 / M0 or M3 / M03
  • stopping the spindle M5 / M05
  • turning coolant on M8 / M08

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.

G Code and M Code

The ANSI standard for G code and M code programming is ANSI/EIA 274D-1988. The ISO standard for G code and M code programming is ISO 6983. There is a new and different standard ISO 14649 also known as the STEP-NC standard that addresses NC and CNC programming using the enhanced features of CAD and/or CAM software.

Machine tool builders are not required to adhere to standards and every so often create variations to standard G codes and M codes. Occasionally design different, unique alternatives to orthodox G codes and M codes. Typically, the majority of CNC G codes are considered modal, which means they stay active until they’re changed. Along with understanding CNC codes, feel free to view another one of our articles focused on choosing a CNC to become as well-versed with CNCs as possible.

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.
tsxcusbmbp

Schneider Electric TSXCUSBMBP: Beyond the User Manual

Need a replacement TSXCUSBMBP? Request a Price Quote Now.

The Schneider Electric TSXCUSBMBP is a USB Modbus Plus Communications Adapter. In this guide, we will show you how to install the hardware, configure the driver software, and use the Modbus Plus network diagnostics features of the driver software.

Important: The least versions of the TSXCUSBMBP driver to run on Win Server 2012 R2 are driver versions 8.0 and 8.1.

The TSXCUSBMBP is designed to bridge the gap between a USB connection and the Modbus Plus network. It combines hardware and software together in one simple and single device. The module has its own Modbus Plus node address which can be set through the TSXCUSBMBP driver software. This module allows software applications using the serial Modbus RTU communications to connect on the high-speed Modbus Plus network, as well as provide diagnostic capabilities to the Modbus Plus network.

Most Win32 Applications that support serial Mdubus communications can use a Modicon TSXCUSBMBP to connect on a Modbus Plus network. A VSP (Virtual Serial Port) is what redirects communications from Concept, Unity, ProWorx32 and other programs to the TSXCUSBMBP communications adapter. After the VSP is installed, it will create one serial port with the port reference as defined in the module’s driver software. When configuring the Modbus application software, this port reference is selected as the serial port for the application to use. The routing table is used to associate Modbus Slave IDs with 5-byte Modbus Plus routing paths which allow the application software to communicate with any Modbus Plus device within range on the network.

The TSXCUSBMBP’s hardware consists of a box with a USB cable from one end (which connects to the PC) and a standard Modbus Plus DB9 connector on the other end (for the Modbus Plus network). Local signalling LEDs on the top cover of the device tell you the presence of power from the USB port and the state of the Modbus Plus network – no external power supply is required.

TSXCUSBMBP Installation

To install the TSXCUSBMBP, you will need the following:
– Windows XP Operating System with service pack 2, or Windows 2000 with Service Pack 4 or greater.
– 1 MB of free disk space.
– Minimum of 256 MB of RAM.
– One free USB port or a USB Hub that supports USB 1.1 or greater.

If a previous version of the TSXCUSBMBP was installed, the VSP component of the driver must be manually uninstalled using Device Manager before a new version can be installed. After this, the new driver should be installed before connecting the new TSXCUSBMBP to the PC. After the new driver is installed, connect the TSXCUSBMBP and install using the New Hardware Wizard. After completing the instructions, you should see a message stating “Your new hardware is ready to use.” Restart your computer, and the device should be fully functional. If the driver starts up before the TSXCUSBMBP is connected, then it will be necessary to re-scan for adapters so the driver can detect it.

TSXCUSBMBP Configuration

To configure the module, you will need to do the following:

1. Configure the Modbus Plus Node Address
The communications adapter must be assigned a Modbus Plus node address to communicate on the network. Select “Settings” and then type the address in the appropriate box. When complete, hit “Save”.

2. Configure the Slave Response Timeout
The slave response timeout is used by the module each time it sends a request from an application out on the network to a slave device. Use the manual to determine the appropriate value that should be used with your system. Select “Settings” and then type the value in the appropriate box. When complete, hit “Save”.

3. Configure the Virtual Serial (COM) Port
To do this, select “Virtual Modbus Port.” Select the desired COM port from the list available. When complete, click “Save”.

If you experience any problems while configuring your adapter, please use the table below to determine the appropriate error code given by the LEDs, if applicable. As always, refer to the user manual for more complete information.

TSXCUSBMBP Error Codes
TSXCUSBMBP Error Codes
MRO Electric carries both New and Refurbished TSXCUSBMBP Communication Adapters. For more information on this module or to request a price quote, please call 800-691-8511 or email sales@mroelectric.com.

Simodrive 611 Power Modules – Manual Anthologies

Simodrives 611 power modules can be used to operate the following motors: 

  • 1FT6, 1FK6 and 1FK7 servo motors 
  • 1FW6 built–in torque motors (direct drives) 
  • 1FN linear motors 
  • 1PH main spindle motors 
  • Standard induction motors; if IM operation is selected, only inverter pulse frequencies of 4 kHz and 8 kHz are permissible. 
  • 1PM hollowshaft motors for main spindle drives (direct drives) 
  • 1FE1 main spindle motors 
  • 2SP1 motor spindle 
  • Third–party motors, if according to the motor manufacturer the motor meets the requirements for sine modulation, insulation, and dV/dt resistance.

For special motors with a low leakage inductance (where the controller settings are not adequate), it may be necessary to provide a series reactor in the form of a 3–arm iron core reactor (not a Corovac reactor) and/or increase the inverter pulse frequencies of the converter. Motors with a low leakage inductance are, from experience, motors that can achieve high stator frequencies (maximum motor stator frequency > 300 Hz) or motors with a high rated current (rated current > 85 A).

A wide range of 1–axis or 2–axis power modules is available. These modules are graded according to the current ratings and can be supplied with three different cooling techniques. The current–related data refers to the series–preset values. At higher frequencies of the fundamental waves or for higher clock cycle frequencies, ambient temperatures and installation altitudes above 1000 m above sea level, power deratings apply as subsequently listed. Matched, pre–assembled cables are available to connect the motors. Ordering information is provided in the ”Motors” section of the NC 60 catalog. Shield terminal plates are available to meet EMC requirements when using shielded power cables.

The equipment bus cable is included in the scope of supply of the power module. The drive bus cables must be ordered separately for the digital system. The current data of the power modules (PM modules) are normalized values to which all of the control units refer. The output currents can be limited by the control unit being used.

MRO Electric offers both New and Remanufactured Siemens Simodrives 611. Please visit our Siemens CNC and Automation Page for more information. You may also contact sales@mroelectric.com or call 1-800-691-8511.

Siemens Simodrive 611

Siemens Simodrive 611

UNI3404: Beyond the User Manual

The UNI3404 is available with a number of option modules, which increase its flexibility and make it suitable for a very wide range of applications. These modules are briefly described in the following paragraphs. For full details refer to UNI3404 manual that is supplied with each of them. The modules are in two physical formats and are known as Large Option Modules (LOM) and Small Option Modules (SOM). Each Undrive may be fitted with one LOM and one SOM.

Unidrive UNI3404 Large Option Modules
  1. UD78 High Precision Analog Input Module. (LOM):
    • This module provides the following features: a) Infinite resolution analog input for precision speed and position control. Large Option Module Small Option Module 1. Introduction 11 b) RS485 communication port. c) Back up supply connector (requires user provided 24VDC) to maintain power to the drive control circuits and encoder feedback when the 3 phase input to the drive is disconnected.
  2. UD70 Co-Processor Module (LOM)
    • The UD70 is an Intel 960 based co processor module that allows the user to write programs in both IEC1131 ladder / Function Block Diagram and Drive Programming Language (DPL) to provide 1.5 axis motion control and sequence control. This is accomplished using the SyPT programming tool on a PC. The module is fitted with an RS232 programming port for this purpose. It also has an RS485 port for general use and this supports the ANSI protocol as a slave or master controller and ModBus RTU as a slave only.
  3. UD71 Serial Communications Module (LOM)
    • The UD71 provides simple serial communication and has both RS232 and RS485 ports.
  4. UD73 Profibus Interface Module (LOM)
    • The UD73 provides full UD70 co-processor functionality and additionally allows the drive to be connected to a Profibus DP network running at speeds up to 1.5 Mbaud.
  5. UD74 Interbus-S Interface Module (LOM)
    • The UD74 provides full UD70 co-processor functionality and additionally allows the drive to be connected to an Interbus-S network at a fixed data rate of 500 Kbaud.
  6. UD75 CTNet Interface Module (LOM)
    • The UD75 provides full UD70 co-processor functionality and additionally allows connection to a CTNet nework. CTNet is Control Techniques fully de-centralized peer to peer fieldbus. This allows implementation of a fully distributed control system with no central PLC controller required.
  7. UD76 Modbus Plus Interface Module (LOM)
    • The UD76 provides full UD70 co-processor functionality and additionally allows connection to a Modbus Plus network.
  8. UD77 DeviceNet interface module (LOM)
    • The UD77 provides full UD70 co-processor functionality and additionally allows connection to a DeviceNet network.
  9. CAN interface module
    • This is based on the UD77 hardware but has different firmware to allow the user to communicate through the CAN physical layer but using his own protocol written using the SyPT toolkit.
  10. CanOpen interface module
    • This is based on the UD77 hardware but the firmware is changed so that the network uses the CanOpen protocol.
Unidrive UNI3404 Small Option Modules
  1. UD50 Extended I/O module
    • This module provides the following additional I/O capability:
      • a) qty. 3, 24VDC digital inputs.
      • b) qty. 3, dual function (user selectable) 24VDC digital inputs / outputs. Rated at 30mA when configured as outputs.
      • c) qty. 2, 10 bit plus sign analog inputs +10 to –10VDC
      • d) qty. 1, analog output +10 to –10VDC.
  2. UD51
    • Second encoder module In servo mode this provides the drive with the following additional capabilities:
      • a) Allows use of a second incremental encoder as a master reference input for digital lock, Electronic Gear box and camming functions.
      • b) Alternatively the UD51 may be configured for frequency and direction input to be used as the drive speed reference.
  3. UD52 Sin/Cos encoder module
    • The UD52 allows a servomotor fitted with a sin/cos encoder to be used. This provides an interpolated resolution of up to 1,048,576 ppr when used with a 512 pulse sin cos encoder and also allows use of an optional 4096 revolution absolute encoder. The Unimotor is available with these encoders fitted as a standard option.
  4. UD53 Resolver Module
    • The UD53 allows use with a servomotor having resolver feedback. This is much more rugged than an encoder and therefore suitable for use in harsh environments. The UD53 can operate with resolver having either 2:1 or 3:1 turns ratio (primary : secondary)
  5. UD55 Cloning Module
    • The cloning module is intended to make it possible to copy up to 8 different parameter sets and subsequently load any of these onto another drive. It is useful in a production environment when many drives have to be set up with the same parameters. Unlike the other small option modules it is not normally left permanently installed in a drive.

Contact us today for an instant quote on any Control Techniques Unidrive, small option module, or large option module at 1-800-691-8511 or at sales@mroelectric.com

uni3404
UNI3404

UD75 Configuration and Setup

You can check out our previous blog post  on the UD75 here for more information. Check out the UD75 product page on our website along with all of our other Unidrive options.

UD75 Configuration
  1. Isolate the drive from the mains supply and allow 5 minutes for the DC Bus capacitors to discharge.
  2. Insert Large Option Module as shown below. Ensure that it is correctly inserted. The module will click firmly into place.
  3. To remove the module, pull on the black tab, and the module will disengage from the connector and pull out of the drive.
UD75 Configuration: Cable Screen
The screen of the cable at every node on the network MUST be connected to the screen terminal (pin 3) on the CTNet terminal block. When the screen is stripped back to connect the twisted pair to the CTNet terminals, keep the exposed section of the cable as short as possible. On the CTNet PC Interface Adapter Card, there is no screen terminal. The screen should be cut and taped back to prevent it coming into contact with any other surfaces. The on-board terminal resistor should not be connected.
UD75 Configuration: Network Termination
The network MUST be fitted with terminating resistors AT BOTH ENDS!!! If resistors are not fitted, the network appear to work OK, but the noise immunity of the network will be drastically reduced. The terminating resistor value should match the nominal characteristic impedance value for the cable; in the case of the customized CTNet cable, the terminating resistors used should be nominally 78Ω. PC ISA and PCMCIA cards for interfacing a PC to CTNet are available from CT SSPD.

For price and ordering info you can email sales@mroelectric.com or call 1-800-691-8511. We have these and all the other Control Techniques Unidrive Classic option modules in stock, along with the drives themselves.

UD75 Configuration
UD75 Configuration

6FC5357-0BB35-0AA0 Configuration and Setup

You can check out our previous blog post on the 6FC5357-0BB35-0AA0 here for more information. Check out our websites to see all of our Siemens products.

The 6FC5357-0BB35-0AA0 configuration features a modular design comprising line filter, commutating reactor, line supply infeed module, drive modules as well as, when required: monitoring, pulsed resistor and capacitor module(s). Satisfactory operation is ensured only in conjunction with the components that are described in the 6FC5357-0BB35-0AA0 Configuration Manual or published in the Catalog NC60 (Internet Mall) and with adherence to the required boundary/application conditions. Modules can also be arranged in several tiers one above the other or next to one another.

The housings of the  6FC5357-0BB35-0AA0 converter system modules are enclosed and EMC–compatible as specified in EN 60529 (IEC 60529). The electrical system is designed to comply with EN 50178 (VDE 0160) and EN 60204, and an EC declaration of conformity is available. The connections in the module group, motor cables, encoder lines and bus lines must be made using preassembled MOTION–CONNECT lines.

Due to the limited conductivity of the DC link busbars of the modules with module width 150 mm, the DC link power PZK of these modules must not exceed 55 kW. Larger DC link busbars must be used if this restriction cannot be complied with. The DC link power PZK of the subsequent modules is calculated according to the engineering rule specified in the manual. The larger DC link busbars can be ordered as a set. The set includes reinforced DC link busbars for module widths 50 mm, 100 mm and 150 mm. The standard DC link brackets between the modules may not be changed, even when strengthened DC link busbars are used.

To order or get price you can email sales@mroelectric.com or call 1-800-691-8511.

6FC5357-0BB35-0AA0
6FC5357-0BB35-0AA0 Configuation

6SN1145-1BA01-0BA1 Configuration and Setup

You can view our previous blog post on the Siemens 6SN1145-1BA01-0BA1 manual here for more information.

Drive Line-Up
The Siemens 1P 6SN1145-1BA01-0BA1 configuration is modular, comprising line filter, commutating reactor, line supply infeed module, drive modules as well as, when required: monitoring, pulsed resistor and capacitor module(s). Satisfactory operation is ensured only in conjunction with the components that are described in the Configuration Manual or published in the Catalog NC60 (Internet Mall) and with adherence to the required boundary/application conditions. In order to avoid contamination, the modules should be installed in a control cabinet with degree of protection IP 54. Modules can also be arranged in several tiers one above the other or next to one another.

Check out all of our Siemens products on our website!

Due to the limited conductivity of the DC link busbars of the modules with module width 150 mm, the DC link power PZK of the Siemens 6SN1145-1BA01-0BA1 configuration must not exceed 55 kW. Larger DC link busbars must be used if this restriction cannot be complied with. The DC link power PZK of the subsequent modules is calculated according to the engineering rule specified in Chapter 1.3 of the manual. The larger DC link busbars can be ordered as a set with Order No. [MLFB] 1P 6SN1161–1AA02–6AA0. The set includes reinforced DC link busbars for module widths 50 mm, 100 mm and 150 mm. The standard DC link brackets between the modules may not be changed, even when strengthened DC link busbars are used.

For a 6SN1161–1AA02–6AA0 price quote and ordering info you can email sales@mroelectric.com or call 1-800-691-8511.

6SN1145-1BA01-0BA1 Configuration
Siemens 6SN1145-1BA01-0BA1 Configuration

140CPU43412A Configuration and Setup

You can check out our previous blog post on the 140CPU43412A manual and configuration here for additional setup info.

Front Panel Topology
There are two switches (a three-position slide switch and a three-position key switch) located on the front of the 140CPU43412A configuration. The module has a single slide switch that is used to select the comm parameter settings for the Modbus (RS-232) ports.
Rear Panel Topology

The address switch, which is comprised of two rotary switches, is located on the rear panel of the Quantum CPUs. The address switch is used for setting Modbus Plus node and Modbus port addresses. SW1 (the top switch) sets the upper digit (tens) of the address, SW2 (the bottom switch) sets the lower digit (ones) of the address. The illustration below shows the correct setting for an example address of 11.

Option Module Interface Support

The 140CPU43412A firmware supports up to six network modules (i.e., Modbus Plus, Ethernet, and Multi-Axis Motion option modules) using the option module interface technique. However, only two Modbus Plus modules can have full functionality, including Quantum DIO support.

For ordering info or for the 140CPU43412A price you can call 1-800-691-8511 or email sales@mroelectric.com.

140CPU43412A
140CPU43412A

6SN1123-1AA00-0EA1 Configuration and Setup

The steps for 1p 6SN1123-1AA00-0EA1 Manual Configuration and Setup are below as a follow up to our previous entry here.
 
Start-up Possibilities for 1p 6SN1123-1AA00-0EA1 Configuration
using
- operator control and display elements (refer to Section 1.3)
- RS232C interface with an IBM AT–compatible computer and start–up soft-
ware
 
Re-initialize Drive Converter (if required)
If an already initialized drive–converter is to be re–initialized, then proceed as
follows:
- if required, back–up the setting data (parameters)
- remove write protection: Set P–051 to 4H
- start initialization: Set P–097 to 0H
- overwrite the parameters in the drive–machine data memory: Set P–052 to 1H, and wait until P–052 resets itself to 0H.
- power–on reset:
Power–down the unit and power–up approximately 2 s after the display has disappeared:
P–095 must then appear in the display.
- initialize
 
Firmware Replacement (if required)
The firmware can be replaced using the user–prompted start–up software for
main spindle– and induction motor modules, from version V2.00.
 
Firmware release
before FW 3.00 -> 6SN1121–0BA1_–0AA0
from FW3.00 -> 6SN1121–0BA11–0AA1
 
Procedure:
- back–up setting data (parameters)
- replace the firmware using the start–up program
- initialize with the pulses and controller inhibited
- re–load the backed–up settings
- back–up the setting data in the drive–machine data memory
 
Start-up of series machines, module replacement, component replacement
The drive converter setting data (parameters) can be saved on floppy disk using
the start–up software. Proceed as follows to start–up additional drive converters
(start–up of series machines):
1.Initialize with the pulses and controllers inhibited:
Enter P–095 power module code number
– Motor code number and motor encoder pulse number are saved on the floppy disk, and therefore do not have to be entered.
– Start initialization.
2. Load and save the setting data from the floppy disk.
 
For more info or a 1p 6SN1123-1AA00-0EA1 price you can email sales@mroelectric.com or call 1-800-691-8511.

140CPU53414B Configuration and Setup

During the 140CPU53414B firmware configuration, there are two switches (a three-position slide switch and a three-position key switch) and one connector (Modbus RS-232) located on the front of the CPU.

The slide switch is used to select the comm parameter settings for the 140CPU53414B configuration of Modbus (RS-232) ports. Three options are available, ASCII, RTU, and mem.

Continue reading 140CPU53414B Configuration and Setup