3/18/2006 10:45 PM | |
Joined: 1/7/2006 Last visit: 11/17/2023 Posts: 2705 Rating: (318) |
Hi Randel, In the handbook http://support.automation.siemens.com/WW/view/en/1091978starting on page 11-22 FB250 is clearly described with a example. [:o] BG: place behind the CPU103, starting with 0 for the first card (KF = Integer value) KNKT: Channel number = x (0..3, start counting with channel 0) Channel type=y, 3..6 whereby the number gives the type of working (KY are two bytes) OGR: Upper limit of the output as a Integer (KF) UGR: Lower limit of the output as a Integer (KF) EINZ: Single scan(not needed, so you may place a marker which always "0", for ex F0.0 XA: Output value, for example FW2 or a dataword in a first opened DB for the call of FB250 FB: Error bit, for example F1.3 BU: Range violation, for example F1.4 So when the card is standing directly behind the CPU103 and the first channel of the card is used then the following might be programmed on FB250: JU FB 250 Unconditional call FB250 NAME :RLG:AI BG :0 Slot 0 KNKT :0,3 Channel 0, channel type 3 = absolut OGR :5000 Upper limit: 50.0 degrees (on this way a resolution of 0,01) [:P] UGR :0 Lower limit: 0.0 degrees EINZ :F0.0 No meaning XA :FW2 Make-up quantity stored in flag word 1 as fixed-point number FB :F0.0 “1”, if wire break BU :F0.1 “1”, if tank too full |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
This contribution was helpful to2 thankful Users |
Follow us on