Sliding Roof (Sunroof) Wiring — Toyota Prius
ToyotaPrius2009–2015Body & AccessoriesUpdated 2026-11-04The 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
| Pin | Name | Wire colour | What it does |
|---|---|---|---|
| Connector (JB) | |||
| 2 | FLCY | V Violet | Front door switch LH (R6). Violet, then brown after the junction block. |
| 4 | FRCY | BR Brown | Front door switch RH (S5). |
| 11 | GND1 | W-B | Ground (ground point L3, through junction connector L92). |
| 16 | LIN2 | P Pink | LIN data line to the Sliding Roof ECU (R23 pin 4 MPX1). |
| 21 | BZR | R Red | Wireless door lock buzzer (A33 pin 1). |
| 29 | ACC | — | Power with key in ACC (10A ECU-ACC fuse, inside the junction block). |
| 30 | BECU | Y Yellow | Battery power, always on (7.5A ECU-B fuse). |
| 31 | ALTB | — | Battery power, always on (25A DOOR NO.1 fuse, inside the junction block). |
| 32 | IG | — | Power with key ON (10A ECU-IG NO.1 fuse, inside the junction block). |
| Connector (L27) | |||
| 10 | CANH | P Pink | CAN high from junction L94. |
| 11 | CANL | W White | CAN low from junction L94. |
| 18 | B | R Red | Battery power, always on (7.5A ECU-B fuse; yellow before the junction block, red after). |
| 19 | IG+ | L Blue | Power with key ON (10A GAUGE fuse). |
| 30 | ES | BR Brown | Ground (ground point L2). |
| Connector (L7) | |||
| 6 | LRCY | G Green | Rear door switches: green to rear RH (S10), red branch to rear LH (R13). |
| 13 | CANL | W White | CAN low → junction L94 → meter. |
| 14 | CANH | BR Brown | CAN high → junction L94 → meter (pink after L94). |
| Connector (L8) | |||
| 3 | GND2 | W-B | Ground (ground point L1, through junction connector L93). |
| Connector (R23) | |||
| 1 | B | R Red | Main power for the roof motor, live with key ON (30A S/ROOF fuse). |
| 2 | E | W-B | Ground (ground point L3, through junction connector L92). |
| 4 | MPX1 | P Pink | LIN data line to the Main Body ECU (pin 16 LIN2). |
| 5 | IG | B Black | Key ON signal (10A ECU-IG NO.2 fuse; the wire is beige before the junction block). |
| 7 | OPN | SB Sky blue | OPEN signal from the roof switch (U13 pin 16). |
| 9 | CLS | BR Brown | CLOSE signal from the roof switch (U13 pin 2). |
| Connector (U13) | |||
| 2 | CLS | BR Brown | CLOSE button → Sliding Roof ECU pin 9. |
| 9 | GND1 | W-B | Ground for the switch (ground point L1, through junction connector L93). |
| 16 | OPN | SB Sky blue | OPEN button → Sliding Roof ECU pin 7. |
1. Sliding Roof ECU: power, ground and LIN
- Pin 1, red wire: main power for the motor from the 30A S/ROOF fuse (key ON). It passes connector LR1 pin 8.
- 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.
- Pin 4, pink wire: LIN data line to the Main Body ECU (pin 16 LIN2). It passes LR1 pin 13.
- 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.
2. Roof OPEN / CLOSE switch
- OPEN: switch pin 16 → sky-blue wire → roof ECU pin 7 (through UL1 pin 2 and LR1 pin 51).
- CLOSE: switch pin 2 → brown wire → roof ECU pin 9 (through UL1 pin 3 and LR1 pin 52).
- 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.
3. Main Body ECU: LIN, power, doors, buzzer and CAN
- Pin 16 LIN2, pink wire: data line to the Sliding Roof ECU pin 4.
- 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.
- Grounds: pin 3 (B) GND2 goes to ground L1 (through L93), pin 11 GND1 goes to ground L3 (through L92). Both are white-black.
- 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).
- Pin 21 BZR, red wire: the wireless door lock buzzer (A33). Its pin 2 goes to ground A1.
- Pins 13 (A) CANL white and 14 (A) CANH brown go to the CAN junction L94, and from there to the meter.
4. Combination meter
- 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).
- 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.
- 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:
Two letters with a dash, like W-B, means a white wire with a black stripe.
Common problems & quick checks
| Problem | Likely cause | What to check |
|---|---|---|
| Roof does not move at all | Fuse blown, no power or ground at the roof ECU | Check 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 broken | Key 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 power | Switch ground missing | Check 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 change | Roof 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 doors | LIN wire, door switch, buzzer or CAN problem | Check 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
U0001 — High Speed CAN Communication Bus
A module found a problem on the high-speed CAN data wires.
NetworkmediumU0155 — Lost Communication With Instrument Panel Cluster
Another computer in the car stopped getting messages from the meter. The meter has no power, no ground, or is not connected to the data wires.