Rockwell Automation 1746-XXXX SLC 500 4-Channel Analog I/O Modules User Manual User Manual

Page 79

Advertising
background image

Publication 1746-UM005B-EN-P - June 2004

Programming Examples 6-17

Rung 2:2

Scale values in the 90–100% range to the decimal range for the 4–20 mA analog

output.

| Subtract |

| the input |

| min. |

| B3 B3 +SUB–––––––––––––––+ |

|––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––+–+SUBTRACT +–+–|

| 0 0 | |Source A N7:0| | |

| | | 0| | |

| | |Source B 90| | |

| | | | | |

| | |Dest N7:1| | |

| | | 0| | |

| | +––––––––––––––––––+ | |

| | | |

| | Multiply | |

| | by the | |

| | scaled | |

| | range | |

| | +MUL–––––––––––––––+ | |

| +–+MULTIPLY +–+ |

| | |Source A N7:1| | |

| | | 0| | |

| | |Source B 24966| | |

| | | | | |

| | |Dest N7:1| | |

| | | 0| | |

| | +––––––––––––––––––+ | |

| | Divide | |

| | result by | |

| | input | |

| | range | |

| | +DDV–––––––––––––––+ | |

| +–+DOUBLE DIVIDE +–+ |

| | |Source 10| | |

| | | | | |

| | |Dest N7:1| | |

| | | 0| | |

| | +––––––––––––––––––+ | |

| | Add offset | |

| | +ADD–––––––––––––––+ | |

| +–+ADD +–+ |

| | |Source A N7:1| | |

| | | 0| | |

| | |Source B 6242| | |

| | | | | |

| | |Dest O:2.0| | |

| | | | | |

| | +––––––––––––––––––+ | |

| | Clear flt | |

| | bit from | |

| | overflow | |

| | S:5 | |

| +––––(U)–––––––––––––––+ |

| 0 |

Rung 2:3

| |

|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|

|

|

Advertising