Know-How
Completed
Choosing a PLC 1: count the I/O and leave spare
32 Views •4-20 mA input reading wrong: check it step by step
238 Views •Scaling a 4-20 mA signal in the PLC: formula, constants and code
229 Views •Digital input not reading: NPN or PNP, step by step
248 Views •Relay or transistor output: which one and how to check it
189 Views •Digital input not reading: NPN or PNP, step by step
248 Views •4-20 mA input reading wrong: check it step by step
238 Views •RS-485: how to check a bus step by step
234 Views •Scaling a 4-20 mA signal in the PLC: formula, constants and code
229 Views •Relay or transistor output: which one and how to check it
189 Views •Modbus RTU timeout: 6 checks before blaming the wiring
142 Views •Upload fails: 6 checks before blaming the code
138 Views •4G PLC not connecting: 6 checks before blaming the code
105 Views •LoRa works on the desk, fails in the field: 6 checks before you install
94 Views •Choosing a PLC 1: count the I/O and leave spare
32 Views •Choosing a PLC 2: which communications do you really need
32 Views •SD card corrupted? 6 habits for Linux in the field
31 Views •LoRaWAN node won't join: 6 checks, in order
30 Views •Touch panel: screen turned, touch didn't. 6 checks
30 Views •Arduino IDE compile error: 6 checks before the code
29 Views •Choosing a PLC 1: count the I/O and leave spare
Short answer: before you choose a PLC, count every input and output by signal type, mark the fast signals, note isolation and the 24 V consumption, add spare per type and decide which signals go to local or remote I/O. Then compare that count with the datasheets.
Download the checklist (PDF, 2 pages)
Descarga la lista de comprobación (PDF, 2 páginas)
The usual problem is not the PLC itself but a count made too late: the PLC is bought and the project is short of one type of input. These six steps apply to any PLC. The PDF checklist of this lesson includes a printable count sheet. Communications are part 2 of this series.
Six steps, in this order
| Step | What to note | Good result |
|---|---|---|
| 1. Inputs by type | List every input with its signal type: 24 V digital, 4-20 mA, 0-10 V or temperature. A PT100 is an RTD (IEC 60751): it needs an RTD input or a transmitter, not a voltage input. Note the range of each analog signal. | One row per signal type, with its count and range. |
| 2. Fast signals | Standard digital inputs are filtered and read once per scan. Encoders, pulse counters and short pulses usually need high-speed or interrupt inputs. The maximum frequency depends on the model: check the datasheet. | Fast inputs counted apart, with the frequency each one needs. |
| 3. Outputs | Relay: AC or DC, isolated, slow switching and limited mechanical life. Transistor: DC only, fast switching. Analog: a 0-10 V or 4-20 mA setpoint. PWM: a pulsed digital output, not an analog one. The load and how often it switches decide. | Each output with its type, voltage and current. |
| 4. Isolation and power | Note which signals need galvanic isolation, for example because of noise or different grounds. Add up what the PLC, the sensors and the loads draw from the 24 V supply. | Signals that need isolation marked; total 24 V current written down. |
| 5. Spare | Add spare per signal type, not only on the total. A common practice is 10 to 20 %, more if changes are expected. It depends on the size of the project, the panel space and the budget. | Total = count + spare, for each type. |
| 6. Local or remote | Local expansion modules sit next to the PLC on its own bus. Signals far from the cabinet can go to remote I/O over a fieldbus instead of long cable runs. Which fieldbus is part 2. | Each signal assigned: PLC, local expansion or remote I/O. |
Common sizing mistakes
- Counting only the total: there are free terminals, but none of the type the change needs.
- PT100 counted as a 0-10 V input: an RTD needs its own input type or a transmitter.
- Encoder on a standard input: the input filter and the scan time can miss pulses.
- Relay for a load that switches often: contact wear and switching that is too slow for the load.
- PWM taken as an analog output: it is a pulsed digital signal, not a 0-10 V or 4-20 mA setpoint.
- 24 V supply sized for the PLC only: sensors and loads also draw from it.
- No spare and no panel space: the first change needs a new module, remote I/O or a bigger panel.
Types 1, 2 and 3 in IEC 61131-2
IEC 61131-2 defines three types of 24 V DC digital input, with different voltage and current thresholds. Type 1 is meant for mechanical contacts, type 2 accepts a higher input current for older sensors that need it, and type 3 works with lower current for electronic sensors. The datasheet of each PLC says which type its inputs meet. PLC inputs also often have galvanic isolation between the field side and the logic side, to protect the logic from field voltages and noise. For spare, there is no single rule: vendors quoted by Control Design go from 5 % in large projects to 20 or 25 %, with 10 % as a common minimum.
Next steps
- Choosing a PLC, part 2: which communications do you really need
- Inputs and outputs
- 4-20 mA input reading wrong: check it step by step
- Digital input not reading: NPN or PNP, step by step
- Relay or transistor output: which one and how to check it
- Reading temperature with a PT100 sensor
- Expanding I/O over I2C with M-Duino or Ardbox
- Datasheets of the Arduino, ESP32 and Raspberry Pi PLC ranges, to compare with your count sheet
Sources
IEC 61131-2, Programmable controllers, Part 2: Equipment requirements and tests. IEC 60751, industrial platinum resistance thermometers. Analog Devices: Industrial Digital Inputs: They're Not Quite as Simple as Counting from 0 to 1. Analog Dialogue: Precision Signal-Processing and Data-Conversion ICs for PLCs. Control Design: How to plan for spare I/O space.
Commenting is not enabled on this course.