Using scale with parameters (scp) instruction -7, Using scale with parameters (scp) instruction – Rockwell Automation 1746-XXXX SLC 500 4-Channel Analog I/O Modules User Manual User Manual
Page 69

Publication 1746-UM005B-EN-P - June 2004
Programming Examples 6-7
Using Scale with Parameters (SCP) Instruction
Rung 2:0
Check for below allowable range.
| Below |
| range flag |
| +LES–––––––––––––––+ B3 |
|–+LESS THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––|
| |Source A I:1.1| 0 |
| | 0| |
| |Source B 14344| |
| | | |
| +––––––––––––––––––+ |
Rung 2:1
Check for above allowable range.
| Above |
| range flag |
| +GRT–––––––––––––––+ B3 |
|–+GREATER THAN +–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––|
| |Source A I:1.1| 1 |
| | 0| |
| |Source B 16383| |
| | | |
| +––––––––––––––––––+ |
Rung 2:2
Turn on the below range alarm output when the analog
input is below the acceptible range.
| Below Below |
| range flag range alarm |
| B3 O:2 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––|
| 0 0 |
Rung 2:3
Turn on the above range alarm output when the analog
input is above the acceptible range.
| Above Above |
| range flag range alarm |
| B3 O:2 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––|
| 1 1 |
Rung 2:4
| Below |Above Scale |
| range flag |range flag analog input |
| B3 B3 +SCP–––––––––––––––+ |
|––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––––––+SCALE W/PARAMETERS+–|
| 0 1 |Input I:1.1| |
| 0|
|Input Min. 0|
| |
|Input Max. 32767|
| |
|Scaled Min. 100|
| |
|Scaled Max. 500|
| |
|Scaled Output N7:0|
| 0|
+––––––––––––––––––+
Rung 2:5
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|