scp instruction

alex_cordova

Member
Join Date
Oct 2009
Location
paramount
Posts
102
OK GUYS I NEEED SOME HELP,

I HAVE A SLC 500 WITH PROCESSOR 5/04 NODE 1

THE OTHER SLC 500 IS A 5/04 NODE 36

THE PROCESSORS ARE CONNECTED FROM A CONTROL LOGIX GATEWAY DH RIO CARD .

THESE TWO PROCESSOR'S HAVE A MSG INSTRUCTION

SLC 5/04 NODE 1 IS WRITING INFORMATION TO N10:221

AND SCL 5/04 NODE 36 IS READING FROM N10:221 AND PUTING THIS INFORMATION IN N7:21

NOW HERE IS THE PROBLEM!! IN THIS PROGRAM THERE IS NO SCP INSTRUCTION AT ALL FOR BOTH PROCESSORS,
THEY ARE USING MUL AND MOV INSTRUCTION TO GET THIS SPPED REFRENCE TO THE OTHER PLC, ITS A MESS AND DOES NOT READ CORRECTLY ON DATA LINER!!

SO HERE ARE MY NUMBERS!!!!


IN NODE 1 N10:221 IS GETING ITS INFORMATION FORM AN INPUT ADDRESS, ANALOG 4-20mA
IT IS A SPEED REFRENCE FROM THE FORM A PICK UP COIL

THE NUMBERS ARE 0 SPPED=3280 AND SPPED 550=3990
NOW WHAT I DID IS MOVE THIS INFORMATION TO THE OTHER SLC NODE 36
AND MADE A SCP INSTRUCTION THERE

NOW HERE IS THE PROBLEM

MY SETTINGS FOR 1746 N04V CARD ARE

INPUT MIN 3277
INPUT MAX 16384
SCALED MIN 0
SCALED MAX 18000

THIS OUTPUT GOES TO A DATA LINER
HERE ARE MY TESTS

WHEN I PUT 3277 IN TO THE INPUT OF SCP I GET THE DATA LINER TO SAY 0
WHEN I PUT 16384 IN TO THE INPUT OF SCP I GET THE DATA LINER TO SAY 550
SO FAR SO GOOD

BUT THE NUMBERS I HAVE TO WORK WITH ARE 0 SPPED=3280 AND SPPED 550=3990

COMING FROM THER OTHER PROCESSOR!

WHAT KIND OF MATH PROBLEM CAN I USE TO MAKE THE SCP
 
Last edited:
if SPPED minimum is 0 and the scaled Minimum input is 3277
Making an Assumption
SPPED Maximum is 550 - if this is the maximum then it should be the Scaled Maximum not 18000
 
Well my scp settings are

input address<<<<<<
input min 3277
input max 16384
scaled min 0
scaled max 18000

i am saying this because on these settings
when i type 3280 into the input address i get 0 on dataliner
when i type 16384 into the input address i get 550 on dataliner

thats why i have these numbers here, if i put any thing lower the 1800 on scaled max it wont say 550 no more
 
N10:221 - What is the Minimum and maximum RAW values
If you can - use an analogue generator (Process Meter)
is teh card configered for 4~20 Ma?

silly questions but ---
 
I told the operator to put the machine at at o speed , then i checked the signal that is come from a pick up coil, and being sent to a input analog , when at 0=3280 and when they run at 550 speed it says 3990

IAM MOVING THESE NUMBERS TO OTHER PLC WHERE I HAVE THE SCP FOR THE DATA LINER
 
the analogue input card will still be seeing 4~20MA
Check the raw data Also check the Actual Current -
I am sorry I am not much more help
But for 0 to be 3280 the values apear incorrect.
the analogue Raw Data is generally 0 ~ 16383

Almost like the analogue card is set to +/- 10V or similar

is there some maths being performed in tne other processor?

32766 is the maximum value (16 bit)
Above that is up to 25Ma

Check your analogue you are looking at the wrong information
 
Last edited:
sorry Alex

0 is less than 4
so 32766 0r 3280 is the wrong value it is negative

DATA OVERFLOW SORRY

I should have recognised that

the old scientific calculator HEX/DEC/BIN very handy
 
Last edited:
sorry for the delay !!!

your where a big help iant!

i had everthing backwards on my scp!

so i put on my scale min - 0
scale max - 18000
i put 18000 because that range gives me 0 to 6 volts

then i put my min input
and max input , worked

thank you very much
 

Similar Topics

Hello, I am replacing a pH probe that was determined to be bad in a waste water treatment system. I am replacing it with a 2-wire Aqua Metrix...
Replies
8
Views
1,449
Hello everyone, I am using SLC 5/03 (1747-L531) CPU. My CPU gives an error. BATT led is active and it is always in solid red . Firstly I...
Replies
11
Views
4,088
This is my first time using this instruction in school we used engineering units to scale our analog signal. However, it is not available for me...
Replies
7
Views
2,506
Where can i find this aoi for slc 500?
Replies
9
Views
2,718
I have been using a SCP instruction in my program, but I only want a "slice" of the total range scaled.... hence, the SCP instruction. However, I...
Replies
12
Views
5,971
Back
Top Bottom