The only difference between the soleus and gastrocnemius muscle when it comes to movement is that the soleus is more active when the knee is bent.
The gastrocnemius muscle is under most tension when the knee is straight.