sm506