Mike_2018 Posted March 29, 2017 Report Share Posted March 29, 2017 Sorry, great programmers, for stupid questions in this topic, but I'm study and I suggest to make this topic for beginners. PLC V350, example, math function A+B=C . I set block ADD in Ladder, in HMI set 3 numeric button for A,B,C. I made connections in variables to A,B,C, I enter numbers in 1st and 2nd numeric button, but in 3rd (C) not changes (addition). Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 29, 2017 MVP 2023 Report Share Posted March 29, 2017 You should post your code, but a few things to look for are: -Make sure the ADD function is being called - is it in a subroutine? -Make sure A, B, or C are not being assigned elsewhere in the program. -Double check that all the operand assignments for A, B, and C are correct, both on the HMI and in the ladder. Link to comment Share on other sites More sharing options...
Mike_2018 Posted March 30, 2017 Author Report Share Posted March 30, 2017 Flex727, please, check it Math Funct.vlp Link to comment Share on other sites More sharing options...
Mike_2018 Posted March 30, 2017 Author Report Share Posted March 30, 2017 and 2-nd display does not open Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 30, 2017 MVP 2023 Report Share Posted March 30, 2017 You need to call Subroutine 1 in your Main Routine or it will not run the ADD function. I don't see anything wrong with Display 2 except you've changed the background color to black. Link to comment Share on other sites More sharing options...
lawry Posted March 31, 2017 Report Share Posted March 31, 2017 Mike_uz, please call hmi display "My Display" in main routine Link to comment Share on other sites More sharing options...
Mike_2018 Posted March 31, 2017 Author Report Share Posted March 31, 2017 18 hours ago, Flex727 said: You need to call Subroutine 1 in your Main Routine or it will not run the ADD function. I don't see anything wrong with Display 2 except you've changed the background color to black. Thank you Flex727, I did it, I thought that connects between Main Routine and Subroutine 1 is automatically and My display is open Very pity, that in VisiLogic is no emulation and every changes must be burned by the PLC Link to comment Share on other sites More sharing options...
Mike_2018 Posted March 31, 2017 Author Report Share Posted March 31, 2017 6 hours ago, lawry said: Mike_uz, please call hmi display "My Display" in main routine Yes, thanks, I did it 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