p2s function

Primary to Secondary