There two auto modes with the OM-40 (OM-PC in the USA). You can shoot in aperture priority, program, or full manual.
Aperture Priority is when you set the aperture to whatever f-stop you want to use, and the camera then chooses the correct shutter speed to give correct exposure. The shutter speed you have set on the camera doesn't matter, since the camera sets it automatically, ignoring the manual speed ring.
Program is when the camera chooses both the aperture and shutter speed. For this, the aperture must be set to the smallest aperture the lens offers (for example f16 on the 50mm f1.8). Doesn't matter where you have the shutter speed set.
Full manual, you set aperture and shutter speed yourself.