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). Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 29, 2017 MVP 2022 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. Quote 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 Quote 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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 30, 2017 MVP 2022 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. Quote 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 Quote 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 Quote 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.