6–24
Ejemplos de programación
Rung 2:0
Check for below range.
| +LES–––––––––––––––+
|–+LESS THAN
| |Source A
| |
| |Source B
| |
| +––––––––––––––––––+
|
|
|
|
|
|
|
Rung 2:1
Check for above range.
| +GRT–––––––––––––––+
|–+GREATER THAN
| |Source A
| |
| |Source B
| |
| +––––––––––––––––––+
|
|
|
|
|
|
|
Rung 2:2
Scale the analog input for the analog output.
|
|––––]/[––––––––] [––––––––––––––––––––––––––––––––––+SCALE W/PARAMETERS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rung 2:3
|
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
|
Publicación 1746 6.4ES - Enero de 1996
Uso de la instrucción escalar con parámetros (SCP)
+––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–|
I:1.0|
|
3277|
|
+––––––––––––––––––––––––––––––––+––( )–––––––––––––––––+–|
I:1.0|
|
16384|
|
B3
B3
0
1
B3
|
0
|
|
|
|
| +MOV–––––––––––––––+ | |
+–+MOVE
|Source
0|
|
|Dest
O:1.0|
|
+––––––––––––––––––+
B3
|
1
|
|
|
|
| +MOV–––––––––––––––+ | |
+–+MOVE
|Source
8192|
|
|Dest
O:1.0|
|
+––––––––––––––––––+
+SCP––––––––––––––––––––+ |
|Input
I:1.0| |
|
|Input Min.
3277| |
|
|Input Max.
16384| |
|
|Scaled Min.
|
|Scaled Max.
8192| |
|
|Scaled Output
O:1.0| |
|
+–––––––––––––––––––––––+ |
|
| |
| |
| |
| |
| |
+–+ |
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
+–+ |
|
|
|
|
|
|
|
+–|
| |
| |
| |
0| |
| |
| |
| |
|
|
|