Search the Community

Showing results for tags 'Math'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 6 results

  1. Ran into this unique little "bug" today. Tag Variable is INT , Tag Output is REAL  Using CPT Instruction  (Variable / 2000) * 700 results in an output of Zero (0.0). Using CPT Instruction (700.0/2000.0)*Variable results in a non-zero Real Number (350.0 for example if Variable = 1000) Turns out reading the help, that CPT does math in the type of the first variable encountered and then converts to the destination type. Thus 1000/2000 in Integer Math = 0 and 0 times 700 equals 0 which converts to 0.0 Sharing just cause I'd never hit this "bug" before.
  2. Convert time

    Hello. this is my firs post is possible to convert the elapsed time of timer to real or int i need to make some math operation with the elapsed time thanks  
  3. Hi my problem may have a simple solution but i cant work it out. I need to use the Divide function but it wont let me use a decimal point in either Source A or Source B. Is there a way to use a decimal point in Logix 500 Math instructions? Im using an AB Micrologix 1400 PLC. Can you only use math instructions with whole numbers? is there a way around this? Thanks James
  4. Hi my problem may have a simple solution but i cant work it out. I need to use the Divide function but it wont let me use a decimal point in either Source A or Source B. Is there a way to use a decimal point in Logix 500 Math instructions? Im using an AB Micrologix 1400 PLC. Can you only use math instructions with whole numbers? is there a way around this? Thanks James
  5. Can't seem to figure out best way to do this. I take a simple reading of analog input and store value in N7:0 (This value will be between 0-1023) Two minutes later I take another reading and if the value has changed up or down by 7.5% I want to call subroutine. I have subroutine finished and working. What would be the best way to get this done, I can't seem to figure out the solution, the "CPT" function is NOT available to me, I am using the micrologix 1100, rslogix500. Thanks
  6. I am currently trying to get my program to take distance traveled per pulse, which is based off of the diameter, and convert it into IPM. I am using RS Logic 5000 software. If anyone could help me get over this hump I would really appreciate it!