DIV Operator

Join Date
May 2009
Location
Vancouver, BC
Posts
13
Some months ago I had this working just fine!
Matter of fact, i had a post about it some time ago.
Suddenly have developed amnesia on how to use the DIV Operator and end up with a decimal number.

As in 32767/32767=1
32767/22222=1.474529
22222/32767=.6781823
I have tried every combination of data type: INT, WORD, REAL you name it.
I can only ever end up with a 1 or a 0.

IN1 and IN2 are Presently WORD at %IW0 and %IW2

Can anyone refresh my memory?
 
if it's an AB system try this ...

22222.0 / 32767.0 = 0.6781823

tip: in most systems, by entering a decimal point in one of the operators, you can usually force the processor to do floating point (as in NOT integer) math ...
 

Similar Topics

Our customer want to install some Class 1 Div 1 operator interface with AB ControlLogix connectivity. There is no solution available from AB and...
Replies
4
Views
7,493
I'm looking for some clarification if anyone here is familiar with UL698a panels. Panel is out of zone/class'd area. with thermocouples extending...
Replies
0
Views
117
Hi - I am searching for an M12 panel receptacles to use for ethernet connections. I see lots of M12 cables that are ATEX / C1D2 rated but nothing...
Replies
2
Views
973
Can someone please recommend a signal light tower that can be used in a Class 1 Div 2 Classified area? Explosive gasses can be present under...
Replies
4
Views
1,738
Hi everyone, I have a customer looking for a printer that has Class 1 Division 2 rating. I would like it to have a Ethernet connection and be...
Replies
0
Views
1,177
Back
Top Bottom