A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-12-1503:11 PM
Derived Function Block
I have an issue with a Derived FB that creates a Run Times (Hours/Minutes/Seconds) of a motor based on a BOOL being TRUE. The FB works just fine until I have to download a new program to the PLC (Stop the Controller) where my output for Run Times resets back to 0. I did disable Initialize %MWi after cold start but problem still continues, I'm sure it has something to do with the way I've set the FB up.
I've read somewhere that the Output values used in the Derived FB will be overwritten when a cold start is initiated and to use Input/Output in place of the Output so the values will not reset back to 0, but that isn't working for me.
I do have a Reset bit in the code which works, I've eliminated it being a factor by writing in 200 instead of zero. .
Maybe somebody could shed some light on this issue for me. Code and Variables attached.