Reference

Ladder Logic Instructions

All 53 instructions in the browser PLC, explained in plain English, with what each one is called on Rockwell, Siemens, Mitsubishi and CODESYS, the mistake people reliably make with it, and a worked rung you can open and run on a real scan cycle.

Contacts

The input side of a rung. Contacts in series are AND; contacts in parallel are OR.

Compare

Contacts that test a number instead of a bit. This is how an analog value becomes logic.

Coils

The output side. OTE follows the rung; OTL and OTU remember.

Timers

Time in milliseconds. The difference between these three is what happens when the rung goes false.

Counters

These count edges, not scans, which is why they usually need a one shot in front of them.

Move

Getting values into and out of registers: recipes, setpoints, preloads.

Math

Arithmetic on 32-bit integers, or on floating point where the instruction offers it.

Bitwise

Bit-level operations on a whole register at once, for masks and packed status words.

Sequencer

Stepping through a table of values, one step per transition.

Process

Closed-loop control, and a simulated plant to control so you can see it work.

Reset

Clearing a timer or counter back to zero.

Program control

Deciding what runs, and what does not, on this scan.