Jordy Posted July 25, 2017 Report Share Posted July 25, 2017 Hi, I want to create a pulse train just like the build in SB3 or SB7, but I need to define the length using an MI on the screen. For example if MI=12, an MB must toggle every 12ms Is it possible to create this in visilogic? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted July 25, 2017 MVP 2023 Report Share Posted July 25, 2017 Sure you can, but timers only have a resolution of 10ms. Just multiply your MI by 100 and use "Store Timer/Counter Preset" for the TD timer you wish to use. Make the timer self-resetting (timer activated by inverted contact of the timer) then have a positive transition of the timer activate a toggle coil of the MB you wish to use for the pulse train. If this isn't clear, I'll post a screen capture of the logic - just let me know. Remember, you must use increments of 10ms. You cannot have a 12ms timer. 1 Link to comment Share on other sites More sharing options...
Jordy Posted July 25, 2017 Author Report Share Posted July 25, 2017 Great, this is working! 10 minutes ago, Flex727 said: Sure you can, but timers only have a resolution of 10ms. Just multiply your MI by 100 and use "Store Timer/Counter Preset" for the TD timer you wish to use. Make the timer self-resetting (timer activated by inverted contact of the timer) then have a positive transition of the timer activate a toggle coil of the MB you wish to use for the pulse train. If this isn't clear, I'll post a screen capture of the logic - just let me know. Remember, you must use increments of 10ms. You cannot have a 12ms timer. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted July 25, 2017 MVP 2023 Report Share Posted July 25, 2017 You coded that up and tested quickly! Glad it's working for you. Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted July 25, 2017 MVP 2023 Report Share Posted July 25, 2017 HI Flex & Jordy. I respectfully disagree with the 10ms statement, which although correct implies there is no other way of doing it. Have a look at this post and the rest of the thread, and play with things readily available: With enhanced stuff it can be 1.25ms, which can perhaps better fine tune things to what you need. cheers, Aus 1 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted July 26, 2017 MVP 2023 Report Share Posted July 26, 2017 @Ausman's creative genius never ceases to amaze me! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now