SCL with AB and micro 1000 (1761-L20-BWB-5A)

g.robert

Lifetime Supporting Member
Join Date
Aug 2003
Location
texas
Posts
320
Can anyone tell if I am right on the math for the scl? I am at home now and don't have the math I used in front of me.

The input at I:0.7 is a 4-20 ma input from a card controlled via a pot. All I am trying to do is have 4-20ma input and move same 4-20ma output to O:0.4 when certain conditions are met.

I would have thought I could simply move same raw data from input to output but somewhere in the micro paper work it shows a difference in raw data the micro sees at input and output of same milli amp. In other words the raw data at the input for 4 ma is different than the raw data required at the output for 4 ma.

I have to go out and load this in the morning and would feel better if someone very familiar with the AB micro 1000 analog gave the SCL math their blessing. Thanks.

scl2.jpg
 
Not 100% sure

I believe the numbers you are looking for are these, but this may not be exactly right.
4ma 20ma
Input Min = 3277 Input Max = 16384
Output Min = 6242 Output Max = 31208
Hope this helps it should be close.
Memory is not what it used to be!

:site:
 
For the 1761 Micrologix 1000 Analog the scaling is
Analog Input 4mA= 6241, 20mA= 31207
Analog Output 4mA= 0 , 20mA= 32767

The SCL equation

Scaled value = (input value x rate) + offset

Rate = (scaled max. - scaled min.) / (input max. - input min.)

Offset = scaled minimum - (input minimum x rate)
 
For the 1761 Micrologix 1000 Analog the scaling is
Analog Input 4mA= 6241, 20mA= 31207
Analog Output 4mA= 0 , 20mA= 32767
That's what I used to get the values I entered at rate and offset. I believe I did it right. Do my values entered match what you come up with?
 
Thomas.


I guess what is confusing is that you have to multiply the value you come up with for rate (1.3124) times 10000. It doesnt say this anywhere in the manual.

If you try to enter 1.anything it comes up error "must be integer". I found somewhere else to multiply times 10000 but how are you suppose to know that?
 
Right on the SCL block "RATE [/10000]"
Also the following is right out of the help in RSLogix 500

Values must be between -32768 and +32767 for the following parameters.
Source must be a word address.
Rate (or slope) is the positive or negative value you enter divided by 10,000 . It can be a program constant or a word address.
Offset can be a program constant or a word address.
Destination is the address of the result of the operation.

Rockwell Software 2000
 

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
77
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
559
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
317
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
512
Back
Top Bottom