tracylee
13th August 2018, 12:19
Hi,

How can i display the wastage as below display?

---------------------------------------------------------------------------------------------------------
Section | Order Length | Count L.bar | Length | L.Bar balance | Wastage |
----------------------------------------------------------------------------------------------------------
A | 6100 | 1 | 308 | 248 | 40 |
A | 6100 | 1 | 208 | 40 | |
A | 6100 | 2 | 308 | 5792 | 18 |
A | 6100 | 2 | 307 | 2772 | |
A | 6100 | 2 | 208 | 18 | |
---------------------------------------------------------------------------------------------------------
Please advise. Thanks.

AnuKass
13th August 2018, 12:54
hii tracylee..
pls explain in detail ...???

mark_h
13th August 2018, 16:13
Are you talking display session, report or exactly what?

tracylee
14th August 2018, 04:24
hii tracylee..
pls explain in detail ...???

Hi,

I need print a report and layout as per forum. I have long length 6100, then take to cut it to be short length. Example the section A is use 2 pcs long bar (length is 6100) to cut a short length 308, 307 and 208.
So, the first long bar can cut 19pcs of short bar length 308 (total length = 308 * 19 = 5852, so balance = 6100-5852 = 248), and then use a balance 248 to cut another 1pcs of short length 208 (total length = 1*208 = 208, balance = 248-208 =40). So, how can i only display the last balance 40 at column wastage field? Same as second long bar need display the last balance 18 at wastage field. Hope you understand it. Please advise. Thanks.

tracylee
14th August 2018, 04:26
Are you talking display session, report or exactly what?

Hi,

I talking display report, need show the layout as I show on forum. Please advise. Thanks.

mark_h
14th August 2018, 16:11
Do you already have all the calculations and the data you need in your session script for the report or are you looking for that?

Not really sure what you are looking for but I would do something like our netting routines. You can tweak it and do what ever is needed to make sure it gets the right count.


length.to.cut = 6100
piece.to.cut = 308
wastage = lenth.to.cut
pieces = 0
while wastage>lenth.to.cut
wastage = wastage - length.to.cut
pieces = pieces + 1
endwhile
rprt_send()

| go get the new lenth to cut with above wastage
piece.to.cut = 208
while wastage>lenth.to.cut
wastage = wastage - length.to.cut
pieces = pieces + 1
endwhile
rprt_send()

tracylee
15th August 2018, 04:11
Do you already have all the calculations and the data you need in your session script for the report or are you looking for that?

Not really sure what you are looking for but I would do something like our netting routines. You can tweak it and do what ever is needed to make sure it gets the right count.


length.to.cut = 6100
piece.to.cut = 308
wastage = lenth.to.cut
pieces = 0
while wastage>lenth.to.cut
wastage = wastage - length.to.cut
pieces = pieces + 1
endwhile
rprt_send()

| go get the new lenth to cut with above wastage
piece.to.cut = 208
while wastage>lenth.to.cut
wastage = wastage - length.to.cut
pieces = pieces + 1
endwhile
rprt_send()


Thanks for your reply. I already get a solution to solved it. Thanks.