Rung Order Matters
Part of the First Rungs section of Coddy's PLC Programming journey. Lesson 18 of 20.
Rungs are solved top to bottom, and a rung sees what the rungs above it wrote in the same scan. A rung that reads a tag before the rung that writes it sees last scan's value: one scan late.
Here Amber follows Green one scan behind. One scan is 10 ms, often harmless, but for that scan Green and Amber disagree. Hold PB1 and press Step one scan to see it.
Challenge
EasyMake Amber light in the same scan as Green. Tap a rung number to move it.
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[{"t":"no","tag":"Green"},{"t":"coil","tag":"Amber"}]},{"els":[{"t":"no","tag":"PB1"},{"t":"coil","tag":"Green"}]}]}All lessons in First Rungs
Practice on your own: PLC playground