Following is the table of structure of data in binary file with size in bytes and data types and script should read data in the same sequence shown in table starting from MacID with 50 bytes of char data type to idealcycletime with 4 bytes of float data type.
|DATA TYPE|DATA NAME|DATA SIZE|EXAMPLE VALUES|DESCRIPTION|
||char|MacID[50];|50 Bytes|DDDDDDDDDDDDDDD|machine identification name set by customer|
||char|MacNo[16];|16 Bytes|TD - 11111111|machine number set at factory|
||char|MacCf[50];|50 Bytes|150/510 - 600, D50|machine configuration (format: clamp force/tie bar distance - iu specificatin, screw diameter in sqmm|
||char|MoldId[16];|16 Bytes|CCCCCCCCCCCCCCC|mold identification name set by customer|
||char|PartNo[16];|16 Bytes|BBBBBBBBBBBBBBB|part number set by customer|
||char|MaterialName[16];|16 Bytes|AAAAAAAAAAAAAAA|material name used to mold the component set by customer|
||ushort|MacMode;|2 Bytes|0->INIT; 1->SETTING; 2->MANUAL; 3->SEMI-AUTO; 4->AUTO|machine mode|
||ushort|CavityCnt;|2 Bytes|12|mold cavity count|
||ushort|PmpSts;|2 Bytes|0->OFF; 1->ON|pump on/off status|
||ushort|HtrSts;|2 Bytes|0->OFF; 1->ON|barrel heater on/off status|
||float|ShotWeight;|4 Bytes|22.32|shot weight in grams|
||uint|GoodPartAct;|4 Bytes|240|total good parts produced|
||uint|RejectAct;|4 Bytes|12|total rejected parts|
||uint|GoodShotAct;|4 Bytes|20|total good shots produced|
||uint|TotalShotAct;|4 Bytes|21|total shots produced including rejects|
||uint|BinGoodPartAct;|4 Bytes|60|total good parts produced for a bin|
||uint|BinRejectAct;|4 Bytes|12|total rejected parts for a bin|
||uint|BinGoodShotAct;|4 Bytes|5|total good shots produced for a bin|
||uint|BinTotalShotAct;|4 Bytes|6|total shots produced including rejects for a bin|
||uint|GoodPartSet;|4 Bytes|1000000|total good parts to be produced set by customer|
||int|EnergyVal|4 Bytes||energy value in kwh|
||float|IdealCycTime|4 Bytes|12.6|Ideal Cycle time in seconds|