SinuTrain 6.3 Counter-Spindle Setup for Lathe Machines

David Krause13 min read
Other TopicSiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

SinuTrain 6.3 Counter-Spindle Setup for Lathe Machines

SinuTrain 6.3 Edition 3 is the Siemens PC-based training and programming environment for the SINUMERIK 840D sl / ONE platform. It mirrors the HMI, NC kernel behavior, and PLC interface of the production controller so that part programs written and validated on the office PC run identically on the shop-floor CNC. Configuring a counter-spindle (also called a sub-spindle or opposing spindle) on a turning center requires more than a normal 2-axis lathe template: the machine database (MMC / CF card image) must expose a second spindle axis, a second channel for synchronous operations, and the matching technology cycles. This article consolidates the version-specific installation steps, G-code programming patterns, multichannel coordination rules, and Y-axis integration paths required to bring a counter-spindle lathe online inside SinuTrain 6.3 Edition 3.

Scope note. Counter-spindle functionality is not contained in the default SinuTrain 6.3 base delivery. The machine configuration files (MDD / archive / setup arc) that model a counter-spindle are delivered as a separately licensed option, typically ordered together with the controller. The base install is a generic 2-axis turning center; the optional machine kit extends the configuration to two spindles plus, optionally, a Y-axis on the turret or counter-spindle slide.

1. SinuTrain 6.3 Edition 3 Architecture Overview

SinuTrain 6.3 is the third major release branch of the SinuTrain product line aligned with the SINUMERIK 840D sl SW 4.x / 6.x generation controllers. Edition 3 (Ed 3) corresponds to the Operate HMI generation that introduces the modernized HMI sl-style sidebar, the run-MyScreens extensibility API, and the SINUMERIK Integrate cross-platform commissioning tools.

Component Role in Counter-Spindle Configuration
NCK simulator (NCKS) Executes the same part-program interpreter as the production NCK; supports up to two spindles when the option bit $NC_USER_DATA or MD 20050 is set.
PLC simulator (PLCSIM) Emulates the S7-300/1500 PLC that drives the counter-spindle chuck open/close, tailstock, and parts catcher.
Operate HMI Provides the channel menu, axis-plus-spindle overview, and the measuring-screens needed to verify counter-spindle synchronization.
Setup archive (.arc) Binary image of machine data, compensation tables, tool lists, and PLC symbol tables. The counter-spindle option is delivered as an expanded setup archive.
Technology cycles CYCLE975 (counter-spindle stroking), CYCLE974 (centering), CYCLE977 (engraving on the counterspindle), and ShopTurn / ShopMill cycle set.

Refer to the official Programming counter-spindles in G-code - SINUMERIK PDF for the canonical description of how the second spindle is positioned, synchronized, and used to receive the part from the main spindle.

2. Counter-Spindle Kinematics in SINUMERIK

The counter-spindle is a fully functional second spindle mounted on a linear axis (typically Z2 or a dedicated slide) that travels along the Z axis. It is more than a tailstock: it has its own spindle motor, chuck, and speed/position control loops. From a programming standpoint it behaves like a second main spindle with synchronized Z-axis travel.

Key machine-data slots that must be enabled for counter-spindle operation:

Machine Data Description Typical value for counter-spindle
MD 20050 [AXCONF] Axis configuration general Bit 0 = 1 (default geometry axes)
MD 20070 [AXCONF] / MD 20080 Assigns the counter-spindle axis name and channel Channel 2, axis name "SP2" or per machine builder
MD 30130 / MD 30240 Encoder type and output module for spindle 2 Matches main-spindle hardware
MD 35010 / MD 35040 Spindle enable and gear-stage change Both spindles independent
MD 37200 / MD 37220 Coupling the counter-spindle to its Z slide Lead-back / follow-up defined
MD 38000-MD 38700 PLC interface for chuck, ejector, and part catcher DB3x.DBX<byte offsets> for chuck open/close
The exact MD numbers above are the canonical SINUMERIK slots for spindle and channel configuration. Some OEMs remap them inside the manufacturer archive; always check the printed machine data list in the supplied setup file before commissioning.

3. Prerequisites

Before adding a counter-spindle machine to SinuTrain 6.3 Edition 3, confirm the following:

  1. License. The counter-spindle machine setup file is a separately orderable item. It is normally supplied as an archive (*.arc) or as a prebuilt CF-card image. The base SinuTrain 6.3 DVD does not include counter-spindle data.
  2. Windows workstation. Windows 10 / 11 x64 (1809 or newer) or Windows Server 2016 / 2019. The SinuTrain installer requires .NET Framework 4.7.2 and Visual C++ 2015-2022 redistributable. Administrator rights are required to install the HMI sl services.
  3. Disk space. Minimum 25 GB free for the base product, technology cycles, and machine data images. A counter-spindle machine with full ShopTurn macro library can reach 8-12 GB per machine slot.
  4. Display. 1920x1080 minimum. Operate HMI scales poorly below 1366x768; counter-spindle channel overview panels need at least 1680x1050.
  5. Language packs. SinuTrain 6.3 Ed 3 supports German, English, French, Italian, Spanish, Chinese (simplified), Japanese, and Korean. If any additional language has been installed, it must be re-installed after loading the counter-spindle machine archive to refresh the new text resources for the second channel.
  6. PLC program. The PLC part of the counter-spindle archive (STEP 7 project) is loaded into the PLCSIM instance that SinuTrain 6.3 starts together with the NCK simulator. The PLC handles the chuck and part-catcher I/O.

4. Installing the Counter-Spindle Machine Archive

Two installation paths are common in the field. Use whichever matches the file you received from the OEM.

4.1 Path A: Setup Arc loaded from the HMI

  1. Start SinuTrain 6.3 Edition 3 and select the Commissioning area.
  2. Navigate to System data > Setup archives > Read in.
  3. Select the counter-spindle setup file (typically counter_spindle_<OEM>_v<xx>.arc).
  4. Confirm the import; the NCK is restarted automatically.
  5. Verify that the channel overview now shows a second channel with a spindle symbol.

4.2 Path B: Prebuilt CF-card image

  1. Locate the cf_card folder of the counter-spindle machine directory.
  2. Copy the contents into %ProgramData%\Siemens\Automation\SinuTrain\SinuTrain_6_3_Ed3\HMI\cf_card.
  3. Restart the HMI service. SinuTrain reads the new directory tree on the next launch and updates the machine picker.
  4. If multiple languages were previously installed, re-run the language pack setup to refresh the resources for the newly added channel.
A common field issue: after copying a prebuilt cf_card image, the existing language pack is replaced by the image's default language. The Operate HMI labels for the second channel and the counter-spindle HMI screens revert to English (or German) regardless of the user's previous selection. Re-install any non-default language packs to restore localized tooltips and cycle prompts.

5. Configuring the Second Channel

SinuTrain 6.3 Ed 3 supports a maximum of two channels in the standard counter-spindle license, with up to 12 axes total. Verify the channel configuration by opening Commissioning > Channels > Channel assignment:

Channel Name Spindles Geometry Axes Optional
Channel 1 MAIN SP1 (main) X, Z C1, optional Y1
Channel 2 COUNTER SP2 (counter) Z2 Optional Y2 for counter-spindle milling

When the machine archive is loaded, the channel overview in Operate HMI shows both channels side-by-side, and Show channel assignment lists the axis-to-channel mapping. The counter-spindle channel can be programmed either with G-code or with ShopTurn programGUIDE.

5.1 Spindle Numbering and Setpoint Routing

The default address mapping uses S1 for the main spindle and S2 for the counter-spindle. Program commands are therefore:

S1=1500 M3   ; main spindle, CW, 1500 rpm
S2=2000 M3=2 ; counter-spindle, CW, 2000 rpm (M3=2 selects spindle 2)

If the machine builder uses a non-standard mapping, override the spindle number in MD 30134 or in the SETMS / SETMS(2) instruction inside the part program.

6. G-Code Programming for Counter-Spindle Operations

The canonical Siemens reference for counter-spindle G-code is the Programming counter-spindles in G-code - SINUMERIK PDF. The four core operations are: position, clamp, transfer, and retract.

6.1 Approach the Counter-Spindle to a Safe Pickup Position

G0 Z2=10.   ; counter-spindle slide to Z2=10 (stand-off)
G0 Z2=2.     ; approach to pickup

6.2 Open the Main Spindle Chuck and Close the Counter-Spindle Chuck

M0 ; or shopTurn macro call
M11 ; main spindle chuck open (manufacturer-specific M-code)
M72 ; counter-spindle chuck close (manufacturer-specific M-code)

6.3 Pull the Part Out and Synchronize

COUPON(S2, S1, 1)    ; couple counter-spindle to main spindle, ratio 1:1, both CW
SPOS=0                ; orient both spindles to 0 deg
G0 Z2=-50.            ; pull part out of main spindle

6.4 Reverse Coupling and Machining on the Reverse Side

COUPOF(S2, S1)     ; decouple
M73 ; counter-spindle chuck open
M10 ; main spindle chuck close
S2=3000 M3=2         ; counter-spindle becomes the active spindle

6.5 Retract the Counter-Spindle

G0 Z2=200. ; move counter-spindle slide clear of the work area

The full cycle - approach, transfer, retract - is normally wrapped in a manufacturer cycle (CYCLE975 or a ShopTurn "Counter-spindle" macro). Engineers writing free-form G-code can call the cycle directly:

CYCLE975("TRANSFER", 1, 50., 0., 2., 0., 0., 1, "SAFE_Z")

Argument list (see cycle reference):

  1. Operation tag: "TRANSFER" / "STROKE" / "EJECT"
  2. Source spindle: 1 = main, 2 = counter
  3. Stroke length (mm)
  4. Pull-out feed (mm/rev)
  5. Target spindle: 1 or 2
  6. Lead-in approach distance
  7. Lead-out retract distance
  8. Chuck-clamp mode
  9. Safe Z name (string parameter from the setup file)

7. Multichannel Programming

For machines that run the main and counter-spindle operations simultaneously - for example, machining the back side of one part while the next blank is being turned on the main spindle - the program runs across both channels. Siemens supports this with the SETINT, WAITM, WAITE, and START commands.

Reference material: Turn-milling with counterspindle, multichannel from Siemens CNC4you.

7.1 Parallel Channels Example

INIT(2, "_N_PROG2_MPF")     ; initialize channel 2 with program PROG2
START(2)                     ; start channel 2
; Channel 1 continues:
G0 X50. Z50.
WAITM(10, 1, 2)              ; both channels wait for marker 10
M30

Markers coordinate handoffs. SETM(10) on one side and WAITM(10,1,2) on the other side creates a strict rendezvous. Loose synchronization is done with WAITE(2) (wait for channel 2 to terminate) or WAITM with a marker tag.

8. Y-Axis Integration

Many modern turning centers add a Y-axis to the turret to allow off-center drilling, milling, and slotting, sometimes combined with a Y-axis on the counter-spindle slide to support fully back-side machining. SinuTrain 6.3 Edition 3 supports both, but the Y-axis must be enabled in the machine archive and the kinematics configured before the operator can use it.

Y-axis enabling steps:

  1. Load the counter-spindle + Y-axis machine archive (a separate option from the basic counter-spindle archive).
  2. Confirm MD 20050 contains the Y geometry axis assignment; for a turret Y, it is usually on channel 1; for a counter-spindle Y, on channel 2.
  3. Configure the swivel-data block MD 62500 to MD 62574 for the Y-axis orientation frame (TCARR / TCOFR).
  4. Calibrate the Y-axis with the standard axis-commissioning procedure (axis plus / minus references, software-limit switches, and the spindle-centers offset).
  5. Verify the kinematics by jogging through G18 / G19 plane changes and confirming that X, Y, Z offsets match the machine tool reference point.
The Y-axis option adds 3-5 additional geometry axes (Y, B, optionally U/V for the counter-spindle slide). The base counter-spindle license in SinuTrain 6.3 caps the NCK at 12 axes; adding a Y-axis brings the count to 7 axes minimum, leaving headroom for the parts catcher and tool-handler axes.

9. Tool Management with Two Spindles

Each spindle has its own work offsets and the tool list is global. The tool-management screen in Operate HMI allows the user to assign each tool to a spindle ("Main", "Counter", or "Both"). Turret tools that are used by the counter-spindle must be loaded with the correct Spindle assignment flag set in the tool list; otherwise the runtime will not move the turret across the counter-spindle Z2 range and the program will fail with alarm 61282 ("Tool not assigned to active spindle").

9.1 Recommended Tool-List Schema

T-No. Name Type Spindle assignment Compensation group
1 ROUGH_TURN Turning Both 1
2 FINISH_TURN Turning Both 1
5 DRILL_8 Drilling Main 2
6 CROSS_DRILL Drilling Counter 2
10 ENDMILL_12 Milling Y-axis (Both) 3
11 SLOT_CUT Milling Counter (Y2) 3

10. Simulation and Verification

Before running the program on the shop-floor controller, validate it inside SinuTrain 6.3 using the built-in 3D simulation view. The counter-spindle HMI extension adds:

  • Live spindle-2 speed and torque trace
  • Counter-spindle Z2 position overlay on the main view
  • Chuck-state LEDs (open / closed / unclamped)
  • Channel cross-reference (which blocks of which program are active in each channel)

10.1 Verification Checklist

  1. Run a dry run with DRYRUN enabled and rapid override at 5%.
  2. Confirm both spindles reach the programmed RPM (verify with the HMI readouts; S1 and S2 should be in tolerance within +/- 2%).
  3. Step the part-transfer cycle block-by-block; verify COUPON and COUPOF execute without alarm 16770 "Coupling not allowed".
  4. Check the chuck-state bits on the PLC diagnostics screen.
  5. Run a full part-cycle in 3D simulation; visually confirm no collisions between the main-spindle tooling, the turret, and the counter-spindle slide.
  6. Save a settings backup via Commissioning > Create setup archive once the verification is complete.

11. PLC Interface for the Counter-Spindle

The PLC part of the counter-spindle archive is a STEP 7 project that ships with the machine data. The key I/O addresses for the chuck and the parts catcher are exposed on the PLCSIM instance that runs alongside SinuTrain. Use the STEP 7 watch table to confirm the bit states during commissioning:

Address Symbol Meaning
DB3x.DBX0.0 SP1_Chuck_Open Command: open main spindle chuck
DB3x.DBX0.1 SP1_Chuck_Closed Status: main chuck closed
DB3x.DBX2.0 SP2_Chuck_Open Command: open counter-spindle chuck
DB3x.DBX2.1 SP2_Chuck_Closed Status: counter-spindle chuck closed
DB3x.DBX4.0 Parts_Catcher_Extend Command: extend parts catcher
DB3x.DBX4.1 Parts_Catcher_Retract Command: retract parts catcher

Exact DB and byte offsets vary by machine builder. Confirm with the OEM-supplied symbol table before any field debugging.

12. Troubleshooting

Symptom Likely Cause Remedy
Channel 2 not visible after archive load MD 10000 / channel count not set to 2 Set MD 10000 = 2 and re-NCK reset.
Counter-spindle does not turn on S2=... Spindle mapping missing or wrong Verify MD 30134 and SETMS(2) in the program header.
Alarm 16770 "Coupling not allowed" Counter-spindle not in SPOS or in wrong operating mode Issue SPOS=0 on S2 before COUPON.
Tool-list alarm 61282 Tool not assigned to active spindle Open tool management, set spindle assignment to "Both" or to the active channel's spindle.
3D simulation does not show the counter-spindle Machine archive was not the Y/counter-spindle variant Re-install the counter-spindle + Y-axis archive.
HMI labels in English after install Existing language pack overwritten by the image Re-run language-pack setup for each installed language.
Chuck does not open despite M11 PLC bit not mapped or chuck I/O fault Check the watch table for DB3x.DBX0.0 and the chuck I/O module LEDs.
Y-axis swivels in wrong direction MD 20150 / 20100 axis direction reversed Reverse sign in MD 20100, re-NCK reset, recalibrate.

13. Commissioning Procedure Summary

Bringing a counter-spindle lathe online inside SinuTrain 6.3 Edition 3 follows a five-step loop:

  1. Install the counter-spindle machine archive (or the counter-spindle + Y-axis archive).
  2. Re-install all language packs to refresh the HMI text resources for the second channel.
  3. Power-cycle the NCK and PLCSIM, then re-check the channel overview.
  4. Load the part program, dry-run at 5% rapid override, and step the transfer cycle.
  5. Save a settings backup; document the MD differences relative to the base 2-axis configuration for future machine rollouts.
When deploying to a production SINUMERIK 840D sl / ONE controller, transfer the setup file via SinuTrain's Card link or via the SINUMERIK Integrate client. The PLC project must be downloaded to the real PLC separately; the SimuTrain PLCSIM instance does not transfer the binary automatically.

Does SinuTrain 6.3 Edition 3 support counter-spindle lathes out of the box?

No. The base SinuTrain 6.3 Edition 3 install is a generic 2-axis turning center. Counter-spindle support requires a separately licensed machine setup archive that exposes a second spindle, a second channel, and the technology cycles for the part-transfer operation.

Where do I get the counter-spindle machine setup file?

The setup file is supplied by the machine builder (the OEM) or by Siemens as an orderable option matched to your specific machine. It is delivered either as a *.arc setup archive or as a prebuilt cf-card image that you copy into the SinuTrain installation directory.

Why does my HMI revert to English after loading the counter-spindle archive?

Loading a prebuilt cf-card image overwrites the HMI text resources. Any language packs you had installed must be re-applied after the new machine directory is in place to restore localized tooltips and cycle prompts on the second channel.

Can I add a Y-axis to a counter-spindle machine in SinuTrain 6.3?

Yes, by loading the counter-spindle + Y-axis machine archive. This adds a Y geometry axis to the turret or to the counter-spindle slide and enables the swivel-data blocks (MD 62500 onwards) needed for plane changes and off-center milling.

What G-code commands are used to transfer the part between spindles?

The core commands are SPOS for spindle orientation, COUPON(S2, S1, 1) for synchronized coupling, COUPOF(S2, S1) for decoupling, and the manufacturer M-codes for chuck open/close (typically M10/M11 for the main spindle and M72/M73 for the counter-spindle). The full transfer cycle is also wrapped in CYCLE975.

Back to blog