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

Page 73

Advertising
background image

Publication 1746-UM005B-EN-P - June 2004

Programming Examples 6-11

Rung 2:2

Scale values in the 0 to 100% range to the decimal

range for the 4–20 mA analog output.

| Below |Above Mulitply |

| range flag|range flag by scaled |

| range |

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

|––––]/[––––––––]/[–––––––––––––––––––––––––––––––––––+–+MULTIPLY +–+–|

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

| | | 0| | |

| | |Source B 24966| | |

| | | | | |

| | |Dest N7:1| | |

| | | 0| | |

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

| | | |

| | Divide by | |

| | input | |

| | range | |

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

| +–+DOUBLE DIVIDE +–+ |

| | |Source 100| | |

| | | | | |

| | |Dest N7:1| | |

| | | 0| | |

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

| | Add offset | |

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

| +–+ADD +–+ |

| | |Source A N7:1| | |

| | | 0| | |

| | |Source B 6242| | |

| | | | | |

| | |Dest O:2.0| | |

| | | | | |

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

| | Clear math | |

| | overflow | |

| | bit | |

| | S:5 | |

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

| 0 |

Rung 2:3

| |

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

Advertising