11/10/2009 10:39 AM | |
Joined: 11/7/2009 Last visit: 1/26/2023 Posts: 16 Rating: (0) |
hi friends I am facing problem with one of my S5 program. I have converted my s5 to s7 then i am getttingwarningsfor FB240,241,242,243 and error for OB31. I heard that FB240-243 are standard blocks in S5 then what are the blocks that are to be used in S7. I am getting following errors Invalid product no: Preheader doesnt exist And for OB31 error is coming I am attacing the S5program and warnings & error details picture for your reference. Please give me the solution with S7 converted program. please help me in this conversion my mail id is alvprasanth@gmail.com AttachmentPLC program.zip (317 Downloads) |
11/10/2009 8:55 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating: (309) |
Hello, OB31 is about retriggering the cycle monitoring. The S7 replacement for this is the SFC43 RE_TRIGR. FB240 converts a number in BCD code (four tetrads) with sign to a fixedpoint. The equivalent in Step7 is a single instruction, the instruction "BTI" = Conv. cont. of ACCU1 from BCD to integer (16 bits) (BCD To Int) FB241 converts a fixed-point binary number (16 bits) to a number in BCD code with additional consideration of the sign. The equivalent in Step7 is a single instruction, the instruction"ITB" ITB Conv. cont. of ACCU1 from int. (16 bits) to BCD from 0 to +/– 999 (Int To BCD) FB242 multiplies one fixed-point binary number (16 bits) by another. The productis represented by two fixed-point binary numbers (16 bits each). The replacement in step7 is to compute in double integer. ITD conveters an integer to a doubel integer. And *D is multiply in double word. FB243 divides one fixed-point binary number (16 bits) by another. FB250 is used to read ana anlogue cahnnel and to rescale it. TheFC105 (scale) in S7 is the replacement. The usage of FC105 is described here: http://support.automation.siemens.com/WW/view/en/1765297 |
Best regards |
|
This contribution was helpful to2 thankful Users |
Follow us on