Sign in to follow this  
Followers 0
ct8356

TIAPortal: How to copy a struct into to another struct, in ladder?

2 posts in this topic

Currently, I am using the S_MOVE instruction to copy a string called "dbVariant".Variant1.PartNumber into "dbVariant".VariantInBuild.PartNumber. How would I go about copying the whole struct "dbVariant".Variant1 into struct "dbVariant".VariantInBuild? Thanks in advance!

Share this post


Link to post
Share on other sites
SFC20 BLKMOV Picture attached. If it wont let you select the struct (it should) then use the any pointer (P#DBxxx.DBXy.y BYTE z) for the src/dest.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0