7/29/2009 8:09 AM | |
Joined: 4/5/2006 Last visit: 8/13/2023 Posts: 642 Rating:
|
Hello, is this code originally from a S5-FB? Input: #INPT #HI01 - #HI05 #LO01 - #LO03 Output: #OUTT #BITS The block compares the values and set the bits M1236.0 - M1236.7. Then the bits are transferred to #BITS. M1236.0 - M1236.7 = MY 1236. It's ok so. Better is when you don't use global variables inside. You also can set L0.0 - L0.7 and transfer LB0. Regards
André Räppel --------------------------------------------------------------------------------- www.raeppel.de work faster withinnovative PLC-Tools |
7/29/2009 8:32 AM | |
Joined: 10/7/2005 Last visit: 8/27/2024 Posts: 3018 Rating:
|
Hello swing7 The "L MY 1236" is due to a(known and not yet corrected and possibly never will be)S5 converter bug. It should convert this to "L MB 1236" and from memory this bugonly occurs if you work withEnglish mnemonics settings and it only affects S5 Flagbyte addresses (FY or SY xxx). Can't remember for surethough and sinceit is an easy source file related "search & replace" fix, this "bug" never inconvenienced me too much. Anyway, hope this helps. |
Cheers |
|
7/29/2009 8:41 AM | |
Joined: 4/5/2006 Last visit: 8/13/2023 Posts: 642 Rating:
|
Hello, M0.0 - M255.7 are converted to M0.0 - M255.7. S0.0 - S... are converted to M256.0 - ... SY980 + 256 -> MY1236. You must modify it to MB1236. Whenyou convert S5-programs -not insert from clipboard! Import the source file to source folder and compile. Regards
André Räppel --------------------------------------------------------------------------------- www.raeppel.de work faster withinnovative PLC-Tools |
Last edited by: sps-concept at: 7/29/2009 8:52 AM |
|
7/29/2009 8:49 AM | |
Posts: 15 Rating:
|
Thanks guys! I will try out both methods.... |
Follow us on