Sign in to follow this  
Followers 0
DLB

Testing with Unity Pro Simulation Mode

4 posts in this topic

Hi, I've been handed some PLC code and asked to make some modifications. The mods are minor but naturally I need to test them and use simulation mode to make sure it's good to go before it gets downloaded to the hardware on site. I've used RSLogix5000 quite a lot but I am new to Unity Pro S (using v5.0) and could do with some help. When I am in simulation mode and the simulated hardware is running I see I can use animation tables to force tag values. This works for normal tags but I don't seem to be able to force things within DFBs. For example, the mods I have made are to an SFC Transition Section. In the transition section is a simple AND block. I need the output of the AND block (and consequently the transition) to be TRUE so to do so, I need to force all of the inputs to the AND. However one of the inputs is an output variable from a DFB (ie "DFBName.VariableName") and it will not allow me to force it. Is there any way I can do this? If not then I guess the only way to achieve it is to follow this tag back through the DFB and force other tags to eventually get it to the value I need? Only thing is I did this and I run into the same issue: I need to force tags which Unity won't allow me to. The documentation for Unity doesn't seem great at first glance and I can't seem to get what I need from it. Any help would be great! Cheers

Share this post


Link to post
Share on other sites
I realise it is a long time since this question was posted but for the record Unity Pro doesn't allow forcing of a variable that isn't allocated a memory address. That may have been the issue. Regards Edited by JMullan

Share this post


Link to post
Share on other sites
Thanks for sharing such information.............

Share this post


Link to post
Share on other sites
Hi, You can try to right click the DFB you created in logic, search for the "Refine" option. Then you are able to modify the value inside. But as JMullan said, if the variable inside your DFB link to external tag with no specify address, you can only modify value but not able to force it. Hope this help

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