PLC programming
Earlier articles
Selection guide
Selecting an ABB AC500 PLC family for your application
Shortlist AC500-eCo for compact machines and modular AC500 where the exact I/O, network or timing limits require it. Check the applicable XC variants for harsh conditions. Select and validate safety hardware against the machine risk assessment.
Selection guide
Selecting between Omron CP1, CJ, NX and NJ PLC controllers
Choose by architecture: a CP1 for compact machines that fit its built-in I/O, a CJ for modular I/O and special-function expansion, an NX where the machine needs an EtherCAT motion master with safety options like the NX-SL3, and an NJ where multi-core processing carries complex coordinated machines. CJ programs are rewritten, not converted, onto the Sysmac platform, so the installed base matters.
Selection guide
Selecting a Mitsubishi MELSEC PLC family for your application
Start with MELSEC iQ-F for new compact machines and iQ-R for new modular systems. For an installed FX3, L or Q system, match the CPU, I/O and network requirements and check the exact model’s availability and migration path before ordering.
How-to
Write a PLC function block for gripper open and close control
Hold one of two digital outputs for the commanded direction and drop both for a timed neutral pause on every reversal: that is the whole function block. Declare two BOOL outputs and a TON, run a four-state CASE that exits through a neutral state on each command edge, then map the outputs to the gripper's open and close inputs on your output module.
How-to
Use SFK-P function blocks for Smart Function Kit Pressing
The SFK-P example project supplies four blocks for TIA Portal V16 on the S7-1200 and S7-1500, for Smart Function Kit Pressing from version 5.1.114 onward: pick by data path — SFK_Command for command and status, SFK_Fast_Variable_Access for variables, SFK_SerialNumberConverter before a serial number goes in, SFK_GetNotification for status data — and confirm the PROFINET connection before debugging any block.
Selection guide
How to choose an S7 PLC family for a machine
For a new machine, pick the S7-1200 when the job is standalone control with modest I/O and one or two axes, and the S7-1500 when you need coordinated motion, controller-integrated safety, a fast scan or a large I/O count. Use S7-300 and S7-400 only to extend plants that already run them. Program both current families in TIA Portal.
Selection guide
Selecting an S7-1215C CPU for Modbus TCP and OPC UA
Yes, the S7-1215C carries a Modbus TCP client to the subordinate controller and an OPC UA server for the edge gateway, once firmware V4.4 or higher and the SIMATIC OPC UA S7-1200 Basic option (6ES7823-0BA00-2BA0) are on the order; the two PROFINET ports settle wiring, not capacity, and at this scale both protocols together load the port by a hundredth of a percent.
Selection guide
How to size an S7-400 CPU against a PLC-5/40 scan time
No S7-400 CPU maps one-to-one to a PLC-5/40 by instruction timing, and none needs to: every CPU from the 414 upward is faster on logic execution. Select on memory, I/O and communications capacity, then accept the choice only when the translated program's measured worst-case cycle lands at or below two-thirds of the measured PLC-5/40 scan.
Explainer
Why a MicroLogix 1200 has no read-only password for techs
No. RSLogix 500 gives SLC 500 and MicroLogix controllers a single controller-level password, set in Controller Properties: whoever holds it can view, edit, and download, and whoever does not is locked out. Clear online edits per ladder file and treat the memory module as recovery — monitoring access must be solved procedurally, because no read-only login exists.
How-to
How to Start Reworking Modicon M340 Logic as an AB Programmer
You are not as stuck as you fear. The Modicon M340 is programmed in exactly one tool, EcoStruxure Control Expert (formerly Unity Pro), and the project file you already have fixes the version you need. An STU opens only in the version that saved it, an STA in that version or later, an XEF or ZEF in nearly any version, and with no file you upload over USB, Modbus TCP or Modbus RTU before changing logic.
Troubleshooting
Why MELSECNET II data reads zeros after adding a Modbus card
The zeros are not a network fault. The QJ71MB91 occupies 32 I/O points, and inserting it ahead of the MELSECNET II module moved that module's start I/O number, so the access code reads the wrong position. Diff the I/O assignment against the map from before the change, re-address the assignment so the MELSECNET II module sits at 0070, and update every instruction that targets it.
Troubleshooting
Why an SLC 5/03 stays Default/Faulted after a bad download
The corrupted download left no valid application in the processor, so Program/Run cycling cannot recover it and RSLogix will not download while RSLinx still reports Default/Faulted. Remove the battery, short VBB to GND and hold it a full three minutes — a 60-second short failed on this processor and a hold of more than two minutes cleared it — then confirm the state change in RSLinx before reloading the project.