Skip to content

Working documentation

This page is generated from the project's working notes. It records a real retrofit in progress, corrections included. Anything marked 🔴 or ⚠️ is unresolved or carries a caveat - read those before acting.

Connector schedules - the SGM section

2 September 2026. The wiring diagram has a third section, SGM, of 12 pages, separate from the 40 Q.E. schematic sheets and the 13-page device list. It is a pin-by-pin connector schedule: for every connector, every pin, what it comes from and what it goes to, with the wire number, colour and cross-section.

Pages read: 1-5 of 12.

Format

Column Meaning
da=Inst.+Loc.-NI:pin Source: installation, location, device, terminal
Cross-reference Q.E. sheet.column where it is drawn
Nr Filo <wire number>/<colour>/<mm2>
PIN Pin on this connector
a=Inst.+Loc.-NI:pin Destination

Conductor colour codes: BL blu, RD rosso, BK nero, G/V giallo/verde, WH white, BN brown. Most I/O wiring is 1 mm2 blue.

SCORTA = spare.

✅ It verifies the module terminal formulas

Schedule entry Derived rule Result
-IF1:2E101 IF.1 = IF1 terminal 2
-IF1:3E102 IF.2 = terminal 3
-IF1:7E106 IF.6 = terminal 7
-IF2:2E109 IF.9 = IF2 terminal 2
-IF3:5E120 IF.20 = IF3 terminal 5
-IF3:7E122 IF.22 = terminal 7
-IF5:2E133 IF.33 = IF5 terminal 2
-IF6:6E145 IF.45 = IF6 terminal 6
-UF1:2A201 OF.1 = UF1 channel 1
-UF1:5A202 OF.2 = channel 2
-UF1:23A208 OF.8 = channel 8
-UF4:14A229 OF.29 = UF4 channel 5
-UF5:17A238 OF.38 = UF5 channel 6

Refinement: the output wire lands on the middle terminal of each group of three - 2, 5, 8, 11, 14, 17, 20, 23.

The final formulas

For input IF.n: - Module IF[floor((n-1)/8)+1], terminal ((n-1) mod 8) + 2, wire E1nn

For output OF.n, with k = ((n-1) mod 8) + 1: - Module UF[floor((n-1)/8)+1], terminal 3k-1 (the group is 3k-2, 3k-1, 3k), wire A2nn

🔴 =Q.E.-S (SGM page 5) - the spindle connector

Pin Conductor Cross-ref To
8 WH 5.0 -R6:1
15 BN 5.0 -R6:4

Cable: SCH 2x0.50 - screened pair. Only pins 8 and 15 of the 15-way are used.

The CNC's analog output feeds -R6 terminals 1 and 4 - it goes into the potentiometer network rather than alongside it. So the CNC is the spindle speed source and R6 is an override in its path, analogous to FR1 on the feed.

LinuxCNC's S word will control spindle speed. Whether R6 scales or limits it still wants a zoomed read of the -R6 block on sheet 5, but the direction of control is settled.

=Q.E.-A (SGM page 1) - Harting 32-pole, to =BM+X3

Gland PG36, PVC36 sleeve, L = 3 m. Wires: 2 x 2.5 G/V, 29 x 1 BLU, 3 x 1 ROSSO, all 4 m, to X3.

Pin From Wire To
1 -D:17 12/BL/1 X3:12
2 -X1:14 14/BL/1 X3:14
3 -SB6:1 801/BL/1 X3:801
4-9 -IF1:2 to -IF1:7 E101-E106 X3:E101-E106
10 -IF2:2 E109/BL/1 X3:E109
11-12 -IF5:2, -IF5:3 E133, E134 X3:E133, E134
13-15 SCORTA spare
16 -C:6 28/RD/1 X3:28
17-18 -X1:7 7/BL/1 X3:7
19 -M5 3/RD/1 X3:3
20 -UF1:2 A201/RD/1 X3:A201
21-27 -UF1:5 to -UF1:23 A202-A208 X3:A202-A208
28-29 -UF4:14, -UF4:17 A229, A230 X3:A229, A230
30 -UF5:14 A237/BL/1 X3:A237

=Q.E.-B (SGM page 2) - Harting 16-pole, to =BM+X43

Gland PG21, PVC20 sleeve, L = 5 m.

Pin From Wire To
1 -D:18 14/BL/1 X43:14
2 -SB15:4 14A/BL/1 X43:14A
3 -UX:42 73/RD/1 X43:73 - X drive P-OT
4 -UX:43 74/RD/1 X43:74 - X drive N-OT
5 -X:6 137/BL/1 X43:137 - X home switch BOX
6 -IF3:7 E122/BL/1 X43:E122
7 -IF6:6 E145/BL/1 X43:E145
8 -KA560:A1 560/BL/1 X43:560
9 -A:19 3/RD/1 X43:3
10 -D:2 7/BL/1 X43:7
11 -X1:12 12/BL/1 X43:12
12 -UF5:17 A238/RD/1 X43:A238
13-14 E143, E144 X43:E143, E144
15-16 -UF5:8, -UF5:11 A235, A236 X43:A235, A236

=Q.E.-C (SGM page 3) - Harting 32-pole, to =BM+X4 and =BM+X5

Gland PG36, PVC36 sleeve, L = 5 m. Two cables: pins 1-20 and 29-32.

Pin From Wire To
1 -SB15:4 14A/BL/1 X4:14A
2-3 -UY:42, -UY:43 87/RD/1, 88/RD/1 Y drive overtravel
4-5 -UZ:42, -UZ:43 101/BL/1, 102/BL/1 Z drive overtravel
6 -A:16 28/RD/1 X4:28
7 -KA2:56 126/RD/1 X4:126
8 -KA2:68 700/BL/1 X4:700
9-11 -IF3:5, -IF3:8, -IF3:9 E120, E123, E124
12-16 -UF3:8, :11, :20, :23, -UF5:23 A219, A220, A223, A224, A240
17-18 -B:1, -B:10 14/BL/1, 7/BL/1 X4:14, X4:7
19-20 -Y:6, -Z:6 138/BL/1, 139/BL/1 Y and Z home switches
21-28 SCORTA spare (X4 and X5)
29-30 -X1:16, -X1:15 16/RD/1, 15/RD/1 X5:16, X5:15
31 -U1:SC 18/BL/1 X5:18
32 -QFRI:13 57/BL/1 X5:57

=Q.E.-D (SGM page 4) - Harting 32-pole, to =BM+X5

Gland PG36, PVC36 sleeve, L = 5 m.

Pin From Wire To
1-2 -A:18 7/BL/1 X5:7
3-9 -UF2:5 to -UF2:23 A210-A216 drill valves Y101-Y106, Y131
10-11 -UF3:2, -UF3:5 A217, A218 Y132, Y133
12-15 -UF4:2, :5, :8, :11 A225-A228 Y107-Y110
16 -UF5:23 A240/BL/1 X5:A240
17-18 -B:11, -A:2 12/BL/1, 14/BL/1 X5:12, X5:14
19-26 -IF2:3, :4, -IF3:2, :3, :6, -IF4:3, :4, :5 E110, E111, E117, E118, E121, E126, E127, E128
27-29 -KM101:2/4/6 U1, V1, W1 /BK/1.5 Drill motor phases
30 SCORTA spare

Spare conductors between cabinet and machine

Connector Spare pins Count
=Q.E.-A 13, 14, 15 3
=Q.E.-C 21-28 8
=Q.E.-D 30 1
Total 12

Twelve unused conductors already run and terminated between the cabinet and the machine, on top of the seven spare inputs and six spare outputs at the modules.

Still to read

SGM pages 6-12. Expect =Q.E.-X, =Q.E.-Y and =Q.E.-Z (which will close the encoder colour question), the pendant connector, and very likely COLLEGAMENTI SERIALI, which is absent from the Q.E. section.

  • io-map.md - the wiring plan these schedules verify
  • machine-layout.md - the =BM+Xn junction boxes these cables run to
  • spindle-vfd.md - the -R6 network

SGM pages 6-10

🔴 =Q.E.-X, =Q.E.-Y, =Q.E.-Z - the axis connectors, definitive

SGM pages 6, 7 and 8. Identical structure on all three axes.

Pin Conductor Wire X Wire Y Wire Z Drive CN1 Signal
3 YE 64 78 92 35 PBO (B)
4 BL 63 77 91 33 PAO (A)
5 GR 65 79 93 19 PCO (O, index)
6 - 137 138 139 - home switch, via -B:5 (X), -C:19 (Y), -C:20 (Z)
7 - 014 014 014 24V drive 24 V input
8 BN 69 83 97 5 V-REF speed reference
9 RD-BN 62 76 90 1 SG
10 PK 67 81 95 36 /PBO (B-bar)
11 GN 66 80 94 34 /PAO (A-bar)
12 WH 68 82 96 20 /PCO (O-bar)
13 - 71 85 99 (0.5 mm2) 40 /S-ON servo on
15 WH 70 84 98 6 Reference 0 V

Pins 1, 2 and 14 unused.

Cables per axis: SCH 8x0.25 for the encoder (seven conductors used, one spare) and SCH 2x0.50 for the reference pair.

✅ This closes the last open question in the wiring plan

The colour-to-pin reading taken from sheet 7 was correct on all seven encoder conductors. The only refinement is that the SG conductor is red-brown, not plain brown.

Three corrections it produces

  1. The encoder cable is 8x0.25 mm2, not the 8X0.22 printed on sheet 7. Prefer the schedule.
  2. Wire 014 is the +24 V, not the 0 V - pin 7 goes to -UX:24V. This settles the reading flagged as counter-intuitive in power-distribution.md.
  3. The reference pair colours are BN on pin 8, WH on pin 15. Note that CONN.S uses the same two colours on the same two pins but the other way round (WH on 8, BN on 15).

🔴 The HSD spindle connector - SGM page 10

CONNETTORE ELETTROMANDRINO HSD (M200), reference -AM-PM. Two circular connectors on one backshell.

PM - power, 9 pin

Wire Pin Function
57 1 SONDA TERMICA (NC) - thermal probe
- 2 TERRA MOTORE - motor earth
15 3 220 Vac 50/60 Hz, ELETTRO-VENTOLA (fan)
U30 4 Motor phase
18 5 SONDA TERMICA (NC) - thermal probe
V30 6 Motor phase
- 7 Common with pin 2
W30 8 Motor phase
16 9 0 Vac, fan

🔴 The two thermal probes are wires 57 and 18. CONN.C pins 31 and 32 take them to -U1:SC and -QFRI:13 - the inverter's common and the brake-resistor breaker. So a hot spindle trips the inverter's external fault input. Another hardware interlock to preserve.

AM - sensors, 22 pin

Wire Pin Function
E121 1 SENSORE LETTURA POSIZIONE 0 INDEX
E117 2 SENSORE LETTURA POSIZIONE TIRANTE (drawbar position)
14 4 24 Vdc sensor supply
12 6 0 Vdc sensor return

🔴 The spindle has an index sensor, and the PLC names it something else

E121 is the wire for IF.21, which MW310.EQU calls IF_PIST_CAMBIO_GIU1 - "tool change piston down", and sheet 18 draws as -SQ203. Physically it is the spindle zero/index position sensor.

Likewise E117 is IF.17, called IF_PREUTE1 "tool present" and drawn as -SQ204. Physically it is the drawbar position sensor - which does indicate whether a tool is clamped, so the PLC's name is fair, but the drawing is more precise.

Consequence: spindle orientation is achievable. AXIS 4 on the Monoscheda is S, Syncro.prm carries an S-axis parameter block, and there is a real index sensor on a real input. Orientation for tool change would be: run slow, stop on the index. Worth building into the ATC phase plan rather than discovering later.

⚠️ General lesson: the PLC symbol names describe the PLC's use, not always the physical device. Where they disagree, the drawing is authoritative. Already seen on the carousel outputs; now again here.

=BM+X5-V1 - the valve connector, SGM page 9

Cable PF 25x0.25, 1 m. Confirms the derivation from the cable schedule exactly.

Pin Conductor Valve Output
1 BIANCO Y131 OF.16
2 MARRONE Y132 OF.17
3 VERDE Y133 OF.18
4 GIALLO Y101 OF.10
5 GRIGIO Y102 OF.11
6 ROSA Y103 OF.12
7 BLU Y104 OF.13
8 ROSSO Y105 OF.14
9 NERO Y106 OF.15
10 VIOLA Y107 OF.25
11 GRIGIO/ROSA Y108 OF.26
12 ROSSO/BLU Y109 OF.27
13 BIANCO/VERDE Y110 OF.28
17, 18 BIANCO/GRIGIO, GRIGIO/MARR. common, wire 7 to -X5:7
19, 20 BIANCO/ROSA, ROSA/MARR. PE/G.V/1, COLL. A TERRA
21-25 BIANCO/BLU, MARR./BLU, BIANCO/ROSSO, MARR./ROSSO, BIANCO/NERO spare

Five more spare conductors, bringing the total spare between cabinet and machine to seventeen.

Still to read

SGM pages 11 and 12. COLLEGAMENTI SERIALI is the last named drawing unaccounted for anywhere in the document.


SGM pages 11-12 - COLLEGAMENTI SERIALI

The last two pages, and the drawing that had been missing all along. It is in the SGM section, not the Q.E. section.

Four serial cables converge on the PC (P.C./CN12, ports COM1 and COM2):

Name Part Connectors Route
A SERIALE SYNCRO-P.C. CAV90240 / 025TEC0028 DB-9F to DB-9F, null modem 2-3, 3-2, 5-5, shield to shells, two 13 V F-126 suppressor diodes PC to Monoscheda. The tap goes here.
B SERIALE ARMADIO-P.C. CAV90420 / 025TEC0030 DB-25F to DB-9F, 3-wire, shield, two suppressor diodes Cabinet PULSANTIERA to PC
C SERIALE PC-YASKAWA - DB-9M to DB-9F, shield to shells 3CN on the Yaskawa Sigma drives
D SERIALE PC-PANASONIC - mini-DIN to DB-9F, shield both ends CN SER on the Panasonic

Full write-up in serial-port.md. Two consequences worth repeating here:

🔴 The PC-to-Tecnos link is a plain three-wire null modem with no handshake lines, so a passive listening tap is trivial and carries no risk of disturbing the link.

🔴 The servo drives have serial service ports (3CN), so the complete Pn parameter dump can be read over serial rather than transcribed from the front panel.

The document is complete

Section Pages Status
Q.E. schematics 40 ✅ All read
LISTA DISPOSITIVI 13 ✅ All read
SGM connector schedules 12 ✅ All read