Search the Community
Showing results for tags 'math'.
Found 6 results
-
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.
- 3 replies
-
- clgx
- controllogix
-
(and 2 more)
Tagged with:
-
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
-
Logix 500 math instruction with Decimal Point
jimmy689 posted a topic in Allen Bradley / Rockwell Automation
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- 1 reply
-
- logix 500 math with decimal point
- logix 500
- (and 8 more)
-
Logix 500 math instruction with Decimal Point
jimmy689 posted a topic in Allen Bradley / Rockwell Automation
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 -
Need Help "No CPT" instruction available
Damica posted a topic in Allen Bradley / Rockwell Automation
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 -
Turning inches traveled per pulse (a real number) to inches per minute
487mcgill posted a topic in Allen Bradley / Rockwell Automation
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!