gwk3014 Posted March 30, 2015 Report Share Posted March 30, 2015 I am using a V120 with some floating point math. to be able to display the floating point on the screen I am using the Inv(A + B/n) command. For some reason, this command is always returning and output of "0" any ideas? Link to comment Share on other sites More sharing options...
Alexander Posted March 30, 2015 Report Share Posted March 30, 2015 Is the conversion block being called? Is it in a subroutine that is constantly running? I would recommend placing an incrementer after the conversion block. If it is being called then the incrementer will count up, and if not it will remain 0. Link to comment Share on other sites More sharing options...
Ofir Posted March 30, 2015 Report Share Posted March 30, 2015 Hi, if what Alex suggested will not help try updating the PLC OS to the latest version and it should be fixed. Link to comment Share on other sites More sharing options...
gwk3014 Posted March 30, 2015 Author Report Share Posted March 30, 2015 the incrementer counts as expected, but the INV(A+B/n) instruction is not working. I can force any number into the MI variable at B or C position of this instruction and it does not change from the program running. The instruction is not running all the time, but should be at this time. Link to comment Share on other sites More sharing options...
gwk3014 Posted March 30, 2015 Author Report Share Posted March 30, 2015 the OS currently running is V5.04 (B54). Is there something newer? Where can I find the updated OS? Link to comment Share on other sites More sharing options...
gwk3014 Posted March 30, 2015 Author Report Share Posted March 30, 2015 I have attached the application in question. there are several locations in this application where the floating point convert is used. None appear to be working for me. thanks BH 6 rev Z.vlp Link to comment Share on other sites More sharing options...
gwk3014 Posted March 30, 2015 Author Report Share Posted March 30, 2015 I was wrong. Current OS version was V5.04 (B41). I updated to V5.04 (B54) and the floating point convert seems to be working. Can you give me an idea as to which version of the OS I might have trouble with? I have many machines around the world with this same V120 PLC installed. Only recently have we noticed any problems with the floating point math? Thanks, Link to comment Share on other sites More sharing options...
Ofir Posted March 30, 2015 Report Share Posted March 30, 2015 Hi, Glad to hear it is working! OS versions V5.04 (B40) and V5.04 (B41) had issue with this function. 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