Jump to content

Recommended Posts

Posted
Hi everyone, I'm trying to translate Allen Bradley program to Schneider. My program has 2 tasks : - 1 periodic task which has to run precisely every 20 ms - 1 periodic task which run every 100 ms and doesn't need to have a fixed step of calculation In Allen Bradley, I've simply created 2 periodic tasks with priority #1 and priority #2 and that did the job. In Unity Pro, I see MAST and FAST tasks. What is the best practice to achieve the same thing? Thank you.
Posted
The MAST task can be set to periodic and the time can be adjusted by right clicking on MAST folder then properties. Same can be done in the with the Fast task. I would suggest putting your first task in the FAST and setting it to periodic for 20ms. And the second in the mast task at the top of the list to scan first and setting the mast task to 100ms. If the 2nd task isnt that time dependent just put it in MAST and leave at Cyclic and see if it does the job.
Posted
Let's say I have a 3rd periodic task, what would be my options? Is MAST and FAST task are the only one I can use or I can create others? Also, is there a tool in Unity Pro 7.0 or 8.0 that show in real time every task execution time? Thanks.
Posted
I dont think it will be possible as you can only assign periodic timing per task. There is another option and I think this is the correct way of doing this. (I just never used it so) You get Timer events and it will do exactly what you want. You create a section and each section will be executed according to the timer settings. Q2. In the rack viewer dbl click on the cpu and then go to animation (While online) Then you will see the realtime scan times per section

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...