SLC 5/5 - compute instruction

venkum00

Member
Join Date
Dec 2005
Location
Georgia
Posts
20
How can i get (N7:31 * 6 / 5) to work in compute instruction? This is very annoying. I know i am missing something?? Please help.


Thanks,
Ven
 
venkum00 said:
How can i get (N7:31 * 6 / 5) to work in compute instruction? This is very annoying. I know i am missing something?? Please help.


Thanks,
Ven

Use floats
transfer value of N7:31 to a float
make sure destination of compute is a float
 
i do not have pipe symbol on my laptop. Hmmm. I will look a little close.
Thanks for the info.
Ven

EDIT: you are correct. pipe symbol. I got it. Thanks a bunch :)-
 
Should look like this. No need to convert integer to float first. Result needs to be float.

SLC_match.GIF
 
Simplify the equation first.

N7:32 * 1.2


It doesn't make any sense to multiply by a constant and then divide by another conatant.
 
Alaric, you are correct. I simplified my original application and hence put in some numbers in the application. I do appreciate your input.

Thank you once again gmferg.
 

Similar Topics

SLC 5/04 Does anyone know what the typical scan time is for the Compute instruction? The manual states "The execution time of a CPT instruction...
Replies
24
Views
5,913
I’m attempting to send a temperature from a SLC-5/02 to an EZiMarquee display. The vendor said to use a MSG instruction to send the data to the...
Replies
1
Views
85
Hello all. I have a few SLCs in my plant and of late we've seen a weird issue: The system will be running normally and then randomly the outputs...
Replies
2
Views
100
I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
103
I have a redundant ControlLogix being set up. This program reads a value from a remote site which happens to be SLC PLC. Rockwell mentions SLC...
Replies
2
Views
96
Back
Top Bottom