6–6
Ejemplos de programación
Rung 2:0
Check for below allowable range.
|
|
| +LES–––––––––––––––+
|–+LESS THAN
| |Source A
| |
| |Source B
| |
| +––––––––––––––––––+
Rung 2:1
Check for above allowable range.
|
|
| +GRT–––––––––––––––+
|–+GREATER THAN
| |Source A
| |
| |Source B
| |
| +––––––––––––––––––+
Rung 2:2
Turn on the below range alarm output when the analog
input is below the acceptible range.
| Below
| range flag
|
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––|
|
Rung 2:3
Turn on the above range alarm output when the analog
input is above the acceptible range.
| Above
| range flag
|
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )––|
|
Rung 2:4
Scale analog input value and process the result only
when it is within acceptible range.
| Below
| range flag
|
|––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––––––+SCALE
|
|
(2:0)
|
|
|
|
|
|
|
|
Rung 2:5
|
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
|
Publicación 1746 6.4ES - Enero de 1996
Uso de la instrucción de escalar (SCL)
+–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––|
I:1.1|
0|
14344|
|
+–––––––––––––––––––––––––––––––––––––––––––––––––( )–––––|
I:1.1|
0|
16383|
|
B3
0
B3
1
|Above
|range flag
B3
B3
0
1
(2:1)
Below
|
range flag |
B3
|
0
|
|
|
|
|
Above
|
range flag
|
B3
|
1
|
|
|
|
|
Below
|
range alarm
|
O:2
|
0 |
Above
|
range alarm
|
O:2
|
1 |
Scale
|
analog input
|
+SCL–––––––––––––––+ |
+–|
|Source
I:1.1| |
|
0| |
|Rate [/10000]
122| |
|
| |
|Offset
100| |
|
| |
|Dest
N7:0| |
|
0| |
+––––––––––––––––––+ |
|
|
|