Egyed Károly Posted March 28, 2023 Report Share Posted March 28, 2023 Hi, I would like to know how does it work ? What is the meaning: MI150 Counter Value Mi151 Counter Target Value MB 150 Reload Event MB 151 Enable Reload I am understand Mi 150 -> this is which work/count. How can I reset it ? And why need Mi 151, MB 150 and MB 151 ? What are they function ? Thank you Best Regards Károly Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted March 28, 2023 MVP 2023 Report Share Posted March 28, 2023 Visilogic Help Info Link to comment Share on other sites More sharing options...
Egyed Károly Posted March 29, 2023 Author Report Share Posted March 29, 2023 Dear Kratmel, Thank you for your quick answer. If I understand well: if the MB 2 = 0 then MB 1 and D# 1000 do not work, no reload. But if I reset Mi 1 (Mi 1=0) then I made a reload without using MB 2. Is it true ? Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted March 29, 2023 MVP 2023 Report Share Posted March 29, 2023 In general, yes. However, you should experiment with the signals and make sure that the real algorithm corresponds to the desired one for the application you are building. However, you should understand that the high-speed counter is reset to 0 by this Reload function or input signal instantly. However, the bits you see work within one program scan. And simply zeroing the variable takes time, which can cause an obstacle in the correct pulse count Link to comment Share on other sites More sharing options...
Egyed Károly Posted March 29, 2023 Author Report Share Posted March 29, 2023 Now I know everything. 😄 Thank you Link to comment Share on other sites More sharing options...
Egyed Károly Posted June 5, 2023 Author Report Share Posted June 5, 2023 I have a new question: Can I "Initialize&Reset" the program not in program development environment menu ? I would like to built this command in my PLC program. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted June 5, 2023 MVP 2023 Report Share Posted June 5, 2023 SB24 can be used for 45 minutes ago, Egyed Károly said: "Initialize&Reset" the program SB300 - Reset PLC Link to comment Share on other sites More sharing options...
Egyed Károly Posted June 5, 2023 Author Report Share Posted June 5, 2023 Thank you. Ok, It can reset but not init. Can we init too ? Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted June 5, 2023 MVP 2023 Report Share Posted June 5, 2023 32 minutes ago, Egyed Károly said: Ok, It can reset but not init. You have to describe what you want to do. Link to comment Share on other sites More sharing options...
Egyed Károly Posted June 5, 2023 Author Report Share Posted June 5, 2023 That's Ok. Thank you very much. Link to comment Share on other sites More sharing options...
YK Chong Posted 18 hours ago Report Share Posted 18 hours ago When I turn on High Speed Counter (input 0,1) - type set to AB shaft encoder x2 and set the operand to ML 1, the values store in ML 1 is in order. However, once I switch off the PLC and turn on again. The value in ML 1 reset to zero. How could I retain the value after power down? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted 16 hours ago MVP 2023 Report Share Posted 16 hours ago This is normal behavior for the HSC register. Continually copy the value of ML 1 to another register. On power-up, copy this last value to the actual HSC register. Joe T. Link to comment Share on other sites More sharing options...
YK Chong Posted 11 hours ago Report Share Posted 11 hours ago Thank you for solving my problem. Now I am able to retain encoder reading (position) whenever power down and up again. 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