What is going on here? (SCP not scaling properly)

Join Date
Nov 2013
Location
Michigan
Posts
532
I'm running this in an emulator so I'm not sure if that would affect it or not. I've never seen this before and I don't understand why it's happening. Here are the values I've put in so far:

N22:0 PD16:0.SPS
0 0
1 15204
2 15204
3 -9961
4 15204
5 2621

There are no other destructive instructions tied to PD16:0.SPS

SCP Problem.jpg
 
Last edited:
PD16:0.SPS written to elsewhere in the program ?

What are these values ?
N22:0 PD16:0.SPS
0 0
1 15204
2 15204
3 -9961
4 15204
5 2621

N22:0 PD16:0.SPS
0 0 // raw value ?
1 15204 // input min ?
2 15204 // input max ?
3 -9961 // scaled min ?
4 15204 // scaled max ?
5 2621 // output ?

If you have entered the same values for input min and input max, it wont work. Not sure what the output will be, but it wont work. I would have guessed an OVF.
 
Because it's a PD datatype with a .SPS (Setpoint) element, I'm going to guess this is in a MicroLogix 1100-1500 family controller.

Is Scaling enabled for the input of the PID ? What are the values of .MINS and .MAXS ?

In general, Emulators don't support the PID instruction, so any results you get related to a PID block are probably not worth investigating.

Substitute an unused Integer for the PD16:0.SPS address in the output of this instruction and see if you get a different result.
 
In general, Emulators don't support the PID instruction, so any results you get related to a PID block are probably not worth investigating.

I finally got through to TechConnect and this was their explanation. I have other SCPs in the program and they work fine.
 
PD16:0.SPS written to elsewhere in the program ?

What are these values ?
N22:0 PD16:0.SPS
0 0
1 15204
2 15204
3 -9961
4 15204
5 2621

N22:0 PD16:0.SPS
0 0 // raw value ?
1 15204 // input min ?
2 15204 // input max ?
3 -9961 // scaled min ?
4 15204 // scaled max ?
5 2621 // output ?

If you have entered the same values for input min and input max, it wont work. Not sure what the output will be, but it wont work. I would have guessed an OVF.


No these were Raw Value and Output so entering 1 raw value gave me an output of 15204
 

Similar Topics

This is for a Q68DAIN 8-channel analog output. Most of the channels are outputting 0-20mA but a couple are outputting 10vDC Anyone know what rung...
Replies
11
Views
1,730
Rungs 0 to 32. Can anyone explain what's going on here? What does "H" represent? Why those particular values (H0 and H2222)? R0S0 is rack 0 slot 0...
Replies
9
Views
1,939
I've now managed to persuade the powers that be to stop trying to turn me into an electrician and let me get back to playing with my favourite...
Replies
1
Views
1,766
I have a program i am trying to edit and ran into something i dont understand There are 2 integer files N7 and N11 In the program in the move...
Replies
3
Views
2,239
Software Ver. 22.00.00, After the 1st time of being true the EQL. instruction is still allowing the rung to be true even though the inputs are...
Replies
7
Views
219
Back
Top Bottom