Tutorial files
From the P&ID to the loop checks
The files used in the MGTrace tutorial on building an I/O list from a P&ID and an electrical drawing, importing it and generating the loop checks per signal. A fictional training plant: VE-1001, a water heating and distribution skid with a Beckhoff PLC rack and a pump drive on EtherNet/IP. Download them, follow along, and compare your list with the finished one. No account needed.
PDF · 1 page · A1 · 0.6 MB
P&ID — P-1001 rev 06
The piping and instrumentation diagram of the skid: vessel VE-1001, the immersion heater, the fill valve with its limit switches, the level switches, the transmitters, the transfer pump on its drive, the control loops and the interlock notes. Where every tag on the I/O list comes from.
DownloadPDF · 6 pages · A1 · 3.6 MB
Electrical drawings — E-2100 to E-2105
The PLC rack layout and slot allocation (E-2100), the wiring schematics of the digital inputs, digital outputs, analogue inputs and analogue outputs (E-2101 to E-2104), and the network drawing with the drive's cyclic data map (E-2105). Where the rack, slot, channel, PLC address, signal, terminals and cable numbers come from.
DownloadExcel · 9 signals · 16 KB
I/O list — VE-1001, hardwired signals
The result of the tutorial: the MGTrace I/O list template filled with the nine hardwired signals of the skid, from the P&ID and the wiring schematics. Import it as it is into a project to get the same register, or fill the blank template yourself and compare.
DownloadThe plant
Water comes in through the fill valve XV-1004 into the 2 000 L vessel VE-1001, where the 9 kW immersion heater EH-1002 brings it to temperature under TIC-1007, which modulates the heater through the SCR unit TY-1002. The transfer pump P-1003, on the variable speed drive VSD-1003, feeds the distribution loop and its four use points; PIC-1008 holds the discharge pressure by setting the speed setpoint of SIC-1003 in cascade. LAH-1005 closes the fill valve on high level; LAL-1006 stops the pump and disables the heater on low level.
The PLC is a Beckhoff CX5120 on rack R01 with four I/O terminals: 8 digital inputs (EL1008, slot 01), 8 digital outputs (EL2008, slot 02), 4 analogue inputs 4–20 mA (EL3054, slot 03) and 4 analogue outputs 4–20 mA (EL4024, slot 04). The pump drive has no hardwired I/O: start, setpoint, feedback and status travel over EtherNet/IP.
How the tutorial goes
- 1Read the P&ID. Every instrument and actuator that touches the PLC becomes a row: its tag, what it is, its type, the engineering range and the fail position the drawing gives.
- 2Open the electrical drawings. The slot allocation on E-2100 gives the rack, slot and PLC address; the wiring schematics give the channel, the signal (24 V DC, 4–20 mA), the contact type (NO / NC), the terminals and the cable numbers — the Notes column.
- 3Add the bus signals. The drive's cyclic data map on E-2105 lists what is exchanged over EtherNet/IP: same four types, medium Bus, the TwinCAT variable as PLC address. The list below stops at the hardwired signals; these five are the next step.
- 4Fill the template and import. The blank MGTrace template, one signal per row; Import… in the I/O List document; the preview shows each row as new or with its error.
- 5Generate the loop checks. One test per signal from the template of its class — AI, DI, DO, AO and their bus counterparts NAI, NDI, NDO, NAO — into the loop-check protocol, ready to execute from a phone in the cabinet room.
The 9 hardwired signals
What the I/O list holds, signal by signal: the signals wired to rack R01 and tested at the terminals, from the P&ID and the wiring schematics E-2101 to E-2104.
| Tag | Signal | Class | Where it lands |
|---|---|---|---|
| ZSO-1004 | Fill valve XV-1004 open limit switch | DI | R01 S01 ch 1 · 24 V DC · NO contact |
| ZSC-1004 | Fill valve XV-1004 closed limit switch | DI | R01 S01 ch 2 · 24 V DC · NO contact |
| LSH-1005 | Vessel VE-1001 high level switch | DI | R01 S01 ch 3 · 24 V DC · NC contact, SP 90 % |
| LSL-1006 | Vessel VE-1001 low level switch | DI | R01 S01 ch 4 · 24 V DC · NC contact, SP 15 % |
| XV-1004 | Fill valve solenoid | DO | R01 S02 ch 1 · 24 V DC · fail closed |
| EH-1002 | Water heater enable, contactor KM-02 | DO | R01 S02 ch 2 · 24 V DC |
| TT-1007 | Vessel VE-1001 temperature | AI | R01 S03 ch 1 · 4–20 mA · 0–150 °C |
| PT-1008 | Pump P-1003 discharge pressure | AI | R01 S03 ch 2 · 4–20 mA · 0–10 bar g |
| TY-1002 | Heater power demand to SCR unit | AO | R01 S04 ch 1 · 4–20 mA · 0–100 % |
Still to add: the pump drive over EtherNet/IP
The drive VSD-1003 has no hardwired I/O. Its five signals come from the cyclic data map on E-2105 and go in the same list with medium Bus; they are tested at the drive, not at the terminals.
| Tag | Signal | Class | Where it comes from |
|---|---|---|---|
| P-1003 | Pump start / stop command | NDO | EtherNet/IP · GVL.VSD1003.Cmd.Start |
| SC-1003 | Pump speed setpoint | NAO | EtherNet/IP · 0–1450 rpm |
| SI-1003 | Pump speed feedback | NAI | EtherNet/IP · 0–1450 rpm |
| YS-1003 | Pump running status | NDI | EtherNet/IP · 1 = running |
| YA-1003 | Pump drive fault | NDI | EtherNet/IP · latched until reset |
Start with the blank template
The finished list is the MGTrace I/O list template filled in. Take the blank one, build your own from the two drawings, and import both to compare.
The I/O list template →How the loop checks are done
Do it in MGTrace
Create a project, import the I/O list, trace each signal to the design element that specifies it, generate the loop checks and execute them from a phone. Free for the first users, no time limit.
VE-1001 is a training example, not a real installation. Drawings and I/O list by MGTrace; use them freely for learning and teaching.