Sliding Roof (Sunroof) Wiring — Toyota Prius

ToyotaPrius2009–2015Body & AccessoriesUpdated 2026-11-04

The roof motor and its computer are one unit: the Sliding Roof Control ECU (R23). When you press OPEN or CLOSE on the roof switch (in the map light, U13), the switch connects the sky-blue or brown wire to ground and the ECU runs the motor. The roof ECU talks to the Main Body ECU on one pink LIN wire (MPX1 ↔ LIN2). The Main Body ECU knows the key and door status, and uses the buzzer and the meter (over CAN) for warnings.

Pinout — pin number & wire colour

R23 = Sliding Roof ECU · U13 = roof switch (map light, connector B) · L7 (A), L8 (B) = Main Body ECU · JB = Main Body ECU pins that plug straight into the junction block (no letter in the factory diagram) · L27 = combination meter

PinNameWire colourWhat it does
Connector (JB)
2FLCYV VioletFront door switch LH (R6). Violet, then brown after the junction block.
4FRCYBR BrownFront door switch RH (S5).
11GND1W-BGround (ground point L3, through junction connector L92).
16LIN2P PinkLIN data line to the Sliding Roof ECU (R23 pin 4 MPX1).
21BZRR RedWireless door lock buzzer (A33 pin 1).
29ACC—Power with key in ACC (10A ECU-ACC fuse, inside the junction block).
30BECUY YellowBattery power, always on (7.5A ECU-B fuse).
31ALTB—Battery power, always on (25A DOOR NO.1 fuse, inside the junction block).
32IG—Power with key ON (10A ECU-IG NO.1 fuse, inside the junction block).
Connector (L27)
10CANHP PinkCAN high from junction L94.
11CANLW WhiteCAN low from junction L94.
18BR RedBattery power, always on (7.5A ECU-B fuse; yellow before the junction block, red after).
19IG+L BluePower with key ON (10A GAUGE fuse).
30ESBR BrownGround (ground point L2).
Connector (L7)
6LRCYG GreenRear door switches: green to rear RH (S10), red branch to rear LH (R13).
13CANLW WhiteCAN low → junction L94 → meter.
14CANHBR BrownCAN high → junction L94 → meter (pink after L94).
Connector (L8)
3GND2W-BGround (ground point L1, through junction connector L93).
Connector (R23)
1BR RedMain power for the roof motor, live with key ON (30A S/ROOF fuse).
2EW-BGround (ground point L3, through junction connector L92).
4MPX1P PinkLIN data line to the Main Body ECU (pin 16 LIN2).
5IGB BlackKey ON signal (10A ECU-IG NO.2 fuse; the wire is beige before the junction block).
7OPNSB Sky blueOPEN signal from the roof switch (U13 pin 16).
9CLSBR BrownCLOSE signal from the roof switch (U13 pin 2).
Connector (U13)
2CLSBR BrownCLOSE button → Sliding Roof ECU pin 9.
9GND1W-BGround for the switch (ground point L1, through junction connector L93).
16OPNSB Sky blueOPEN button → Sliding Roof ECU pin 7.
Sliding Roof ECU (R23)Key ON (IG)S/ROOF 30 AR1 B1Key ON (IG)ECU-IG NO.2 10 ABEB5 IG2Main Body ECUpin 16 LIN2P4 MPX13W-Bground L32 E4Mroof motor(built in)

1. Sliding Roof ECU: power, ground and LIN

  1. Pin 1, red wire: main power for the motor from the 30A S/ROOF fuse (key ON). It passes connector LR1 pin 8.
  2. Pin 5, black wire: key ON signal from the 10A ECU-IG NO.2 fuse. The wire is beige (BE) before the junction block and black after it. It passes LR1 pin 12.
  3. Pin 4, pink wire: LIN data line to the Main Body ECU (pin 16 LIN2). It passes LR1 pin 13.
  4. Pin 2, white-black wire: ground. It goes through LR1 pin 7 and junction connector L92 to ground point L3. The motor (M+ / M−) is inside the ECU, so it has no outside wires.
Roof switch (U13)OPEN /CLOSEbuttonsSliding Roof ECU (R23)16 OPNSB7 OPN12 CLSBR9 CLS29 GND1W-Bground L13

2. Roof OPEN / CLOSE switch

  1. OPEN: switch pin 16 → sky-blue wire → roof ECU pin 7 (through UL1 pin 2 and LR1 pin 51).
  2. CLOSE: switch pin 2 → brown wire → roof ECU pin 9 (through UL1 pin 3 and LR1 pin 52).
  3. Switch ground: pin 9, white-black wire, through UL1 pin 7 and junction connector L93 to ground point L1. Pressing a button connects its wire to this ground.
Main Body ECU(L7 = A, L8 = B)Sliding roof ECUpin 4 MPX1P16 LIN21Key ON (IG)ECU-IG NO.1 10 A32 IGKey ACCECU-ACC 10 A29 ACCBattery (BAT)DOOR NO.1 25 A31 ALTBBattery (BAT)ECU-B 7.5 AY30 BECU2ground L13 (B) GND2ground L311 GND1W-B3VBRFront door switch LH(R6) pin 12 FLCYBRFront door switch RH(S5) pin 14 FRCYGRRear door switch RH(S10) pin 1Rear door switch LH(R13) pin 16 (A) LRCY4RDoor lock buzzer(A33) pin 121 BZR5CAN junction (L94)→ meterWBR13 (A) CANL14 (A) CANH6

3. Main Body ECU: LIN, power, doors, buzzer and CAN

  1. Pin 16 LIN2, pink wire: data line to the Sliding Roof ECU pin 4.
  2. Power: pin 32 IG (ECU-IG NO.1 10A), pin 29 ACC (ECU-ACC 10A), pin 31 ALTB (DOOR NO.1 25A) are inside the junction block. Pin 30 BECU gets the 7.5A ECU-B fuse on a yellow wire.
  3. Grounds: pin 3 (B) GND2 goes to ground L1 (through L93), pin 11 GND1 goes to ground L3 (through L92). Both are white-black.
  4. Door switches, all to switch pin 1: front LH (R6) on pin 2 (violet, then brown), front RH (S5) on pin 4 (brown), both rear doors on pin 6 (A): green to rear RH (S10), red to rear LH (R13).
  5. Pin 21 BZR, red wire: the wireless door lock buzzer (A33). Its pin 2 goes to ground A1.
  6. Pins 13 (A) CANL white and 14 (A) CANH brown go to the CAN junction L94, and from there to the meter.
Combination Meter (L27)Key ON (IG)GAUGE 10 AL19 IG+Battery (BAT)ECU-B 7.5 AYR18 B1CAN junction (L94)from Main Body ECUPW10 CANH11 CANL2ground L230 ES3

4. Combination meter

  1. Pin 19 IG+, blue wire: key ON power from the 10A GAUGE fuse. Pin 18 B: battery power from the 7.5A ECU-B fuse (yellow, then red after the junction block).
  2. Pin 10 CANH (pink) and pin 11 CANL (white): data from the Main Body ECU through junction L94. The brown CANH wire from the body ECU becomes pink after L94.
  3. Pin 30 ES, brown wire: to ground point L2.

🧰 Tools you need

  • Digital multimeter
  • OBD2 scanner (ELM327 or better)
  • 12 V test light
  • Back-probe pins / jumper wires

Wire colour codes

Wires in the diagrams are drawn in their real colours. Manuals write colours as short letters:

R Red
P Pink
B Black
SB Sky blue
BR Brown
G Green
W White
V Violet
Y Yellow
L Blue

Two letters with a dash, like W-B, means a white wire with a black stripe.

Common problems & quick checks

ProblemLikely causeWhat to check
Roof does not move at allFuse blown, no power or ground at the roof ECUCheck the 30A S/ROOF and 10A ECU-IG NO.2 fuses. Key ON: 12 V on R23 pin 1 (red) and pin 5 (black). Check ground on pin 2 (white-black).
Opens but does not close (or the other way)Switch button faulty, or the sky-blue / brown wire is brokenKey ON: R23 pin 7 (OPEN, sky-blue) or pin 9 (CLOSE, brown) should go to 0 V when you press that button. If not, check switch pin 9 ground and the wires through UL1 and LR1.
Both buttons dead, but the roof ECU has powerSwitch ground missingCheck U13 pin 9 (white-black) to ground L1, through UL1 pin 7 and junction connector L93.
Roof moves only a little, or one-touch does not work after a battery changeRoof ECU lost its memory (needs initialisation)Do the sliding roof initialisation from the repair manual, then test again.
Roof warning / buzzer not working, or roof acts strange with key or doorsLIN wire, door switch, buzzer or CAN problemCheck the pink LIN wire (R23 pin 4 ↔ body ECU pin 16). Check the door switches on body ECU pins 2, 4 and 6 (A). Check the buzzer (A33) on pin 21. Scan for U-codes.

Related trouble codes

This is a simplified drawing for learning. Pin numbers and colours can change by model and year — check the service manual for your exact car before repairing.