The rods in S-cam brakes move the slack adjusters when air pressure is added to the brake chambers. This air pressure is added to the chambers when the driver:
When pressing the brake pedal in a vehicle with S-cam brakes, air will enter the brake chambers. The added air pressure will push out the rods and move slack adjusters, twisting the brake camshafts.