KvsStruct.cs 411 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.InteropServices;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace LampInspectionMachine.KHLplc
  8. {
  9. class KvStruct
  10. {
  11. const int stMemArr_WSIZE = 150;
  12. const int stNode_WSIZE = 22;
  13. const int stParent_WSIZE = 244;
  14. const int _ACCESS_WINDOW_WSIZE = 24;
  15. const int _AUTOLOAD_CTRL_WSIZE = 5;
  16. const int _CPU_MEMORY_SAVE_WSIZE = 1;
  17. const int _DEV_INFO_WSIZE = 4;
  18. const int _EC_MASTER_WSIZE = 772;
  19. const int _EC_NODE_WSIZE = 28;
  20. const int _ERROR_CTRL_WSIZE = 1;
  21. const int _ERROR_DETAIL_WSIZE = 27;
  22. const int _EXPANSION_UNIT_WSIZE = 76;
  23. const int _FILE_INFO_WSIZE = 76;
  24. const int _FILE_STATUS_WSIZE = 10;
  25. const int _LOGGING_TRACE_WSIZE = 10;
  26. const int _MC_AXIS_CFG_WSIZE = 100;
  27. const int _MC_AXIS_CMP_CODE_WSIZE = 24;
  28. const int _MC_AXIS_CTRL_WSIZE = 100;
  29. const int _MC_AXIS_GROUP_CFG_WSIZE = 16;
  30. const int _MC_AXIS_GROUP_REF_WSIZE = 1;
  31. const int _MC_AXIS_IO_STATUS_WSIZE = 1;
  32. const int _MC_AXIS_MOTION_FUNC_MAP_WSIZE = 2;
  33. const int _MC_AXIS_REF_WSIZE = 226;
  34. const int _MC_AXIS_STATUS_WSIZE = 112;
  35. const int _MC_AXIS_STATUS_BIT_WSIZE = 8;
  36. const int _MC_AXIS_SYNC_STATUS_WSIZE = 80;
  37. const int _MC_CAM_SECTION_WSIZE = 12;
  38. const int _MC_COMMON_WSIZE = 64;
  39. const int _MC_COMMON_CFG_WSIZE = 386;
  40. const int _MC_COMMON_CMP_CODE_WSIZE = 8;
  41. const int _MC_COMMON_CTRL_WSIZE = 96;
  42. const int _MC_COMMON_PERFORMANCE_WSIZE = 12;
  43. const int _MC_COMMON_STATUS_WSIZE = 40;
  44. const int _MC_COMMON_STATUS_BIT_WSIZE = 4;
  45. const int _MC_POINT_PARAM_WSIZE = 40;
  46. const int _MC_POINT_PARAM_AXIS_WSIZE = 2000;
  47. const int _MC_POS_CFG_WSIZE = 200;
  48. const int _MC_SYNC_CONTACT_OUTPUT_WSIZE = 1;
  49. const int _MC_SYNC_CONTACT_OUTPUT_CFG_WSIZE = 384;
  50. const int _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_WSIZE = 12;
  51. const int _MC_SYNC_EXT_INPUT_CFG_WSIZE = 8;
  52. const int _MC_SYNC_PARAM_WSIZE = 200;
  53. const int _OPERATION_RECORDER_WSIZE = 200;
  54. const int _PROGRAM_INFO_WSIZE = 26;
  55. const int _PROJECT_INFO_WSIZE = 46;
  56. const int _PROJECT_RECIPE_SAVE_LOAD_WSIZE = 6;
  57. const int _RECIPE_SAVE_WSIZE = 6;
  58. const int _SOCKET_STATUS_WSIZE = 12;
  59. const int _STORAGE_WSIZE = 82;
  60. const int _STRING_TO_VARIABLE_PARAM_WSIZE = 2;
  61. const int _UNIT_ID_ADR_WSIZE = 6;
  62. const int _UNIT_SYNCHRONIZE_WSIZE = 12;
  63. const int _VARIABLE_TO_STRING_PARAM_WSIZE = 4;
  64. public class stMemArr
  65. {
  66. public ushort[,] auSample = new ushort[10,10];
  67. public byte[,] astrSample = new byte[10,10];
  68. }
  69. public class stNode
  70. {
  71. public bool xMember = default(bool);
  72. public bool xMember2 = default(bool);
  73. public ushort uMember = default(ushort);
  74. public short iMember = default(short);
  75. public uint duMember = default(uint);
  76. public int diMember = default(int);
  77. public float fMember = default(float);
  78. public double dfMember = default(double);
  79. public byte[] strMember = new byte[16];
  80. }
  81. public class stParent
  82. {
  83. public bool xReq = default(bool);
  84. public bool xCmp = default(bool);
  85. public bool xErr = default(bool);
  86. public ushort uErrCode = default(ushort);
  87. public stNode stNode_Member = new stNode();
  88. public stNode[] astNode = (stNode[])CreateClassInstanceArray<stNode>(new int[1] {10});
  89. }
  90. public class _ACCESS_WINDOW
  91. {
  92. public bool UpKeyPressed = default(bool);
  93. public bool DownKeyPressed = default(bool);
  94. public bool LeftKeyPressed = default(bool);
  95. public bool RightKeyPressed = default(bool);
  96. public bool MenuKeyPressed = default(bool);
  97. public bool EnterKeyPressed = default(bool);
  98. public bool UserMessageDisplayed = default(bool);
  99. public bool[] BlinkLine = new bool[4];
  100. public bool[] DisplayUserMessage = new bool[63];
  101. public ushort UserMessageDisplayID = default(ushort);
  102. public ushort InitialDispLangSetting = default(ushort);
  103. public ushort InitialCommentNumberSetting = default(ushort);
  104. public ushort WindowOperationDisable = default(ushort);
  105. public ushort InitScreenSetValid = default(ushort);
  106. public ushort InitScreenSetDeviceType = default(ushort);
  107. public uint InitScreenSetScreenID = default(uint);
  108. public uint InitScreenSetDeviceNumber = default(uint);
  109. public ushort InitScreenSetDisplayFormat = default(ushort);
  110. public ushort InitScreenSetDeviceDisplay = default(ushort);
  111. public ushort InitScreenSetKeyLockStatus = default(ushort);
  112. public ushort[] Reserved = new ushort[1];
  113. }
  114. public class _AUTOLOAD_CTRL
  115. {
  116. public ushort FolderNumber = default(ushort);
  117. public ushort CompleteFolderNumber = default(ushort);
  118. public ushort FinCode = default(ushort);
  119. }
  120. public class _CPU_MEMORY_SAVE
  121. {
  122. public bool Request = default(bool);
  123. public bool Busy = default(bool);
  124. public bool Complete = default(bool);
  125. public bool Error = default(bool);
  126. }
  127. public class _DEV_INFO
  128. {
  129. public ushort DevType = default(ushort);
  130. public ushort BitOffset = default(ushort);
  131. public uint DevNo = default(uint);
  132. }
  133. public class _EC_MASTER
  134. {
  135. public bool MasterError = default(bool);
  136. public bool PDOActive = default(bool);
  137. public bool PDOInactive = default(bool);
  138. public bool PDOCommError = default(bool);
  139. public bool RingError = default(bool);
  140. public bool InDataInvalid = default(bool);
  141. public bool[] PDOParticipationTbl = new bool[512];
  142. public bool[] PDOActiveTbl = new bool[512];
  143. public bool[] PDOCommErrorTbl = new bool[512];
  144. public bool[] SDOActiveTbl = new bool[512];
  145. public bool[] RegTbl = new bool[512];
  146. public bool[] ReserveTbl = new bool[512];
  147. public bool[] PDOStopReqTbl = new bool[512];
  148. public bool[] RingErrorTbl = new bool[512];
  149. public ushort[] EcStateTbl = new ushort[512];
  150. public ushort MasterErrorCode = default(ushort);
  151. public ushort MasterErrorDetail1 = default(ushort);
  152. public ushort MasterErrorDetail2 = default(ushort);
  153. }
  154. public class _EC_NODE
  155. {
  156. public uint VenderID = default(uint);
  157. public uint ProductCode = default(uint);
  158. public uint RevisionNo = default(uint);
  159. public uint SerialNo = default(uint);
  160. public ushort StationAlias = default(ushort);
  161. public ushort[] ConnectNodeNo = new ushort[4];
  162. public ushort[] RxErrorCount = new ushort[4];
  163. public ushort EmgMsgErrorCode = default(ushort);
  164. public ushort EmgMsgErrorReg = default(ushort);
  165. public ushort EmgMsgData0_1 = default(ushort);
  166. public ushort EmgMsgData2_3 = default(ushort);
  167. public ushort EmgMsgData4 = default(ushort);
  168. public ushort NodeErrorCode = default(ushort);
  169. public ushort NodeErrorDetail1 = default(ushort);
  170. public ushort NodeErrorDetail2 = default(ushort);
  171. public ushort NodeWarning = default(ushort);
  172. public bool NodeError = default(bool);
  173. }
  174. public class _ERROR_CTRL
  175. {
  176. public bool Error = default(bool);
  177. public bool Warning = default(bool);
  178. public bool ClearCurrentError = default(bool);
  179. public bool ClearHistory = default(bool);
  180. }
  181. public class _ERROR_DETAIL
  182. {
  183. public ushort YearMonth = default(ushort);
  184. public ushort Day = default(ushort);
  185. public ushort Hour = default(ushort);
  186. public ushort Minute = default(ushort);
  187. public ushort Second = default(ushort);
  188. public ushort ErrorNumber = default(ushort);
  189. public ushort ValidCount = default(ushort);
  190. public ushort[] Detail = new ushort[20];
  191. }
  192. public class _EXPANSION_UNIT
  193. {
  194. public bool[] Connected = new bool[49];
  195. public bool[] LoadOption = new bool[49];
  196. public ushort UnitNumber = default(ushort);
  197. }
  198. public class _FILE_STATUS
  199. {
  200. public ushort[] ModifiedDate = new ushort[6];
  201. public uint FileSize = default(uint);
  202. public bool ReadOnly = default(bool);
  203. public bool HiddenFile = default(bool);
  204. public bool SystemFile = default(bool);
  205. public bool VolumeLabel = default(bool);
  206. public bool Folder = default(bool);
  207. public bool Archive = default(bool);
  208. public ushort[] Reserved = new ushort[1];
  209. }
  210. public class _LOGGING_TRACE
  211. {
  212. public bool ExecEnable = default(bool);
  213. public bool InOperation = default(bool);
  214. public bool FileWriteEnd = default(bool);
  215. public bool BufferHalfAlm = default(bool);
  216. public bool BufferOverflow = default(bool);
  217. public bool WriteDuringRun = default(bool);
  218. public bool LoggingTraceError = default(bool);
  219. public bool NoMemoryCapacity = default(bool);
  220. public bool DeviceTriggerSetError = default(bool);
  221. public bool FileSaveTriggerMonitor = default(bool);
  222. public bool DataAcquireComplete = default(bool);
  223. public ushort MinBufferSpace = default(ushort);
  224. public ushort LoopBufferSpace = default(ushort);
  225. public ushort FileSavingCounter = default(ushort);
  226. public ushort[] Reserved = new ushort[6];
  227. }
  228. public class _MC_AXIS_CFG
  229. {
  230. public ushort UnitCoordTrans = default(ushort);
  231. public double PosCycle = default(double);
  232. public uint CoordTransDenominator = default(uint);
  233. public uint CoordTransNumerator = default(uint);
  234. public ushort SoftLimitCoordSystem = default(ushort);
  235. public ushort UseSoftLimit = default(ushort);
  236. public double SoftLimitPositivePos = default(double);
  237. public double SoftLimitNegativePos = default(double);
  238. public ushort AxisErrorSetting = default(ushort);
  239. public ushort AxisCtrlSetting = default(ushort);
  240. public ushort ServoEndCheckTime = default(ushort);
  241. public double BacklashCompensationMovement = default(double);
  242. public double ServoEndRange = default(double);
  243. public ushort ChgToPosCtrlModeVelThresh = default(ushort);
  244. public int AbsEncUpperLim = default(int);
  245. public int AbsEncLowerLim = default(int);
  246. public ushort[] Reserved = new ushort[54];
  247. }
  248. public class _MC_AXIS_CMP_CODE
  249. {
  250. public ushort PosCtrlStart = default(ushort);
  251. public ushort SetPosition = default(ushort);
  252. public ushort ChgTargetPos = default(ushort);
  253. public ushort ChgTargetVel = default(ushort);
  254. public ushort Stop = default(ushort);
  255. public ushort RestartPositioning = default(ushort);
  256. public ushort MoveToNextPoint = default(ushort);
  257. public ushort SuspendNextPositioning = default(ushort);
  258. public ushort StopAtTargetPosition = default(ushort);
  259. public ushort Homing = default(ushort);
  260. public ushort MoveToBasePosition = default(ushort);
  261. public ushort FastMoveToHome = default(ushort);
  262. public ushort Teaching = default(ushort);
  263. public ushort StartSpecialFunc = default(ushort);
  264. public ushort ReleaseSpecialFunc = default(ushort);
  265. public ushort ChgCtrlMode = default(ushort);
  266. public ushort StartSyncCtrl = default(ushort);
  267. public ushort ReleaseSyncCtrl = default(ushort);
  268. public ushort ChgCam = default(ushort);
  269. public ushort ReengageSyncTrqLimitClutch = default(ushort);
  270. }
  271. public class _MC_AXIS_CTRL
  272. {
  273. public ushort PointNo = default(ushort);
  274. public ushort CtrlMode = default(ushort);
  275. public double SetPosition = default(double);
  276. public double ChgPositioningTargetPos = default(double);
  277. public double ChgPositioningTargetVel = default(double);
  278. public double ChgVel = default(double);
  279. public ushort Override = default(ushort);
  280. public ushort SelectSpecialFunc = default(ushort);
  281. public double AbsPosFollowUpCtrlCmdVal = default(double);
  282. public double SyncTypeFollowUpCtrlCmdVal = default(double);
  283. public double VelCtrlCmdVel = default(double);
  284. public double VelCtrlTrqLimit = default(double);
  285. public double VelCtrlTrqFeedforward = default(double);
  286. public double TrqCtrlCmdTrq = default(double);
  287. public double TrqCtrlVelLimit = default(double);
  288. public double PosCtrlTrqLimit = default(double);
  289. public double PosCtrlVelFeedforward = default(double);
  290. public double PosCtrlTrqFeedforward = default(double);
  291. public ushort ChgSyncCamNo = default(ushort);
  292. public ushort ChgSyncCamPos = default(ushort);
  293. public ushort Controlword = default(ushort);
  294. public ushort TouchProbeFunction = default(ushort);
  295. public ushort[] Reserved = new ushort[30];
  296. }
  297. public class _MC_AXIS_GROUP_CFG
  298. {
  299. public ushort[] Axis = new ushort[16];
  300. }
  301. public class _MC_AXIS_GROUP_REF
  302. {
  303. public ushort AxisGroupNo = default(ushort);
  304. }
  305. public class _MC_AXIS_IO_STATUS
  306. {
  307. public bool PositiveLimit = default(bool);
  308. public bool NegativeLimit = default(bool);
  309. public bool HomeSensor = default(bool);
  310. public bool StopSensor = default(bool);
  311. public bool SyncCtrlExtInput = default(bool);
  312. public bool ServoEnd = default(bool);
  313. public bool ServoReady = default(bool);
  314. public bool DrvAlarm = default(bool);
  315. public bool ServoOn = default(bool);
  316. public bool Reserved = default(bool);
  317. }
  318. public class _MC_AXIS_MOTION_FUNC_MAP
  319. {
  320. public bool PosCtrlAvl = default(bool);
  321. public bool VelCtrlAvl = default(bool);
  322. public bool TrqCtrlAvl = default(bool);
  323. public bool FeedbackTrqAvl = default(bool);
  324. public bool StopSensorAvl = default(bool);
  325. public bool HomingBaseAvl = default(bool);
  326. public bool HomingDogNoZAvl = default(bool);
  327. public bool HomingDogPressAvl = default(bool);
  328. public bool HomingLimitSwAvl = default(bool);
  329. public bool HomingImmZAvl = default(bool);
  330. public bool PosCtrlTrqLimitAvl = default(bool);
  331. public bool PosCtrlVelFeedforwardAvl = default(bool);
  332. public bool PosCtrlTrqFeedforwardAvl = default(bool);
  333. public bool VelCtrlTrqLimitAvl = default(bool);
  334. public bool VelCtrlTrqFeedforwardAvl = default(bool);
  335. public bool TrqCtrlVelLimitAvl = default(bool);
  336. public bool DrvAlarmCodeAvl = default(bool);
  337. public bool[] Reserved = new bool[9];
  338. }
  339. public class _MC_AXIS_STATUS
  340. {
  341. public ushort ErrorCode = default(ushort);
  342. public ushort[] ErrorDetail = new ushort[5];
  343. public ushort WarningCode = default(ushort);
  344. public ushort[] WarningDetail = new ushort[5];
  345. public _MC_AXIS_IO_STATUS IOStatus = new _MC_AXIS_IO_STATUS();
  346. public ushort PosCtrlState = default(ushort);
  347. public double CmdPos = default(double);
  348. public double CmdVel = default(double);
  349. public int CmdPls = default(int);
  350. public double MechanicalPos = default(double);
  351. public ushort CurrentPointNo = default(ushort);
  352. public ushort MCode = default(ushort);
  353. public double TargetPos = default(double);
  354. public double InheritedVel = default(double);
  355. public ushort CurrentCtrlMode = default(ushort);
  356. public int FeedbackPls = default(int);
  357. public double ActPos = default(double);
  358. public double ActVel = default(double);
  359. public ushort DrvAlarmCode = default(ushort);
  360. public int EcatStatus = default(int);
  361. public ushort DrvAlarmDetail1 = default(ushort);
  362. public ushort DrvAlarmDetail2 = default(ushort);
  363. public ushort EcatNodeAdr = default(ushort);
  364. public ushort AxisIndex = default(ushort);
  365. public double TrqLimitMon = default(double);
  366. public double TrqFeedforwardMon = default(double);
  367. public double VelLimitMon = default(double);
  368. public double VelFeedforwardMon = default(double);
  369. public double FeedbackVel = default(double);
  370. public double FeedbackTrq = default(double);
  371. public int PosDeviation = default(int);
  372. public ushort CurrentSettlingTime = default(ushort);
  373. public ushort MaxSettlingTime = default(ushort);
  374. public _MC_AXIS_MOTION_FUNC_MAP MotionFuncMapSetting = new _MC_AXIS_MOTION_FUNC_MAP();
  375. public ushort StopSensorDetectionNum = default(ushort);
  376. public double StopSensorPos = default(double);
  377. public ushort[] Reserved = new ushort[12];
  378. }
  379. public class _MC_AXIS_STATUS_BIT
  380. {
  381. public bool PlsOutputDone = default(bool);
  382. public bool PositioningDone = default(bool);
  383. public bool MCodeStatus = default(bool);
  384. public bool AxisError = default(bool);
  385. public bool AxisWarning = default(bool);
  386. public bool InControl = default(bool);
  387. public bool ServoEnd = default(bool);
  388. public bool ServoReady = default(bool);
  389. public bool DrvAlarm = default(bool);
  390. public bool Jogging = default(bool);
  391. public bool HomeIsNotDefined = default(bool);
  392. public bool InSyncCtrl = default(bool);
  393. public bool MainClutchStatus = default(bool);
  394. public bool ChangingMainAxisPhaseCompensation = default(bool);
  395. public bool MainClutchEngaged = default(bool);
  396. public bool AuxClutchStatus = default(bool);
  397. public bool ChangingAuxAxisPhaseCompensation = default(bool);
  398. public bool AuxClutchEngaged = default(bool);
  399. public bool ChangingSyncVariableGear = default(bool);
  400. public bool TrqLimitClutchOff = default(bool);
  401. public bool DrvLimit = default(bool);
  402. public bool DrvWarning = default(bool);
  403. public bool[] Reserved = new bool[64];
  404. }
  405. public class _MC_AXIS_SYNC_STATUS
  406. {
  407. public double MainAxisPhaseCompensation = default(double);
  408. public double AuxAxisPhaseCompensation = default(double);
  409. public double StepAngleCompensation = default(double);
  410. public double MainAxisPhase = default(double);
  411. public double MainClutchInputAxisPhase = default(double);
  412. public double MainClutchInputAxisPos = default(double);
  413. public double MainClutchOutputAxisPhase = default(double);
  414. public double MainClutchOutputAxisPos = default(double);
  415. public double AuxClutchInputAxisPhase = default(double);
  416. public double AuxClutchInputAxisPos = default(double);
  417. public double AuxClutchOutputAxisPhase = default(double);
  418. public double AuxClutchOutputAxisPos = default(double);
  419. public double TrqLimitClutchInputAxisPhase = default(double);
  420. public double TrqLimitClutchInputAxisPos = default(double);
  421. public double TrqLimitClutchOutputAxisPhase = default(double);
  422. public double TrqLimitClutchOutputAxisPos = default(double);
  423. public double CamInputAxisPhase = default(double);
  424. public double CamOutputRelativePos = default(double);
  425. public ushort CurrentCamNo = default(ushort);
  426. public ushort ContactOutputCurrentParamNo = default(ushort);
  427. public ushort[] Reserved = new ushort[2];
  428. }
  429. public class _MC_CAM_SECTION
  430. {
  431. public uint Phase = default(uint);
  432. public ushort Curve = default(ushort);
  433. public double Displacement = default(double);
  434. public short StartVel = default(short);
  435. public short EndVel = default(short);
  436. public short StartAcc = default(short);
  437. public short EndAcc = default(short);
  438. }
  439. public class _MC_COMMON_CMP_CODE
  440. {
  441. public ushort FlashRomWrite = default(ushort);
  442. public ushort SyncContactParamChg = default(ushort);
  443. public ushort[] Reserved = new ushort[6];
  444. }
  445. public class _MC_COMMON_CTRL
  446. {
  447. public int[] ExtRefCmdVal = new int[48];
  448. }
  449. public class _MC_COMMON_PERFORMANCE
  450. {
  451. public uint CurrentCycleTime = default(uint);
  452. public uint MaxCycleTime = default(uint);
  453. public ushort CurrentLoadFactor = default(ushort);
  454. public ushort MaxLoadFactor = default(ushort);
  455. public ushort[] Reserved = new ushort[6];
  456. }
  457. public class _MC_COMMON_STATUS_BIT
  458. {
  459. public bool Enable = default(bool);
  460. public bool EnableError = default(bool);
  461. public bool UnitError = default(bool);
  462. public bool AxisError = default(bool);
  463. public bool AxisWarning = default(bool);
  464. public bool TestRunning = default(bool);
  465. public bool[] Reserved = new bool[48];
  466. }
  467. public class _MC_POINT_PARAM
  468. {
  469. public ushort PositioningMode = default(ushort);
  470. public ushort ContinuousMode = default(ushort);
  471. public ushort NextPointNo = default(ushort);
  472. public ushort MCodeNo = default(ushort);
  473. public double TargetPos = default(double);
  474. public ushort DwellTime = default(ushort);
  475. public ushort AxisGroupNo = default(ushort);
  476. public double StopSensorMovement_ArcPos = default(double);
  477. public double TargetVel = default(double);
  478. public double Acceleration = default(double);
  479. public double Deceleration = default(double);
  480. public double AuxArcRadius = default(double);
  481. public double TrqLimit = default(double);
  482. public ushort Revolution = default(ushort);
  483. public ushort[] Reserved = new ushort[3];
  484. }
  485. public class _MC_POINT_PARAM_AXIS
  486. {
  487. public _MC_POINT_PARAM[] Point = (_MC_POINT_PARAM[])CreateClassInstanceArray<_MC_POINT_PARAM>(new int[1] {50});
  488. }
  489. public class _MC_POS_CFG
  490. {
  491. public ushort CommonSetting1 = default(ushort);
  492. public ushort CommonSetting2 = default(ushort);
  493. public double OperationStartVel = default(double);
  494. public double OperationMaxVel = default(double);
  495. public double OperationAcc = default(double);
  496. public double OperationDec = default(double);
  497. public ushort OperationAccDecCurveRatio = default(ushort);
  498. public ushort OperationAccDecCurve = default(ushort);
  499. public double JogAcc = default(double);
  500. public double JogDec = default(double);
  501. public double JogStartVel = default(double);
  502. public double JogFastVel = default(double);
  503. public double JogInchingMovement = default(double);
  504. public ushort JogAccDecCurveRatio = default(ushort);
  505. public ushort JogAccDecCurve = default(ushort);
  506. public ushort HomingSetting = default(ushort);
  507. public ushort HomingAccDecCurveRatio = default(ushort);
  508. public double HomingStartVel = default(double);
  509. public double HomingCreepVel = default(double);
  510. public double HomingVel = default(double);
  511. public double HomingAcc = default(double);
  512. public double HomingDec = default(double);
  513. public double HomingPos = default(double);
  514. public double HomingBasePos = default(double);
  515. public double HomingMovementAfterDogOn = default(double);
  516. public ushort HomingMethod = default(ushort);
  517. public ushort HomingDwellTime = default(ushort);
  518. public ushort HomingPressTrqTime = default(ushort);
  519. public double HomingPressTrqThresh = default(double);
  520. public double AbsPosFollowUpCtrlVel = default(double);
  521. public double AbsPosFollowUpCtrlAcc = default(double);
  522. public double AbsPosFollowUpCtrlDec = default(double);
  523. public uint SyncTypeFollowUpCtrlGearNumerator = default(uint);
  524. public uint SyncTypeFollowUpCtrlGearDenominator = default(uint);
  525. public ushort SyncTypeFollowUpCtrlOutputFilter = default(ushort);
  526. public ushort[] Reserved = new ushort[95];
  527. }
  528. public class _MC_SYNC_CONTACT_OUTPUT
  529. {
  530. public bool[] Output = new bool[16];
  531. }
  532. public class _MC_SYNC_CONTACT_OUTPUT_SUB_CFG
  533. {
  534. public double OnVal = default(double);
  535. public double OffVal = default(double);
  536. public ushort OutputDst = default(ushort);
  537. public ushort[] Reserved = new ushort[3];
  538. }
  539. public class _MC_SYNC_EXT_INPUT_CFG
  540. {
  541. public ushort BaseSetting = default(ushort);
  542. public uint DevNo = default(uint);
  543. public int RingCounterMin = default(int);
  544. public int RingCounterMax = default(int);
  545. }
  546. public class _MC_SYNC_PARAM
  547. {
  548. public double InputAxisCycle = default(double);
  549. public ushort UnitAndPrecision = default(ushort);
  550. public ushort ClutchOffSlippingTimeAtDecStop = default(ushort);
  551. public ushort InputAxisPhaseInitMethod = default(ushort);
  552. public double MainAxisInitialPhase = default(double);
  553. public double MainAxisInitialPhaseAfterCompensation = default(double);
  554. public double MainClutchInputInitialPhase = default(double);
  555. public double AuxClutchInputInitialPhase = default(double);
  556. public ushort CamInClutchOutPhaseInitMethod = default(ushort);
  557. public double MainClutchOutputInitialPhase = default(double);
  558. public double AuxClutchOutputInitialPhase = default(double);
  559. public double TrqLimitClutchInputInitialPhase = default(double);
  560. public double CamInputInitialPhase = default(double);
  561. public double CamOutputBasePos = default(double);
  562. public ushort MainAxis1Input = default(ushort);
  563. public ushort MainAxis1CoordTrans = default(ushort);
  564. public uint MainAxis1CoordTransNumerator = default(uint);
  565. public uint MainAxis1CoordTransDenominator = default(uint);
  566. public ushort MainAxis2Input = default(ushort);
  567. public ushort MainAxis2CoordTrans = default(ushort);
  568. public uint MainAxis2CoordTransNumerator = default(uint);
  569. public uint MainAxis2CoordTransDenominator = default(uint);
  570. public ushort AuxAxisInput = default(ushort);
  571. public ushort AuxAxisCoordTrans = default(ushort);
  572. public uint AuxAxisCoordTransNumerator = default(uint);
  573. public uint AuxAxisCoordTransDenominator = default(uint);
  574. public double MainAxisPhaseCompensationCmdVal = default(double);
  575. public ushort MainAxisPhaseCompensationChgMethod = default(ushort);
  576. public ushort MainAxisPhaseCompensationChgTime = default(ushort);
  577. public double AuxAxisPhaseCompensationCmdVal = default(double);
  578. public ushort AuxAxisPhaseCompensationChgMethod = default(ushort);
  579. public ushort AuxAxisPhaseCompensationChgTime = default(ushort);
  580. public double StepAngleCompensationBaseVel = default(double);
  581. public double StepAngleCompensationBaseValue = default(double);
  582. public ushort StepAngleCompensationChgMethod = default(ushort);
  583. public ushort StepAngleCompensationChgTime = default(ushort);
  584. public int VariableGearRatioNumerator = default(int);
  585. public uint VariableGearRatioDenominator = default(uint);
  586. public ushort VariableGearRatioChgMethod = default(ushort);
  587. public ushort VariableGearRatioChgTime = default(ushort);
  588. public ushort MainClutchOnCondition = default(ushort);
  589. public ushort MainClutchOnEngagingMethod = default(ushort);
  590. public ushort MainClutchOnSlippingMode = default(ushort);
  591. public ushort MainClutchOnDisableMethod = default(ushort);
  592. public double MainClutchOnSettingVal = default(double);
  593. public double MainClutchOnDelay = default(double);
  594. public double MainClutchOnSlippage = default(double);
  595. public ushort MainClutchOnSlippingCurve = default(ushort);
  596. public ushort MainClutchOnSlippingTime = default(ushort);
  597. public ushort MainClutchOnFollowingTime = default(ushort);
  598. public double MainClutchOnFollowUpMovement = default(double);
  599. public ushort MainClutchOffCondition = default(ushort);
  600. public ushort MainClutchOffEngagingMethod = default(ushort);
  601. public ushort MainClutchOffSlippingMode = default(ushort);
  602. public ushort MainClutchOffDisableMethod = default(ushort);
  603. public double MainClutchOffSettingVal = default(double);
  604. public double MainClutchOffDelay = default(double);
  605. public double MainClutchOffSlippage = default(double);
  606. public ushort MainClutchOffSlippingCurve = default(ushort);
  607. public ushort MainClutchOffSlippingTime = default(ushort);
  608. public ushort AuxClutchOnCondition = default(ushort);
  609. public ushort AuxClutchOnEngagingMethod = default(ushort);
  610. public ushort AuxClutchOnSlippingMode = default(ushort);
  611. public ushort AuxClutchOnDisableMethod = default(ushort);
  612. public double AuxClutchOnSettingVal = default(double);
  613. public double AuxClutchOnDelay = default(double);
  614. public double AuxClutchOnSlippage = default(double);
  615. public ushort AuxClutchOnSlippingCurve = default(ushort);
  616. public ushort AuxClutchOnSlippingTime = default(ushort);
  617. public ushort AuxClutchOffCondition = default(ushort);
  618. public ushort AuxClutchOffEngagingMethod = default(ushort);
  619. public ushort AuxClutchOffSlippingMode = default(ushort);
  620. public ushort AuxClutchOffDisableMethod = default(ushort);
  621. public double AuxClutchOffSettingVal = default(double);
  622. public double AuxClutchOffDelay = default(double);
  623. public double AuxClutchOffSlippage = default(double);
  624. public ushort AuxClutchOffSlippingCurve = default(ushort);
  625. public ushort AuxClutchOffSlippingTime = default(ushort);
  626. public ushort CamDataNo = default(ushort);
  627. public ushort ContactOutputNo = default(ushort);
  628. public double CamStroke = default(double);
  629. public ushort SimMechanicalSyncStopMethod = default(ushort);
  630. public ushort TrqLimitClutchEngagingMethod = default(ushort);
  631. public ushort OutputFilterTimeConst = default(ushort);
  632. public double SimMechanicalSyncStopTrq = default(double);
  633. public double TrqLimitClutchOutputJogVel = default(double);
  634. }
  635. public class _OPERATION_RECORDER
  636. {
  637. public bool SaveRequest = default(bool);
  638. public bool InAction = default(bool);
  639. public bool SaveTriggerMonitor = default(bool);
  640. public bool SaveBusy = default(bool);
  641. public bool Collecting = default(bool);
  642. public bool SettingError = default(bool);
  643. public bool SaveComplete = default(bool);
  644. public bool SaveError = default(bool);
  645. public bool BufferShortage = default(bool);
  646. public bool BufferAllSaveMode = default(bool);
  647. public int AverageSamplingPeriod = default(int);
  648. public int AverageChangedDeviceNum = default(int);
  649. public int MaxCollectingPeriod = default(int);
  650. public ushort SaveFinCode = default(ushort);
  651. public ushort SaveCounter = default(ushort);
  652. public ushort SaveProgressInfo1 = default(ushort);
  653. public ushort SaveProgressInfo2 = default(ushort);
  654. public ushort SaveProgress = default(ushort);
  655. public byte[] SavePath = new byte[321];
  656. public ushort[] Reserved = new ushort[9];
  657. }
  658. public class _PROGRAM_INFO
  659. {
  660. public uint ScanTime = default(uint);
  661. public uint EndProcTime = default(uint);
  662. public uint MinScanTime = default(uint);
  663. public uint MaxScanTime = default(uint);
  664. public uint FixScanTimeSet = default(uint);
  665. public uint EndProcTimeSet = default(uint);
  666. public uint ExcessConstantScanTime = default(uint);
  667. public uint ExcessEndProcTime = default(uint);
  668. public ushort ProgramErrorDetail = default(ushort);
  669. public bool FixScanTimeEnable = default(bool);
  670. public bool FixTimeExcess = default(bool);
  671. public bool OCPDisabled = default(bool);
  672. public bool BackupBattError = default(bool);
  673. public bool ScanTimeMaxMinClear = default(bool);
  674. public bool FixEndProcTimeEnable = default(bool);
  675. public bool TimeError = default(bool);
  676. public bool ProjectPasswordAuthDisabled = default(bool);
  677. public ushort[] Reserved = new ushort[1];
  678. }
  679. public class _PROJECT_INFO
  680. {
  681. public byte[] ProjectName = new byte[65];
  682. public ushort SensorInstExecCount = default(ushort);
  683. public ushort PrjPasswordCertFailCount = default(ushort);
  684. public ushort PrjPasswordCertFailTotal = default(ushort);
  685. public ushort CpuFuncVersion = default(ushort);
  686. public ushort ProjectVersion = default(ushort);
  687. }
  688. public class _PROJECT_RECIPE_SAVE_LOAD
  689. {
  690. public bool Request = default(bool);
  691. public bool Busy = default(bool);
  692. public bool Complete = default(bool);
  693. public bool Error = default(bool);
  694. public ushort DriveNumber = default(ushort);
  695. public ushort FolderNumber = default(ushort);
  696. public ushort CompleteDriveNumber = default(ushort);
  697. public ushort CompleteFolderNumber = default(ushort);
  698. public ushort FinCode = default(ushort);
  699. }
  700. public class _RECIPE_SAVE
  701. {
  702. public bool Request = default(bool);
  703. public bool Busy = default(bool);
  704. public bool Complete = default(bool);
  705. public bool Error = default(bool);
  706. public ushort DriveNumber = default(ushort);
  707. public ushort InputFolderNumber = default(ushort);
  708. public ushort OutputFolderNumber = default(ushort);
  709. public ushort FinCode = default(ushort);
  710. }
  711. public class _SOCKET_STATUS
  712. {
  713. public ushort SocketStatus = default(ushort);
  714. public ushort TCPConnStatus = default(ushort);
  715. public ushort MyPortNo = default(ushort);
  716. public byte[] ConnAddress = new byte[16];
  717. public ushort ConnPortNo = default(ushort);
  718. }
  719. public class _STORAGE
  720. {
  721. public bool MemCardMountReq = default(bool);
  722. public bool MemCardUnmountReq = default(bool);
  723. public bool MemCardInUse = default(bool);
  724. public bool MemCardRecognized = default(bool);
  725. public bool MemCardExist = default(bool);
  726. public bool CpuMemoryMountReq = default(bool);
  727. public bool CpuMemoryUnmountReq = default(bool);
  728. public bool CpuMemoryInUse = default(bool);
  729. public bool CpuMemoryRecognized = default(bool);
  730. public _AUTOLOAD_CTRL AutoLoad = new _AUTOLOAD_CTRL();
  731. public _AUTOLOAD_CTRL RunLoad = new _AUTOLOAD_CTRL();
  732. public _PROJECT_RECIPE_SAVE_LOAD ProjectSave = new _PROJECT_RECIPE_SAVE_LOAD();
  733. public _PROJECT_RECIPE_SAVE_LOAD ProjectLoad = new _PROJECT_RECIPE_SAVE_LOAD();
  734. public _RECIPE_SAVE RecipeSave = new _RECIPE_SAVE();
  735. public _PROJECT_RECIPE_SAVE_LOAD RecipeLoad = new _PROJECT_RECIPE_SAVE_LOAD();
  736. public _CPU_MEMORY_SAVE CpuMemorySave = new _CPU_MEMORY_SAVE();
  737. public bool StorageFBIsRAMMode = default(bool);
  738. public bool ProjectBackupBusy = default(bool);
  739. public bool LoggingTraceBusy = default(bool);
  740. public bool LoggingInternalBufferOverflow = default(bool);
  741. public ushort PowerOffDuringStorageAccess = default(ushort);
  742. public ushort MemoryCardRetryCount = default(ushort);
  743. public ushort MemoryCardErrorCount = default(ushort);
  744. public ushort MemoryCardResetDelay = default(ushort);
  745. public uint UsageCpuMemory = default(uint);
  746. }
  747. public class _STRING_TO_VARIABLE_PARAM
  748. {
  749. public ushort Delimiter = default(ushort);
  750. public bool Hex = default(bool);
  751. }
  752. public class _UNIT_ID_ADR
  753. {
  754. public ushort UnitNo = default(ushort);
  755. public uint RelayAdr = default(uint);
  756. public uint DmAdr = default(uint);
  757. }
  758. public class _UNIT_SYNCHRONIZE
  759. {
  760. public uint RefreshStartTimeDelay = default(uint);
  761. public uint RefreshFinishTimeDelay = default(uint);
  762. public uint RefreshStartTimeMaxDelay = default(uint);
  763. public uint RefreshFinishTimeMaxDelay = default(uint);
  764. public uint RefreshExecutionTime = default(uint);
  765. public bool RefreshIntervalOver = default(bool);
  766. public ushort[] Reserved = new ushort[1];
  767. }
  768. public class _VARIABLE_TO_STRING_PARAM
  769. {
  770. public ushort Delimiter = default(ushort);
  771. public ushort CrLfCount = default(ushort);
  772. public ushort EndStr = default(ushort);
  773. public bool FixedDigit = default(bool);
  774. public bool Hex = default(bool);
  775. }
  776. public class _FILE_INFO
  777. {
  778. public byte[] FileName = new byte[129];
  779. public _FILE_STATUS FileStatus = new _FILE_STATUS();
  780. }
  781. public class _MC_AXIS_REF
  782. {
  783. public ushort AxisNo = default(ushort);
  784. public _MC_AXIS_STATUS Status = new _MC_AXIS_STATUS();
  785. public _MC_AXIS_CMP_CODE CmpCode = new _MC_AXIS_CMP_CODE();
  786. public _MC_AXIS_SYNC_STATUS SyncStatus = new _MC_AXIS_SYNC_STATUS();
  787. public _MC_AXIS_STATUS_BIT StatusBit = new _MC_AXIS_STATUS_BIT();
  788. }
  789. public class _MC_COMMON_CFG
  790. {
  791. public ushort UnitCfg = default(ushort);
  792. public _MC_SYNC_EXT_INPUT_CFG[] SyncExtInputCfg = (_MC_SYNC_EXT_INPUT_CFG[])CreateClassInstanceArray<_MC_SYNC_EXT_INPUT_CFG>(new int[1] {48});
  793. }
  794. public class _MC_COMMON_STATUS
  795. {
  796. public ushort UnitErrorCode = default(ushort);
  797. public ushort[] UnitErrorDetail = new ushort[5];
  798. public _MC_SYNC_CONTACT_OUTPUT[] SyncContactOutput = (_MC_SYNC_CONTACT_OUTPUT[])CreateClassInstanceArray<_MC_SYNC_CONTACT_OUTPUT>(new int[1] {32});
  799. public ushort[] Reserved = new ushort[2];
  800. }
  801. public class _MC_SYNC_CONTACT_OUTPUT_CFG
  802. {
  803. public _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[] ConfigNo = (_MC_SYNC_CONTACT_OUTPUT_SUB_CFG[])CreateClassInstanceArray<_MC_SYNC_CONTACT_OUTPUT_SUB_CFG>(new int[1] {32});
  804. }
  805. public class _MC_COMMON
  806. {
  807. public _MC_COMMON_STATUS Status = new _MC_COMMON_STATUS();
  808. public _MC_COMMON_CMP_CODE CmpCode = new _MC_COMMON_CMP_CODE();
  809. public _MC_COMMON_PERFORMANCE Performance = new _MC_COMMON_PERFORMANCE();
  810. public _MC_COMMON_STATUS_BIT StatusBit = new _MC_COMMON_STATUS_BIT();
  811. }
  812. public static int[] NewIndices(Array target)
  813. {
  814. int rank = target.Rank;
  815. int[] indices = new int[rank];
  816. Array.Clear(indices, 0, rank);
  817. indices[ rank - 1 ]--;
  818. return indices;
  819. }
  820. public static void NextIndices(Array target, int[] indices)
  821. {
  822. int rank = target.Rank;
  823. indices[ rank - 1 ]++;
  824. for ( int dim = rank - 1; dim >= 0; dim-- )
  825. {
  826. if ( indices[ dim ] > target.GetUpperBound(dim) )
  827. {
  828. if ( dim == 0 ) break;
  829. for ( int j = dim; j < rank; j++ ) indices[ j ] = target.GetLowerBound(j);
  830. indices[ dim - 1 ]++;
  831. }
  832. }
  833. }
  834. public static Array CreateClassInstanceArray<T>(int[] sizes)
  835. {
  836. Array entity = Array.CreateInstance(typeof(T), sizes);
  837. int[] indices = NewIndices(entity);
  838. for ( int i = 0; i < entity.Length; i++ )
  839. {
  840. NextIndices(entity, indices);
  841. entity.SetValue(Activator.CreateInstance(typeof(T)), indices);
  842. }
  843. return entity;
  844. }
  845. private static void SwapBytes(byte[] tgt, int byteSize, int byteOffset = 0)
  846. {
  847. byte tmpByte;
  848. for ( int i = 0; i < byteSize / 2; i++ )
  849. {
  850. tmpByte = tgt[ i * 2 + byteOffset ];
  851. tgt[ i * 2 + byteOffset ] = tgt[ i * 2 + 1 + byteOffset ];
  852. tgt[ i * 2 + 1 + byteOffset ] = tmpByte;
  853. }
  854. }
  855. public static void ByteToBoolBase(Array dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  856. {
  857. int byteOffset = (wordOffset * 2) + (bitOffset / 8);
  858. int byteBitOffset = bitOffset % 8;
  859. int[] indices = NewIndices(src);
  860. for ( int i = 0; i < len; i++ )
  861. {
  862. NextIndices(src, indices);
  863. dst.SetValue(( src[ ( ( i + byteBitOffset ) / 8 ) + byteOffset ] & ( 1 << ( i + byteBitOffset ) % 8 ) ) != 0, indices);
  864. }
  865. }
  866. public static void ByteToBool(ref bool dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  867. {
  868. int byteOffset = (wordOffset * 2) + (bitOffset / 8);
  869. int byteBitOffset = bitOffset % 8;
  870. dst = ( src[ byteOffset ] & 1 << byteBitOffset ) != 0;
  871. }
  872. public static void ByteToBool(ref bool[] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  873. {
  874. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  875. }
  876. public static void ByteToBool(ref bool[,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  877. {
  878. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  879. }
  880. public static void ByteToBool(ref bool[,,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  881. {
  882. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  883. }
  884. public static void ByteToBool(ref bool[,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  885. {
  886. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  887. }
  888. public static void ByteToBool(ref bool[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  889. {
  890. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  891. }
  892. public static void ByteToBool(ref bool[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  893. {
  894. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  895. }
  896. public static void ByteToBool(ref bool[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  897. {
  898. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  899. }
  900. public static void ByteToBool(ref bool[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  901. {
  902. ByteToBoolBase(dst, src, len, wordOffset, bitOffset);
  903. }
  904. public static void ByteToShort(ref short dst, byte[] src, int len = 1, int wordOffset = 0)
  905. {
  906. dst = BitConverter.ToInt16(src, wordOffset * 2);
  907. }
  908. public static void ByteToShort(ref short[] dst, byte[] src, int len = 1, int wordOffset = 0)
  909. {
  910. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  911. }
  912. public static void ByteToShort(ref short[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  913. {
  914. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  915. }
  916. public static void ByteToShort(ref short[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  917. {
  918. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  919. }
  920. public static void ByteToShort(ref short[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  921. {
  922. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  923. }
  924. public static void ByteToShort(ref short[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  925. {
  926. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  927. }
  928. public static void ByteToShort(ref short[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  929. {
  930. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  931. }
  932. public static void ByteToShort(ref short[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  933. {
  934. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  935. }
  936. public static void ByteToShort(ref short[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  937. {
  938. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(short));
  939. }
  940. public static void ByteToUshort(ref ushort dst, byte[] src, int len = 1, int wordOffset = 0)
  941. {
  942. dst = BitConverter.ToUInt16(src, wordOffset * 2);
  943. }
  944. public static void ByteToUshort(ref ushort[] dst, byte[] src, int len = 1, int wordOffset = 0)
  945. {
  946. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  947. }
  948. public static void ByteToUshort(ref ushort[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  949. {
  950. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  951. }
  952. public static void ByteToUshort(ref ushort[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  953. {
  954. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  955. }
  956. public static void ByteToUshort(ref ushort[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  957. {
  958. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  959. }
  960. public static void ByteToUshort(ref ushort[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  961. {
  962. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  963. }
  964. public static void ByteToUshort(ref ushort[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  965. {
  966. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  967. }
  968. public static void ByteToUshort(ref ushort[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  969. {
  970. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  971. }
  972. public static void ByteToUshort(ref ushort[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  973. {
  974. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(ushort));
  975. }
  976. public static void ByteToInt(ref int dst, byte[] src, int len = 1, int wordOffset = 0)
  977. {
  978. dst = BitConverter.ToInt32(src, wordOffset * 2);
  979. }
  980. public static void ByteToInt(ref int[] dst, byte[] src, int len = 1, int wordOffset = 0)
  981. {
  982. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  983. }
  984. public static void ByteToInt(ref int[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  985. {
  986. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  987. }
  988. public static void ByteToInt(ref int[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  989. {
  990. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  991. }
  992. public static void ByteToInt(ref int[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  993. {
  994. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  995. }
  996. public static void ByteToInt(ref int[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  997. {
  998. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  999. }
  1000. public static void ByteToInt(ref int[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1001. {
  1002. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  1003. }
  1004. public static void ByteToInt(ref int[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1005. {
  1006. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  1007. }
  1008. public static void ByteToInt(ref int[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1009. {
  1010. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(int));
  1011. }
  1012. public static void ByteToUint(ref uint dst, byte[] src, int len = 1, int wordOffset = 0)
  1013. {
  1014. dst = BitConverter.ToUInt32(src, wordOffset * 2);
  1015. }
  1016. public static void ByteToUint(ref uint[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1017. {
  1018. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1019. }
  1020. public static void ByteToUint(ref uint[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1021. {
  1022. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1023. }
  1024. public static void ByteToUint(ref uint[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1025. {
  1026. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1027. }
  1028. public static void ByteToUint(ref uint[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1029. {
  1030. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1031. }
  1032. public static void ByteToUint(ref uint[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1033. {
  1034. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1035. }
  1036. public static void ByteToUint(ref uint[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1037. {
  1038. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1039. }
  1040. public static void ByteToUint(ref uint[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1041. {
  1042. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1043. }
  1044. public static void ByteToUint(ref uint[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1045. {
  1046. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(uint));
  1047. }
  1048. public static void ByteToFloat(ref float dst, byte[] src, int len = 1, int wordOffset = 0)
  1049. {
  1050. dst = BitConverter.ToSingle(src, wordOffset * 2);
  1051. }
  1052. public static void ByteToFloat(ref float[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1053. {
  1054. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1055. }
  1056. public static void ByteToFloat(ref float[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1057. {
  1058. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1059. }
  1060. public static void ByteToFloat(ref float[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1061. {
  1062. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1063. }
  1064. public static void ByteToFloat(ref float[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1065. {
  1066. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1067. }
  1068. public static void ByteToFloat(ref float[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1069. {
  1070. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1071. }
  1072. public static void ByteToFloat(ref float[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1073. {
  1074. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1075. }
  1076. public static void ByteToFloat(ref float[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1077. {
  1078. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1079. }
  1080. public static void ByteToFloat(ref float[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1081. {
  1082. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(float));
  1083. }
  1084. public static void ByteToDouble(ref double dst, byte[] src, int len = 1, int wordOffset = 0)
  1085. {
  1086. dst = BitConverter.ToDouble(src, wordOffset * 2);
  1087. }
  1088. public static void ByteToDouble(ref double[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1089. {
  1090. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1091. }
  1092. public static void ByteToDouble(ref double[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1093. {
  1094. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1095. }
  1096. public static void ByteToDouble(ref double[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1097. {
  1098. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1099. }
  1100. public static void ByteToDouble(ref double[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1101. {
  1102. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1103. }
  1104. public static void ByteToDouble(ref double[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1105. {
  1106. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1107. }
  1108. public static void ByteToDouble(ref double[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1109. {
  1110. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1111. }
  1112. public static void ByteToDouble(ref double[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1113. {
  1114. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1115. }
  1116. public static void ByteToDouble(ref double[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1117. {
  1118. Buffer.BlockCopy(src, wordOffset * 2, dst, 0, len * sizeof(double));
  1119. }
  1120. public static void ByteToString(ref byte[] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1121. {
  1122. byte[] strTmp = new byte[len * stringSize];
  1123. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1124. SwapBytes(strTmp, len * stringSize);
  1125. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1126. }
  1127. public static void ByteToString(ref byte[,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1128. {
  1129. byte[] strTmp = new byte[len * stringSize];
  1130. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1131. SwapBytes(strTmp, len * stringSize);
  1132. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1133. }
  1134. public static void ByteToString(ref byte[,,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1135. {
  1136. byte[] strTmp = new byte[len * stringSize];
  1137. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1138. SwapBytes(strTmp, len * stringSize);
  1139. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1140. }
  1141. public static void ByteToString(ref byte[,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1142. {
  1143. byte[] strTmp = new byte[len * stringSize];
  1144. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1145. SwapBytes(strTmp, len * stringSize);
  1146. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1147. }
  1148. public static void ByteToString(ref byte[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1149. {
  1150. byte[] strTmp = new byte[len * stringSize];
  1151. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1152. SwapBytes(strTmp, len * stringSize);
  1153. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1154. }
  1155. public static void ByteToString(ref byte[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1156. {
  1157. byte[] strTmp = new byte[len * stringSize];
  1158. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1159. SwapBytes(strTmp, len * stringSize);
  1160. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1161. }
  1162. public static void ByteToString(ref byte[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1163. {
  1164. byte[] strTmp = new byte[len * stringSize];
  1165. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1166. SwapBytes(strTmp, len * stringSize);
  1167. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1168. }
  1169. public static void ByteToString(ref byte[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1170. {
  1171. byte[] strTmp = new byte[len * stringSize];
  1172. Array.Copy(src, wordOffset * 2, strTmp, 0, len * stringSize);
  1173. SwapBytes(strTmp, len * stringSize);
  1174. Buffer.BlockCopy(strTmp, 0, dst, 0, len * stringSize);
  1175. }
  1176. public static void BoolToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1177. {
  1178. int[] indices = NewIndices(dst);
  1179. for ( int i = 0; i < len; i++ )
  1180. {
  1181. NextIndices(dst, indices);
  1182. BoolToByte(ref dst, ( bool ) src.GetValue(indices), 1, wordOffset, bitOffset);
  1183. bitOffset++;
  1184. if ( bitOffset >= 16 )
  1185. {
  1186. bitOffset = 0;
  1187. wordOffset++;
  1188. }
  1189. }
  1190. }
  1191. public static void BoolToByte(ref byte[] dst, bool src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1192. {
  1193. int byteOffset = (wordOffset * 2) + (bitOffset / 8);
  1194. int byteBitOffset = bitOffset % 8;
  1195. if ( src )
  1196. {
  1197. dst[ byteOffset ] |= ( byte ) ( 1 << byteBitOffset );
  1198. }
  1199. else
  1200. {
  1201. dst[ byteOffset ] &= ( byte ) ~( 1 << byteBitOffset );
  1202. }
  1203. }
  1204. public static void BoolToByte(ref byte[] dst, bool[] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1205. {
  1206. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1207. }
  1208. public static void BoolToByte(ref byte[] dst, bool[,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1209. {
  1210. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1211. }
  1212. public static void BoolToByte(ref byte[] dst, bool[,,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1213. {
  1214. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1215. }
  1216. public static void BoolToByte(ref byte[] dst, bool[,,,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1217. {
  1218. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1219. }
  1220. public static void BoolToByte(ref byte[] dst, bool[,,,,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1221. {
  1222. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1223. }
  1224. public static void BoolToByte(ref byte[] dst, bool[,,,,,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1225. {
  1226. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1227. }
  1228. public static void BoolToByte(ref byte[] dst, bool[,,,,,,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1229. {
  1230. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1231. }
  1232. public static void BoolToByte(ref byte[] dst, bool[,,,,,,,] src, int len = 1, int wordOffset = 0, int bitOffset = 0)
  1233. {
  1234. BoolToByteBase(ref dst, src, len, wordOffset, bitOffset);
  1235. }
  1236. public static void ShortToByte(ref byte[] dst, short src, int len = 1, int wordOffset = 0)
  1237. {
  1238. Array.Copy(BitConverter.GetBytes(src), 0, dst, wordOffset * 2, len * sizeof(short));
  1239. }
  1240. public static void ShortToByte(ref byte[] dst, short[] src, int len = 1, int wordOffset = 0)
  1241. {
  1242. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1243. }
  1244. public static void ShortToByte(ref byte[] dst, short[,] src, int len = 1, int wordOffset = 0)
  1245. {
  1246. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1247. }
  1248. public static void ShortToByte(ref byte[] dst, short[,,] src, int len = 1, int wordOffset = 0)
  1249. {
  1250. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1251. }
  1252. public static void ShortToByte(ref byte[] dst, short[,,,] src, int len = 1, int wordOffset = 0)
  1253. {
  1254. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1255. }
  1256. public static void ShortToByte(ref byte[] dst, short[,,,,] src, int len = 1, int wordOffset = 0)
  1257. {
  1258. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1259. }
  1260. public static void ShortToByte(ref byte[] dst, short[,,,,,] src, int len = 1, int wordOffset = 0)
  1261. {
  1262. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1263. }
  1264. public static void ShortToByte(ref byte[] dst, short[,,,,,,] src, int len = 1, int wordOffset = 0)
  1265. {
  1266. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1267. }
  1268. public static void ShortToByte(ref byte[] dst, short[,,,,,,,] src, int len = 1, int wordOffset = 0)
  1269. {
  1270. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(short));
  1271. }
  1272. public static void UshortToByte(ref byte[] dst, ushort src, int len = 1, int wordOffset = 0)
  1273. {
  1274. Array.Copy(BitConverter.GetBytes(src), 0, dst, wordOffset * 2, len * sizeof(ushort));
  1275. }
  1276. public static void UshortToByte(ref byte[] dst, ushort[] src, int len = 1, int wordOffset = 0)
  1277. {
  1278. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1279. }
  1280. public static void UshortToByte(ref byte[] dst, ushort[,] src, int len = 1, int wordOffset = 0)
  1281. {
  1282. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1283. }
  1284. public static void UshortToByte(ref byte[] dst, ushort[,,] src, int len = 1, int wordOffset = 0)
  1285. {
  1286. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1287. }
  1288. public static void UshortToByte(ref byte[] dst, ushort[,,,] src, int len = 1, int wordOffset = 0)
  1289. {
  1290. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1291. }
  1292. public static void UshortToByte(ref byte[] dst, ushort[,,,,] src, int len = 1, int wordOffset = 0)
  1293. {
  1294. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1295. }
  1296. public static void UshortToByte(ref byte[] dst, ushort[,,,,,] src, int len = 1, int wordOffset = 0)
  1297. {
  1298. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1299. }
  1300. public static void UshortToByte(ref byte[] dst, ushort[,,,,,,] src, int len = 1, int wordOffset = 0)
  1301. {
  1302. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1303. }
  1304. public static void UshortToByte(ref byte[] dst, ushort[,,,,,,,] src, int len = 1, int wordOffset = 0)
  1305. {
  1306. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(ushort));
  1307. }
  1308. public static void IntToByte(ref byte[] dst, int src, int len = 1, int wordOffset = 0)
  1309. {
  1310. Array.Copy(BitConverter.GetBytes(src), 0, dst, wordOffset * 2, len * sizeof(int));
  1311. }
  1312. public static void IntToByte(ref byte[] dst, int[] src, int len = 1, int wordOffset = 0)
  1313. {
  1314. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1315. }
  1316. public static void IntToByte(ref byte[] dst, int[,] src, int len = 1, int wordOffset = 0)
  1317. {
  1318. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1319. }
  1320. public static void IntToByte(ref byte[] dst, int[,,] src, int len = 1, int wordOffset = 0)
  1321. {
  1322. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1323. }
  1324. public static void IntToByte(ref byte[] dst, int[,,,] src, int len = 1, int wordOffset = 0)
  1325. {
  1326. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1327. }
  1328. public static void IntToByte(ref byte[] dst, int[,,,,] src, int len = 1, int wordOffset = 0)
  1329. {
  1330. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1331. }
  1332. public static void IntToByte(ref byte[] dst, int[,,,,,] src, int len = 1, int wordOffset = 0)
  1333. {
  1334. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1335. }
  1336. public static void IntToByte(ref byte[] dst, int[,,,,,,] src, int len = 1, int wordOffset = 0)
  1337. {
  1338. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1339. }
  1340. public static void IntToByte(ref byte[] dst, int[,,,,,,,] src, int len = 1, int wordOffset = 0)
  1341. {
  1342. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(int));
  1343. }
  1344. public static void UintToByte(ref byte[] dst, uint src, int len = 1, int wordOffset = 0)
  1345. {
  1346. Array.Copy(BitConverter.GetBytes(src), 0, dst, wordOffset * 2, len * sizeof(uint));
  1347. }
  1348. public static void UintToByte(ref byte[] dst, uint[] src, int len = 1, int wordOffset = 0)
  1349. {
  1350. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1351. }
  1352. public static void UintToByte(ref byte[] dst, uint[,] src, int len = 1, int wordOffset = 0)
  1353. {
  1354. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1355. }
  1356. public static void UintToByte(ref byte[] dst, uint[,,] src, int len = 1, int wordOffset = 0)
  1357. {
  1358. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1359. }
  1360. public static void UintToByte(ref byte[] dst, uint[,,,] src, int len = 1, int wordOffset = 0)
  1361. {
  1362. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1363. }
  1364. public static void UintToByte(ref byte[] dst, uint[,,,,] src, int len = 1, int wordOffset = 0)
  1365. {
  1366. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1367. }
  1368. public static void UintToByte(ref byte[] dst, uint[,,,,,] src, int len = 1, int wordOffset = 0)
  1369. {
  1370. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1371. }
  1372. public static void UintToByte(ref byte[] dst, uint[,,,,,,] src, int len = 1, int wordOffset = 0)
  1373. {
  1374. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1375. }
  1376. public static void UintToByte(ref byte[] dst, uint[,,,,,,,] src, int len = 1, int wordOffset = 0)
  1377. {
  1378. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(uint));
  1379. }
  1380. public static void FloatToByte(ref byte[] dst, float src, int len = 1, int wordOffset = 0)
  1381. {
  1382. Array.Copy(BitConverter.GetBytes(src), 0, dst, wordOffset * 2, len * sizeof(float));
  1383. }
  1384. public static void FloatToByte(ref byte[] dst, float[] src, int len = 1, int wordOffset = 0)
  1385. {
  1386. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1387. }
  1388. public static void FloatToByte(ref byte[] dst, float[,] src, int len = 1, int wordOffset = 0)
  1389. {
  1390. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1391. }
  1392. public static void FloatToByte(ref byte[] dst, float[,,] src, int len = 1, int wordOffset = 0)
  1393. {
  1394. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1395. }
  1396. public static void FloatToByte(ref byte[] dst, float[,,,] src, int len = 1, int wordOffset = 0)
  1397. {
  1398. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1399. }
  1400. public static void FloatToByte(ref byte[] dst, float[,,,,] src, int len = 1, int wordOffset = 0)
  1401. {
  1402. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1403. }
  1404. public static void FloatToByte(ref byte[] dst, float[,,,,,] src, int len = 1, int wordOffset = 0)
  1405. {
  1406. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1407. }
  1408. public static void FloatToByte(ref byte[] dst, float[,,,,,,] src, int len = 1, int wordOffset = 0)
  1409. {
  1410. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1411. }
  1412. public static void FloatToByte(ref byte[] dst, float[,,,,,,,] src, int len = 1, int wordOffset = 0)
  1413. {
  1414. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(float));
  1415. }
  1416. public static void DoubleToByte(ref byte[] dst, double src, int len = 1, int wordOffset = 0)
  1417. {
  1418. Array.Copy(BitConverter.GetBytes(src), 0, dst, wordOffset * 2, len * sizeof(double));
  1419. }
  1420. public static void DoubleToByte(ref byte[] dst, double[] src, int len = 1, int wordOffset = 0)
  1421. {
  1422. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1423. }
  1424. public static void DoubleToByte(ref byte[] dst, double[,] src, int len = 1, int wordOffset = 0)
  1425. {
  1426. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1427. }
  1428. public static void DoubleToByte(ref byte[] dst, double[,,] src, int len = 1, int wordOffset = 0)
  1429. {
  1430. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1431. }
  1432. public static void DoubleToByte(ref byte[] dst, double[,,,] src, int len = 1, int wordOffset = 0)
  1433. {
  1434. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1435. }
  1436. public static void DoubleToByte(ref byte[] dst, double[,,,,] src, int len = 1, int wordOffset = 0)
  1437. {
  1438. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1439. }
  1440. public static void DoubleToByte(ref byte[] dst, double[,,,,,] src, int len = 1, int wordOffset = 0)
  1441. {
  1442. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1443. }
  1444. public static void DoubleToByte(ref byte[] dst, double[,,,,,,] src, int len = 1, int wordOffset = 0)
  1445. {
  1446. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1447. }
  1448. public static void DoubleToByte(ref byte[] dst, double[,,,,,,,] src, int len = 1, int wordOffset = 0)
  1449. {
  1450. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * sizeof(double));
  1451. }
  1452. public static void StringToByte(ref byte[] dst, byte[] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1453. {
  1454. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1455. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1456. }
  1457. public static void StringToByte(ref byte[] dst, byte[,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1458. {
  1459. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1460. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1461. }
  1462. public static void StringToByte(ref byte[] dst, byte[,,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1463. {
  1464. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1465. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1466. }
  1467. public static void StringToByte(ref byte[] dst, byte[,,,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1468. {
  1469. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1470. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1471. }
  1472. public static void StringToByte(ref byte[] dst, byte[,,,,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1473. {
  1474. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1475. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1476. }
  1477. public static void StringToByte(ref byte[] dst, byte[,,,,,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1478. {
  1479. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1480. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1481. }
  1482. public static void StringToByte(ref byte[] dst, byte[,,,,,,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1483. {
  1484. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1485. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1486. }
  1487. public static void StringToByte(ref byte[] dst, byte[,,,,,,,] src, int len = 1, int wordOffset = 0, int stringSize = 0)
  1488. {
  1489. Buffer.BlockCopy(src, 0, dst, wordOffset * 2, len * stringSize);
  1490. SwapBytes(dst, len * stringSize, wordOffset * 2);
  1491. }
  1492. public static void ByteTo_stMemArr(ref stMemArr dst, byte[] src, int len = 1, int wordOffset = 0)
  1493. {
  1494. ByteToUshort(ref dst.auSample, src, 100, 0 + wordOffset);
  1495. ByteToString(ref dst.astrSample, src, 10, 100 + wordOffset, 10);
  1496. }
  1497. private static void ByteToBase_stMemArr(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1498. {
  1499. int[] indices = NewIndices(dst);
  1500. int offset = wordOffset;
  1501. for ( int i = 0; i < len; i++ )
  1502. {
  1503. stMemArr elemTmp = new stMemArr();
  1504. NextIndices(dst, indices);
  1505. ByteTo_stMemArr(ref elemTmp, src, len, wordOffset);
  1506. dst.SetValue(elemTmp, indices);
  1507. wordOffset += stMemArr_WSIZE;
  1508. }
  1509. }
  1510. public static void ByteTo_stMemArr(ref stMemArr[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1511. {
  1512. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1513. }
  1514. public static void ByteTo_stMemArr(ref stMemArr[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1515. {
  1516. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1517. }
  1518. public static void ByteTo_stMemArr(ref stMemArr[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1519. {
  1520. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1521. }
  1522. public static void ByteTo_stMemArr(ref stMemArr[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1523. {
  1524. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1525. }
  1526. public static void ByteTo_stMemArr(ref stMemArr[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1527. {
  1528. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1529. }
  1530. public static void ByteTo_stMemArr(ref stMemArr[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1531. {
  1532. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1533. }
  1534. public static void ByteTo_stMemArr(ref stMemArr[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1535. {
  1536. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1537. }
  1538. public static void ByteTo_stMemArr(ref stMemArr[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1539. {
  1540. ByteToBase_stMemArr(dst, src, len, wordOffset);
  1541. }
  1542. public static void ByteTo_stNode(ref stNode dst, byte[] src, int len = 1, int wordOffset = 0)
  1543. {
  1544. ByteToBool(ref dst.xMember, src, 1, 0 + wordOffset, 0);
  1545. ByteToBool(ref dst.xMember2, src, 1, 0 + wordOffset, 1);
  1546. ByteToUshort(ref dst.uMember, src, 1, 1 + wordOffset);
  1547. ByteToShort(ref dst.iMember, src, 1, 2 + wordOffset);
  1548. ByteToUint(ref dst.duMember, src, 1, 4 + wordOffset);
  1549. ByteToInt(ref dst.diMember, src, 1, 6 + wordOffset);
  1550. ByteToFloat(ref dst.fMember, src, 1, 8 + wordOffset);
  1551. ByteToDouble(ref dst.dfMember, src, 1, 10 + wordOffset);
  1552. ByteToString(ref dst.strMember, src, 1, 14 + wordOffset, 16);
  1553. }
  1554. private static void ByteToBase_stNode(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1555. {
  1556. int[] indices = NewIndices(dst);
  1557. int offset = wordOffset;
  1558. for ( int i = 0; i < len; i++ )
  1559. {
  1560. stNode elemTmp = new stNode();
  1561. NextIndices(dst, indices);
  1562. ByteTo_stNode(ref elemTmp, src, len, wordOffset);
  1563. dst.SetValue(elemTmp, indices);
  1564. wordOffset += stNode_WSIZE;
  1565. }
  1566. }
  1567. public static void ByteTo_stNode(ref stNode[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1568. {
  1569. ByteToBase_stNode(dst, src, len, wordOffset);
  1570. }
  1571. public static void ByteTo_stNode(ref stNode[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1572. {
  1573. ByteToBase_stNode(dst, src, len, wordOffset);
  1574. }
  1575. public static void ByteTo_stNode(ref stNode[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1576. {
  1577. ByteToBase_stNode(dst, src, len, wordOffset);
  1578. }
  1579. public static void ByteTo_stNode(ref stNode[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1580. {
  1581. ByteToBase_stNode(dst, src, len, wordOffset);
  1582. }
  1583. public static void ByteTo_stNode(ref stNode[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1584. {
  1585. ByteToBase_stNode(dst, src, len, wordOffset);
  1586. }
  1587. public static void ByteTo_stNode(ref stNode[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1588. {
  1589. ByteToBase_stNode(dst, src, len, wordOffset);
  1590. }
  1591. public static void ByteTo_stNode(ref stNode[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1592. {
  1593. ByteToBase_stNode(dst, src, len, wordOffset);
  1594. }
  1595. public static void ByteTo_stNode(ref stNode[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1596. {
  1597. ByteToBase_stNode(dst, src, len, wordOffset);
  1598. }
  1599. public static void ByteTo_stParent(ref stParent dst, byte[] src, int len = 1, int wordOffset = 0)
  1600. {
  1601. ByteToBool(ref dst.xReq, src, 1, 0 + wordOffset, 0);
  1602. ByteToBool(ref dst.xCmp, src, 1, 0 + wordOffset, 1);
  1603. ByteToBool(ref dst.xErr, src, 1, 0 + wordOffset, 2);
  1604. ByteToUshort(ref dst.uErrCode, src, 1, 1 + wordOffset);
  1605. ByteTo_stNode(ref dst.stNode_Member, src, 1, 2 + wordOffset);
  1606. ByteTo_stNode(ref dst.astNode, src, 10, 24 + wordOffset);
  1607. }
  1608. private static void ByteToBase_stParent(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1609. {
  1610. int[] indices = NewIndices(dst);
  1611. int offset = wordOffset;
  1612. for ( int i = 0; i < len; i++ )
  1613. {
  1614. stParent elemTmp = new stParent();
  1615. NextIndices(dst, indices);
  1616. ByteTo_stParent(ref elemTmp, src, len, wordOffset);
  1617. dst.SetValue(elemTmp, indices);
  1618. wordOffset += stParent_WSIZE;
  1619. }
  1620. }
  1621. public static void ByteTo_stParent(ref stParent[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1622. {
  1623. ByteToBase_stParent(dst, src, len, wordOffset);
  1624. }
  1625. public static void ByteTo_stParent(ref stParent[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1626. {
  1627. ByteToBase_stParent(dst, src, len, wordOffset);
  1628. }
  1629. public static void ByteTo_stParent(ref stParent[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1630. {
  1631. ByteToBase_stParent(dst, src, len, wordOffset);
  1632. }
  1633. public static void ByteTo_stParent(ref stParent[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1634. {
  1635. ByteToBase_stParent(dst, src, len, wordOffset);
  1636. }
  1637. public static void ByteTo_stParent(ref stParent[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1638. {
  1639. ByteToBase_stParent(dst, src, len, wordOffset);
  1640. }
  1641. public static void ByteTo_stParent(ref stParent[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1642. {
  1643. ByteToBase_stParent(dst, src, len, wordOffset);
  1644. }
  1645. public static void ByteTo_stParent(ref stParent[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1646. {
  1647. ByteToBase_stParent(dst, src, len, wordOffset);
  1648. }
  1649. public static void ByteTo_stParent(ref stParent[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1650. {
  1651. ByteToBase_stParent(dst, src, len, wordOffset);
  1652. }
  1653. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW dst, byte[] src, int len = 1, int wordOffset = 0)
  1654. {
  1655. ByteToBool(ref dst.UpKeyPressed, src, 1, 0 + wordOffset, 0);
  1656. ByteToBool(ref dst.DownKeyPressed, src, 1, 0 + wordOffset, 1);
  1657. ByteToBool(ref dst.LeftKeyPressed, src, 1, 0 + wordOffset, 2);
  1658. ByteToBool(ref dst.RightKeyPressed, src, 1, 0 + wordOffset, 3);
  1659. ByteToBool(ref dst.MenuKeyPressed, src, 1, 0 + wordOffset, 4);
  1660. ByteToBool(ref dst.EnterKeyPressed, src, 1, 0 + wordOffset, 5);
  1661. ByteToBool(ref dst.UserMessageDisplayed, src, 1, 0 + wordOffset, 15);
  1662. ByteToBool(ref dst.BlinkLine, src, 4, 1 + wordOffset, 0);
  1663. ByteToBool(ref dst.DisplayUserMessage, src, 63, 2 + wordOffset, 1);
  1664. ByteToUshort(ref dst.UserMessageDisplayID, src, 1, 10 + wordOffset);
  1665. ByteToUshort(ref dst.InitialDispLangSetting, src, 1, 11 + wordOffset);
  1666. ByteToUshort(ref dst.InitialCommentNumberSetting, src, 1, 12 + wordOffset);
  1667. ByteToUshort(ref dst.WindowOperationDisable, src, 1, 13 + wordOffset);
  1668. ByteToUshort(ref dst.InitScreenSetValid, src, 1, 14 + wordOffset);
  1669. ByteToUshort(ref dst.InitScreenSetDeviceType, src, 1, 15 + wordOffset);
  1670. ByteToUint(ref dst.InitScreenSetScreenID, src, 1, 16 + wordOffset);
  1671. ByteToUint(ref dst.InitScreenSetDeviceNumber, src, 1, 18 + wordOffset);
  1672. ByteToUshort(ref dst.InitScreenSetDisplayFormat, src, 1, 20 + wordOffset);
  1673. ByteToUshort(ref dst.InitScreenSetDeviceDisplay, src, 1, 21 + wordOffset);
  1674. ByteToUshort(ref dst.InitScreenSetKeyLockStatus, src, 1, 22 + wordOffset);
  1675. ByteToUshort(ref dst.Reserved, src, 1, 23 + wordOffset);
  1676. }
  1677. private static void ByteToBase__ACCESS_WINDOW(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1678. {
  1679. int[] indices = NewIndices(dst);
  1680. int offset = wordOffset;
  1681. for ( int i = 0; i < len; i++ )
  1682. {
  1683. _ACCESS_WINDOW elemTmp = new _ACCESS_WINDOW();
  1684. NextIndices(dst, indices);
  1685. ByteTo__ACCESS_WINDOW(ref elemTmp, src, len, wordOffset);
  1686. dst.SetValue(elemTmp, indices);
  1687. wordOffset += _ACCESS_WINDOW_WSIZE;
  1688. }
  1689. }
  1690. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1691. {
  1692. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1693. }
  1694. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1695. {
  1696. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1697. }
  1698. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1699. {
  1700. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1701. }
  1702. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1703. {
  1704. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1705. }
  1706. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1707. {
  1708. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1709. }
  1710. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1711. {
  1712. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1713. }
  1714. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1715. {
  1716. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1717. }
  1718. public static void ByteTo__ACCESS_WINDOW(ref _ACCESS_WINDOW[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1719. {
  1720. ByteToBase__ACCESS_WINDOW(dst, src, len, wordOffset);
  1721. }
  1722. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL dst, byte[] src, int len = 1, int wordOffset = 0)
  1723. {
  1724. ByteToUshort(ref dst.FolderNumber, src, 1, 1 + wordOffset);
  1725. ByteToUshort(ref dst.CompleteFolderNumber, src, 1, 3 + wordOffset);
  1726. ByteToUshort(ref dst.FinCode, src, 1, 4 + wordOffset);
  1727. }
  1728. private static void ByteToBase__AUTOLOAD_CTRL(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1729. {
  1730. int[] indices = NewIndices(dst);
  1731. int offset = wordOffset;
  1732. for ( int i = 0; i < len; i++ )
  1733. {
  1734. _AUTOLOAD_CTRL elemTmp = new _AUTOLOAD_CTRL();
  1735. NextIndices(dst, indices);
  1736. ByteTo__AUTOLOAD_CTRL(ref elemTmp, src, len, wordOffset);
  1737. dst.SetValue(elemTmp, indices);
  1738. wordOffset += _AUTOLOAD_CTRL_WSIZE;
  1739. }
  1740. }
  1741. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1742. {
  1743. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1744. }
  1745. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1746. {
  1747. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1748. }
  1749. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1750. {
  1751. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1752. }
  1753. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1754. {
  1755. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1756. }
  1757. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1758. {
  1759. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1760. }
  1761. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1762. {
  1763. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1764. }
  1765. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1766. {
  1767. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1768. }
  1769. public static void ByteTo__AUTOLOAD_CTRL(ref _AUTOLOAD_CTRL[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1770. {
  1771. ByteToBase__AUTOLOAD_CTRL(dst, src, len, wordOffset);
  1772. }
  1773. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE dst, byte[] src, int len = 1, int wordOffset = 0)
  1774. {
  1775. ByteToBool(ref dst.Request, src, 1, 0 + wordOffset, 0);
  1776. ByteToBool(ref dst.Busy, src, 1, 0 + wordOffset, 1);
  1777. ByteToBool(ref dst.Complete, src, 1, 0 + wordOffset, 2);
  1778. ByteToBool(ref dst.Error, src, 1, 0 + wordOffset, 3);
  1779. }
  1780. private static void ByteToBase__CPU_MEMORY_SAVE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1781. {
  1782. int[] indices = NewIndices(dst);
  1783. int offset = wordOffset;
  1784. for ( int i = 0; i < len; i++ )
  1785. {
  1786. _CPU_MEMORY_SAVE elemTmp = new _CPU_MEMORY_SAVE();
  1787. NextIndices(dst, indices);
  1788. ByteTo__CPU_MEMORY_SAVE(ref elemTmp, src, len, wordOffset);
  1789. dst.SetValue(elemTmp, indices);
  1790. wordOffset += _CPU_MEMORY_SAVE_WSIZE;
  1791. }
  1792. }
  1793. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1794. {
  1795. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1796. }
  1797. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1798. {
  1799. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1800. }
  1801. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1802. {
  1803. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1804. }
  1805. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1806. {
  1807. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1808. }
  1809. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1810. {
  1811. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1812. }
  1813. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1814. {
  1815. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1816. }
  1817. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1818. {
  1819. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1820. }
  1821. public static void ByteTo__CPU_MEMORY_SAVE(ref _CPU_MEMORY_SAVE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1822. {
  1823. ByteToBase__CPU_MEMORY_SAVE(dst, src, len, wordOffset);
  1824. }
  1825. public static void ByteTo__DEV_INFO(ref _DEV_INFO dst, byte[] src, int len = 1, int wordOffset = 0)
  1826. {
  1827. ByteToUshort(ref dst.DevType, src, 1, 0 + wordOffset);
  1828. ByteToUshort(ref dst.BitOffset, src, 1, 1 + wordOffset);
  1829. ByteToUint(ref dst.DevNo, src, 1, 2 + wordOffset);
  1830. }
  1831. private static void ByteToBase__DEV_INFO(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1832. {
  1833. int[] indices = NewIndices(dst);
  1834. int offset = wordOffset;
  1835. for ( int i = 0; i < len; i++ )
  1836. {
  1837. _DEV_INFO elemTmp = new _DEV_INFO();
  1838. NextIndices(dst, indices);
  1839. ByteTo__DEV_INFO(ref elemTmp, src, len, wordOffset);
  1840. dst.SetValue(elemTmp, indices);
  1841. wordOffset += _DEV_INFO_WSIZE;
  1842. }
  1843. }
  1844. public static void ByteTo__DEV_INFO(ref _DEV_INFO[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1845. {
  1846. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1847. }
  1848. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1849. {
  1850. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1851. }
  1852. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1853. {
  1854. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1855. }
  1856. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1857. {
  1858. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1859. }
  1860. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1861. {
  1862. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1863. }
  1864. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1865. {
  1866. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1867. }
  1868. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1869. {
  1870. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1871. }
  1872. public static void ByteTo__DEV_INFO(ref _DEV_INFO[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1873. {
  1874. ByteToBase__DEV_INFO(dst, src, len, wordOffset);
  1875. }
  1876. public static void ByteTo__EC_MASTER(ref _EC_MASTER dst, byte[] src, int len = 1, int wordOffset = 0)
  1877. {
  1878. ByteToBool(ref dst.MasterError, src, 1, 0 + wordOffset, 0);
  1879. ByteToBool(ref dst.PDOActive, src, 1, 0 + wordOffset, 1);
  1880. ByteToBool(ref dst.PDOInactive, src, 1, 0 + wordOffset, 2);
  1881. ByteToBool(ref dst.PDOCommError, src, 1, 0 + wordOffset, 3);
  1882. ByteToBool(ref dst.RingError, src, 1, 0 + wordOffset, 4);
  1883. ByteToBool(ref dst.InDataInvalid, src, 1, 0 + wordOffset, 5);
  1884. ByteToBool(ref dst.PDOParticipationTbl, src, 512, 1 + wordOffset, 0);
  1885. ByteToBool(ref dst.PDOActiveTbl, src, 512, 33 + wordOffset, 0);
  1886. ByteToBool(ref dst.PDOCommErrorTbl, src, 512, 65 + wordOffset, 0);
  1887. ByteToBool(ref dst.SDOActiveTbl, src, 512, 97 + wordOffset, 0);
  1888. ByteToBool(ref dst.RegTbl, src, 512, 129 + wordOffset, 0);
  1889. ByteToBool(ref dst.ReserveTbl, src, 512, 161 + wordOffset, 0);
  1890. ByteToBool(ref dst.PDOStopReqTbl, src, 512, 193 + wordOffset, 0);
  1891. ByteToBool(ref dst.RingErrorTbl, src, 512, 225 + wordOffset, 0);
  1892. ByteToUshort(ref dst.EcStateTbl, src, 512, 257 + wordOffset);
  1893. ByteToUshort(ref dst.MasterErrorCode, src, 1, 769 + wordOffset);
  1894. ByteToUshort(ref dst.MasterErrorDetail1, src, 1, 770 + wordOffset);
  1895. ByteToUshort(ref dst.MasterErrorDetail2, src, 1, 771 + wordOffset);
  1896. }
  1897. private static void ByteToBase__EC_MASTER(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1898. {
  1899. int[] indices = NewIndices(dst);
  1900. int offset = wordOffset;
  1901. for ( int i = 0; i < len; i++ )
  1902. {
  1903. _EC_MASTER elemTmp = new _EC_MASTER();
  1904. NextIndices(dst, indices);
  1905. ByteTo__EC_MASTER(ref elemTmp, src, len, wordOffset);
  1906. dst.SetValue(elemTmp, indices);
  1907. wordOffset += _EC_MASTER_WSIZE;
  1908. }
  1909. }
  1910. public static void ByteTo__EC_MASTER(ref _EC_MASTER[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1911. {
  1912. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1913. }
  1914. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1915. {
  1916. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1917. }
  1918. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1919. {
  1920. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1921. }
  1922. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1923. {
  1924. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1925. }
  1926. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1927. {
  1928. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1929. }
  1930. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1931. {
  1932. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1933. }
  1934. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1935. {
  1936. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1937. }
  1938. public static void ByteTo__EC_MASTER(ref _EC_MASTER[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1939. {
  1940. ByteToBase__EC_MASTER(dst, src, len, wordOffset);
  1941. }
  1942. public static void ByteTo__EC_NODE(ref _EC_NODE dst, byte[] src, int len = 1, int wordOffset = 0)
  1943. {
  1944. ByteToUint(ref dst.VenderID, src, 1, 0 + wordOffset);
  1945. ByteToUint(ref dst.ProductCode, src, 1, 2 + wordOffset);
  1946. ByteToUint(ref dst.RevisionNo, src, 1, 4 + wordOffset);
  1947. ByteToUint(ref dst.SerialNo, src, 1, 6 + wordOffset);
  1948. ByteToUshort(ref dst.StationAlias, src, 1, 8 + wordOffset);
  1949. ByteToUshort(ref dst.ConnectNodeNo, src, 4, 10 + wordOffset);
  1950. ByteToUshort(ref dst.RxErrorCount, src, 4, 14 + wordOffset);
  1951. ByteToUshort(ref dst.EmgMsgErrorCode, src, 1, 18 + wordOffset);
  1952. ByteToUshort(ref dst.EmgMsgErrorReg, src, 1, 19 + wordOffset);
  1953. ByteToUshort(ref dst.EmgMsgData0_1, src, 1, 20 + wordOffset);
  1954. ByteToUshort(ref dst.EmgMsgData2_3, src, 1, 21 + wordOffset);
  1955. ByteToUshort(ref dst.EmgMsgData4, src, 1, 22 + wordOffset);
  1956. ByteToUshort(ref dst.NodeErrorCode, src, 1, 23 + wordOffset);
  1957. ByteToUshort(ref dst.NodeErrorDetail1, src, 1, 24 + wordOffset);
  1958. ByteToUshort(ref dst.NodeErrorDetail2, src, 1, 25 + wordOffset);
  1959. ByteToUshort(ref dst.NodeWarning, src, 1, 26 + wordOffset);
  1960. ByteToBool(ref dst.NodeError, src, 1, 27 + wordOffset, 0);
  1961. }
  1962. private static void ByteToBase__EC_NODE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  1963. {
  1964. int[] indices = NewIndices(dst);
  1965. int offset = wordOffset;
  1966. for ( int i = 0; i < len; i++ )
  1967. {
  1968. _EC_NODE elemTmp = new _EC_NODE();
  1969. NextIndices(dst, indices);
  1970. ByteTo__EC_NODE(ref elemTmp, src, len, wordOffset);
  1971. dst.SetValue(elemTmp, indices);
  1972. wordOffset += _EC_NODE_WSIZE;
  1973. }
  1974. }
  1975. public static void ByteTo__EC_NODE(ref _EC_NODE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  1976. {
  1977. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  1978. }
  1979. public static void ByteTo__EC_NODE(ref _EC_NODE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1980. {
  1981. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  1982. }
  1983. public static void ByteTo__EC_NODE(ref _EC_NODE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1984. {
  1985. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  1986. }
  1987. public static void ByteTo__EC_NODE(ref _EC_NODE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1988. {
  1989. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  1990. }
  1991. public static void ByteTo__EC_NODE(ref _EC_NODE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1992. {
  1993. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  1994. }
  1995. public static void ByteTo__EC_NODE(ref _EC_NODE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  1996. {
  1997. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  1998. }
  1999. public static void ByteTo__EC_NODE(ref _EC_NODE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2000. {
  2001. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  2002. }
  2003. public static void ByteTo__EC_NODE(ref _EC_NODE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2004. {
  2005. ByteToBase__EC_NODE(dst, src, len, wordOffset);
  2006. }
  2007. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL dst, byte[] src, int len = 1, int wordOffset = 0)
  2008. {
  2009. ByteToBool(ref dst.Error, src, 1, 0 + wordOffset, 5);
  2010. ByteToBool(ref dst.Warning, src, 1, 0 + wordOffset, 6);
  2011. ByteToBool(ref dst.ClearCurrentError, src, 1, 0 + wordOffset, 9);
  2012. ByteToBool(ref dst.ClearHistory, src, 1, 0 + wordOffset, 10);
  2013. }
  2014. private static void ByteToBase__ERROR_CTRL(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2015. {
  2016. int[] indices = NewIndices(dst);
  2017. int offset = wordOffset;
  2018. for ( int i = 0; i < len; i++ )
  2019. {
  2020. _ERROR_CTRL elemTmp = new _ERROR_CTRL();
  2021. NextIndices(dst, indices);
  2022. ByteTo__ERROR_CTRL(ref elemTmp, src, len, wordOffset);
  2023. dst.SetValue(elemTmp, indices);
  2024. wordOffset += _ERROR_CTRL_WSIZE;
  2025. }
  2026. }
  2027. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2028. {
  2029. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2030. }
  2031. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2032. {
  2033. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2034. }
  2035. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2036. {
  2037. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2038. }
  2039. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2040. {
  2041. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2042. }
  2043. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2044. {
  2045. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2046. }
  2047. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2048. {
  2049. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2050. }
  2051. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2052. {
  2053. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2054. }
  2055. public static void ByteTo__ERROR_CTRL(ref _ERROR_CTRL[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2056. {
  2057. ByteToBase__ERROR_CTRL(dst, src, len, wordOffset);
  2058. }
  2059. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL dst, byte[] src, int len = 1, int wordOffset = 0)
  2060. {
  2061. ByteToUshort(ref dst.YearMonth, src, 1, 0 + wordOffset);
  2062. ByteToUshort(ref dst.Day, src, 1, 1 + wordOffset);
  2063. ByteToUshort(ref dst.Hour, src, 1, 2 + wordOffset);
  2064. ByteToUshort(ref dst.Minute, src, 1, 3 + wordOffset);
  2065. ByteToUshort(ref dst.Second, src, 1, 4 + wordOffset);
  2066. ByteToUshort(ref dst.ErrorNumber, src, 1, 5 + wordOffset);
  2067. ByteToUshort(ref dst.ValidCount, src, 1, 6 + wordOffset);
  2068. ByteToUshort(ref dst.Detail, src, 20, 7 + wordOffset);
  2069. }
  2070. private static void ByteToBase__ERROR_DETAIL(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2071. {
  2072. int[] indices = NewIndices(dst);
  2073. int offset = wordOffset;
  2074. for ( int i = 0; i < len; i++ )
  2075. {
  2076. _ERROR_DETAIL elemTmp = new _ERROR_DETAIL();
  2077. NextIndices(dst, indices);
  2078. ByteTo__ERROR_DETAIL(ref elemTmp, src, len, wordOffset);
  2079. dst.SetValue(elemTmp, indices);
  2080. wordOffset += _ERROR_DETAIL_WSIZE;
  2081. }
  2082. }
  2083. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2084. {
  2085. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2086. }
  2087. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2088. {
  2089. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2090. }
  2091. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2092. {
  2093. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2094. }
  2095. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2096. {
  2097. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2098. }
  2099. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2100. {
  2101. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2102. }
  2103. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2104. {
  2105. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2106. }
  2107. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2108. {
  2109. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2110. }
  2111. public static void ByteTo__ERROR_DETAIL(ref _ERROR_DETAIL[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2112. {
  2113. ByteToBase__ERROR_DETAIL(dst, src, len, wordOffset);
  2114. }
  2115. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT dst, byte[] src, int len = 1, int wordOffset = 0)
  2116. {
  2117. ByteToBool(ref dst.Connected, src, 49, 0 + wordOffset, 0);
  2118. ByteToBool(ref dst.LoadOption, src, 49, 4 + wordOffset, 0);
  2119. ByteToUshort(ref dst.UnitNumber, src, 1, 75 + wordOffset);
  2120. }
  2121. private static void ByteToBase__EXPANSION_UNIT(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2122. {
  2123. int[] indices = NewIndices(dst);
  2124. int offset = wordOffset;
  2125. for ( int i = 0; i < len; i++ )
  2126. {
  2127. _EXPANSION_UNIT elemTmp = new _EXPANSION_UNIT();
  2128. NextIndices(dst, indices);
  2129. ByteTo__EXPANSION_UNIT(ref elemTmp, src, len, wordOffset);
  2130. dst.SetValue(elemTmp, indices);
  2131. wordOffset += _EXPANSION_UNIT_WSIZE;
  2132. }
  2133. }
  2134. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2135. {
  2136. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2137. }
  2138. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2139. {
  2140. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2141. }
  2142. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2143. {
  2144. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2145. }
  2146. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2147. {
  2148. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2149. }
  2150. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2151. {
  2152. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2153. }
  2154. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2155. {
  2156. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2157. }
  2158. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2159. {
  2160. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2161. }
  2162. public static void ByteTo__EXPANSION_UNIT(ref _EXPANSION_UNIT[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2163. {
  2164. ByteToBase__EXPANSION_UNIT(dst, src, len, wordOffset);
  2165. }
  2166. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS dst, byte[] src, int len = 1, int wordOffset = 0)
  2167. {
  2168. ByteToUshort(ref dst.ModifiedDate, src, 6, 0 + wordOffset);
  2169. ByteToUint(ref dst.FileSize, src, 1, 6 + wordOffset);
  2170. ByteToBool(ref dst.ReadOnly, src, 1, 8 + wordOffset, 0);
  2171. ByteToBool(ref dst.HiddenFile, src, 1, 8 + wordOffset, 1);
  2172. ByteToBool(ref dst.SystemFile, src, 1, 8 + wordOffset, 2);
  2173. ByteToBool(ref dst.VolumeLabel, src, 1, 8 + wordOffset, 3);
  2174. ByteToBool(ref dst.Folder, src, 1, 8 + wordOffset, 4);
  2175. ByteToBool(ref dst.Archive, src, 1, 8 + wordOffset, 5);
  2176. ByteToUshort(ref dst.Reserved, src, 1, 9 + wordOffset);
  2177. }
  2178. private static void ByteToBase__FILE_STATUS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2179. {
  2180. int[] indices = NewIndices(dst);
  2181. int offset = wordOffset;
  2182. for ( int i = 0; i < len; i++ )
  2183. {
  2184. _FILE_STATUS elemTmp = new _FILE_STATUS();
  2185. NextIndices(dst, indices);
  2186. ByteTo__FILE_STATUS(ref elemTmp, src, len, wordOffset);
  2187. dst.SetValue(elemTmp, indices);
  2188. wordOffset += _FILE_STATUS_WSIZE;
  2189. }
  2190. }
  2191. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2192. {
  2193. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2194. }
  2195. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2196. {
  2197. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2198. }
  2199. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2200. {
  2201. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2202. }
  2203. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2204. {
  2205. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2206. }
  2207. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2208. {
  2209. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2210. }
  2211. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2212. {
  2213. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2214. }
  2215. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2216. {
  2217. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2218. }
  2219. public static void ByteTo__FILE_STATUS(ref _FILE_STATUS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2220. {
  2221. ByteToBase__FILE_STATUS(dst, src, len, wordOffset);
  2222. }
  2223. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE dst, byte[] src, int len = 1, int wordOffset = 0)
  2224. {
  2225. ByteToBool(ref dst.ExecEnable, src, 1, 0 + wordOffset, 0);
  2226. ByteToBool(ref dst.InOperation, src, 1, 0 + wordOffset, 1);
  2227. ByteToBool(ref dst.FileWriteEnd, src, 1, 0 + wordOffset, 2);
  2228. ByteToBool(ref dst.BufferHalfAlm, src, 1, 0 + wordOffset, 3);
  2229. ByteToBool(ref dst.BufferOverflow, src, 1, 0 + wordOffset, 4);
  2230. ByteToBool(ref dst.WriteDuringRun, src, 1, 0 + wordOffset, 5);
  2231. ByteToBool(ref dst.LoggingTraceError, src, 1, 0 + wordOffset, 8);
  2232. ByteToBool(ref dst.NoMemoryCapacity, src, 1, 0 + wordOffset, 9);
  2233. ByteToBool(ref dst.DeviceTriggerSetError, src, 1, 0 + wordOffset, 10);
  2234. ByteToBool(ref dst.FileSaveTriggerMonitor, src, 1, 0 + wordOffset, 11);
  2235. ByteToBool(ref dst.DataAcquireComplete, src, 1, 0 + wordOffset, 12);
  2236. ByteToUshort(ref dst.MinBufferSpace, src, 1, 1 + wordOffset);
  2237. ByteToUshort(ref dst.LoopBufferSpace, src, 1, 2 + wordOffset);
  2238. ByteToUshort(ref dst.FileSavingCounter, src, 1, 3 + wordOffset);
  2239. ByteToUshort(ref dst.Reserved, src, 6, 4 + wordOffset);
  2240. }
  2241. private static void ByteToBase__LOGGING_TRACE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2242. {
  2243. int[] indices = NewIndices(dst);
  2244. int offset = wordOffset;
  2245. for ( int i = 0; i < len; i++ )
  2246. {
  2247. _LOGGING_TRACE elemTmp = new _LOGGING_TRACE();
  2248. NextIndices(dst, indices);
  2249. ByteTo__LOGGING_TRACE(ref elemTmp, src, len, wordOffset);
  2250. dst.SetValue(elemTmp, indices);
  2251. wordOffset += _LOGGING_TRACE_WSIZE;
  2252. }
  2253. }
  2254. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2255. {
  2256. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2257. }
  2258. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2259. {
  2260. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2261. }
  2262. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2263. {
  2264. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2265. }
  2266. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2267. {
  2268. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2269. }
  2270. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2271. {
  2272. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2273. }
  2274. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2275. {
  2276. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2277. }
  2278. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2279. {
  2280. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2281. }
  2282. public static void ByteTo__LOGGING_TRACE(ref _LOGGING_TRACE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2283. {
  2284. ByteToBase__LOGGING_TRACE(dst, src, len, wordOffset);
  2285. }
  2286. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  2287. {
  2288. ByteToUshort(ref dst.UnitCoordTrans, src, 1, 0 + wordOffset);
  2289. ByteToDouble(ref dst.PosCycle, src, 1, 4 + wordOffset);
  2290. ByteToUint(ref dst.CoordTransDenominator, src, 1, 12 + wordOffset);
  2291. ByteToUint(ref dst.CoordTransNumerator, src, 1, 14 + wordOffset);
  2292. ByteToUshort(ref dst.SoftLimitCoordSystem, src, 1, 16 + wordOffset);
  2293. ByteToUshort(ref dst.UseSoftLimit, src, 1, 17 + wordOffset);
  2294. ByteToDouble(ref dst.SoftLimitPositivePos, src, 1, 20 + wordOffset);
  2295. ByteToDouble(ref dst.SoftLimitNegativePos, src, 1, 24 + wordOffset);
  2296. ByteToUshort(ref dst.AxisErrorSetting, src, 1, 28 + wordOffset);
  2297. ByteToUshort(ref dst.AxisCtrlSetting, src, 1, 29 + wordOffset);
  2298. ByteToUshort(ref dst.ServoEndCheckTime, src, 1, 30 + wordOffset);
  2299. ByteToDouble(ref dst.BacklashCompensationMovement, src, 1, 32 + wordOffset);
  2300. ByteToDouble(ref dst.ServoEndRange, src, 1, 36 + wordOffset);
  2301. ByteToUshort(ref dst.ChgToPosCtrlModeVelThresh, src, 1, 40 + wordOffset);
  2302. ByteToInt(ref dst.AbsEncUpperLim, src, 1, 42 + wordOffset);
  2303. ByteToInt(ref dst.AbsEncLowerLim, src, 1, 44 + wordOffset);
  2304. ByteToUshort(ref dst.Reserved, src, 54, 46 + wordOffset);
  2305. }
  2306. private static void ByteToBase__MC_AXIS_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2307. {
  2308. int[] indices = NewIndices(dst);
  2309. int offset = wordOffset;
  2310. for ( int i = 0; i < len; i++ )
  2311. {
  2312. _MC_AXIS_CFG elemTmp = new _MC_AXIS_CFG();
  2313. NextIndices(dst, indices);
  2314. ByteTo__MC_AXIS_CFG(ref elemTmp, src, len, wordOffset);
  2315. dst.SetValue(elemTmp, indices);
  2316. wordOffset += _MC_AXIS_CFG_WSIZE;
  2317. }
  2318. }
  2319. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2320. {
  2321. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2322. }
  2323. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2324. {
  2325. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2326. }
  2327. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2328. {
  2329. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2330. }
  2331. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2332. {
  2333. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2334. }
  2335. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2336. {
  2337. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2338. }
  2339. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2340. {
  2341. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2342. }
  2343. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2344. {
  2345. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2346. }
  2347. public static void ByteTo__MC_AXIS_CFG(ref _MC_AXIS_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2348. {
  2349. ByteToBase__MC_AXIS_CFG(dst, src, len, wordOffset);
  2350. }
  2351. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE dst, byte[] src, int len = 1, int wordOffset = 0)
  2352. {
  2353. ByteToUshort(ref dst.PosCtrlStart, src, 1, 2 + wordOffset);
  2354. ByteToUshort(ref dst.SetPosition, src, 1, 4 + wordOffset);
  2355. ByteToUshort(ref dst.ChgTargetPos, src, 1, 5 + wordOffset);
  2356. ByteToUshort(ref dst.ChgTargetVel, src, 1, 6 + wordOffset);
  2357. ByteToUshort(ref dst.Stop, src, 1, 7 + wordOffset);
  2358. ByteToUshort(ref dst.RestartPositioning, src, 1, 8 + wordOffset);
  2359. ByteToUshort(ref dst.MoveToNextPoint, src, 1, 9 + wordOffset);
  2360. ByteToUshort(ref dst.SuspendNextPositioning, src, 1, 10 + wordOffset);
  2361. ByteToUshort(ref dst.StopAtTargetPosition, src, 1, 11 + wordOffset);
  2362. ByteToUshort(ref dst.Homing, src, 1, 12 + wordOffset);
  2363. ByteToUshort(ref dst.MoveToBasePosition, src, 1, 13 + wordOffset);
  2364. ByteToUshort(ref dst.FastMoveToHome, src, 1, 14 + wordOffset);
  2365. ByteToUshort(ref dst.Teaching, src, 1, 15 + wordOffset);
  2366. ByteToUshort(ref dst.StartSpecialFunc, src, 1, 17 + wordOffset);
  2367. ByteToUshort(ref dst.ReleaseSpecialFunc, src, 1, 18 + wordOffset);
  2368. ByteToUshort(ref dst.ChgCtrlMode, src, 1, 19 + wordOffset);
  2369. ByteToUshort(ref dst.StartSyncCtrl, src, 1, 20 + wordOffset);
  2370. ByteToUshort(ref dst.ReleaseSyncCtrl, src, 1, 21 + wordOffset);
  2371. ByteToUshort(ref dst.ChgCam, src, 1, 22 + wordOffset);
  2372. ByteToUshort(ref dst.ReengageSyncTrqLimitClutch, src, 1, 23 + wordOffset);
  2373. }
  2374. private static void ByteToBase__MC_AXIS_CMP_CODE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2375. {
  2376. int[] indices = NewIndices(dst);
  2377. int offset = wordOffset;
  2378. for ( int i = 0; i < len; i++ )
  2379. {
  2380. _MC_AXIS_CMP_CODE elemTmp = new _MC_AXIS_CMP_CODE();
  2381. NextIndices(dst, indices);
  2382. ByteTo__MC_AXIS_CMP_CODE(ref elemTmp, src, len, wordOffset);
  2383. dst.SetValue(elemTmp, indices);
  2384. wordOffset += _MC_AXIS_CMP_CODE_WSIZE;
  2385. }
  2386. }
  2387. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2388. {
  2389. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2390. }
  2391. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2392. {
  2393. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2394. }
  2395. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2396. {
  2397. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2398. }
  2399. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2400. {
  2401. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2402. }
  2403. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2404. {
  2405. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2406. }
  2407. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2408. {
  2409. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2410. }
  2411. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2412. {
  2413. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2414. }
  2415. public static void ByteTo__MC_AXIS_CMP_CODE(ref _MC_AXIS_CMP_CODE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2416. {
  2417. ByteToBase__MC_AXIS_CMP_CODE(dst, src, len, wordOffset);
  2418. }
  2419. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL dst, byte[] src, int len = 1, int wordOffset = 0)
  2420. {
  2421. ByteToUshort(ref dst.PointNo, src, 1, 0 + wordOffset);
  2422. ByteToUshort(ref dst.CtrlMode, src, 1, 1 + wordOffset);
  2423. ByteToDouble(ref dst.SetPosition, src, 1, 4 + wordOffset);
  2424. ByteToDouble(ref dst.ChgPositioningTargetPos, src, 1, 8 + wordOffset);
  2425. ByteToDouble(ref dst.ChgPositioningTargetVel, src, 1, 12 + wordOffset);
  2426. ByteToDouble(ref dst.ChgVel, src, 1, 16 + wordOffset);
  2427. ByteToUshort(ref dst.Override, src, 1, 20 + wordOffset);
  2428. ByteToUshort(ref dst.SelectSpecialFunc, src, 1, 21 + wordOffset);
  2429. ByteToDouble(ref dst.AbsPosFollowUpCtrlCmdVal, src, 1, 24 + wordOffset);
  2430. ByteToDouble(ref dst.SyncTypeFollowUpCtrlCmdVal, src, 1, 28 + wordOffset);
  2431. ByteToDouble(ref dst.VelCtrlCmdVel, src, 1, 32 + wordOffset);
  2432. ByteToDouble(ref dst.VelCtrlTrqLimit, src, 1, 36 + wordOffset);
  2433. ByteToDouble(ref dst.VelCtrlTrqFeedforward, src, 1, 40 + wordOffset);
  2434. ByteToDouble(ref dst.TrqCtrlCmdTrq, src, 1, 44 + wordOffset);
  2435. ByteToDouble(ref dst.TrqCtrlVelLimit, src, 1, 48 + wordOffset);
  2436. ByteToDouble(ref dst.PosCtrlTrqLimit, src, 1, 52 + wordOffset);
  2437. ByteToDouble(ref dst.PosCtrlVelFeedforward, src, 1, 56 + wordOffset);
  2438. ByteToDouble(ref dst.PosCtrlTrqFeedforward, src, 1, 60 + wordOffset);
  2439. ByteToUshort(ref dst.ChgSyncCamNo, src, 1, 64 + wordOffset);
  2440. ByteToUshort(ref dst.ChgSyncCamPos, src, 1, 65 + wordOffset);
  2441. ByteToUshort(ref dst.Controlword, src, 1, 68 + wordOffset);
  2442. ByteToUshort(ref dst.TouchProbeFunction, src, 1, 69 + wordOffset);
  2443. ByteToUshort(ref dst.Reserved, src, 30, 70 + wordOffset);
  2444. }
  2445. private static void ByteToBase__MC_AXIS_CTRL(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2446. {
  2447. int[] indices = NewIndices(dst);
  2448. int offset = wordOffset;
  2449. for ( int i = 0; i < len; i++ )
  2450. {
  2451. _MC_AXIS_CTRL elemTmp = new _MC_AXIS_CTRL();
  2452. NextIndices(dst, indices);
  2453. ByteTo__MC_AXIS_CTRL(ref elemTmp, src, len, wordOffset);
  2454. dst.SetValue(elemTmp, indices);
  2455. wordOffset += _MC_AXIS_CTRL_WSIZE;
  2456. }
  2457. }
  2458. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2459. {
  2460. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2461. }
  2462. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2463. {
  2464. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2465. }
  2466. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2467. {
  2468. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2469. }
  2470. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2471. {
  2472. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2473. }
  2474. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2475. {
  2476. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2477. }
  2478. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2479. {
  2480. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2481. }
  2482. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2483. {
  2484. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2485. }
  2486. public static void ByteTo__MC_AXIS_CTRL(ref _MC_AXIS_CTRL[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2487. {
  2488. ByteToBase__MC_AXIS_CTRL(dst, src, len, wordOffset);
  2489. }
  2490. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  2491. {
  2492. ByteToUshort(ref dst.Axis, src, 16, 0 + wordOffset);
  2493. }
  2494. private static void ByteToBase__MC_AXIS_GROUP_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2495. {
  2496. int[] indices = NewIndices(dst);
  2497. int offset = wordOffset;
  2498. for ( int i = 0; i < len; i++ )
  2499. {
  2500. _MC_AXIS_GROUP_CFG elemTmp = new _MC_AXIS_GROUP_CFG();
  2501. NextIndices(dst, indices);
  2502. ByteTo__MC_AXIS_GROUP_CFG(ref elemTmp, src, len, wordOffset);
  2503. dst.SetValue(elemTmp, indices);
  2504. wordOffset += _MC_AXIS_GROUP_CFG_WSIZE;
  2505. }
  2506. }
  2507. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2508. {
  2509. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2510. }
  2511. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2512. {
  2513. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2514. }
  2515. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2516. {
  2517. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2518. }
  2519. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2520. {
  2521. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2522. }
  2523. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2524. {
  2525. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2526. }
  2527. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2528. {
  2529. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2530. }
  2531. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2532. {
  2533. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2534. }
  2535. public static void ByteTo__MC_AXIS_GROUP_CFG(ref _MC_AXIS_GROUP_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2536. {
  2537. ByteToBase__MC_AXIS_GROUP_CFG(dst, src, len, wordOffset);
  2538. }
  2539. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF dst, byte[] src, int len = 1, int wordOffset = 0)
  2540. {
  2541. ByteToUshort(ref dst.AxisGroupNo, src, 1, 0 + wordOffset);
  2542. }
  2543. private static void ByteToBase__MC_AXIS_GROUP_REF(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2544. {
  2545. int[] indices = NewIndices(dst);
  2546. int offset = wordOffset;
  2547. for ( int i = 0; i < len; i++ )
  2548. {
  2549. _MC_AXIS_GROUP_REF elemTmp = new _MC_AXIS_GROUP_REF();
  2550. NextIndices(dst, indices);
  2551. ByteTo__MC_AXIS_GROUP_REF(ref elemTmp, src, len, wordOffset);
  2552. dst.SetValue(elemTmp, indices);
  2553. wordOffset += _MC_AXIS_GROUP_REF_WSIZE;
  2554. }
  2555. }
  2556. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2557. {
  2558. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2559. }
  2560. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2561. {
  2562. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2563. }
  2564. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2565. {
  2566. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2567. }
  2568. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2569. {
  2570. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2571. }
  2572. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2573. {
  2574. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2575. }
  2576. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2577. {
  2578. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2579. }
  2580. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2581. {
  2582. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2583. }
  2584. public static void ByteTo__MC_AXIS_GROUP_REF(ref _MC_AXIS_GROUP_REF[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2585. {
  2586. ByteToBase__MC_AXIS_GROUP_REF(dst, src, len, wordOffset);
  2587. }
  2588. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS dst, byte[] src, int len = 1, int wordOffset = 0)
  2589. {
  2590. ByteToBool(ref dst.PositiveLimit, src, 1, 0 + wordOffset, 0);
  2591. ByteToBool(ref dst.NegativeLimit, src, 1, 0 + wordOffset, 1);
  2592. ByteToBool(ref dst.HomeSensor, src, 1, 0 + wordOffset, 2);
  2593. ByteToBool(ref dst.StopSensor, src, 1, 0 + wordOffset, 3);
  2594. ByteToBool(ref dst.SyncCtrlExtInput, src, 1, 0 + wordOffset, 4);
  2595. ByteToBool(ref dst.ServoEnd, src, 1, 0 + wordOffset, 6);
  2596. ByteToBool(ref dst.ServoReady, src, 1, 0 + wordOffset, 7);
  2597. ByteToBool(ref dst.DrvAlarm, src, 1, 0 + wordOffset, 8);
  2598. ByteToBool(ref dst.ServoOn, src, 1, 0 + wordOffset, 14);
  2599. ByteToBool(ref dst.Reserved, src, 1, 0 + wordOffset, 15);
  2600. }
  2601. private static void ByteToBase__MC_AXIS_IO_STATUS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2602. {
  2603. int[] indices = NewIndices(dst);
  2604. int offset = wordOffset;
  2605. for ( int i = 0; i < len; i++ )
  2606. {
  2607. _MC_AXIS_IO_STATUS elemTmp = new _MC_AXIS_IO_STATUS();
  2608. NextIndices(dst, indices);
  2609. ByteTo__MC_AXIS_IO_STATUS(ref elemTmp, src, len, wordOffset);
  2610. dst.SetValue(elemTmp, indices);
  2611. wordOffset += _MC_AXIS_IO_STATUS_WSIZE;
  2612. }
  2613. }
  2614. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2615. {
  2616. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2617. }
  2618. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2619. {
  2620. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2621. }
  2622. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2623. {
  2624. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2625. }
  2626. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2627. {
  2628. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2629. }
  2630. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2631. {
  2632. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2633. }
  2634. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2635. {
  2636. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2637. }
  2638. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2639. {
  2640. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2641. }
  2642. public static void ByteTo__MC_AXIS_IO_STATUS(ref _MC_AXIS_IO_STATUS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2643. {
  2644. ByteToBase__MC_AXIS_IO_STATUS(dst, src, len, wordOffset);
  2645. }
  2646. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP dst, byte[] src, int len = 1, int wordOffset = 0)
  2647. {
  2648. ByteToBool(ref dst.PosCtrlAvl, src, 1, 0 + wordOffset, 0);
  2649. ByteToBool(ref dst.VelCtrlAvl, src, 1, 0 + wordOffset, 1);
  2650. ByteToBool(ref dst.TrqCtrlAvl, src, 1, 0 + wordOffset, 2);
  2651. ByteToBool(ref dst.FeedbackTrqAvl, src, 1, 0 + wordOffset, 3);
  2652. ByteToBool(ref dst.StopSensorAvl, src, 1, 0 + wordOffset, 4);
  2653. ByteToBool(ref dst.HomingBaseAvl, src, 1, 0 + wordOffset, 8);
  2654. ByteToBool(ref dst.HomingDogNoZAvl, src, 1, 0 + wordOffset, 9);
  2655. ByteToBool(ref dst.HomingDogPressAvl, src, 1, 0 + wordOffset, 10);
  2656. ByteToBool(ref dst.HomingLimitSwAvl, src, 1, 0 + wordOffset, 11);
  2657. ByteToBool(ref dst.HomingImmZAvl, src, 1, 0 + wordOffset, 12);
  2658. ByteToBool(ref dst.PosCtrlTrqLimitAvl, src, 1, 1 + wordOffset, 0);
  2659. ByteToBool(ref dst.PosCtrlVelFeedforwardAvl, src, 1, 1 + wordOffset, 1);
  2660. ByteToBool(ref dst.PosCtrlTrqFeedforwardAvl, src, 1, 1 + wordOffset, 2);
  2661. ByteToBool(ref dst.VelCtrlTrqLimitAvl, src, 1, 1 + wordOffset, 3);
  2662. ByteToBool(ref dst.VelCtrlTrqFeedforwardAvl, src, 1, 1 + wordOffset, 4);
  2663. ByteToBool(ref dst.TrqCtrlVelLimitAvl, src, 1, 1 + wordOffset, 5);
  2664. ByteToBool(ref dst.DrvAlarmCodeAvl, src, 1, 1 + wordOffset, 6);
  2665. ByteToBool(ref dst.Reserved, src, 9, 1 + wordOffset, 7);
  2666. }
  2667. private static void ByteToBase__MC_AXIS_MOTION_FUNC_MAP(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2668. {
  2669. int[] indices = NewIndices(dst);
  2670. int offset = wordOffset;
  2671. for ( int i = 0; i < len; i++ )
  2672. {
  2673. _MC_AXIS_MOTION_FUNC_MAP elemTmp = new _MC_AXIS_MOTION_FUNC_MAP();
  2674. NextIndices(dst, indices);
  2675. ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref elemTmp, src, len, wordOffset);
  2676. dst.SetValue(elemTmp, indices);
  2677. wordOffset += _MC_AXIS_MOTION_FUNC_MAP_WSIZE;
  2678. }
  2679. }
  2680. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2681. {
  2682. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2683. }
  2684. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2685. {
  2686. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2687. }
  2688. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2689. {
  2690. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2691. }
  2692. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2693. {
  2694. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2695. }
  2696. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2697. {
  2698. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2699. }
  2700. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2701. {
  2702. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2703. }
  2704. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2705. {
  2706. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2707. }
  2708. public static void ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref _MC_AXIS_MOTION_FUNC_MAP[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2709. {
  2710. ByteToBase__MC_AXIS_MOTION_FUNC_MAP(dst, src, len, wordOffset);
  2711. }
  2712. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS dst, byte[] src, int len = 1, int wordOffset = 0)
  2713. {
  2714. ByteToUshort(ref dst.ErrorCode, src, 1, 0 + wordOffset);
  2715. ByteToUshort(ref dst.ErrorDetail, src, 5, 1 + wordOffset);
  2716. ByteToUshort(ref dst.WarningCode, src, 1, 6 + wordOffset);
  2717. ByteToUshort(ref dst.WarningDetail, src, 5, 7 + wordOffset);
  2718. ByteTo__MC_AXIS_IO_STATUS(ref dst.IOStatus, src, 1, 12 + wordOffset);
  2719. ByteToUshort(ref dst.PosCtrlState, src, 1, 13 + wordOffset);
  2720. ByteToDouble(ref dst.CmdPos, src, 1, 16 + wordOffset);
  2721. ByteToDouble(ref dst.CmdVel, src, 1, 20 + wordOffset);
  2722. ByteToInt(ref dst.CmdPls, src, 1, 24 + wordOffset);
  2723. ByteToDouble(ref dst.MechanicalPos, src, 1, 28 + wordOffset);
  2724. ByteToUshort(ref dst.CurrentPointNo, src, 1, 32 + wordOffset);
  2725. ByteToUshort(ref dst.MCode, src, 1, 33 + wordOffset);
  2726. ByteToDouble(ref dst.TargetPos, src, 1, 36 + wordOffset);
  2727. ByteToDouble(ref dst.InheritedVel, src, 1, 40 + wordOffset);
  2728. ByteToUshort(ref dst.CurrentCtrlMode, src, 1, 45 + wordOffset);
  2729. ByteToInt(ref dst.FeedbackPls, src, 1, 46 + wordOffset);
  2730. ByteToDouble(ref dst.ActPos, src, 1, 48 + wordOffset);
  2731. ByteToDouble(ref dst.ActVel, src, 1, 52 + wordOffset);
  2732. ByteToUshort(ref dst.DrvAlarmCode, src, 1, 56 + wordOffset);
  2733. ByteToInt(ref dst.EcatStatus, src, 1, 58 + wordOffset);
  2734. ByteToUshort(ref dst.DrvAlarmDetail1, src, 1, 60 + wordOffset);
  2735. ByteToUshort(ref dst.DrvAlarmDetail2, src, 1, 61 + wordOffset);
  2736. ByteToUshort(ref dst.EcatNodeAdr, src, 1, 62 + wordOffset);
  2737. ByteToUshort(ref dst.AxisIndex, src, 1, 63 + wordOffset);
  2738. ByteToDouble(ref dst.TrqLimitMon, src, 1, 64 + wordOffset);
  2739. ByteToDouble(ref dst.TrqFeedforwardMon, src, 1, 68 + wordOffset);
  2740. ByteToDouble(ref dst.VelLimitMon, src, 1, 72 + wordOffset);
  2741. ByteToDouble(ref dst.VelFeedforwardMon, src, 1, 76 + wordOffset);
  2742. ByteToDouble(ref dst.FeedbackVel, src, 1, 80 + wordOffset);
  2743. ByteToDouble(ref dst.FeedbackTrq, src, 1, 84 + wordOffset);
  2744. ByteToInt(ref dst.PosDeviation, src, 1, 88 + wordOffset);
  2745. ByteToUshort(ref dst.CurrentSettlingTime, src, 1, 90 + wordOffset);
  2746. ByteToUshort(ref dst.MaxSettlingTime, src, 1, 91 + wordOffset);
  2747. ByteTo__MC_AXIS_MOTION_FUNC_MAP(ref dst.MotionFuncMapSetting, src, 1, 92 + wordOffset);
  2748. ByteToUshort(ref dst.StopSensorDetectionNum, src, 1, 94 + wordOffset);
  2749. ByteToDouble(ref dst.StopSensorPos, src, 1, 96 + wordOffset);
  2750. ByteToUshort(ref dst.Reserved, src, 12, 100 + wordOffset);
  2751. }
  2752. private static void ByteToBase__MC_AXIS_STATUS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2753. {
  2754. int[] indices = NewIndices(dst);
  2755. int offset = wordOffset;
  2756. for ( int i = 0; i < len; i++ )
  2757. {
  2758. _MC_AXIS_STATUS elemTmp = new _MC_AXIS_STATUS();
  2759. NextIndices(dst, indices);
  2760. ByteTo__MC_AXIS_STATUS(ref elemTmp, src, len, wordOffset);
  2761. dst.SetValue(elemTmp, indices);
  2762. wordOffset += _MC_AXIS_STATUS_WSIZE;
  2763. }
  2764. }
  2765. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2766. {
  2767. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2768. }
  2769. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2770. {
  2771. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2772. }
  2773. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2774. {
  2775. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2776. }
  2777. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2778. {
  2779. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2780. }
  2781. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2782. {
  2783. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2784. }
  2785. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2786. {
  2787. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2788. }
  2789. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2790. {
  2791. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2792. }
  2793. public static void ByteTo__MC_AXIS_STATUS(ref _MC_AXIS_STATUS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2794. {
  2795. ByteToBase__MC_AXIS_STATUS(dst, src, len, wordOffset);
  2796. }
  2797. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT dst, byte[] src, int len = 1, int wordOffset = 0)
  2798. {
  2799. ByteToBool(ref dst.PlsOutputDone, src, 1, 0 + wordOffset, 1);
  2800. ByteToBool(ref dst.PositioningDone, src, 1, 0 + wordOffset, 2);
  2801. ByteToBool(ref dst.MCodeStatus, src, 1, 0 + wordOffset, 7);
  2802. ByteToBool(ref dst.AxisError, src, 1, 1 + wordOffset, 0);
  2803. ByteToBool(ref dst.AxisWarning, src, 1, 1 + wordOffset, 1);
  2804. ByteToBool(ref dst.InControl, src, 1, 1 + wordOffset, 3);
  2805. ByteToBool(ref dst.ServoEnd, src, 1, 1 + wordOffset, 4);
  2806. ByteToBool(ref dst.ServoReady, src, 1, 1 + wordOffset, 5);
  2807. ByteToBool(ref dst.DrvAlarm, src, 1, 1 + wordOffset, 6);
  2808. ByteToBool(ref dst.Jogging, src, 1, 1 + wordOffset, 13);
  2809. ByteToBool(ref dst.HomeIsNotDefined, src, 1, 1 + wordOffset, 15);
  2810. ByteToBool(ref dst.InSyncCtrl, src, 1, 2 + wordOffset, 2);
  2811. ByteToBool(ref dst.MainClutchStatus, src, 1, 2 + wordOffset, 3);
  2812. ByteToBool(ref dst.ChangingMainAxisPhaseCompensation, src, 1, 2 + wordOffset, 4);
  2813. ByteToBool(ref dst.MainClutchEngaged, src, 1, 2 + wordOffset, 5);
  2814. ByteToBool(ref dst.AuxClutchStatus, src, 1, 2 + wordOffset, 8);
  2815. ByteToBool(ref dst.ChangingAuxAxisPhaseCompensation, src, 1, 2 + wordOffset, 9);
  2816. ByteToBool(ref dst.AuxClutchEngaged, src, 1, 2 + wordOffset, 10);
  2817. ByteToBool(ref dst.ChangingSyncVariableGear, src, 1, 2 + wordOffset, 13);
  2818. ByteToBool(ref dst.TrqLimitClutchOff, src, 1, 3 + wordOffset, 1);
  2819. ByteToBool(ref dst.DrvLimit, src, 1, 3 + wordOffset, 2);
  2820. ByteToBool(ref dst.DrvWarning, src, 1, 3 + wordOffset, 6);
  2821. ByteToBool(ref dst.Reserved, src, 64, 4 + wordOffset, 0);
  2822. }
  2823. private static void ByteToBase__MC_AXIS_STATUS_BIT(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2824. {
  2825. int[] indices = NewIndices(dst);
  2826. int offset = wordOffset;
  2827. for ( int i = 0; i < len; i++ )
  2828. {
  2829. _MC_AXIS_STATUS_BIT elemTmp = new _MC_AXIS_STATUS_BIT();
  2830. NextIndices(dst, indices);
  2831. ByteTo__MC_AXIS_STATUS_BIT(ref elemTmp, src, len, wordOffset);
  2832. dst.SetValue(elemTmp, indices);
  2833. wordOffset += _MC_AXIS_STATUS_BIT_WSIZE;
  2834. }
  2835. }
  2836. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2837. {
  2838. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2839. }
  2840. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2841. {
  2842. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2843. }
  2844. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2845. {
  2846. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2847. }
  2848. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2849. {
  2850. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2851. }
  2852. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2853. {
  2854. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2855. }
  2856. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2857. {
  2858. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2859. }
  2860. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2861. {
  2862. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2863. }
  2864. public static void ByteTo__MC_AXIS_STATUS_BIT(ref _MC_AXIS_STATUS_BIT[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2865. {
  2866. ByteToBase__MC_AXIS_STATUS_BIT(dst, src, len, wordOffset);
  2867. }
  2868. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS dst, byte[] src, int len = 1, int wordOffset = 0)
  2869. {
  2870. ByteToDouble(ref dst.MainAxisPhaseCompensation, src, 1, 4 + wordOffset);
  2871. ByteToDouble(ref dst.AuxAxisPhaseCompensation, src, 1, 8 + wordOffset);
  2872. ByteToDouble(ref dst.StepAngleCompensation, src, 1, 12 + wordOffset);
  2873. ByteToDouble(ref dst.MainAxisPhase, src, 1, 16 + wordOffset);
  2874. ByteToDouble(ref dst.MainClutchInputAxisPhase, src, 1, 20 + wordOffset);
  2875. ByteToDouble(ref dst.MainClutchInputAxisPos, src, 1, 24 + wordOffset);
  2876. ByteToDouble(ref dst.MainClutchOutputAxisPhase, src, 1, 28 + wordOffset);
  2877. ByteToDouble(ref dst.MainClutchOutputAxisPos, src, 1, 32 + wordOffset);
  2878. ByteToDouble(ref dst.AuxClutchInputAxisPhase, src, 1, 36 + wordOffset);
  2879. ByteToDouble(ref dst.AuxClutchInputAxisPos, src, 1, 40 + wordOffset);
  2880. ByteToDouble(ref dst.AuxClutchOutputAxisPhase, src, 1, 44 + wordOffset);
  2881. ByteToDouble(ref dst.AuxClutchOutputAxisPos, src, 1, 48 + wordOffset);
  2882. ByteToDouble(ref dst.TrqLimitClutchInputAxisPhase, src, 1, 52 + wordOffset);
  2883. ByteToDouble(ref dst.TrqLimitClutchInputAxisPos, src, 1, 56 + wordOffset);
  2884. ByteToDouble(ref dst.TrqLimitClutchOutputAxisPhase, src, 1, 60 + wordOffset);
  2885. ByteToDouble(ref dst.TrqLimitClutchOutputAxisPos, src, 1, 64 + wordOffset);
  2886. ByteToDouble(ref dst.CamInputAxisPhase, src, 1, 68 + wordOffset);
  2887. ByteToDouble(ref dst.CamOutputRelativePos, src, 1, 72 + wordOffset);
  2888. ByteToUshort(ref dst.CurrentCamNo, src, 1, 76 + wordOffset);
  2889. ByteToUshort(ref dst.ContactOutputCurrentParamNo, src, 1, 77 + wordOffset);
  2890. ByteToUshort(ref dst.Reserved, src, 2, 78 + wordOffset);
  2891. }
  2892. private static void ByteToBase__MC_AXIS_SYNC_STATUS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2893. {
  2894. int[] indices = NewIndices(dst);
  2895. int offset = wordOffset;
  2896. for ( int i = 0; i < len; i++ )
  2897. {
  2898. _MC_AXIS_SYNC_STATUS elemTmp = new _MC_AXIS_SYNC_STATUS();
  2899. NextIndices(dst, indices);
  2900. ByteTo__MC_AXIS_SYNC_STATUS(ref elemTmp, src, len, wordOffset);
  2901. dst.SetValue(elemTmp, indices);
  2902. wordOffset += _MC_AXIS_SYNC_STATUS_WSIZE;
  2903. }
  2904. }
  2905. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2906. {
  2907. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2908. }
  2909. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2910. {
  2911. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2912. }
  2913. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2914. {
  2915. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2916. }
  2917. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2918. {
  2919. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2920. }
  2921. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2922. {
  2923. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2924. }
  2925. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2926. {
  2927. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2928. }
  2929. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2930. {
  2931. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2932. }
  2933. public static void ByteTo__MC_AXIS_SYNC_STATUS(ref _MC_AXIS_SYNC_STATUS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2934. {
  2935. ByteToBase__MC_AXIS_SYNC_STATUS(dst, src, len, wordOffset);
  2936. }
  2937. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION dst, byte[] src, int len = 1, int wordOffset = 0)
  2938. {
  2939. ByteToUint(ref dst.Phase, src, 1, 0 + wordOffset);
  2940. ByteToUshort(ref dst.Curve, src, 1, 2 + wordOffset);
  2941. ByteToDouble(ref dst.Displacement, src, 1, 4 + wordOffset);
  2942. ByteToShort(ref dst.StartVel, src, 1, 8 + wordOffset);
  2943. ByteToShort(ref dst.EndVel, src, 1, 9 + wordOffset);
  2944. ByteToShort(ref dst.StartAcc, src, 1, 10 + wordOffset);
  2945. ByteToShort(ref dst.EndAcc, src, 1, 11 + wordOffset);
  2946. }
  2947. private static void ByteToBase__MC_CAM_SECTION(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2948. {
  2949. int[] indices = NewIndices(dst);
  2950. int offset = wordOffset;
  2951. for ( int i = 0; i < len; i++ )
  2952. {
  2953. _MC_CAM_SECTION elemTmp = new _MC_CAM_SECTION();
  2954. NextIndices(dst, indices);
  2955. ByteTo__MC_CAM_SECTION(ref elemTmp, src, len, wordOffset);
  2956. dst.SetValue(elemTmp, indices);
  2957. wordOffset += _MC_CAM_SECTION_WSIZE;
  2958. }
  2959. }
  2960. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[] dst, byte[] src, int len = 1, int wordOffset = 0)
  2961. {
  2962. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2963. }
  2964. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2965. {
  2966. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2967. }
  2968. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2969. {
  2970. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2971. }
  2972. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2973. {
  2974. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2975. }
  2976. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2977. {
  2978. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2979. }
  2980. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2981. {
  2982. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2983. }
  2984. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2985. {
  2986. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2987. }
  2988. public static void ByteTo__MC_CAM_SECTION(ref _MC_CAM_SECTION[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  2989. {
  2990. ByteToBase__MC_CAM_SECTION(dst, src, len, wordOffset);
  2991. }
  2992. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE dst, byte[] src, int len = 1, int wordOffset = 0)
  2993. {
  2994. ByteToUshort(ref dst.FlashRomWrite, src, 1, 0 + wordOffset);
  2995. ByteToUshort(ref dst.SyncContactParamChg, src, 1, 1 + wordOffset);
  2996. ByteToUshort(ref dst.Reserved, src, 6, 2 + wordOffset);
  2997. }
  2998. private static void ByteToBase__MC_COMMON_CMP_CODE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  2999. {
  3000. int[] indices = NewIndices(dst);
  3001. int offset = wordOffset;
  3002. for ( int i = 0; i < len; i++ )
  3003. {
  3004. _MC_COMMON_CMP_CODE elemTmp = new _MC_COMMON_CMP_CODE();
  3005. NextIndices(dst, indices);
  3006. ByteTo__MC_COMMON_CMP_CODE(ref elemTmp, src, len, wordOffset);
  3007. dst.SetValue(elemTmp, indices);
  3008. wordOffset += _MC_COMMON_CMP_CODE_WSIZE;
  3009. }
  3010. }
  3011. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3012. {
  3013. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3014. }
  3015. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3016. {
  3017. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3018. }
  3019. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3020. {
  3021. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3022. }
  3023. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3024. {
  3025. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3026. }
  3027. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3028. {
  3029. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3030. }
  3031. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3032. {
  3033. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3034. }
  3035. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3036. {
  3037. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3038. }
  3039. public static void ByteTo__MC_COMMON_CMP_CODE(ref _MC_COMMON_CMP_CODE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3040. {
  3041. ByteToBase__MC_COMMON_CMP_CODE(dst, src, len, wordOffset);
  3042. }
  3043. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL dst, byte[] src, int len = 1, int wordOffset = 0)
  3044. {
  3045. ByteToInt(ref dst.ExtRefCmdVal, src, 48, 0 + wordOffset);
  3046. }
  3047. private static void ByteToBase__MC_COMMON_CTRL(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3048. {
  3049. int[] indices = NewIndices(dst);
  3050. int offset = wordOffset;
  3051. for ( int i = 0; i < len; i++ )
  3052. {
  3053. _MC_COMMON_CTRL elemTmp = new _MC_COMMON_CTRL();
  3054. NextIndices(dst, indices);
  3055. ByteTo__MC_COMMON_CTRL(ref elemTmp, src, len, wordOffset);
  3056. dst.SetValue(elemTmp, indices);
  3057. wordOffset += _MC_COMMON_CTRL_WSIZE;
  3058. }
  3059. }
  3060. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3061. {
  3062. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3063. }
  3064. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3065. {
  3066. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3067. }
  3068. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3069. {
  3070. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3071. }
  3072. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3073. {
  3074. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3075. }
  3076. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3077. {
  3078. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3079. }
  3080. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3081. {
  3082. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3083. }
  3084. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3085. {
  3086. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3087. }
  3088. public static void ByteTo__MC_COMMON_CTRL(ref _MC_COMMON_CTRL[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3089. {
  3090. ByteToBase__MC_COMMON_CTRL(dst, src, len, wordOffset);
  3091. }
  3092. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE dst, byte[] src, int len = 1, int wordOffset = 0)
  3093. {
  3094. ByteToUint(ref dst.CurrentCycleTime, src, 1, 0 + wordOffset);
  3095. ByteToUint(ref dst.MaxCycleTime, src, 1, 2 + wordOffset);
  3096. ByteToUshort(ref dst.CurrentLoadFactor, src, 1, 4 + wordOffset);
  3097. ByteToUshort(ref dst.MaxLoadFactor, src, 1, 5 + wordOffset);
  3098. ByteToUshort(ref dst.Reserved, src, 6, 6 + wordOffset);
  3099. }
  3100. private static void ByteToBase__MC_COMMON_PERFORMANCE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3101. {
  3102. int[] indices = NewIndices(dst);
  3103. int offset = wordOffset;
  3104. for ( int i = 0; i < len; i++ )
  3105. {
  3106. _MC_COMMON_PERFORMANCE elemTmp = new _MC_COMMON_PERFORMANCE();
  3107. NextIndices(dst, indices);
  3108. ByteTo__MC_COMMON_PERFORMANCE(ref elemTmp, src, len, wordOffset);
  3109. dst.SetValue(elemTmp, indices);
  3110. wordOffset += _MC_COMMON_PERFORMANCE_WSIZE;
  3111. }
  3112. }
  3113. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3114. {
  3115. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3116. }
  3117. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3118. {
  3119. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3120. }
  3121. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3122. {
  3123. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3124. }
  3125. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3126. {
  3127. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3128. }
  3129. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3130. {
  3131. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3132. }
  3133. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3134. {
  3135. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3136. }
  3137. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3138. {
  3139. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3140. }
  3141. public static void ByteTo__MC_COMMON_PERFORMANCE(ref _MC_COMMON_PERFORMANCE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3142. {
  3143. ByteToBase__MC_COMMON_PERFORMANCE(dst, src, len, wordOffset);
  3144. }
  3145. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT dst, byte[] src, int len = 1, int wordOffset = 0)
  3146. {
  3147. ByteToBool(ref dst.Enable, src, 1, 0 + wordOffset, 0);
  3148. ByteToBool(ref dst.EnableError, src, 1, 0 + wordOffset, 1);
  3149. ByteToBool(ref dst.UnitError, src, 1, 0 + wordOffset, 3);
  3150. ByteToBool(ref dst.AxisError, src, 1, 0 + wordOffset, 4);
  3151. ByteToBool(ref dst.AxisWarning, src, 1, 0 + wordOffset, 5);
  3152. ByteToBool(ref dst.TestRunning, src, 1, 0 + wordOffset, 6);
  3153. ByteToBool(ref dst.Reserved, src, 48, 1 + wordOffset, 0);
  3154. }
  3155. private static void ByteToBase__MC_COMMON_STATUS_BIT(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3156. {
  3157. int[] indices = NewIndices(dst);
  3158. int offset = wordOffset;
  3159. for ( int i = 0; i < len; i++ )
  3160. {
  3161. _MC_COMMON_STATUS_BIT elemTmp = new _MC_COMMON_STATUS_BIT();
  3162. NextIndices(dst, indices);
  3163. ByteTo__MC_COMMON_STATUS_BIT(ref elemTmp, src, len, wordOffset);
  3164. dst.SetValue(elemTmp, indices);
  3165. wordOffset += _MC_COMMON_STATUS_BIT_WSIZE;
  3166. }
  3167. }
  3168. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3169. {
  3170. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3171. }
  3172. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3173. {
  3174. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3175. }
  3176. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3177. {
  3178. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3179. }
  3180. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3181. {
  3182. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3183. }
  3184. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3185. {
  3186. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3187. }
  3188. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3189. {
  3190. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3191. }
  3192. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3193. {
  3194. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3195. }
  3196. public static void ByteTo__MC_COMMON_STATUS_BIT(ref _MC_COMMON_STATUS_BIT[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3197. {
  3198. ByteToBase__MC_COMMON_STATUS_BIT(dst, src, len, wordOffset);
  3199. }
  3200. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM dst, byte[] src, int len = 1, int wordOffset = 0)
  3201. {
  3202. ByteToUshort(ref dst.PositioningMode, src, 1, 0 + wordOffset);
  3203. ByteToUshort(ref dst.ContinuousMode, src, 1, 1 + wordOffset);
  3204. ByteToUshort(ref dst.NextPointNo, src, 1, 2 + wordOffset);
  3205. ByteToUshort(ref dst.MCodeNo, src, 1, 3 + wordOffset);
  3206. ByteToDouble(ref dst.TargetPos, src, 1, 4 + wordOffset);
  3207. ByteToUshort(ref dst.DwellTime, src, 1, 8 + wordOffset);
  3208. ByteToUshort(ref dst.AxisGroupNo, src, 1, 9 + wordOffset);
  3209. ByteToDouble(ref dst.StopSensorMovement_ArcPos, src, 1, 12 + wordOffset);
  3210. ByteToDouble(ref dst.TargetVel, src, 1, 16 + wordOffset);
  3211. ByteToDouble(ref dst.Acceleration, src, 1, 20 + wordOffset);
  3212. ByteToDouble(ref dst.Deceleration, src, 1, 24 + wordOffset);
  3213. ByteToDouble(ref dst.AuxArcRadius, src, 1, 28 + wordOffset);
  3214. ByteToDouble(ref dst.TrqLimit, src, 1, 32 + wordOffset);
  3215. ByteToUshort(ref dst.Revolution, src, 1, 36 + wordOffset);
  3216. ByteToUshort(ref dst.Reserved, src, 3, 37 + wordOffset);
  3217. }
  3218. private static void ByteToBase__MC_POINT_PARAM(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3219. {
  3220. int[] indices = NewIndices(dst);
  3221. int offset = wordOffset;
  3222. for ( int i = 0; i < len; i++ )
  3223. {
  3224. _MC_POINT_PARAM elemTmp = new _MC_POINT_PARAM();
  3225. NextIndices(dst, indices);
  3226. ByteTo__MC_POINT_PARAM(ref elemTmp, src, len, wordOffset);
  3227. dst.SetValue(elemTmp, indices);
  3228. wordOffset += _MC_POINT_PARAM_WSIZE;
  3229. }
  3230. }
  3231. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3232. {
  3233. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3234. }
  3235. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3236. {
  3237. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3238. }
  3239. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3240. {
  3241. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3242. }
  3243. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3244. {
  3245. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3246. }
  3247. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3248. {
  3249. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3250. }
  3251. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3252. {
  3253. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3254. }
  3255. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3256. {
  3257. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3258. }
  3259. public static void ByteTo__MC_POINT_PARAM(ref _MC_POINT_PARAM[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3260. {
  3261. ByteToBase__MC_POINT_PARAM(dst, src, len, wordOffset);
  3262. }
  3263. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS dst, byte[] src, int len = 1, int wordOffset = 0)
  3264. {
  3265. ByteTo__MC_POINT_PARAM(ref dst.Point, src, 50, 0 + wordOffset);
  3266. }
  3267. private static void ByteToBase__MC_POINT_PARAM_AXIS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3268. {
  3269. int[] indices = NewIndices(dst);
  3270. int offset = wordOffset;
  3271. for ( int i = 0; i < len; i++ )
  3272. {
  3273. _MC_POINT_PARAM_AXIS elemTmp = new _MC_POINT_PARAM_AXIS();
  3274. NextIndices(dst, indices);
  3275. ByteTo__MC_POINT_PARAM_AXIS(ref elemTmp, src, len, wordOffset);
  3276. dst.SetValue(elemTmp, indices);
  3277. wordOffset += _MC_POINT_PARAM_AXIS_WSIZE;
  3278. }
  3279. }
  3280. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3281. {
  3282. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3283. }
  3284. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3285. {
  3286. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3287. }
  3288. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3289. {
  3290. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3291. }
  3292. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3293. {
  3294. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3295. }
  3296. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3297. {
  3298. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3299. }
  3300. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3301. {
  3302. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3303. }
  3304. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3305. {
  3306. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3307. }
  3308. public static void ByteTo__MC_POINT_PARAM_AXIS(ref _MC_POINT_PARAM_AXIS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3309. {
  3310. ByteToBase__MC_POINT_PARAM_AXIS(dst, src, len, wordOffset);
  3311. }
  3312. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  3313. {
  3314. ByteToUshort(ref dst.CommonSetting1, src, 1, 0 + wordOffset);
  3315. ByteToUshort(ref dst.CommonSetting2, src, 1, 1 + wordOffset);
  3316. ByteToDouble(ref dst.OperationStartVel, src, 1, 4 + wordOffset);
  3317. ByteToDouble(ref dst.OperationMaxVel, src, 1, 8 + wordOffset);
  3318. ByteToDouble(ref dst.OperationAcc, src, 1, 12 + wordOffset);
  3319. ByteToDouble(ref dst.OperationDec, src, 1, 16 + wordOffset);
  3320. ByteToUshort(ref dst.OperationAccDecCurveRatio, src, 1, 20 + wordOffset);
  3321. ByteToUshort(ref dst.OperationAccDecCurve, src, 1, 21 + wordOffset);
  3322. ByteToDouble(ref dst.JogAcc, src, 1, 24 + wordOffset);
  3323. ByteToDouble(ref dst.JogDec, src, 1, 28 + wordOffset);
  3324. ByteToDouble(ref dst.JogStartVel, src, 1, 32 + wordOffset);
  3325. ByteToDouble(ref dst.JogFastVel, src, 1, 36 + wordOffset);
  3326. ByteToDouble(ref dst.JogInchingMovement, src, 1, 40 + wordOffset);
  3327. ByteToUshort(ref dst.JogAccDecCurveRatio, src, 1, 44 + wordOffset);
  3328. ByteToUshort(ref dst.JogAccDecCurve, src, 1, 45 + wordOffset);
  3329. ByteToUshort(ref dst.HomingSetting, src, 1, 46 + wordOffset);
  3330. ByteToUshort(ref dst.HomingAccDecCurveRatio, src, 1, 47 + wordOffset);
  3331. ByteToDouble(ref dst.HomingStartVel, src, 1, 48 + wordOffset);
  3332. ByteToDouble(ref dst.HomingCreepVel, src, 1, 52 + wordOffset);
  3333. ByteToDouble(ref dst.HomingVel, src, 1, 56 + wordOffset);
  3334. ByteToDouble(ref dst.HomingAcc, src, 1, 60 + wordOffset);
  3335. ByteToDouble(ref dst.HomingDec, src, 1, 64 + wordOffset);
  3336. ByteToDouble(ref dst.HomingPos, src, 1, 68 + wordOffset);
  3337. ByteToDouble(ref dst.HomingBasePos, src, 1, 72 + wordOffset);
  3338. ByteToDouble(ref dst.HomingMovementAfterDogOn, src, 1, 76 + wordOffset);
  3339. ByteToUshort(ref dst.HomingMethod, src, 1, 80 + wordOffset);
  3340. ByteToUshort(ref dst.HomingDwellTime, src, 1, 81 + wordOffset);
  3341. ByteToUshort(ref dst.HomingPressTrqTime, src, 1, 83 + wordOffset);
  3342. ByteToDouble(ref dst.HomingPressTrqThresh, src, 1, 84 + wordOffset);
  3343. ByteToDouble(ref dst.AbsPosFollowUpCtrlVel, src, 1, 88 + wordOffset);
  3344. ByteToDouble(ref dst.AbsPosFollowUpCtrlAcc, src, 1, 92 + wordOffset);
  3345. ByteToDouble(ref dst.AbsPosFollowUpCtrlDec, src, 1, 96 + wordOffset);
  3346. ByteToUint(ref dst.SyncTypeFollowUpCtrlGearNumerator, src, 1, 100 + wordOffset);
  3347. ByteToUint(ref dst.SyncTypeFollowUpCtrlGearDenominator, src, 1, 102 + wordOffset);
  3348. ByteToUshort(ref dst.SyncTypeFollowUpCtrlOutputFilter, src, 1, 104 + wordOffset);
  3349. ByteToUshort(ref dst.Reserved, src, 95, 105 + wordOffset);
  3350. }
  3351. private static void ByteToBase__MC_POS_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3352. {
  3353. int[] indices = NewIndices(dst);
  3354. int offset = wordOffset;
  3355. for ( int i = 0; i < len; i++ )
  3356. {
  3357. _MC_POS_CFG elemTmp = new _MC_POS_CFG();
  3358. NextIndices(dst, indices);
  3359. ByteTo__MC_POS_CFG(ref elemTmp, src, len, wordOffset);
  3360. dst.SetValue(elemTmp, indices);
  3361. wordOffset += _MC_POS_CFG_WSIZE;
  3362. }
  3363. }
  3364. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3365. {
  3366. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3367. }
  3368. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3369. {
  3370. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3371. }
  3372. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3373. {
  3374. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3375. }
  3376. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3377. {
  3378. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3379. }
  3380. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3381. {
  3382. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3383. }
  3384. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3385. {
  3386. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3387. }
  3388. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3389. {
  3390. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3391. }
  3392. public static void ByteTo__MC_POS_CFG(ref _MC_POS_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3393. {
  3394. ByteToBase__MC_POS_CFG(dst, src, len, wordOffset);
  3395. }
  3396. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT dst, byte[] src, int len = 1, int wordOffset = 0)
  3397. {
  3398. ByteToBool(ref dst.Output, src, 16, 0 + wordOffset, 0);
  3399. }
  3400. private static void ByteToBase__MC_SYNC_CONTACT_OUTPUT(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3401. {
  3402. int[] indices = NewIndices(dst);
  3403. int offset = wordOffset;
  3404. for ( int i = 0; i < len; i++ )
  3405. {
  3406. _MC_SYNC_CONTACT_OUTPUT elemTmp = new _MC_SYNC_CONTACT_OUTPUT();
  3407. NextIndices(dst, indices);
  3408. ByteTo__MC_SYNC_CONTACT_OUTPUT(ref elemTmp, src, len, wordOffset);
  3409. dst.SetValue(elemTmp, indices);
  3410. wordOffset += _MC_SYNC_CONTACT_OUTPUT_WSIZE;
  3411. }
  3412. }
  3413. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3414. {
  3415. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3416. }
  3417. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3418. {
  3419. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3420. }
  3421. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3422. {
  3423. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3424. }
  3425. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3426. {
  3427. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3428. }
  3429. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3430. {
  3431. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3432. }
  3433. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3434. {
  3435. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3436. }
  3437. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3438. {
  3439. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3440. }
  3441. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT(ref _MC_SYNC_CONTACT_OUTPUT[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3442. {
  3443. ByteToBase__MC_SYNC_CONTACT_OUTPUT(dst, src, len, wordOffset);
  3444. }
  3445. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  3446. {
  3447. ByteToDouble(ref dst.OnVal, src, 1, 0 + wordOffset);
  3448. ByteToDouble(ref dst.OffVal, src, 1, 4 + wordOffset);
  3449. ByteToUshort(ref dst.OutputDst, src, 1, 8 + wordOffset);
  3450. ByteToUshort(ref dst.Reserved, src, 3, 9 + wordOffset);
  3451. }
  3452. private static void ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3453. {
  3454. int[] indices = NewIndices(dst);
  3455. int offset = wordOffset;
  3456. for ( int i = 0; i < len; i++ )
  3457. {
  3458. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG elemTmp = new _MC_SYNC_CONTACT_OUTPUT_SUB_CFG();
  3459. NextIndices(dst, indices);
  3460. ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref elemTmp, src, len, wordOffset);
  3461. dst.SetValue(elemTmp, indices);
  3462. wordOffset += _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_WSIZE;
  3463. }
  3464. }
  3465. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3466. {
  3467. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3468. }
  3469. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3470. {
  3471. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3472. }
  3473. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3474. {
  3475. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3476. }
  3477. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3478. {
  3479. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3480. }
  3481. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3482. {
  3483. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3484. }
  3485. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3486. {
  3487. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3488. }
  3489. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3490. {
  3491. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3492. }
  3493. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3494. {
  3495. ByteToBase__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(dst, src, len, wordOffset);
  3496. }
  3497. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  3498. {
  3499. ByteToUshort(ref dst.BaseSetting, src, 1, 0 + wordOffset);
  3500. ByteToUint(ref dst.DevNo, src, 1, 2 + wordOffset);
  3501. ByteToInt(ref dst.RingCounterMin, src, 1, 4 + wordOffset);
  3502. ByteToInt(ref dst.RingCounterMax, src, 1, 6 + wordOffset);
  3503. }
  3504. private static void ByteToBase__MC_SYNC_EXT_INPUT_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3505. {
  3506. int[] indices = NewIndices(dst);
  3507. int offset = wordOffset;
  3508. for ( int i = 0; i < len; i++ )
  3509. {
  3510. _MC_SYNC_EXT_INPUT_CFG elemTmp = new _MC_SYNC_EXT_INPUT_CFG();
  3511. NextIndices(dst, indices);
  3512. ByteTo__MC_SYNC_EXT_INPUT_CFG(ref elemTmp, src, len, wordOffset);
  3513. dst.SetValue(elemTmp, indices);
  3514. wordOffset += _MC_SYNC_EXT_INPUT_CFG_WSIZE;
  3515. }
  3516. }
  3517. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3518. {
  3519. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3520. }
  3521. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3522. {
  3523. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3524. }
  3525. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3526. {
  3527. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3528. }
  3529. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3530. {
  3531. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3532. }
  3533. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3534. {
  3535. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3536. }
  3537. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3538. {
  3539. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3540. }
  3541. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3542. {
  3543. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3544. }
  3545. public static void ByteTo__MC_SYNC_EXT_INPUT_CFG(ref _MC_SYNC_EXT_INPUT_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3546. {
  3547. ByteToBase__MC_SYNC_EXT_INPUT_CFG(dst, src, len, wordOffset);
  3548. }
  3549. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM dst, byte[] src, int len = 1, int wordOffset = 0)
  3550. {
  3551. ByteToDouble(ref dst.InputAxisCycle, src, 1, 0 + wordOffset);
  3552. ByteToUshort(ref dst.UnitAndPrecision, src, 1, 4 + wordOffset);
  3553. ByteToUshort(ref dst.ClutchOffSlippingTimeAtDecStop, src, 1, 5 + wordOffset);
  3554. ByteToUshort(ref dst.InputAxisPhaseInitMethod, src, 1, 6 + wordOffset);
  3555. ByteToDouble(ref dst.MainAxisInitialPhase, src, 1, 8 + wordOffset);
  3556. ByteToDouble(ref dst.MainAxisInitialPhaseAfterCompensation, src, 1, 12 + wordOffset);
  3557. ByteToDouble(ref dst.MainClutchInputInitialPhase, src, 1, 16 + wordOffset);
  3558. ByteToDouble(ref dst.AuxClutchInputInitialPhase, src, 1, 20 + wordOffset);
  3559. ByteToUshort(ref dst.CamInClutchOutPhaseInitMethod, src, 1, 24 + wordOffset);
  3560. ByteToDouble(ref dst.MainClutchOutputInitialPhase, src, 1, 28 + wordOffset);
  3561. ByteToDouble(ref dst.AuxClutchOutputInitialPhase, src, 1, 32 + wordOffset);
  3562. ByteToDouble(ref dst.TrqLimitClutchInputInitialPhase, src, 1, 36 + wordOffset);
  3563. ByteToDouble(ref dst.CamInputInitialPhase, src, 1, 40 + wordOffset);
  3564. ByteToDouble(ref dst.CamOutputBasePos, src, 1, 44 + wordOffset);
  3565. ByteToUshort(ref dst.MainAxis1Input, src, 1, 48 + wordOffset);
  3566. ByteToUshort(ref dst.MainAxis1CoordTrans, src, 1, 49 + wordOffset);
  3567. ByteToUint(ref dst.MainAxis1CoordTransNumerator, src, 1, 50 + wordOffset);
  3568. ByteToUint(ref dst.MainAxis1CoordTransDenominator, src, 1, 52 + wordOffset);
  3569. ByteToUshort(ref dst.MainAxis2Input, src, 1, 54 + wordOffset);
  3570. ByteToUshort(ref dst.MainAxis2CoordTrans, src, 1, 55 + wordOffset);
  3571. ByteToUint(ref dst.MainAxis2CoordTransNumerator, src, 1, 56 + wordOffset);
  3572. ByteToUint(ref dst.MainAxis2CoordTransDenominator, src, 1, 58 + wordOffset);
  3573. ByteToUshort(ref dst.AuxAxisInput, src, 1, 60 + wordOffset);
  3574. ByteToUshort(ref dst.AuxAxisCoordTrans, src, 1, 61 + wordOffset);
  3575. ByteToUint(ref dst.AuxAxisCoordTransNumerator, src, 1, 62 + wordOffset);
  3576. ByteToUint(ref dst.AuxAxisCoordTransDenominator, src, 1, 64 + wordOffset);
  3577. ByteToDouble(ref dst.MainAxisPhaseCompensationCmdVal, src, 1, 68 + wordOffset);
  3578. ByteToUshort(ref dst.MainAxisPhaseCompensationChgMethod, src, 1, 72 + wordOffset);
  3579. ByteToUshort(ref dst.MainAxisPhaseCompensationChgTime, src, 1, 73 + wordOffset);
  3580. ByteToDouble(ref dst.AuxAxisPhaseCompensationCmdVal, src, 1, 76 + wordOffset);
  3581. ByteToUshort(ref dst.AuxAxisPhaseCompensationChgMethod, src, 1, 80 + wordOffset);
  3582. ByteToUshort(ref dst.AuxAxisPhaseCompensationChgTime, src, 1, 81 + wordOffset);
  3583. ByteToDouble(ref dst.StepAngleCompensationBaseVel, src, 1, 84 + wordOffset);
  3584. ByteToDouble(ref dst.StepAngleCompensationBaseValue, src, 1, 88 + wordOffset);
  3585. ByteToUshort(ref dst.StepAngleCompensationChgMethod, src, 1, 92 + wordOffset);
  3586. ByteToUshort(ref dst.StepAngleCompensationChgTime, src, 1, 93 + wordOffset);
  3587. ByteToInt(ref dst.VariableGearRatioNumerator, src, 1, 94 + wordOffset);
  3588. ByteToUint(ref dst.VariableGearRatioDenominator, src, 1, 96 + wordOffset);
  3589. ByteToUshort(ref dst.VariableGearRatioChgMethod, src, 1, 98 + wordOffset);
  3590. ByteToUshort(ref dst.VariableGearRatioChgTime, src, 1, 99 + wordOffset);
  3591. ByteToUshort(ref dst.MainClutchOnCondition, src, 1, 100 + wordOffset);
  3592. ByteToUshort(ref dst.MainClutchOnEngagingMethod, src, 1, 101 + wordOffset);
  3593. ByteToUshort(ref dst.MainClutchOnSlippingMode, src, 1, 102 + wordOffset);
  3594. ByteToUshort(ref dst.MainClutchOnDisableMethod, src, 1, 103 + wordOffset);
  3595. ByteToDouble(ref dst.MainClutchOnSettingVal, src, 1, 104 + wordOffset);
  3596. ByteToDouble(ref dst.MainClutchOnDelay, src, 1, 108 + wordOffset);
  3597. ByteToDouble(ref dst.MainClutchOnSlippage, src, 1, 112 + wordOffset);
  3598. ByteToUshort(ref dst.MainClutchOnSlippingCurve, src, 1, 116 + wordOffset);
  3599. ByteToUshort(ref dst.MainClutchOnSlippingTime, src, 1, 117 + wordOffset);
  3600. ByteToUshort(ref dst.MainClutchOnFollowingTime, src, 1, 119 + wordOffset);
  3601. ByteToDouble(ref dst.MainClutchOnFollowUpMovement, src, 1, 120 + wordOffset);
  3602. ByteToUshort(ref dst.MainClutchOffCondition, src, 1, 124 + wordOffset);
  3603. ByteToUshort(ref dst.MainClutchOffEngagingMethod, src, 1, 125 + wordOffset);
  3604. ByteToUshort(ref dst.MainClutchOffSlippingMode, src, 1, 126 + wordOffset);
  3605. ByteToUshort(ref dst.MainClutchOffDisableMethod, src, 1, 127 + wordOffset);
  3606. ByteToDouble(ref dst.MainClutchOffSettingVal, src, 1, 128 + wordOffset);
  3607. ByteToDouble(ref dst.MainClutchOffDelay, src, 1, 132 + wordOffset);
  3608. ByteToDouble(ref dst.MainClutchOffSlippage, src, 1, 136 + wordOffset);
  3609. ByteToUshort(ref dst.MainClutchOffSlippingCurve, src, 1, 140 + wordOffset);
  3610. ByteToUshort(ref dst.MainClutchOffSlippingTime, src, 1, 141 + wordOffset);
  3611. ByteToUshort(ref dst.AuxClutchOnCondition, src, 1, 144 + wordOffset);
  3612. ByteToUshort(ref dst.AuxClutchOnEngagingMethod, src, 1, 145 + wordOffset);
  3613. ByteToUshort(ref dst.AuxClutchOnSlippingMode, src, 1, 146 + wordOffset);
  3614. ByteToUshort(ref dst.AuxClutchOnDisableMethod, src, 1, 147 + wordOffset);
  3615. ByteToDouble(ref dst.AuxClutchOnSettingVal, src, 1, 148 + wordOffset);
  3616. ByteToDouble(ref dst.AuxClutchOnDelay, src, 1, 152 + wordOffset);
  3617. ByteToDouble(ref dst.AuxClutchOnSlippage, src, 1, 156 + wordOffset);
  3618. ByteToUshort(ref dst.AuxClutchOnSlippingCurve, src, 1, 160 + wordOffset);
  3619. ByteToUshort(ref dst.AuxClutchOnSlippingTime, src, 1, 161 + wordOffset);
  3620. ByteToUshort(ref dst.AuxClutchOffCondition, src, 1, 164 + wordOffset);
  3621. ByteToUshort(ref dst.AuxClutchOffEngagingMethod, src, 1, 165 + wordOffset);
  3622. ByteToUshort(ref dst.AuxClutchOffSlippingMode, src, 1, 166 + wordOffset);
  3623. ByteToUshort(ref dst.AuxClutchOffDisableMethod, src, 1, 167 + wordOffset);
  3624. ByteToDouble(ref dst.AuxClutchOffSettingVal, src, 1, 168 + wordOffset);
  3625. ByteToDouble(ref dst.AuxClutchOffDelay, src, 1, 172 + wordOffset);
  3626. ByteToDouble(ref dst.AuxClutchOffSlippage, src, 1, 176 + wordOffset);
  3627. ByteToUshort(ref dst.AuxClutchOffSlippingCurve, src, 1, 180 + wordOffset);
  3628. ByteToUshort(ref dst.AuxClutchOffSlippingTime, src, 1, 181 + wordOffset);
  3629. ByteToUshort(ref dst.CamDataNo, src, 1, 182 + wordOffset);
  3630. ByteToUshort(ref dst.ContactOutputNo, src, 1, 183 + wordOffset);
  3631. ByteToDouble(ref dst.CamStroke, src, 1, 184 + wordOffset);
  3632. ByteToUshort(ref dst.SimMechanicalSyncStopMethod, src, 1, 188 + wordOffset);
  3633. ByteToUshort(ref dst.TrqLimitClutchEngagingMethod, src, 1, 189 + wordOffset);
  3634. ByteToUshort(ref dst.OutputFilterTimeConst, src, 1, 190 + wordOffset);
  3635. ByteToDouble(ref dst.SimMechanicalSyncStopTrq, src, 1, 192 + wordOffset);
  3636. ByteToDouble(ref dst.TrqLimitClutchOutputJogVel, src, 1, 196 + wordOffset);
  3637. }
  3638. private static void ByteToBase__MC_SYNC_PARAM(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3639. {
  3640. int[] indices = NewIndices(dst);
  3641. int offset = wordOffset;
  3642. for ( int i = 0; i < len; i++ )
  3643. {
  3644. _MC_SYNC_PARAM elemTmp = new _MC_SYNC_PARAM();
  3645. NextIndices(dst, indices);
  3646. ByteTo__MC_SYNC_PARAM(ref elemTmp, src, len, wordOffset);
  3647. dst.SetValue(elemTmp, indices);
  3648. wordOffset += _MC_SYNC_PARAM_WSIZE;
  3649. }
  3650. }
  3651. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3652. {
  3653. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3654. }
  3655. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3656. {
  3657. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3658. }
  3659. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3660. {
  3661. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3662. }
  3663. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3664. {
  3665. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3666. }
  3667. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3668. {
  3669. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3670. }
  3671. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3672. {
  3673. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3674. }
  3675. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3676. {
  3677. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3678. }
  3679. public static void ByteTo__MC_SYNC_PARAM(ref _MC_SYNC_PARAM[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3680. {
  3681. ByteToBase__MC_SYNC_PARAM(dst, src, len, wordOffset);
  3682. }
  3683. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER dst, byte[] src, int len = 1, int wordOffset = 0)
  3684. {
  3685. ByteToBool(ref dst.SaveRequest, src, 1, 0 + wordOffset, 0);
  3686. ByteToBool(ref dst.InAction, src, 1, 0 + wordOffset, 1);
  3687. ByteToBool(ref dst.SaveTriggerMonitor, src, 1, 0 + wordOffset, 2);
  3688. ByteToBool(ref dst.SaveBusy, src, 1, 0 + wordOffset, 3);
  3689. ByteToBool(ref dst.Collecting, src, 1, 0 + wordOffset, 4);
  3690. ByteToBool(ref dst.SettingError, src, 1, 0 + wordOffset, 5);
  3691. ByteToBool(ref dst.SaveComplete, src, 1, 0 + wordOffset, 7);
  3692. ByteToBool(ref dst.SaveError, src, 1, 0 + wordOffset, 8);
  3693. ByteToBool(ref dst.BufferShortage, src, 1, 0 + wordOffset, 9);
  3694. ByteToBool(ref dst.BufferAllSaveMode, src, 1, 0 + wordOffset, 14);
  3695. ByteToInt(ref dst.AverageSamplingPeriod, src, 1, 2 + wordOffset);
  3696. ByteToInt(ref dst.AverageChangedDeviceNum, src, 1, 4 + wordOffset);
  3697. ByteToInt(ref dst.MaxCollectingPeriod, src, 1, 6 + wordOffset);
  3698. ByteToUshort(ref dst.SaveFinCode, src, 1, 20 + wordOffset);
  3699. ByteToUshort(ref dst.SaveCounter, src, 1, 22 + wordOffset);
  3700. ByteToUshort(ref dst.SaveProgressInfo1, src, 1, 24 + wordOffset);
  3701. ByteToUshort(ref dst.SaveProgressInfo2, src, 1, 25 + wordOffset);
  3702. ByteToUshort(ref dst.SaveProgress, src, 1, 26 + wordOffset);
  3703. ByteToString(ref dst.SavePath, src, 1, 30 + wordOffset, 321);
  3704. ByteToUshort(ref dst.Reserved, src, 9, 191 + wordOffset);
  3705. }
  3706. private static void ByteToBase__OPERATION_RECORDER(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3707. {
  3708. int[] indices = NewIndices(dst);
  3709. int offset = wordOffset;
  3710. for ( int i = 0; i < len; i++ )
  3711. {
  3712. _OPERATION_RECORDER elemTmp = new _OPERATION_RECORDER();
  3713. NextIndices(dst, indices);
  3714. ByteTo__OPERATION_RECORDER(ref elemTmp, src, len, wordOffset);
  3715. dst.SetValue(elemTmp, indices);
  3716. wordOffset += _OPERATION_RECORDER_WSIZE;
  3717. }
  3718. }
  3719. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3720. {
  3721. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3722. }
  3723. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3724. {
  3725. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3726. }
  3727. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3728. {
  3729. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3730. }
  3731. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3732. {
  3733. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3734. }
  3735. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3736. {
  3737. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3738. }
  3739. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3740. {
  3741. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3742. }
  3743. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3744. {
  3745. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3746. }
  3747. public static void ByteTo__OPERATION_RECORDER(ref _OPERATION_RECORDER[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3748. {
  3749. ByteToBase__OPERATION_RECORDER(dst, src, len, wordOffset);
  3750. }
  3751. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO dst, byte[] src, int len = 1, int wordOffset = 0)
  3752. {
  3753. ByteToUint(ref dst.ScanTime, src, 1, 0 + wordOffset);
  3754. ByteToUint(ref dst.EndProcTime, src, 1, 2 + wordOffset);
  3755. ByteToUint(ref dst.MinScanTime, src, 1, 4 + wordOffset);
  3756. ByteToUint(ref dst.MaxScanTime, src, 1, 6 + wordOffset);
  3757. ByteToUint(ref dst.FixScanTimeSet, src, 1, 8 + wordOffset);
  3758. ByteToUint(ref dst.EndProcTimeSet, src, 1, 10 + wordOffset);
  3759. ByteToUint(ref dst.ExcessConstantScanTime, src, 1, 12 + wordOffset);
  3760. ByteToUint(ref dst.ExcessEndProcTime, src, 1, 14 + wordOffset);
  3761. ByteToUshort(ref dst.ProgramErrorDetail, src, 1, 23 + wordOffset);
  3762. ByteToBool(ref dst.FixScanTimeEnable, src, 1, 24 + wordOffset, 3);
  3763. ByteToBool(ref dst.FixTimeExcess, src, 1, 24 + wordOffset, 4);
  3764. ByteToBool(ref dst.OCPDisabled, src, 1, 24 + wordOffset, 5);
  3765. ByteToBool(ref dst.BackupBattError, src, 1, 24 + wordOffset, 6);
  3766. ByteToBool(ref dst.ScanTimeMaxMinClear, src, 1, 24 + wordOffset, 7);
  3767. ByteToBool(ref dst.FixEndProcTimeEnable, src, 1, 24 + wordOffset, 8);
  3768. ByteToBool(ref dst.TimeError, src, 1, 24 + wordOffset, 11);
  3769. ByteToBool(ref dst.ProjectPasswordAuthDisabled, src, 1, 24 + wordOffset, 14);
  3770. ByteToUshort(ref dst.Reserved, src, 1, 25 + wordOffset);
  3771. }
  3772. private static void ByteToBase__PROGRAM_INFO(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3773. {
  3774. int[] indices = NewIndices(dst);
  3775. int offset = wordOffset;
  3776. for ( int i = 0; i < len; i++ )
  3777. {
  3778. _PROGRAM_INFO elemTmp = new _PROGRAM_INFO();
  3779. NextIndices(dst, indices);
  3780. ByteTo__PROGRAM_INFO(ref elemTmp, src, len, wordOffset);
  3781. dst.SetValue(elemTmp, indices);
  3782. wordOffset += _PROGRAM_INFO_WSIZE;
  3783. }
  3784. }
  3785. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3786. {
  3787. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3788. }
  3789. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3790. {
  3791. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3792. }
  3793. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3794. {
  3795. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3796. }
  3797. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3798. {
  3799. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3800. }
  3801. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3802. {
  3803. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3804. }
  3805. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3806. {
  3807. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3808. }
  3809. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3810. {
  3811. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3812. }
  3813. public static void ByteTo__PROGRAM_INFO(ref _PROGRAM_INFO[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3814. {
  3815. ByteToBase__PROGRAM_INFO(dst, src, len, wordOffset);
  3816. }
  3817. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO dst, byte[] src, int len = 1, int wordOffset = 0)
  3818. {
  3819. ByteToString(ref dst.ProjectName, src, 1, 0 + wordOffset, 65);
  3820. ByteToUshort(ref dst.SensorInstExecCount, src, 1, 34 + wordOffset);
  3821. ByteToUshort(ref dst.PrjPasswordCertFailCount, src, 1, 35 + wordOffset);
  3822. ByteToUshort(ref dst.PrjPasswordCertFailTotal, src, 1, 36 + wordOffset);
  3823. ByteToUshort(ref dst.CpuFuncVersion, src, 1, 38 + wordOffset);
  3824. ByteToUshort(ref dst.ProjectVersion, src, 1, 45 + wordOffset);
  3825. }
  3826. private static void ByteToBase__PROJECT_INFO(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3827. {
  3828. int[] indices = NewIndices(dst);
  3829. int offset = wordOffset;
  3830. for ( int i = 0; i < len; i++ )
  3831. {
  3832. _PROJECT_INFO elemTmp = new _PROJECT_INFO();
  3833. NextIndices(dst, indices);
  3834. ByteTo__PROJECT_INFO(ref elemTmp, src, len, wordOffset);
  3835. dst.SetValue(elemTmp, indices);
  3836. wordOffset += _PROJECT_INFO_WSIZE;
  3837. }
  3838. }
  3839. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3840. {
  3841. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3842. }
  3843. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3844. {
  3845. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3846. }
  3847. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3848. {
  3849. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3850. }
  3851. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3852. {
  3853. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3854. }
  3855. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3856. {
  3857. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3858. }
  3859. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3860. {
  3861. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3862. }
  3863. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3864. {
  3865. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3866. }
  3867. public static void ByteTo__PROJECT_INFO(ref _PROJECT_INFO[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3868. {
  3869. ByteToBase__PROJECT_INFO(dst, src, len, wordOffset);
  3870. }
  3871. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD dst, byte[] src, int len = 1, int wordOffset = 0)
  3872. {
  3873. ByteToBool(ref dst.Request, src, 1, 0 + wordOffset, 0);
  3874. ByteToBool(ref dst.Busy, src, 1, 0 + wordOffset, 1);
  3875. ByteToBool(ref dst.Complete, src, 1, 0 + wordOffset, 2);
  3876. ByteToBool(ref dst.Error, src, 1, 0 + wordOffset, 3);
  3877. ByteToUshort(ref dst.DriveNumber, src, 1, 1 + wordOffset);
  3878. ByteToUshort(ref dst.FolderNumber, src, 1, 2 + wordOffset);
  3879. ByteToUshort(ref dst.CompleteDriveNumber, src, 1, 3 + wordOffset);
  3880. ByteToUshort(ref dst.CompleteFolderNumber, src, 1, 4 + wordOffset);
  3881. ByteToUshort(ref dst.FinCode, src, 1, 5 + wordOffset);
  3882. }
  3883. private static void ByteToBase__PROJECT_RECIPE_SAVE_LOAD(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3884. {
  3885. int[] indices = NewIndices(dst);
  3886. int offset = wordOffset;
  3887. for ( int i = 0; i < len; i++ )
  3888. {
  3889. _PROJECT_RECIPE_SAVE_LOAD elemTmp = new _PROJECT_RECIPE_SAVE_LOAD();
  3890. NextIndices(dst, indices);
  3891. ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref elemTmp, src, len, wordOffset);
  3892. dst.SetValue(elemTmp, indices);
  3893. wordOffset += _PROJECT_RECIPE_SAVE_LOAD_WSIZE;
  3894. }
  3895. }
  3896. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3897. {
  3898. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3899. }
  3900. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3901. {
  3902. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3903. }
  3904. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3905. {
  3906. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3907. }
  3908. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3909. {
  3910. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3911. }
  3912. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3913. {
  3914. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3915. }
  3916. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3917. {
  3918. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3919. }
  3920. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3921. {
  3922. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3923. }
  3924. public static void ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref _PROJECT_RECIPE_SAVE_LOAD[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3925. {
  3926. ByteToBase__PROJECT_RECIPE_SAVE_LOAD(dst, src, len, wordOffset);
  3927. }
  3928. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE dst, byte[] src, int len = 1, int wordOffset = 0)
  3929. {
  3930. ByteToBool(ref dst.Request, src, 1, 0 + wordOffset, 0);
  3931. ByteToBool(ref dst.Busy, src, 1, 0 + wordOffset, 1);
  3932. ByteToBool(ref dst.Complete, src, 1, 0 + wordOffset, 2);
  3933. ByteToBool(ref dst.Error, src, 1, 0 + wordOffset, 3);
  3934. ByteToUshort(ref dst.DriveNumber, src, 1, 1 + wordOffset);
  3935. ByteToUshort(ref dst.InputFolderNumber, src, 1, 2 + wordOffset);
  3936. ByteToUshort(ref dst.OutputFolderNumber, src, 1, 4 + wordOffset);
  3937. ByteToUshort(ref dst.FinCode, src, 1, 5 + wordOffset);
  3938. }
  3939. private static void ByteToBase__RECIPE_SAVE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3940. {
  3941. int[] indices = NewIndices(dst);
  3942. int offset = wordOffset;
  3943. for ( int i = 0; i < len; i++ )
  3944. {
  3945. _RECIPE_SAVE elemTmp = new _RECIPE_SAVE();
  3946. NextIndices(dst, indices);
  3947. ByteTo__RECIPE_SAVE(ref elemTmp, src, len, wordOffset);
  3948. dst.SetValue(elemTmp, indices);
  3949. wordOffset += _RECIPE_SAVE_WSIZE;
  3950. }
  3951. }
  3952. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  3953. {
  3954. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3955. }
  3956. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3957. {
  3958. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3959. }
  3960. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3961. {
  3962. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3963. }
  3964. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3965. {
  3966. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3967. }
  3968. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3969. {
  3970. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3971. }
  3972. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3973. {
  3974. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3975. }
  3976. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3977. {
  3978. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3979. }
  3980. public static void ByteTo__RECIPE_SAVE(ref _RECIPE_SAVE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  3981. {
  3982. ByteToBase__RECIPE_SAVE(dst, src, len, wordOffset);
  3983. }
  3984. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS dst, byte[] src, int len = 1, int wordOffset = 0)
  3985. {
  3986. ByteToUshort(ref dst.SocketStatus, src, 1, 0 + wordOffset);
  3987. ByteToUshort(ref dst.TCPConnStatus, src, 1, 1 + wordOffset);
  3988. ByteToUshort(ref dst.MyPortNo, src, 1, 2 + wordOffset);
  3989. ByteToString(ref dst.ConnAddress, src, 1, 3 + wordOffset, 16);
  3990. ByteToUshort(ref dst.ConnPortNo, src, 1, 11 + wordOffset);
  3991. }
  3992. private static void ByteToBase__SOCKET_STATUS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  3993. {
  3994. int[] indices = NewIndices(dst);
  3995. int offset = wordOffset;
  3996. for ( int i = 0; i < len; i++ )
  3997. {
  3998. _SOCKET_STATUS elemTmp = new _SOCKET_STATUS();
  3999. NextIndices(dst, indices);
  4000. ByteTo__SOCKET_STATUS(ref elemTmp, src, len, wordOffset);
  4001. dst.SetValue(elemTmp, indices);
  4002. wordOffset += _SOCKET_STATUS_WSIZE;
  4003. }
  4004. }
  4005. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4006. {
  4007. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4008. }
  4009. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4010. {
  4011. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4012. }
  4013. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4014. {
  4015. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4016. }
  4017. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4018. {
  4019. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4020. }
  4021. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4022. {
  4023. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4024. }
  4025. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4026. {
  4027. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4028. }
  4029. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4030. {
  4031. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4032. }
  4033. public static void ByteTo__SOCKET_STATUS(ref _SOCKET_STATUS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4034. {
  4035. ByteToBase__SOCKET_STATUS(dst, src, len, wordOffset);
  4036. }
  4037. public static void ByteTo__STORAGE(ref _STORAGE dst, byte[] src, int len = 1, int wordOffset = 0)
  4038. {
  4039. ByteToBool(ref dst.MemCardMountReq, src, 1, 0 + wordOffset, 0);
  4040. ByteToBool(ref dst.MemCardUnmountReq, src, 1, 0 + wordOffset, 1);
  4041. ByteToBool(ref dst.MemCardInUse, src, 1, 0 + wordOffset, 2);
  4042. ByteToBool(ref dst.MemCardRecognized, src, 1, 0 + wordOffset, 3);
  4043. ByteToBool(ref dst.MemCardExist, src, 1, 0 + wordOffset, 4);
  4044. ByteToBool(ref dst.CpuMemoryMountReq, src, 1, 0 + wordOffset, 8);
  4045. ByteToBool(ref dst.CpuMemoryUnmountReq, src, 1, 0 + wordOffset, 9);
  4046. ByteToBool(ref dst.CpuMemoryInUse, src, 1, 0 + wordOffset, 10);
  4047. ByteToBool(ref dst.CpuMemoryRecognized, src, 1, 0 + wordOffset, 11);
  4048. ByteTo__AUTOLOAD_CTRL(ref dst.AutoLoad, src, 1, 3 + wordOffset);
  4049. ByteTo__AUTOLOAD_CTRL(ref dst.RunLoad, src, 1, 10 + wordOffset);
  4050. ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref dst.ProjectSave, src, 1, 20 + wordOffset);
  4051. ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref dst.ProjectLoad, src, 1, 30 + wordOffset);
  4052. ByteTo__RECIPE_SAVE(ref dst.RecipeSave, src, 1, 40 + wordOffset);
  4053. ByteTo__PROJECT_RECIPE_SAVE_LOAD(ref dst.RecipeLoad, src, 1, 50 + wordOffset);
  4054. ByteTo__CPU_MEMORY_SAVE(ref dst.CpuMemorySave, src, 1, 60 + wordOffset);
  4055. ByteToBool(ref dst.StorageFBIsRAMMode, src, 1, 61 + wordOffset, 7);
  4056. ByteToBool(ref dst.ProjectBackupBusy, src, 1, 61 + wordOffset, 8);
  4057. ByteToBool(ref dst.LoggingTraceBusy, src, 1, 61 + wordOffset, 10);
  4058. ByteToBool(ref dst.LoggingInternalBufferOverflow, src, 1, 61 + wordOffset, 11);
  4059. ByteToUshort(ref dst.PowerOffDuringStorageAccess, src, 1, 70 + wordOffset);
  4060. ByteToUshort(ref dst.MemoryCardRetryCount, src, 1, 71 + wordOffset);
  4061. ByteToUshort(ref dst.MemoryCardErrorCount, src, 1, 72 + wordOffset);
  4062. ByteToUshort(ref dst.MemoryCardResetDelay, src, 1, 74 + wordOffset);
  4063. ByteToUint(ref dst.UsageCpuMemory, src, 1, 80 + wordOffset);
  4064. }
  4065. private static void ByteToBase__STORAGE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4066. {
  4067. int[] indices = NewIndices(dst);
  4068. int offset = wordOffset;
  4069. for ( int i = 0; i < len; i++ )
  4070. {
  4071. _STORAGE elemTmp = new _STORAGE();
  4072. NextIndices(dst, indices);
  4073. ByteTo__STORAGE(ref elemTmp, src, len, wordOffset);
  4074. dst.SetValue(elemTmp, indices);
  4075. wordOffset += _STORAGE_WSIZE;
  4076. }
  4077. }
  4078. public static void ByteTo__STORAGE(ref _STORAGE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4079. {
  4080. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4081. }
  4082. public static void ByteTo__STORAGE(ref _STORAGE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4083. {
  4084. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4085. }
  4086. public static void ByteTo__STORAGE(ref _STORAGE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4087. {
  4088. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4089. }
  4090. public static void ByteTo__STORAGE(ref _STORAGE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4091. {
  4092. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4093. }
  4094. public static void ByteTo__STORAGE(ref _STORAGE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4095. {
  4096. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4097. }
  4098. public static void ByteTo__STORAGE(ref _STORAGE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4099. {
  4100. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4101. }
  4102. public static void ByteTo__STORAGE(ref _STORAGE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4103. {
  4104. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4105. }
  4106. public static void ByteTo__STORAGE(ref _STORAGE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4107. {
  4108. ByteToBase__STORAGE(dst, src, len, wordOffset);
  4109. }
  4110. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM dst, byte[] src, int len = 1, int wordOffset = 0)
  4111. {
  4112. ByteToUshort(ref dst.Delimiter, src, 1, 0 + wordOffset);
  4113. ByteToBool(ref dst.Hex, src, 1, 1 + wordOffset, 0);
  4114. }
  4115. private static void ByteToBase__STRING_TO_VARIABLE_PARAM(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4116. {
  4117. int[] indices = NewIndices(dst);
  4118. int offset = wordOffset;
  4119. for ( int i = 0; i < len; i++ )
  4120. {
  4121. _STRING_TO_VARIABLE_PARAM elemTmp = new _STRING_TO_VARIABLE_PARAM();
  4122. NextIndices(dst, indices);
  4123. ByteTo__STRING_TO_VARIABLE_PARAM(ref elemTmp, src, len, wordOffset);
  4124. dst.SetValue(elemTmp, indices);
  4125. wordOffset += _STRING_TO_VARIABLE_PARAM_WSIZE;
  4126. }
  4127. }
  4128. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4129. {
  4130. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4131. }
  4132. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4133. {
  4134. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4135. }
  4136. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4137. {
  4138. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4139. }
  4140. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4141. {
  4142. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4143. }
  4144. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4145. {
  4146. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4147. }
  4148. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4149. {
  4150. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4151. }
  4152. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4153. {
  4154. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4155. }
  4156. public static void ByteTo__STRING_TO_VARIABLE_PARAM(ref _STRING_TO_VARIABLE_PARAM[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4157. {
  4158. ByteToBase__STRING_TO_VARIABLE_PARAM(dst, src, len, wordOffset);
  4159. }
  4160. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR dst, byte[] src, int len = 1, int wordOffset = 0)
  4161. {
  4162. ByteToUshort(ref dst.UnitNo, src, 1, 0 + wordOffset);
  4163. ByteToUint(ref dst.RelayAdr, src, 1, 2 + wordOffset);
  4164. ByteToUint(ref dst.DmAdr, src, 1, 4 + wordOffset);
  4165. }
  4166. private static void ByteToBase__UNIT_ID_ADR(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4167. {
  4168. int[] indices = NewIndices(dst);
  4169. int offset = wordOffset;
  4170. for ( int i = 0; i < len; i++ )
  4171. {
  4172. _UNIT_ID_ADR elemTmp = new _UNIT_ID_ADR();
  4173. NextIndices(dst, indices);
  4174. ByteTo__UNIT_ID_ADR(ref elemTmp, src, len, wordOffset);
  4175. dst.SetValue(elemTmp, indices);
  4176. wordOffset += _UNIT_ID_ADR_WSIZE;
  4177. }
  4178. }
  4179. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4180. {
  4181. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4182. }
  4183. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4184. {
  4185. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4186. }
  4187. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4188. {
  4189. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4190. }
  4191. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4192. {
  4193. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4194. }
  4195. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4196. {
  4197. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4198. }
  4199. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4200. {
  4201. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4202. }
  4203. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4204. {
  4205. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4206. }
  4207. public static void ByteTo__UNIT_ID_ADR(ref _UNIT_ID_ADR[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4208. {
  4209. ByteToBase__UNIT_ID_ADR(dst, src, len, wordOffset);
  4210. }
  4211. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE dst, byte[] src, int len = 1, int wordOffset = 0)
  4212. {
  4213. ByteToUint(ref dst.RefreshStartTimeDelay, src, 1, 0 + wordOffset);
  4214. ByteToUint(ref dst.RefreshFinishTimeDelay, src, 1, 2 + wordOffset);
  4215. ByteToUint(ref dst.RefreshStartTimeMaxDelay, src, 1, 4 + wordOffset);
  4216. ByteToUint(ref dst.RefreshFinishTimeMaxDelay, src, 1, 6 + wordOffset);
  4217. ByteToUint(ref dst.RefreshExecutionTime, src, 1, 8 + wordOffset);
  4218. ByteToBool(ref dst.RefreshIntervalOver, src, 1, 10 + wordOffset, 0);
  4219. ByteToUshort(ref dst.Reserved, src, 1, 11 + wordOffset);
  4220. }
  4221. private static void ByteToBase__UNIT_SYNCHRONIZE(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4222. {
  4223. int[] indices = NewIndices(dst);
  4224. int offset = wordOffset;
  4225. for ( int i = 0; i < len; i++ )
  4226. {
  4227. _UNIT_SYNCHRONIZE elemTmp = new _UNIT_SYNCHRONIZE();
  4228. NextIndices(dst, indices);
  4229. ByteTo__UNIT_SYNCHRONIZE(ref elemTmp, src, len, wordOffset);
  4230. dst.SetValue(elemTmp, indices);
  4231. wordOffset += _UNIT_SYNCHRONIZE_WSIZE;
  4232. }
  4233. }
  4234. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4235. {
  4236. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4237. }
  4238. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4239. {
  4240. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4241. }
  4242. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4243. {
  4244. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4245. }
  4246. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4247. {
  4248. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4249. }
  4250. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4251. {
  4252. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4253. }
  4254. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4255. {
  4256. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4257. }
  4258. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4259. {
  4260. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4261. }
  4262. public static void ByteTo__UNIT_SYNCHRONIZE(ref _UNIT_SYNCHRONIZE[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4263. {
  4264. ByteToBase__UNIT_SYNCHRONIZE(dst, src, len, wordOffset);
  4265. }
  4266. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM dst, byte[] src, int len = 1, int wordOffset = 0)
  4267. {
  4268. ByteToUshort(ref dst.Delimiter, src, 1, 0 + wordOffset);
  4269. ByteToUshort(ref dst.CrLfCount, src, 1, 1 + wordOffset);
  4270. ByteToUshort(ref dst.EndStr, src, 1, 2 + wordOffset);
  4271. ByteToBool(ref dst.FixedDigit, src, 1, 3 + wordOffset, 0);
  4272. ByteToBool(ref dst.Hex, src, 1, 3 + wordOffset, 1);
  4273. }
  4274. private static void ByteToBase__VARIABLE_TO_STRING_PARAM(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4275. {
  4276. int[] indices = NewIndices(dst);
  4277. int offset = wordOffset;
  4278. for ( int i = 0; i < len; i++ )
  4279. {
  4280. _VARIABLE_TO_STRING_PARAM elemTmp = new _VARIABLE_TO_STRING_PARAM();
  4281. NextIndices(dst, indices);
  4282. ByteTo__VARIABLE_TO_STRING_PARAM(ref elemTmp, src, len, wordOffset);
  4283. dst.SetValue(elemTmp, indices);
  4284. wordOffset += _VARIABLE_TO_STRING_PARAM_WSIZE;
  4285. }
  4286. }
  4287. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4288. {
  4289. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4290. }
  4291. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4292. {
  4293. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4294. }
  4295. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4296. {
  4297. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4298. }
  4299. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4300. {
  4301. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4302. }
  4303. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4304. {
  4305. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4306. }
  4307. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4308. {
  4309. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4310. }
  4311. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4312. {
  4313. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4314. }
  4315. public static void ByteTo__VARIABLE_TO_STRING_PARAM(ref _VARIABLE_TO_STRING_PARAM[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4316. {
  4317. ByteToBase__VARIABLE_TO_STRING_PARAM(dst, src, len, wordOffset);
  4318. }
  4319. public static void ByteTo__FILE_INFO(ref _FILE_INFO dst, byte[] src, int len = 1, int wordOffset = 0)
  4320. {
  4321. ByteToString(ref dst.FileName, src, 1, 0 + wordOffset, 129);
  4322. ByteTo__FILE_STATUS(ref dst.FileStatus, src, 1, 66 + wordOffset);
  4323. }
  4324. private static void ByteToBase__FILE_INFO(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4325. {
  4326. int[] indices = NewIndices(dst);
  4327. int offset = wordOffset;
  4328. for ( int i = 0; i < len; i++ )
  4329. {
  4330. _FILE_INFO elemTmp = new _FILE_INFO();
  4331. NextIndices(dst, indices);
  4332. ByteTo__FILE_INFO(ref elemTmp, src, len, wordOffset);
  4333. dst.SetValue(elemTmp, indices);
  4334. wordOffset += _FILE_INFO_WSIZE;
  4335. }
  4336. }
  4337. public static void ByteTo__FILE_INFO(ref _FILE_INFO[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4338. {
  4339. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4340. }
  4341. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4342. {
  4343. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4344. }
  4345. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4346. {
  4347. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4348. }
  4349. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4350. {
  4351. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4352. }
  4353. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4354. {
  4355. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4356. }
  4357. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4358. {
  4359. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4360. }
  4361. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4362. {
  4363. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4364. }
  4365. public static void ByteTo__FILE_INFO(ref _FILE_INFO[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4366. {
  4367. ByteToBase__FILE_INFO(dst, src, len, wordOffset);
  4368. }
  4369. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF dst, byte[] src, int len = 1, int wordOffset = 0)
  4370. {
  4371. ByteToUshort(ref dst.AxisNo, src, 1, 0 + wordOffset);
  4372. ByteTo__MC_AXIS_STATUS(ref dst.Status, src, 1, 2 + wordOffset);
  4373. ByteTo__MC_AXIS_CMP_CODE(ref dst.CmpCode, src, 1, 114 + wordOffset);
  4374. ByteTo__MC_AXIS_SYNC_STATUS(ref dst.SyncStatus, src, 1, 138 + wordOffset);
  4375. ByteTo__MC_AXIS_STATUS_BIT(ref dst.StatusBit, src, 1, 218 + wordOffset);
  4376. }
  4377. private static void ByteToBase__MC_AXIS_REF(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4378. {
  4379. int[] indices = NewIndices(dst);
  4380. int offset = wordOffset;
  4381. for ( int i = 0; i < len; i++ )
  4382. {
  4383. _MC_AXIS_REF elemTmp = new _MC_AXIS_REF();
  4384. NextIndices(dst, indices);
  4385. ByteTo__MC_AXIS_REF(ref elemTmp, src, len, wordOffset);
  4386. dst.SetValue(elemTmp, indices);
  4387. wordOffset += _MC_AXIS_REF_WSIZE;
  4388. }
  4389. }
  4390. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4391. {
  4392. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4393. }
  4394. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4395. {
  4396. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4397. }
  4398. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4399. {
  4400. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4401. }
  4402. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4403. {
  4404. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4405. }
  4406. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4407. {
  4408. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4409. }
  4410. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4411. {
  4412. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4413. }
  4414. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4415. {
  4416. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4417. }
  4418. public static void ByteTo__MC_AXIS_REF(ref _MC_AXIS_REF[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4419. {
  4420. ByteToBase__MC_AXIS_REF(dst, src, len, wordOffset);
  4421. }
  4422. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  4423. {
  4424. ByteToUshort(ref dst.UnitCfg, src, 1, 0 + wordOffset);
  4425. ByteTo__MC_SYNC_EXT_INPUT_CFG(ref dst.SyncExtInputCfg, src, 48, 2 + wordOffset);
  4426. }
  4427. private static void ByteToBase__MC_COMMON_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4428. {
  4429. int[] indices = NewIndices(dst);
  4430. int offset = wordOffset;
  4431. for ( int i = 0; i < len; i++ )
  4432. {
  4433. _MC_COMMON_CFG elemTmp = new _MC_COMMON_CFG();
  4434. NextIndices(dst, indices);
  4435. ByteTo__MC_COMMON_CFG(ref elemTmp, src, len, wordOffset);
  4436. dst.SetValue(elemTmp, indices);
  4437. wordOffset += _MC_COMMON_CFG_WSIZE;
  4438. }
  4439. }
  4440. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4441. {
  4442. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4443. }
  4444. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4445. {
  4446. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4447. }
  4448. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4449. {
  4450. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4451. }
  4452. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4453. {
  4454. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4455. }
  4456. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4457. {
  4458. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4459. }
  4460. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4461. {
  4462. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4463. }
  4464. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4465. {
  4466. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4467. }
  4468. public static void ByteTo__MC_COMMON_CFG(ref _MC_COMMON_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4469. {
  4470. ByteToBase__MC_COMMON_CFG(dst, src, len, wordOffset);
  4471. }
  4472. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS dst, byte[] src, int len = 1, int wordOffset = 0)
  4473. {
  4474. ByteToUshort(ref dst.UnitErrorCode, src, 1, 0 + wordOffset);
  4475. ByteToUshort(ref dst.UnitErrorDetail, src, 5, 1 + wordOffset);
  4476. ByteTo__MC_SYNC_CONTACT_OUTPUT(ref dst.SyncContactOutput, src, 32, 6 + wordOffset);
  4477. ByteToUshort(ref dst.Reserved, src, 2, 38 + wordOffset);
  4478. }
  4479. private static void ByteToBase__MC_COMMON_STATUS(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4480. {
  4481. int[] indices = NewIndices(dst);
  4482. int offset = wordOffset;
  4483. for ( int i = 0; i < len; i++ )
  4484. {
  4485. _MC_COMMON_STATUS elemTmp = new _MC_COMMON_STATUS();
  4486. NextIndices(dst, indices);
  4487. ByteTo__MC_COMMON_STATUS(ref elemTmp, src, len, wordOffset);
  4488. dst.SetValue(elemTmp, indices);
  4489. wordOffset += _MC_COMMON_STATUS_WSIZE;
  4490. }
  4491. }
  4492. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4493. {
  4494. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4495. }
  4496. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4497. {
  4498. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4499. }
  4500. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4501. {
  4502. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4503. }
  4504. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4505. {
  4506. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4507. }
  4508. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4509. {
  4510. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4511. }
  4512. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4513. {
  4514. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4515. }
  4516. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4517. {
  4518. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4519. }
  4520. public static void ByteTo__MC_COMMON_STATUS(ref _MC_COMMON_STATUS[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4521. {
  4522. ByteToBase__MC_COMMON_STATUS(dst, src, len, wordOffset);
  4523. }
  4524. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG dst, byte[] src, int len = 1, int wordOffset = 0)
  4525. {
  4526. ByteTo__MC_SYNC_CONTACT_OUTPUT_SUB_CFG(ref dst.ConfigNo, src, 32, 0 + wordOffset);
  4527. }
  4528. private static void ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4529. {
  4530. int[] indices = NewIndices(dst);
  4531. int offset = wordOffset;
  4532. for ( int i = 0; i < len; i++ )
  4533. {
  4534. _MC_SYNC_CONTACT_OUTPUT_CFG elemTmp = new _MC_SYNC_CONTACT_OUTPUT_CFG();
  4535. NextIndices(dst, indices);
  4536. ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref elemTmp, src, len, wordOffset);
  4537. dst.SetValue(elemTmp, indices);
  4538. wordOffset += _MC_SYNC_CONTACT_OUTPUT_CFG_WSIZE;
  4539. }
  4540. }
  4541. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4542. {
  4543. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4544. }
  4545. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4546. {
  4547. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4548. }
  4549. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4550. {
  4551. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4552. }
  4553. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4554. {
  4555. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4556. }
  4557. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4558. {
  4559. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4560. }
  4561. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4562. {
  4563. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4564. }
  4565. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4566. {
  4567. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4568. }
  4569. public static void ByteTo__MC_SYNC_CONTACT_OUTPUT_CFG(ref _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4570. {
  4571. ByteToBase__MC_SYNC_CONTACT_OUTPUT_CFG(dst, src, len, wordOffset);
  4572. }
  4573. public static void ByteTo__MC_COMMON(ref _MC_COMMON dst, byte[] src, int len = 1, int wordOffset = 0)
  4574. {
  4575. ByteTo__MC_COMMON_STATUS(ref dst.Status, src, 1, 0 + wordOffset);
  4576. ByteTo__MC_COMMON_CMP_CODE(ref dst.CmpCode, src, 1, 40 + wordOffset);
  4577. ByteTo__MC_COMMON_PERFORMANCE(ref dst.Performance, src, 1, 48 + wordOffset);
  4578. ByteTo__MC_COMMON_STATUS_BIT(ref dst.StatusBit, src, 1, 60 + wordOffset);
  4579. }
  4580. private static void ByteToBase__MC_COMMON(Array dst, byte[] src, int len = 1, int wordOffset = 0)
  4581. {
  4582. int[] indices = NewIndices(dst);
  4583. int offset = wordOffset;
  4584. for ( int i = 0; i < len; i++ )
  4585. {
  4586. _MC_COMMON elemTmp = new _MC_COMMON();
  4587. NextIndices(dst, indices);
  4588. ByteTo__MC_COMMON(ref elemTmp, src, len, wordOffset);
  4589. dst.SetValue(elemTmp, indices);
  4590. wordOffset += _MC_COMMON_WSIZE;
  4591. }
  4592. }
  4593. public static void ByteTo__MC_COMMON(ref _MC_COMMON[] dst, byte[] src, int len = 1, int wordOffset = 0)
  4594. {
  4595. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4596. }
  4597. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4598. {
  4599. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4600. }
  4601. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4602. {
  4603. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4604. }
  4605. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4606. {
  4607. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4608. }
  4609. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4610. {
  4611. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4612. }
  4613. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4614. {
  4615. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4616. }
  4617. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4618. {
  4619. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4620. }
  4621. public static void ByteTo__MC_COMMON(ref _MC_COMMON[,,,,,,,] dst, byte[] src, int len = 1, int wordOffset = 0)
  4622. {
  4623. ByteToBase__MC_COMMON(dst, src, len, wordOffset);
  4624. }
  4625. public static void stMemArr_ToByte(ref byte[] dst, stMemArr src, int len = 1, int wordOffset = 0)
  4626. {
  4627. UshortToByte(ref dst, src.auSample, 100, 0 + wordOffset);
  4628. StringToByte(ref dst, src.astrSample, 10, 100 + wordOffset, 10);
  4629. }
  4630. private static void stMemArr_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4631. {
  4632. int[] indices = NewIndices(src);
  4633. int offset = wordOffset;
  4634. for ( int i = 0; i < len; i++ )
  4635. {
  4636. NextIndices(src, indices);
  4637. stMemArr_ToByte(ref dst, ( stMemArr ) src.GetValue(indices), len, wordOffset);
  4638. wordOffset += stMemArr_WSIZE;
  4639. }
  4640. }
  4641. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[] src, int len = 1, int wordOffset = 0)
  4642. {
  4643. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4644. }
  4645. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,] src, int len = 1, int wordOffset = 0)
  4646. {
  4647. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4648. }
  4649. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,,] src, int len = 1, int wordOffset = 0)
  4650. {
  4651. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4652. }
  4653. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,,,] src, int len = 1, int wordOffset = 0)
  4654. {
  4655. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4656. }
  4657. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,,,,] src, int len = 1, int wordOffset = 0)
  4658. {
  4659. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4660. }
  4661. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,,,,,] src, int len = 1, int wordOffset = 0)
  4662. {
  4663. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4664. }
  4665. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,,,,,,] src, int len = 1, int wordOffset = 0)
  4666. {
  4667. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4668. }
  4669. public static void stMemArr_ToByte(ref byte[] dst, stMemArr[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4670. {
  4671. stMemArr_ToByteBase(ref dst, src, len, wordOffset);
  4672. }
  4673. public static void stNode_ToByte(ref byte[] dst, stNode src, int len = 1, int wordOffset = 0)
  4674. {
  4675. BoolToByte(ref dst, src.xMember, 1, 0 + wordOffset, 0);
  4676. BoolToByte(ref dst, src.xMember2, 1, 0 + wordOffset, 1);
  4677. UshortToByte(ref dst, src.uMember, 1, 1 + wordOffset);
  4678. ShortToByte(ref dst, src.iMember, 1, 2 + wordOffset);
  4679. UintToByte(ref dst, src.duMember, 1, 4 + wordOffset);
  4680. IntToByte(ref dst, src.diMember, 1, 6 + wordOffset);
  4681. FloatToByte(ref dst, src.fMember, 1, 8 + wordOffset);
  4682. DoubleToByte(ref dst, src.dfMember, 1, 10 + wordOffset);
  4683. StringToByte(ref dst, src.strMember, 1, 14 + wordOffset, 16);
  4684. }
  4685. private static void stNode_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4686. {
  4687. int[] indices = NewIndices(src);
  4688. int offset = wordOffset;
  4689. for ( int i = 0; i < len; i++ )
  4690. {
  4691. NextIndices(src, indices);
  4692. stNode_ToByte(ref dst, ( stNode ) src.GetValue(indices), len, wordOffset);
  4693. wordOffset += stNode_WSIZE;
  4694. }
  4695. }
  4696. public static void stNode_ToByte(ref byte[] dst, stNode[] src, int len = 1, int wordOffset = 0)
  4697. {
  4698. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4699. }
  4700. public static void stNode_ToByte(ref byte[] dst, stNode[,] src, int len = 1, int wordOffset = 0)
  4701. {
  4702. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4703. }
  4704. public static void stNode_ToByte(ref byte[] dst, stNode[,,] src, int len = 1, int wordOffset = 0)
  4705. {
  4706. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4707. }
  4708. public static void stNode_ToByte(ref byte[] dst, stNode[,,,] src, int len = 1, int wordOffset = 0)
  4709. {
  4710. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4711. }
  4712. public static void stNode_ToByte(ref byte[] dst, stNode[,,,,] src, int len = 1, int wordOffset = 0)
  4713. {
  4714. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4715. }
  4716. public static void stNode_ToByte(ref byte[] dst, stNode[,,,,,] src, int len = 1, int wordOffset = 0)
  4717. {
  4718. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4719. }
  4720. public static void stNode_ToByte(ref byte[] dst, stNode[,,,,,,] src, int len = 1, int wordOffset = 0)
  4721. {
  4722. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4723. }
  4724. public static void stNode_ToByte(ref byte[] dst, stNode[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4725. {
  4726. stNode_ToByteBase(ref dst, src, len, wordOffset);
  4727. }
  4728. public static void stParent_ToByte(ref byte[] dst, stParent src, int len = 1, int wordOffset = 0)
  4729. {
  4730. BoolToByte(ref dst, src.xReq, 1, 0 + wordOffset, 0);
  4731. BoolToByte(ref dst, src.xCmp, 1, 0 + wordOffset, 1);
  4732. BoolToByte(ref dst, src.xErr, 1, 0 + wordOffset, 2);
  4733. UshortToByte(ref dst, src.uErrCode, 1, 1 + wordOffset);
  4734. stNode_ToByte(ref dst, src.stNode_Member, 1, 2 + wordOffset);
  4735. stNode_ToByte(ref dst, src.astNode, 10, 24 + wordOffset);
  4736. }
  4737. private static void stParent_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4738. {
  4739. int[] indices = NewIndices(src);
  4740. int offset = wordOffset;
  4741. for ( int i = 0; i < len; i++ )
  4742. {
  4743. NextIndices(src, indices);
  4744. stParent_ToByte(ref dst, ( stParent ) src.GetValue(indices), len, wordOffset);
  4745. wordOffset += stParent_WSIZE;
  4746. }
  4747. }
  4748. public static void stParent_ToByte(ref byte[] dst, stParent[] src, int len = 1, int wordOffset = 0)
  4749. {
  4750. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4751. }
  4752. public static void stParent_ToByte(ref byte[] dst, stParent[,] src, int len = 1, int wordOffset = 0)
  4753. {
  4754. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4755. }
  4756. public static void stParent_ToByte(ref byte[] dst, stParent[,,] src, int len = 1, int wordOffset = 0)
  4757. {
  4758. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4759. }
  4760. public static void stParent_ToByte(ref byte[] dst, stParent[,,,] src, int len = 1, int wordOffset = 0)
  4761. {
  4762. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4763. }
  4764. public static void stParent_ToByte(ref byte[] dst, stParent[,,,,] src, int len = 1, int wordOffset = 0)
  4765. {
  4766. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4767. }
  4768. public static void stParent_ToByte(ref byte[] dst, stParent[,,,,,] src, int len = 1, int wordOffset = 0)
  4769. {
  4770. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4771. }
  4772. public static void stParent_ToByte(ref byte[] dst, stParent[,,,,,,] src, int len = 1, int wordOffset = 0)
  4773. {
  4774. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4775. }
  4776. public static void stParent_ToByte(ref byte[] dst, stParent[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4777. {
  4778. stParent_ToByteBase(ref dst, src, len, wordOffset);
  4779. }
  4780. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW src, int len = 1, int wordOffset = 0)
  4781. {
  4782. BoolToByte(ref dst, src.UpKeyPressed, 1, 0 + wordOffset, 0);
  4783. BoolToByte(ref dst, src.DownKeyPressed, 1, 0 + wordOffset, 1);
  4784. BoolToByte(ref dst, src.LeftKeyPressed, 1, 0 + wordOffset, 2);
  4785. BoolToByte(ref dst, src.RightKeyPressed, 1, 0 + wordOffset, 3);
  4786. BoolToByte(ref dst, src.MenuKeyPressed, 1, 0 + wordOffset, 4);
  4787. BoolToByte(ref dst, src.EnterKeyPressed, 1, 0 + wordOffset, 5);
  4788. BoolToByte(ref dst, src.UserMessageDisplayed, 1, 0 + wordOffset, 15);
  4789. BoolToByte(ref dst, src.BlinkLine, 4, 1 + wordOffset, 0);
  4790. BoolToByte(ref dst, src.DisplayUserMessage, 63, 2 + wordOffset, 1);
  4791. UshortToByte(ref dst, src.UserMessageDisplayID, 1, 10 + wordOffset);
  4792. UshortToByte(ref dst, src.InitialDispLangSetting, 1, 11 + wordOffset);
  4793. UshortToByte(ref dst, src.InitialCommentNumberSetting, 1, 12 + wordOffset);
  4794. UshortToByte(ref dst, src.WindowOperationDisable, 1, 13 + wordOffset);
  4795. UshortToByte(ref dst, src.InitScreenSetValid, 1, 14 + wordOffset);
  4796. UshortToByte(ref dst, src.InitScreenSetDeviceType, 1, 15 + wordOffset);
  4797. UintToByte(ref dst, src.InitScreenSetScreenID, 1, 16 + wordOffset);
  4798. UintToByte(ref dst, src.InitScreenSetDeviceNumber, 1, 18 + wordOffset);
  4799. UshortToByte(ref dst, src.InitScreenSetDisplayFormat, 1, 20 + wordOffset);
  4800. UshortToByte(ref dst, src.InitScreenSetDeviceDisplay, 1, 21 + wordOffset);
  4801. UshortToByte(ref dst, src.InitScreenSetKeyLockStatus, 1, 22 + wordOffset);
  4802. UshortToByte(ref dst, src.Reserved, 1, 23 + wordOffset);
  4803. }
  4804. private static void _ACCESS_WINDOW_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4805. {
  4806. int[] indices = NewIndices(src);
  4807. int offset = wordOffset;
  4808. for ( int i = 0; i < len; i++ )
  4809. {
  4810. NextIndices(src, indices);
  4811. _ACCESS_WINDOW_ToByte(ref dst, ( _ACCESS_WINDOW ) src.GetValue(indices), len, wordOffset);
  4812. wordOffset += _ACCESS_WINDOW_WSIZE;
  4813. }
  4814. }
  4815. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[] src, int len = 1, int wordOffset = 0)
  4816. {
  4817. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4818. }
  4819. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,] src, int len = 1, int wordOffset = 0)
  4820. {
  4821. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4822. }
  4823. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,,] src, int len = 1, int wordOffset = 0)
  4824. {
  4825. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4826. }
  4827. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,,,] src, int len = 1, int wordOffset = 0)
  4828. {
  4829. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4830. }
  4831. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,,,,] src, int len = 1, int wordOffset = 0)
  4832. {
  4833. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4834. }
  4835. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,,,,,] src, int len = 1, int wordOffset = 0)
  4836. {
  4837. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4838. }
  4839. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,,,,,,] src, int len = 1, int wordOffset = 0)
  4840. {
  4841. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4842. }
  4843. public static void _ACCESS_WINDOW_ToByte(ref byte[] dst, _ACCESS_WINDOW[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4844. {
  4845. _ACCESS_WINDOW_ToByteBase(ref dst, src, len, wordOffset);
  4846. }
  4847. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL src, int len = 1, int wordOffset = 0)
  4848. {
  4849. UshortToByte(ref dst, src.FolderNumber, 1, 1 + wordOffset);
  4850. UshortToByte(ref dst, src.CompleteFolderNumber, 1, 3 + wordOffset);
  4851. UshortToByte(ref dst, src.FinCode, 1, 4 + wordOffset);
  4852. }
  4853. private static void _AUTOLOAD_CTRL_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4854. {
  4855. int[] indices = NewIndices(src);
  4856. int offset = wordOffset;
  4857. for ( int i = 0; i < len; i++ )
  4858. {
  4859. NextIndices(src, indices);
  4860. _AUTOLOAD_CTRL_ToByte(ref dst, ( _AUTOLOAD_CTRL ) src.GetValue(indices), len, wordOffset);
  4861. wordOffset += _AUTOLOAD_CTRL_WSIZE;
  4862. }
  4863. }
  4864. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[] src, int len = 1, int wordOffset = 0)
  4865. {
  4866. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4867. }
  4868. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,] src, int len = 1, int wordOffset = 0)
  4869. {
  4870. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4871. }
  4872. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,,] src, int len = 1, int wordOffset = 0)
  4873. {
  4874. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4875. }
  4876. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,,,] src, int len = 1, int wordOffset = 0)
  4877. {
  4878. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4879. }
  4880. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,,,,] src, int len = 1, int wordOffset = 0)
  4881. {
  4882. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4883. }
  4884. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,,,,,] src, int len = 1, int wordOffset = 0)
  4885. {
  4886. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4887. }
  4888. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,,,,,,] src, int len = 1, int wordOffset = 0)
  4889. {
  4890. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4891. }
  4892. public static void _AUTOLOAD_CTRL_ToByte(ref byte[] dst, _AUTOLOAD_CTRL[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4893. {
  4894. _AUTOLOAD_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  4895. }
  4896. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE src, int len = 1, int wordOffset = 0)
  4897. {
  4898. BoolToByte(ref dst, src.Request, 1, 0 + wordOffset, 0);
  4899. BoolToByte(ref dst, src.Busy, 1, 0 + wordOffset, 1);
  4900. BoolToByte(ref dst, src.Complete, 1, 0 + wordOffset, 2);
  4901. BoolToByte(ref dst, src.Error, 1, 0 + wordOffset, 3);
  4902. }
  4903. private static void _CPU_MEMORY_SAVE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4904. {
  4905. int[] indices = NewIndices(src);
  4906. int offset = wordOffset;
  4907. for ( int i = 0; i < len; i++ )
  4908. {
  4909. NextIndices(src, indices);
  4910. _CPU_MEMORY_SAVE_ToByte(ref dst, ( _CPU_MEMORY_SAVE ) src.GetValue(indices), len, wordOffset);
  4911. wordOffset += _CPU_MEMORY_SAVE_WSIZE;
  4912. }
  4913. }
  4914. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[] src, int len = 1, int wordOffset = 0)
  4915. {
  4916. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4917. }
  4918. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,] src, int len = 1, int wordOffset = 0)
  4919. {
  4920. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4921. }
  4922. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,,] src, int len = 1, int wordOffset = 0)
  4923. {
  4924. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4925. }
  4926. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,,,] src, int len = 1, int wordOffset = 0)
  4927. {
  4928. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4929. }
  4930. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,,,,] src, int len = 1, int wordOffset = 0)
  4931. {
  4932. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4933. }
  4934. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,,,,,] src, int len = 1, int wordOffset = 0)
  4935. {
  4936. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4937. }
  4938. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,,,,,,] src, int len = 1, int wordOffset = 0)
  4939. {
  4940. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4941. }
  4942. public static void _CPU_MEMORY_SAVE_ToByte(ref byte[] dst, _CPU_MEMORY_SAVE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4943. {
  4944. _CPU_MEMORY_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  4945. }
  4946. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO src, int len = 1, int wordOffset = 0)
  4947. {
  4948. UshortToByte(ref dst, src.DevType, 1, 0 + wordOffset);
  4949. UshortToByte(ref dst, src.BitOffset, 1, 1 + wordOffset);
  4950. UintToByte(ref dst, src.DevNo, 1, 2 + wordOffset);
  4951. }
  4952. private static void _DEV_INFO_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  4953. {
  4954. int[] indices = NewIndices(src);
  4955. int offset = wordOffset;
  4956. for ( int i = 0; i < len; i++ )
  4957. {
  4958. NextIndices(src, indices);
  4959. _DEV_INFO_ToByte(ref dst, ( _DEV_INFO ) src.GetValue(indices), len, wordOffset);
  4960. wordOffset += _DEV_INFO_WSIZE;
  4961. }
  4962. }
  4963. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[] src, int len = 1, int wordOffset = 0)
  4964. {
  4965. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4966. }
  4967. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,] src, int len = 1, int wordOffset = 0)
  4968. {
  4969. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4970. }
  4971. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,,] src, int len = 1, int wordOffset = 0)
  4972. {
  4973. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4974. }
  4975. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,,,] src, int len = 1, int wordOffset = 0)
  4976. {
  4977. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4978. }
  4979. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,,,,] src, int len = 1, int wordOffset = 0)
  4980. {
  4981. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4982. }
  4983. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,,,,,] src, int len = 1, int wordOffset = 0)
  4984. {
  4985. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4986. }
  4987. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,,,,,,] src, int len = 1, int wordOffset = 0)
  4988. {
  4989. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4990. }
  4991. public static void _DEV_INFO_ToByte(ref byte[] dst, _DEV_INFO[,,,,,,,] src, int len = 1, int wordOffset = 0)
  4992. {
  4993. _DEV_INFO_ToByteBase(ref dst, src, len, wordOffset);
  4994. }
  4995. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER src, int len = 1, int wordOffset = 0)
  4996. {
  4997. BoolToByte(ref dst, src.MasterError, 1, 0 + wordOffset, 0);
  4998. BoolToByte(ref dst, src.PDOActive, 1, 0 + wordOffset, 1);
  4999. BoolToByte(ref dst, src.PDOInactive, 1, 0 + wordOffset, 2);
  5000. BoolToByte(ref dst, src.PDOCommError, 1, 0 + wordOffset, 3);
  5001. BoolToByte(ref dst, src.RingError, 1, 0 + wordOffset, 4);
  5002. BoolToByte(ref dst, src.InDataInvalid, 1, 0 + wordOffset, 5);
  5003. BoolToByte(ref dst, src.PDOParticipationTbl, 512, 1 + wordOffset, 0);
  5004. BoolToByte(ref dst, src.PDOActiveTbl, 512, 33 + wordOffset, 0);
  5005. BoolToByte(ref dst, src.PDOCommErrorTbl, 512, 65 + wordOffset, 0);
  5006. BoolToByte(ref dst, src.SDOActiveTbl, 512, 97 + wordOffset, 0);
  5007. BoolToByte(ref dst, src.RegTbl, 512, 129 + wordOffset, 0);
  5008. BoolToByte(ref dst, src.ReserveTbl, 512, 161 + wordOffset, 0);
  5009. BoolToByte(ref dst, src.PDOStopReqTbl, 512, 193 + wordOffset, 0);
  5010. BoolToByte(ref dst, src.RingErrorTbl, 512, 225 + wordOffset, 0);
  5011. UshortToByte(ref dst, src.EcStateTbl, 512, 257 + wordOffset);
  5012. UshortToByte(ref dst, src.MasterErrorCode, 1, 769 + wordOffset);
  5013. UshortToByte(ref dst, src.MasterErrorDetail1, 1, 770 + wordOffset);
  5014. UshortToByte(ref dst, src.MasterErrorDetail2, 1, 771 + wordOffset);
  5015. }
  5016. private static void _EC_MASTER_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5017. {
  5018. int[] indices = NewIndices(src);
  5019. int offset = wordOffset;
  5020. for ( int i = 0; i < len; i++ )
  5021. {
  5022. NextIndices(src, indices);
  5023. _EC_MASTER_ToByte(ref dst, ( _EC_MASTER ) src.GetValue(indices), len, wordOffset);
  5024. wordOffset += _EC_MASTER_WSIZE;
  5025. }
  5026. }
  5027. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[] src, int len = 1, int wordOffset = 0)
  5028. {
  5029. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5030. }
  5031. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,] src, int len = 1, int wordOffset = 0)
  5032. {
  5033. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5034. }
  5035. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,,] src, int len = 1, int wordOffset = 0)
  5036. {
  5037. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5038. }
  5039. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,,,] src, int len = 1, int wordOffset = 0)
  5040. {
  5041. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5042. }
  5043. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,,,,] src, int len = 1, int wordOffset = 0)
  5044. {
  5045. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5046. }
  5047. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,,,,,] src, int len = 1, int wordOffset = 0)
  5048. {
  5049. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5050. }
  5051. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,,,,,,] src, int len = 1, int wordOffset = 0)
  5052. {
  5053. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5054. }
  5055. public static void _EC_MASTER_ToByte(ref byte[] dst, _EC_MASTER[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5056. {
  5057. _EC_MASTER_ToByteBase(ref dst, src, len, wordOffset);
  5058. }
  5059. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE src, int len = 1, int wordOffset = 0)
  5060. {
  5061. UintToByte(ref dst, src.VenderID, 1, 0 + wordOffset);
  5062. UintToByte(ref dst, src.ProductCode, 1, 2 + wordOffset);
  5063. UintToByte(ref dst, src.RevisionNo, 1, 4 + wordOffset);
  5064. UintToByte(ref dst, src.SerialNo, 1, 6 + wordOffset);
  5065. UshortToByte(ref dst, src.StationAlias, 1, 8 + wordOffset);
  5066. UshortToByte(ref dst, src.ConnectNodeNo, 4, 10 + wordOffset);
  5067. UshortToByte(ref dst, src.RxErrorCount, 4, 14 + wordOffset);
  5068. UshortToByte(ref dst, src.EmgMsgErrorCode, 1, 18 + wordOffset);
  5069. UshortToByte(ref dst, src.EmgMsgErrorReg, 1, 19 + wordOffset);
  5070. UshortToByte(ref dst, src.EmgMsgData0_1, 1, 20 + wordOffset);
  5071. UshortToByte(ref dst, src.EmgMsgData2_3, 1, 21 + wordOffset);
  5072. UshortToByte(ref dst, src.EmgMsgData4, 1, 22 + wordOffset);
  5073. UshortToByte(ref dst, src.NodeErrorCode, 1, 23 + wordOffset);
  5074. UshortToByte(ref dst, src.NodeErrorDetail1, 1, 24 + wordOffset);
  5075. UshortToByte(ref dst, src.NodeErrorDetail2, 1, 25 + wordOffset);
  5076. UshortToByte(ref dst, src.NodeWarning, 1, 26 + wordOffset);
  5077. BoolToByte(ref dst, src.NodeError, 1, 27 + wordOffset, 0);
  5078. }
  5079. private static void _EC_NODE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5080. {
  5081. int[] indices = NewIndices(src);
  5082. int offset = wordOffset;
  5083. for ( int i = 0; i < len; i++ )
  5084. {
  5085. NextIndices(src, indices);
  5086. _EC_NODE_ToByte(ref dst, ( _EC_NODE ) src.GetValue(indices), len, wordOffset);
  5087. wordOffset += _EC_NODE_WSIZE;
  5088. }
  5089. }
  5090. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[] src, int len = 1, int wordOffset = 0)
  5091. {
  5092. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5093. }
  5094. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,] src, int len = 1, int wordOffset = 0)
  5095. {
  5096. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5097. }
  5098. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,,] src, int len = 1, int wordOffset = 0)
  5099. {
  5100. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5101. }
  5102. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,,,] src, int len = 1, int wordOffset = 0)
  5103. {
  5104. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5105. }
  5106. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,,,,] src, int len = 1, int wordOffset = 0)
  5107. {
  5108. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5109. }
  5110. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,,,,,] src, int len = 1, int wordOffset = 0)
  5111. {
  5112. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5113. }
  5114. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,,,,,,] src, int len = 1, int wordOffset = 0)
  5115. {
  5116. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5117. }
  5118. public static void _EC_NODE_ToByte(ref byte[] dst, _EC_NODE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5119. {
  5120. _EC_NODE_ToByteBase(ref dst, src, len, wordOffset);
  5121. }
  5122. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL src, int len = 1, int wordOffset = 0)
  5123. {
  5124. BoolToByte(ref dst, src.Error, 1, 0 + wordOffset, 5);
  5125. BoolToByte(ref dst, src.Warning, 1, 0 + wordOffset, 6);
  5126. BoolToByte(ref dst, src.ClearCurrentError, 1, 0 + wordOffset, 9);
  5127. BoolToByte(ref dst, src.ClearHistory, 1, 0 + wordOffset, 10);
  5128. }
  5129. private static void _ERROR_CTRL_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5130. {
  5131. int[] indices = NewIndices(src);
  5132. int offset = wordOffset;
  5133. for ( int i = 0; i < len; i++ )
  5134. {
  5135. NextIndices(src, indices);
  5136. _ERROR_CTRL_ToByte(ref dst, ( _ERROR_CTRL ) src.GetValue(indices), len, wordOffset);
  5137. wordOffset += _ERROR_CTRL_WSIZE;
  5138. }
  5139. }
  5140. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[] src, int len = 1, int wordOffset = 0)
  5141. {
  5142. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5143. }
  5144. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,] src, int len = 1, int wordOffset = 0)
  5145. {
  5146. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5147. }
  5148. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,,] src, int len = 1, int wordOffset = 0)
  5149. {
  5150. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5151. }
  5152. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,,,] src, int len = 1, int wordOffset = 0)
  5153. {
  5154. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5155. }
  5156. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,,,,] src, int len = 1, int wordOffset = 0)
  5157. {
  5158. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5159. }
  5160. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,,,,,] src, int len = 1, int wordOffset = 0)
  5161. {
  5162. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5163. }
  5164. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,,,,,,] src, int len = 1, int wordOffset = 0)
  5165. {
  5166. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5167. }
  5168. public static void _ERROR_CTRL_ToByte(ref byte[] dst, _ERROR_CTRL[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5169. {
  5170. _ERROR_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5171. }
  5172. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL src, int len = 1, int wordOffset = 0)
  5173. {
  5174. UshortToByte(ref dst, src.YearMonth, 1, 0 + wordOffset);
  5175. UshortToByte(ref dst, src.Day, 1, 1 + wordOffset);
  5176. UshortToByte(ref dst, src.Hour, 1, 2 + wordOffset);
  5177. UshortToByte(ref dst, src.Minute, 1, 3 + wordOffset);
  5178. UshortToByte(ref dst, src.Second, 1, 4 + wordOffset);
  5179. UshortToByte(ref dst, src.ErrorNumber, 1, 5 + wordOffset);
  5180. UshortToByte(ref dst, src.ValidCount, 1, 6 + wordOffset);
  5181. UshortToByte(ref dst, src.Detail, 20, 7 + wordOffset);
  5182. }
  5183. private static void _ERROR_DETAIL_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5184. {
  5185. int[] indices = NewIndices(src);
  5186. int offset = wordOffset;
  5187. for ( int i = 0; i < len; i++ )
  5188. {
  5189. NextIndices(src, indices);
  5190. _ERROR_DETAIL_ToByte(ref dst, ( _ERROR_DETAIL ) src.GetValue(indices), len, wordOffset);
  5191. wordOffset += _ERROR_DETAIL_WSIZE;
  5192. }
  5193. }
  5194. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[] src, int len = 1, int wordOffset = 0)
  5195. {
  5196. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5197. }
  5198. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,] src, int len = 1, int wordOffset = 0)
  5199. {
  5200. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5201. }
  5202. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,,] src, int len = 1, int wordOffset = 0)
  5203. {
  5204. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5205. }
  5206. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,,,] src, int len = 1, int wordOffset = 0)
  5207. {
  5208. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5209. }
  5210. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,,,,] src, int len = 1, int wordOffset = 0)
  5211. {
  5212. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5213. }
  5214. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,,,,,] src, int len = 1, int wordOffset = 0)
  5215. {
  5216. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5217. }
  5218. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,,,,,,] src, int len = 1, int wordOffset = 0)
  5219. {
  5220. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5221. }
  5222. public static void _ERROR_DETAIL_ToByte(ref byte[] dst, _ERROR_DETAIL[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5223. {
  5224. _ERROR_DETAIL_ToByteBase(ref dst, src, len, wordOffset);
  5225. }
  5226. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT src, int len = 1, int wordOffset = 0)
  5227. {
  5228. BoolToByte(ref dst, src.Connected, 49, 0 + wordOffset, 0);
  5229. BoolToByte(ref dst, src.LoadOption, 49, 4 + wordOffset, 0);
  5230. UshortToByte(ref dst, src.UnitNumber, 1, 75 + wordOffset);
  5231. }
  5232. private static void _EXPANSION_UNIT_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5233. {
  5234. int[] indices = NewIndices(src);
  5235. int offset = wordOffset;
  5236. for ( int i = 0; i < len; i++ )
  5237. {
  5238. NextIndices(src, indices);
  5239. _EXPANSION_UNIT_ToByte(ref dst, ( _EXPANSION_UNIT ) src.GetValue(indices), len, wordOffset);
  5240. wordOffset += _EXPANSION_UNIT_WSIZE;
  5241. }
  5242. }
  5243. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[] src, int len = 1, int wordOffset = 0)
  5244. {
  5245. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5246. }
  5247. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,] src, int len = 1, int wordOffset = 0)
  5248. {
  5249. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5250. }
  5251. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,,] src, int len = 1, int wordOffset = 0)
  5252. {
  5253. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5254. }
  5255. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,,,] src, int len = 1, int wordOffset = 0)
  5256. {
  5257. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5258. }
  5259. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,,,,] src, int len = 1, int wordOffset = 0)
  5260. {
  5261. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5262. }
  5263. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,,,,,] src, int len = 1, int wordOffset = 0)
  5264. {
  5265. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5266. }
  5267. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,,,,,,] src, int len = 1, int wordOffset = 0)
  5268. {
  5269. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5270. }
  5271. public static void _EXPANSION_UNIT_ToByte(ref byte[] dst, _EXPANSION_UNIT[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5272. {
  5273. _EXPANSION_UNIT_ToByteBase(ref dst, src, len, wordOffset);
  5274. }
  5275. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS src, int len = 1, int wordOffset = 0)
  5276. {
  5277. UshortToByte(ref dst, src.ModifiedDate, 6, 0 + wordOffset);
  5278. UintToByte(ref dst, src.FileSize, 1, 6 + wordOffset);
  5279. BoolToByte(ref dst, src.ReadOnly, 1, 8 + wordOffset, 0);
  5280. BoolToByte(ref dst, src.HiddenFile, 1, 8 + wordOffset, 1);
  5281. BoolToByte(ref dst, src.SystemFile, 1, 8 + wordOffset, 2);
  5282. BoolToByte(ref dst, src.VolumeLabel, 1, 8 + wordOffset, 3);
  5283. BoolToByte(ref dst, src.Folder, 1, 8 + wordOffset, 4);
  5284. BoolToByte(ref dst, src.Archive, 1, 8 + wordOffset, 5);
  5285. UshortToByte(ref dst, src.Reserved, 1, 9 + wordOffset);
  5286. }
  5287. private static void _FILE_STATUS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5288. {
  5289. int[] indices = NewIndices(src);
  5290. int offset = wordOffset;
  5291. for ( int i = 0; i < len; i++ )
  5292. {
  5293. NextIndices(src, indices);
  5294. _FILE_STATUS_ToByte(ref dst, ( _FILE_STATUS ) src.GetValue(indices), len, wordOffset);
  5295. wordOffset += _FILE_STATUS_WSIZE;
  5296. }
  5297. }
  5298. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[] src, int len = 1, int wordOffset = 0)
  5299. {
  5300. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5301. }
  5302. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,] src, int len = 1, int wordOffset = 0)
  5303. {
  5304. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5305. }
  5306. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,,] src, int len = 1, int wordOffset = 0)
  5307. {
  5308. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5309. }
  5310. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,,,] src, int len = 1, int wordOffset = 0)
  5311. {
  5312. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5313. }
  5314. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,,,,] src, int len = 1, int wordOffset = 0)
  5315. {
  5316. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5317. }
  5318. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,,,,,] src, int len = 1, int wordOffset = 0)
  5319. {
  5320. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5321. }
  5322. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,,,,,,] src, int len = 1, int wordOffset = 0)
  5323. {
  5324. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5325. }
  5326. public static void _FILE_STATUS_ToByte(ref byte[] dst, _FILE_STATUS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5327. {
  5328. _FILE_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5329. }
  5330. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE src, int len = 1, int wordOffset = 0)
  5331. {
  5332. BoolToByte(ref dst, src.ExecEnable, 1, 0 + wordOffset, 0);
  5333. BoolToByte(ref dst, src.InOperation, 1, 0 + wordOffset, 1);
  5334. BoolToByte(ref dst, src.FileWriteEnd, 1, 0 + wordOffset, 2);
  5335. BoolToByte(ref dst, src.BufferHalfAlm, 1, 0 + wordOffset, 3);
  5336. BoolToByte(ref dst, src.BufferOverflow, 1, 0 + wordOffset, 4);
  5337. BoolToByte(ref dst, src.WriteDuringRun, 1, 0 + wordOffset, 5);
  5338. BoolToByte(ref dst, src.LoggingTraceError, 1, 0 + wordOffset, 8);
  5339. BoolToByte(ref dst, src.NoMemoryCapacity, 1, 0 + wordOffset, 9);
  5340. BoolToByte(ref dst, src.DeviceTriggerSetError, 1, 0 + wordOffset, 10);
  5341. BoolToByte(ref dst, src.FileSaveTriggerMonitor, 1, 0 + wordOffset, 11);
  5342. BoolToByte(ref dst, src.DataAcquireComplete, 1, 0 + wordOffset, 12);
  5343. UshortToByte(ref dst, src.MinBufferSpace, 1, 1 + wordOffset);
  5344. UshortToByte(ref dst, src.LoopBufferSpace, 1, 2 + wordOffset);
  5345. UshortToByte(ref dst, src.FileSavingCounter, 1, 3 + wordOffset);
  5346. UshortToByte(ref dst, src.Reserved, 6, 4 + wordOffset);
  5347. }
  5348. private static void _LOGGING_TRACE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5349. {
  5350. int[] indices = NewIndices(src);
  5351. int offset = wordOffset;
  5352. for ( int i = 0; i < len; i++ )
  5353. {
  5354. NextIndices(src, indices);
  5355. _LOGGING_TRACE_ToByte(ref dst, ( _LOGGING_TRACE ) src.GetValue(indices), len, wordOffset);
  5356. wordOffset += _LOGGING_TRACE_WSIZE;
  5357. }
  5358. }
  5359. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[] src, int len = 1, int wordOffset = 0)
  5360. {
  5361. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5362. }
  5363. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,] src, int len = 1, int wordOffset = 0)
  5364. {
  5365. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5366. }
  5367. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,,] src, int len = 1, int wordOffset = 0)
  5368. {
  5369. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5370. }
  5371. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,,,] src, int len = 1, int wordOffset = 0)
  5372. {
  5373. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5374. }
  5375. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,,,,] src, int len = 1, int wordOffset = 0)
  5376. {
  5377. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5378. }
  5379. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,,,,,] src, int len = 1, int wordOffset = 0)
  5380. {
  5381. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5382. }
  5383. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,,,,,,] src, int len = 1, int wordOffset = 0)
  5384. {
  5385. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5386. }
  5387. public static void _LOGGING_TRACE_ToByte(ref byte[] dst, _LOGGING_TRACE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5388. {
  5389. _LOGGING_TRACE_ToByteBase(ref dst, src, len, wordOffset);
  5390. }
  5391. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG src, int len = 1, int wordOffset = 0)
  5392. {
  5393. UshortToByte(ref dst, src.UnitCoordTrans, 1, 0 + wordOffset);
  5394. DoubleToByte(ref dst, src.PosCycle, 1, 4 + wordOffset);
  5395. UintToByte(ref dst, src.CoordTransDenominator, 1, 12 + wordOffset);
  5396. UintToByte(ref dst, src.CoordTransNumerator, 1, 14 + wordOffset);
  5397. UshortToByte(ref dst, src.SoftLimitCoordSystem, 1, 16 + wordOffset);
  5398. UshortToByte(ref dst, src.UseSoftLimit, 1, 17 + wordOffset);
  5399. DoubleToByte(ref dst, src.SoftLimitPositivePos, 1, 20 + wordOffset);
  5400. DoubleToByte(ref dst, src.SoftLimitNegativePos, 1, 24 + wordOffset);
  5401. UshortToByte(ref dst, src.AxisErrorSetting, 1, 28 + wordOffset);
  5402. UshortToByte(ref dst, src.AxisCtrlSetting, 1, 29 + wordOffset);
  5403. UshortToByte(ref dst, src.ServoEndCheckTime, 1, 30 + wordOffset);
  5404. DoubleToByte(ref dst, src.BacklashCompensationMovement, 1, 32 + wordOffset);
  5405. DoubleToByte(ref dst, src.ServoEndRange, 1, 36 + wordOffset);
  5406. UshortToByte(ref dst, src.ChgToPosCtrlModeVelThresh, 1, 40 + wordOffset);
  5407. IntToByte(ref dst, src.AbsEncUpperLim, 1, 42 + wordOffset);
  5408. IntToByte(ref dst, src.AbsEncLowerLim, 1, 44 + wordOffset);
  5409. UshortToByte(ref dst, src.Reserved, 54, 46 + wordOffset);
  5410. }
  5411. private static void _MC_AXIS_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5412. {
  5413. int[] indices = NewIndices(src);
  5414. int offset = wordOffset;
  5415. for ( int i = 0; i < len; i++ )
  5416. {
  5417. NextIndices(src, indices);
  5418. _MC_AXIS_CFG_ToByte(ref dst, ( _MC_AXIS_CFG ) src.GetValue(indices), len, wordOffset);
  5419. wordOffset += _MC_AXIS_CFG_WSIZE;
  5420. }
  5421. }
  5422. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[] src, int len = 1, int wordOffset = 0)
  5423. {
  5424. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5425. }
  5426. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,] src, int len = 1, int wordOffset = 0)
  5427. {
  5428. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5429. }
  5430. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,,] src, int len = 1, int wordOffset = 0)
  5431. {
  5432. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5433. }
  5434. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,,,] src, int len = 1, int wordOffset = 0)
  5435. {
  5436. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5437. }
  5438. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  5439. {
  5440. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5441. }
  5442. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  5443. {
  5444. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5445. }
  5446. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  5447. {
  5448. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5449. }
  5450. public static void _MC_AXIS_CFG_ToByte(ref byte[] dst, _MC_AXIS_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5451. {
  5452. _MC_AXIS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5453. }
  5454. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE src, int len = 1, int wordOffset = 0)
  5455. {
  5456. UshortToByte(ref dst, src.PosCtrlStart, 1, 2 + wordOffset);
  5457. UshortToByte(ref dst, src.SetPosition, 1, 4 + wordOffset);
  5458. UshortToByte(ref dst, src.ChgTargetPos, 1, 5 + wordOffset);
  5459. UshortToByte(ref dst, src.ChgTargetVel, 1, 6 + wordOffset);
  5460. UshortToByte(ref dst, src.Stop, 1, 7 + wordOffset);
  5461. UshortToByte(ref dst, src.RestartPositioning, 1, 8 + wordOffset);
  5462. UshortToByte(ref dst, src.MoveToNextPoint, 1, 9 + wordOffset);
  5463. UshortToByte(ref dst, src.SuspendNextPositioning, 1, 10 + wordOffset);
  5464. UshortToByte(ref dst, src.StopAtTargetPosition, 1, 11 + wordOffset);
  5465. UshortToByte(ref dst, src.Homing, 1, 12 + wordOffset);
  5466. UshortToByte(ref dst, src.MoveToBasePosition, 1, 13 + wordOffset);
  5467. UshortToByte(ref dst, src.FastMoveToHome, 1, 14 + wordOffset);
  5468. UshortToByte(ref dst, src.Teaching, 1, 15 + wordOffset);
  5469. UshortToByte(ref dst, src.StartSpecialFunc, 1, 17 + wordOffset);
  5470. UshortToByte(ref dst, src.ReleaseSpecialFunc, 1, 18 + wordOffset);
  5471. UshortToByte(ref dst, src.ChgCtrlMode, 1, 19 + wordOffset);
  5472. UshortToByte(ref dst, src.StartSyncCtrl, 1, 20 + wordOffset);
  5473. UshortToByte(ref dst, src.ReleaseSyncCtrl, 1, 21 + wordOffset);
  5474. UshortToByte(ref dst, src.ChgCam, 1, 22 + wordOffset);
  5475. UshortToByte(ref dst, src.ReengageSyncTrqLimitClutch, 1, 23 + wordOffset);
  5476. }
  5477. private static void _MC_AXIS_CMP_CODE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5478. {
  5479. int[] indices = NewIndices(src);
  5480. int offset = wordOffset;
  5481. for ( int i = 0; i < len; i++ )
  5482. {
  5483. NextIndices(src, indices);
  5484. _MC_AXIS_CMP_CODE_ToByte(ref dst, ( _MC_AXIS_CMP_CODE ) src.GetValue(indices), len, wordOffset);
  5485. wordOffset += _MC_AXIS_CMP_CODE_WSIZE;
  5486. }
  5487. }
  5488. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[] src, int len = 1, int wordOffset = 0)
  5489. {
  5490. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5491. }
  5492. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,] src, int len = 1, int wordOffset = 0)
  5493. {
  5494. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5495. }
  5496. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,,] src, int len = 1, int wordOffset = 0)
  5497. {
  5498. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5499. }
  5500. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,,,] src, int len = 1, int wordOffset = 0)
  5501. {
  5502. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5503. }
  5504. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,,,,] src, int len = 1, int wordOffset = 0)
  5505. {
  5506. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5507. }
  5508. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,,,,,] src, int len = 1, int wordOffset = 0)
  5509. {
  5510. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5511. }
  5512. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,,,,,,] src, int len = 1, int wordOffset = 0)
  5513. {
  5514. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5515. }
  5516. public static void _MC_AXIS_CMP_CODE_ToByte(ref byte[] dst, _MC_AXIS_CMP_CODE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5517. {
  5518. _MC_AXIS_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  5519. }
  5520. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL src, int len = 1, int wordOffset = 0)
  5521. {
  5522. UshortToByte(ref dst, src.PointNo, 1, 0 + wordOffset);
  5523. UshortToByte(ref dst, src.CtrlMode, 1, 1 + wordOffset);
  5524. DoubleToByte(ref dst, src.SetPosition, 1, 4 + wordOffset);
  5525. DoubleToByte(ref dst, src.ChgPositioningTargetPos, 1, 8 + wordOffset);
  5526. DoubleToByte(ref dst, src.ChgPositioningTargetVel, 1, 12 + wordOffset);
  5527. DoubleToByte(ref dst, src.ChgVel, 1, 16 + wordOffset);
  5528. UshortToByte(ref dst, src.Override, 1, 20 + wordOffset);
  5529. UshortToByte(ref dst, src.SelectSpecialFunc, 1, 21 + wordOffset);
  5530. DoubleToByte(ref dst, src.AbsPosFollowUpCtrlCmdVal, 1, 24 + wordOffset);
  5531. DoubleToByte(ref dst, src.SyncTypeFollowUpCtrlCmdVal, 1, 28 + wordOffset);
  5532. DoubleToByte(ref dst, src.VelCtrlCmdVel, 1, 32 + wordOffset);
  5533. DoubleToByte(ref dst, src.VelCtrlTrqLimit, 1, 36 + wordOffset);
  5534. DoubleToByte(ref dst, src.VelCtrlTrqFeedforward, 1, 40 + wordOffset);
  5535. DoubleToByte(ref dst, src.TrqCtrlCmdTrq, 1, 44 + wordOffset);
  5536. DoubleToByte(ref dst, src.TrqCtrlVelLimit, 1, 48 + wordOffset);
  5537. DoubleToByte(ref dst, src.PosCtrlTrqLimit, 1, 52 + wordOffset);
  5538. DoubleToByte(ref dst, src.PosCtrlVelFeedforward, 1, 56 + wordOffset);
  5539. DoubleToByte(ref dst, src.PosCtrlTrqFeedforward, 1, 60 + wordOffset);
  5540. UshortToByte(ref dst, src.ChgSyncCamNo, 1, 64 + wordOffset);
  5541. UshortToByte(ref dst, src.ChgSyncCamPos, 1, 65 + wordOffset);
  5542. UshortToByte(ref dst, src.Controlword, 1, 68 + wordOffset);
  5543. UshortToByte(ref dst, src.TouchProbeFunction, 1, 69 + wordOffset);
  5544. UshortToByte(ref dst, src.Reserved, 30, 70 + wordOffset);
  5545. }
  5546. private static void _MC_AXIS_CTRL_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5547. {
  5548. int[] indices = NewIndices(src);
  5549. int offset = wordOffset;
  5550. for ( int i = 0; i < len; i++ )
  5551. {
  5552. NextIndices(src, indices);
  5553. _MC_AXIS_CTRL_ToByte(ref dst, ( _MC_AXIS_CTRL ) src.GetValue(indices), len, wordOffset);
  5554. wordOffset += _MC_AXIS_CTRL_WSIZE;
  5555. }
  5556. }
  5557. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[] src, int len = 1, int wordOffset = 0)
  5558. {
  5559. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5560. }
  5561. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,] src, int len = 1, int wordOffset = 0)
  5562. {
  5563. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5564. }
  5565. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,,] src, int len = 1, int wordOffset = 0)
  5566. {
  5567. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5568. }
  5569. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,,,] src, int len = 1, int wordOffset = 0)
  5570. {
  5571. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5572. }
  5573. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,,,,] src, int len = 1, int wordOffset = 0)
  5574. {
  5575. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5576. }
  5577. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,,,,,] src, int len = 1, int wordOffset = 0)
  5578. {
  5579. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5580. }
  5581. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,,,,,,] src, int len = 1, int wordOffset = 0)
  5582. {
  5583. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5584. }
  5585. public static void _MC_AXIS_CTRL_ToByte(ref byte[] dst, _MC_AXIS_CTRL[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5586. {
  5587. _MC_AXIS_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  5588. }
  5589. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG src, int len = 1, int wordOffset = 0)
  5590. {
  5591. UshortToByte(ref dst, src.Axis, 16, 0 + wordOffset);
  5592. }
  5593. private static void _MC_AXIS_GROUP_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5594. {
  5595. int[] indices = NewIndices(src);
  5596. int offset = wordOffset;
  5597. for ( int i = 0; i < len; i++ )
  5598. {
  5599. NextIndices(src, indices);
  5600. _MC_AXIS_GROUP_CFG_ToByte(ref dst, ( _MC_AXIS_GROUP_CFG ) src.GetValue(indices), len, wordOffset);
  5601. wordOffset += _MC_AXIS_GROUP_CFG_WSIZE;
  5602. }
  5603. }
  5604. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[] src, int len = 1, int wordOffset = 0)
  5605. {
  5606. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5607. }
  5608. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,] src, int len = 1, int wordOffset = 0)
  5609. {
  5610. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5611. }
  5612. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,,] src, int len = 1, int wordOffset = 0)
  5613. {
  5614. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5615. }
  5616. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,,,] src, int len = 1, int wordOffset = 0)
  5617. {
  5618. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5619. }
  5620. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  5621. {
  5622. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5623. }
  5624. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  5625. {
  5626. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5627. }
  5628. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  5629. {
  5630. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5631. }
  5632. public static void _MC_AXIS_GROUP_CFG_ToByte(ref byte[] dst, _MC_AXIS_GROUP_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5633. {
  5634. _MC_AXIS_GROUP_CFG_ToByteBase(ref dst, src, len, wordOffset);
  5635. }
  5636. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF src, int len = 1, int wordOffset = 0)
  5637. {
  5638. UshortToByte(ref dst, src.AxisGroupNo, 1, 0 + wordOffset);
  5639. }
  5640. private static void _MC_AXIS_GROUP_REF_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5641. {
  5642. int[] indices = NewIndices(src);
  5643. int offset = wordOffset;
  5644. for ( int i = 0; i < len; i++ )
  5645. {
  5646. NextIndices(src, indices);
  5647. _MC_AXIS_GROUP_REF_ToByte(ref dst, ( _MC_AXIS_GROUP_REF ) src.GetValue(indices), len, wordOffset);
  5648. wordOffset += _MC_AXIS_GROUP_REF_WSIZE;
  5649. }
  5650. }
  5651. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[] src, int len = 1, int wordOffset = 0)
  5652. {
  5653. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5654. }
  5655. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,] src, int len = 1, int wordOffset = 0)
  5656. {
  5657. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5658. }
  5659. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,,] src, int len = 1, int wordOffset = 0)
  5660. {
  5661. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5662. }
  5663. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,,,] src, int len = 1, int wordOffset = 0)
  5664. {
  5665. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5666. }
  5667. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,,,,] src, int len = 1, int wordOffset = 0)
  5668. {
  5669. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5670. }
  5671. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,,,,,] src, int len = 1, int wordOffset = 0)
  5672. {
  5673. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5674. }
  5675. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,,,,,,] src, int len = 1, int wordOffset = 0)
  5676. {
  5677. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5678. }
  5679. public static void _MC_AXIS_GROUP_REF_ToByte(ref byte[] dst, _MC_AXIS_GROUP_REF[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5680. {
  5681. _MC_AXIS_GROUP_REF_ToByteBase(ref dst, src, len, wordOffset);
  5682. }
  5683. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS src, int len = 1, int wordOffset = 0)
  5684. {
  5685. BoolToByte(ref dst, src.PositiveLimit, 1, 0 + wordOffset, 0);
  5686. BoolToByte(ref dst, src.NegativeLimit, 1, 0 + wordOffset, 1);
  5687. BoolToByte(ref dst, src.HomeSensor, 1, 0 + wordOffset, 2);
  5688. BoolToByte(ref dst, src.StopSensor, 1, 0 + wordOffset, 3);
  5689. BoolToByte(ref dst, src.SyncCtrlExtInput, 1, 0 + wordOffset, 4);
  5690. BoolToByte(ref dst, src.ServoEnd, 1, 0 + wordOffset, 6);
  5691. BoolToByte(ref dst, src.ServoReady, 1, 0 + wordOffset, 7);
  5692. BoolToByte(ref dst, src.DrvAlarm, 1, 0 + wordOffset, 8);
  5693. BoolToByte(ref dst, src.ServoOn, 1, 0 + wordOffset, 14);
  5694. BoolToByte(ref dst, src.Reserved, 1, 0 + wordOffset, 15);
  5695. }
  5696. private static void _MC_AXIS_IO_STATUS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5697. {
  5698. int[] indices = NewIndices(src);
  5699. int offset = wordOffset;
  5700. for ( int i = 0; i < len; i++ )
  5701. {
  5702. NextIndices(src, indices);
  5703. _MC_AXIS_IO_STATUS_ToByte(ref dst, ( _MC_AXIS_IO_STATUS ) src.GetValue(indices), len, wordOffset);
  5704. wordOffset += _MC_AXIS_IO_STATUS_WSIZE;
  5705. }
  5706. }
  5707. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[] src, int len = 1, int wordOffset = 0)
  5708. {
  5709. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5710. }
  5711. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,] src, int len = 1, int wordOffset = 0)
  5712. {
  5713. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5714. }
  5715. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,,] src, int len = 1, int wordOffset = 0)
  5716. {
  5717. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5718. }
  5719. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,,,] src, int len = 1, int wordOffset = 0)
  5720. {
  5721. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5722. }
  5723. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,,,,] src, int len = 1, int wordOffset = 0)
  5724. {
  5725. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5726. }
  5727. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,,,,,] src, int len = 1, int wordOffset = 0)
  5728. {
  5729. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5730. }
  5731. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,,,,,,] src, int len = 1, int wordOffset = 0)
  5732. {
  5733. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5734. }
  5735. public static void _MC_AXIS_IO_STATUS_ToByte(ref byte[] dst, _MC_AXIS_IO_STATUS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5736. {
  5737. _MC_AXIS_IO_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5738. }
  5739. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP src, int len = 1, int wordOffset = 0)
  5740. {
  5741. BoolToByte(ref dst, src.PosCtrlAvl, 1, 0 + wordOffset, 0);
  5742. BoolToByte(ref dst, src.VelCtrlAvl, 1, 0 + wordOffset, 1);
  5743. BoolToByte(ref dst, src.TrqCtrlAvl, 1, 0 + wordOffset, 2);
  5744. BoolToByte(ref dst, src.FeedbackTrqAvl, 1, 0 + wordOffset, 3);
  5745. BoolToByte(ref dst, src.StopSensorAvl, 1, 0 + wordOffset, 4);
  5746. BoolToByte(ref dst, src.HomingBaseAvl, 1, 0 + wordOffset, 8);
  5747. BoolToByte(ref dst, src.HomingDogNoZAvl, 1, 0 + wordOffset, 9);
  5748. BoolToByte(ref dst, src.HomingDogPressAvl, 1, 0 + wordOffset, 10);
  5749. BoolToByte(ref dst, src.HomingLimitSwAvl, 1, 0 + wordOffset, 11);
  5750. BoolToByte(ref dst, src.HomingImmZAvl, 1, 0 + wordOffset, 12);
  5751. BoolToByte(ref dst, src.PosCtrlTrqLimitAvl, 1, 1 + wordOffset, 0);
  5752. BoolToByte(ref dst, src.PosCtrlVelFeedforwardAvl, 1, 1 + wordOffset, 1);
  5753. BoolToByte(ref dst, src.PosCtrlTrqFeedforwardAvl, 1, 1 + wordOffset, 2);
  5754. BoolToByte(ref dst, src.VelCtrlTrqLimitAvl, 1, 1 + wordOffset, 3);
  5755. BoolToByte(ref dst, src.VelCtrlTrqFeedforwardAvl, 1, 1 + wordOffset, 4);
  5756. BoolToByte(ref dst, src.TrqCtrlVelLimitAvl, 1, 1 + wordOffset, 5);
  5757. BoolToByte(ref dst, src.DrvAlarmCodeAvl, 1, 1 + wordOffset, 6);
  5758. BoolToByte(ref dst, src.Reserved, 9, 1 + wordOffset, 7);
  5759. }
  5760. private static void _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5761. {
  5762. int[] indices = NewIndices(src);
  5763. int offset = wordOffset;
  5764. for ( int i = 0; i < len; i++ )
  5765. {
  5766. NextIndices(src, indices);
  5767. _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref dst, ( _MC_AXIS_MOTION_FUNC_MAP ) src.GetValue(indices), len, wordOffset);
  5768. wordOffset += _MC_AXIS_MOTION_FUNC_MAP_WSIZE;
  5769. }
  5770. }
  5771. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[] src, int len = 1, int wordOffset = 0)
  5772. {
  5773. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5774. }
  5775. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,] src, int len = 1, int wordOffset = 0)
  5776. {
  5777. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5778. }
  5779. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,,] src, int len = 1, int wordOffset = 0)
  5780. {
  5781. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5782. }
  5783. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,,,] src, int len = 1, int wordOffset = 0)
  5784. {
  5785. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5786. }
  5787. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,,,,] src, int len = 1, int wordOffset = 0)
  5788. {
  5789. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5790. }
  5791. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,,,,,] src, int len = 1, int wordOffset = 0)
  5792. {
  5793. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5794. }
  5795. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,,,,,,] src, int len = 1, int wordOffset = 0)
  5796. {
  5797. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5798. }
  5799. public static void _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref byte[] dst, _MC_AXIS_MOTION_FUNC_MAP[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5800. {
  5801. _MC_AXIS_MOTION_FUNC_MAP_ToByteBase(ref dst, src, len, wordOffset);
  5802. }
  5803. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS src, int len = 1, int wordOffset = 0)
  5804. {
  5805. UshortToByte(ref dst, src.ErrorCode, 1, 0 + wordOffset);
  5806. UshortToByte(ref dst, src.ErrorDetail, 5, 1 + wordOffset);
  5807. UshortToByte(ref dst, src.WarningCode, 1, 6 + wordOffset);
  5808. UshortToByte(ref dst, src.WarningDetail, 5, 7 + wordOffset);
  5809. _MC_AXIS_IO_STATUS_ToByte(ref dst, src.IOStatus, 1, 12 + wordOffset);
  5810. UshortToByte(ref dst, src.PosCtrlState, 1, 13 + wordOffset);
  5811. DoubleToByte(ref dst, src.CmdPos, 1, 16 + wordOffset);
  5812. DoubleToByte(ref dst, src.CmdVel, 1, 20 + wordOffset);
  5813. IntToByte(ref dst, src.CmdPls, 1, 24 + wordOffset);
  5814. DoubleToByte(ref dst, src.MechanicalPos, 1, 28 + wordOffset);
  5815. UshortToByte(ref dst, src.CurrentPointNo, 1, 32 + wordOffset);
  5816. UshortToByte(ref dst, src.MCode, 1, 33 + wordOffset);
  5817. DoubleToByte(ref dst, src.TargetPos, 1, 36 + wordOffset);
  5818. DoubleToByte(ref dst, src.InheritedVel, 1, 40 + wordOffset);
  5819. UshortToByte(ref dst, src.CurrentCtrlMode, 1, 45 + wordOffset);
  5820. IntToByte(ref dst, src.FeedbackPls, 1, 46 + wordOffset);
  5821. DoubleToByte(ref dst, src.ActPos, 1, 48 + wordOffset);
  5822. DoubleToByte(ref dst, src.ActVel, 1, 52 + wordOffset);
  5823. UshortToByte(ref dst, src.DrvAlarmCode, 1, 56 + wordOffset);
  5824. IntToByte(ref dst, src.EcatStatus, 1, 58 + wordOffset);
  5825. UshortToByte(ref dst, src.DrvAlarmDetail1, 1, 60 + wordOffset);
  5826. UshortToByte(ref dst, src.DrvAlarmDetail2, 1, 61 + wordOffset);
  5827. UshortToByte(ref dst, src.EcatNodeAdr, 1, 62 + wordOffset);
  5828. UshortToByte(ref dst, src.AxisIndex, 1, 63 + wordOffset);
  5829. DoubleToByte(ref dst, src.TrqLimitMon, 1, 64 + wordOffset);
  5830. DoubleToByte(ref dst, src.TrqFeedforwardMon, 1, 68 + wordOffset);
  5831. DoubleToByte(ref dst, src.VelLimitMon, 1, 72 + wordOffset);
  5832. DoubleToByte(ref dst, src.VelFeedforwardMon, 1, 76 + wordOffset);
  5833. DoubleToByte(ref dst, src.FeedbackVel, 1, 80 + wordOffset);
  5834. DoubleToByte(ref dst, src.FeedbackTrq, 1, 84 + wordOffset);
  5835. IntToByte(ref dst, src.PosDeviation, 1, 88 + wordOffset);
  5836. UshortToByte(ref dst, src.CurrentSettlingTime, 1, 90 + wordOffset);
  5837. UshortToByte(ref dst, src.MaxSettlingTime, 1, 91 + wordOffset);
  5838. _MC_AXIS_MOTION_FUNC_MAP_ToByte(ref dst, src.MotionFuncMapSetting, 1, 92 + wordOffset);
  5839. UshortToByte(ref dst, src.StopSensorDetectionNum, 1, 94 + wordOffset);
  5840. DoubleToByte(ref dst, src.StopSensorPos, 1, 96 + wordOffset);
  5841. UshortToByte(ref dst, src.Reserved, 12, 100 + wordOffset);
  5842. }
  5843. private static void _MC_AXIS_STATUS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5844. {
  5845. int[] indices = NewIndices(src);
  5846. int offset = wordOffset;
  5847. for ( int i = 0; i < len; i++ )
  5848. {
  5849. NextIndices(src, indices);
  5850. _MC_AXIS_STATUS_ToByte(ref dst, ( _MC_AXIS_STATUS ) src.GetValue(indices), len, wordOffset);
  5851. wordOffset += _MC_AXIS_STATUS_WSIZE;
  5852. }
  5853. }
  5854. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[] src, int len = 1, int wordOffset = 0)
  5855. {
  5856. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5857. }
  5858. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,] src, int len = 1, int wordOffset = 0)
  5859. {
  5860. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5861. }
  5862. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,,] src, int len = 1, int wordOffset = 0)
  5863. {
  5864. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5865. }
  5866. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,,,] src, int len = 1, int wordOffset = 0)
  5867. {
  5868. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5869. }
  5870. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,,,,] src, int len = 1, int wordOffset = 0)
  5871. {
  5872. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5873. }
  5874. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,,,,,] src, int len = 1, int wordOffset = 0)
  5875. {
  5876. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5877. }
  5878. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,,,,,,] src, int len = 1, int wordOffset = 0)
  5879. {
  5880. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5881. }
  5882. public static void _MC_AXIS_STATUS_ToByte(ref byte[] dst, _MC_AXIS_STATUS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5883. {
  5884. _MC_AXIS_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5885. }
  5886. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT src, int len = 1, int wordOffset = 0)
  5887. {
  5888. BoolToByte(ref dst, src.PlsOutputDone, 1, 0 + wordOffset, 1);
  5889. BoolToByte(ref dst, src.PositioningDone, 1, 0 + wordOffset, 2);
  5890. BoolToByte(ref dst, src.MCodeStatus, 1, 0 + wordOffset, 7);
  5891. BoolToByte(ref dst, src.AxisError, 1, 1 + wordOffset, 0);
  5892. BoolToByte(ref dst, src.AxisWarning, 1, 1 + wordOffset, 1);
  5893. BoolToByte(ref dst, src.InControl, 1, 1 + wordOffset, 3);
  5894. BoolToByte(ref dst, src.ServoEnd, 1, 1 + wordOffset, 4);
  5895. BoolToByte(ref dst, src.ServoReady, 1, 1 + wordOffset, 5);
  5896. BoolToByte(ref dst, src.DrvAlarm, 1, 1 + wordOffset, 6);
  5897. BoolToByte(ref dst, src.Jogging, 1, 1 + wordOffset, 13);
  5898. BoolToByte(ref dst, src.HomeIsNotDefined, 1, 1 + wordOffset, 15);
  5899. BoolToByte(ref dst, src.InSyncCtrl, 1, 2 + wordOffset, 2);
  5900. BoolToByte(ref dst, src.MainClutchStatus, 1, 2 + wordOffset, 3);
  5901. BoolToByte(ref dst, src.ChangingMainAxisPhaseCompensation, 1, 2 + wordOffset, 4);
  5902. BoolToByte(ref dst, src.MainClutchEngaged, 1, 2 + wordOffset, 5);
  5903. BoolToByte(ref dst, src.AuxClutchStatus, 1, 2 + wordOffset, 8);
  5904. BoolToByte(ref dst, src.ChangingAuxAxisPhaseCompensation, 1, 2 + wordOffset, 9);
  5905. BoolToByte(ref dst, src.AuxClutchEngaged, 1, 2 + wordOffset, 10);
  5906. BoolToByte(ref dst, src.ChangingSyncVariableGear, 1, 2 + wordOffset, 13);
  5907. BoolToByte(ref dst, src.TrqLimitClutchOff, 1, 3 + wordOffset, 1);
  5908. BoolToByte(ref dst, src.DrvLimit, 1, 3 + wordOffset, 2);
  5909. BoolToByte(ref dst, src.DrvWarning, 1, 3 + wordOffset, 6);
  5910. BoolToByte(ref dst, src.Reserved, 64, 4 + wordOffset, 0);
  5911. }
  5912. private static void _MC_AXIS_STATUS_BIT_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5913. {
  5914. int[] indices = NewIndices(src);
  5915. int offset = wordOffset;
  5916. for ( int i = 0; i < len; i++ )
  5917. {
  5918. NextIndices(src, indices);
  5919. _MC_AXIS_STATUS_BIT_ToByte(ref dst, ( _MC_AXIS_STATUS_BIT ) src.GetValue(indices), len, wordOffset);
  5920. wordOffset += _MC_AXIS_STATUS_BIT_WSIZE;
  5921. }
  5922. }
  5923. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[] src, int len = 1, int wordOffset = 0)
  5924. {
  5925. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5926. }
  5927. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,] src, int len = 1, int wordOffset = 0)
  5928. {
  5929. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5930. }
  5931. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,,] src, int len = 1, int wordOffset = 0)
  5932. {
  5933. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5934. }
  5935. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,,,] src, int len = 1, int wordOffset = 0)
  5936. {
  5937. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5938. }
  5939. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,,,,] src, int len = 1, int wordOffset = 0)
  5940. {
  5941. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5942. }
  5943. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,,,,,] src, int len = 1, int wordOffset = 0)
  5944. {
  5945. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5946. }
  5947. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,,,,,,] src, int len = 1, int wordOffset = 0)
  5948. {
  5949. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5950. }
  5951. public static void _MC_AXIS_STATUS_BIT_ToByte(ref byte[] dst, _MC_AXIS_STATUS_BIT[,,,,,,,] src, int len = 1, int wordOffset = 0)
  5952. {
  5953. _MC_AXIS_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  5954. }
  5955. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS src, int len = 1, int wordOffset = 0)
  5956. {
  5957. DoubleToByte(ref dst, src.MainAxisPhaseCompensation, 1, 4 + wordOffset);
  5958. DoubleToByte(ref dst, src.AuxAxisPhaseCompensation, 1, 8 + wordOffset);
  5959. DoubleToByte(ref dst, src.StepAngleCompensation, 1, 12 + wordOffset);
  5960. DoubleToByte(ref dst, src.MainAxisPhase, 1, 16 + wordOffset);
  5961. DoubleToByte(ref dst, src.MainClutchInputAxisPhase, 1, 20 + wordOffset);
  5962. DoubleToByte(ref dst, src.MainClutchInputAxisPos, 1, 24 + wordOffset);
  5963. DoubleToByte(ref dst, src.MainClutchOutputAxisPhase, 1, 28 + wordOffset);
  5964. DoubleToByte(ref dst, src.MainClutchOutputAxisPos, 1, 32 + wordOffset);
  5965. DoubleToByte(ref dst, src.AuxClutchInputAxisPhase, 1, 36 + wordOffset);
  5966. DoubleToByte(ref dst, src.AuxClutchInputAxisPos, 1, 40 + wordOffset);
  5967. DoubleToByte(ref dst, src.AuxClutchOutputAxisPhase, 1, 44 + wordOffset);
  5968. DoubleToByte(ref dst, src.AuxClutchOutputAxisPos, 1, 48 + wordOffset);
  5969. DoubleToByte(ref dst, src.TrqLimitClutchInputAxisPhase, 1, 52 + wordOffset);
  5970. DoubleToByte(ref dst, src.TrqLimitClutchInputAxisPos, 1, 56 + wordOffset);
  5971. DoubleToByte(ref dst, src.TrqLimitClutchOutputAxisPhase, 1, 60 + wordOffset);
  5972. DoubleToByte(ref dst, src.TrqLimitClutchOutputAxisPos, 1, 64 + wordOffset);
  5973. DoubleToByte(ref dst, src.CamInputAxisPhase, 1, 68 + wordOffset);
  5974. DoubleToByte(ref dst, src.CamOutputRelativePos, 1, 72 + wordOffset);
  5975. UshortToByte(ref dst, src.CurrentCamNo, 1, 76 + wordOffset);
  5976. UshortToByte(ref dst, src.ContactOutputCurrentParamNo, 1, 77 + wordOffset);
  5977. UshortToByte(ref dst, src.Reserved, 2, 78 + wordOffset);
  5978. }
  5979. private static void _MC_AXIS_SYNC_STATUS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  5980. {
  5981. int[] indices = NewIndices(src);
  5982. int offset = wordOffset;
  5983. for ( int i = 0; i < len; i++ )
  5984. {
  5985. NextIndices(src, indices);
  5986. _MC_AXIS_SYNC_STATUS_ToByte(ref dst, ( _MC_AXIS_SYNC_STATUS ) src.GetValue(indices), len, wordOffset);
  5987. wordOffset += _MC_AXIS_SYNC_STATUS_WSIZE;
  5988. }
  5989. }
  5990. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[] src, int len = 1, int wordOffset = 0)
  5991. {
  5992. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5993. }
  5994. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,] src, int len = 1, int wordOffset = 0)
  5995. {
  5996. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  5997. }
  5998. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,,] src, int len = 1, int wordOffset = 0)
  5999. {
  6000. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  6001. }
  6002. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,,,] src, int len = 1, int wordOffset = 0)
  6003. {
  6004. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  6005. }
  6006. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,,,,] src, int len = 1, int wordOffset = 0)
  6007. {
  6008. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  6009. }
  6010. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,,,,,] src, int len = 1, int wordOffset = 0)
  6011. {
  6012. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  6013. }
  6014. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,,,,,,] src, int len = 1, int wordOffset = 0)
  6015. {
  6016. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  6017. }
  6018. public static void _MC_AXIS_SYNC_STATUS_ToByte(ref byte[] dst, _MC_AXIS_SYNC_STATUS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6019. {
  6020. _MC_AXIS_SYNC_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  6021. }
  6022. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION src, int len = 1, int wordOffset = 0)
  6023. {
  6024. UintToByte(ref dst, src.Phase, 1, 0 + wordOffset);
  6025. UshortToByte(ref dst, src.Curve, 1, 2 + wordOffset);
  6026. DoubleToByte(ref dst, src.Displacement, 1, 4 + wordOffset);
  6027. ShortToByte(ref dst, src.StartVel, 1, 8 + wordOffset);
  6028. ShortToByte(ref dst, src.EndVel, 1, 9 + wordOffset);
  6029. ShortToByte(ref dst, src.StartAcc, 1, 10 + wordOffset);
  6030. ShortToByte(ref dst, src.EndAcc, 1, 11 + wordOffset);
  6031. }
  6032. private static void _MC_CAM_SECTION_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6033. {
  6034. int[] indices = NewIndices(src);
  6035. int offset = wordOffset;
  6036. for ( int i = 0; i < len; i++ )
  6037. {
  6038. NextIndices(src, indices);
  6039. _MC_CAM_SECTION_ToByte(ref dst, ( _MC_CAM_SECTION ) src.GetValue(indices), len, wordOffset);
  6040. wordOffset += _MC_CAM_SECTION_WSIZE;
  6041. }
  6042. }
  6043. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[] src, int len = 1, int wordOffset = 0)
  6044. {
  6045. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6046. }
  6047. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,] src, int len = 1, int wordOffset = 0)
  6048. {
  6049. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6050. }
  6051. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,,] src, int len = 1, int wordOffset = 0)
  6052. {
  6053. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6054. }
  6055. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,,,] src, int len = 1, int wordOffset = 0)
  6056. {
  6057. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6058. }
  6059. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,,,,] src, int len = 1, int wordOffset = 0)
  6060. {
  6061. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6062. }
  6063. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,,,,,] src, int len = 1, int wordOffset = 0)
  6064. {
  6065. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6066. }
  6067. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,,,,,,] src, int len = 1, int wordOffset = 0)
  6068. {
  6069. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6070. }
  6071. public static void _MC_CAM_SECTION_ToByte(ref byte[] dst, _MC_CAM_SECTION[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6072. {
  6073. _MC_CAM_SECTION_ToByteBase(ref dst, src, len, wordOffset);
  6074. }
  6075. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE src, int len = 1, int wordOffset = 0)
  6076. {
  6077. UshortToByte(ref dst, src.FlashRomWrite, 1, 0 + wordOffset);
  6078. UshortToByte(ref dst, src.SyncContactParamChg, 1, 1 + wordOffset);
  6079. UshortToByte(ref dst, src.Reserved, 6, 2 + wordOffset);
  6080. }
  6081. private static void _MC_COMMON_CMP_CODE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6082. {
  6083. int[] indices = NewIndices(src);
  6084. int offset = wordOffset;
  6085. for ( int i = 0; i < len; i++ )
  6086. {
  6087. NextIndices(src, indices);
  6088. _MC_COMMON_CMP_CODE_ToByte(ref dst, ( _MC_COMMON_CMP_CODE ) src.GetValue(indices), len, wordOffset);
  6089. wordOffset += _MC_COMMON_CMP_CODE_WSIZE;
  6090. }
  6091. }
  6092. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[] src, int len = 1, int wordOffset = 0)
  6093. {
  6094. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6095. }
  6096. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,] src, int len = 1, int wordOffset = 0)
  6097. {
  6098. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6099. }
  6100. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,,] src, int len = 1, int wordOffset = 0)
  6101. {
  6102. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6103. }
  6104. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,,,] src, int len = 1, int wordOffset = 0)
  6105. {
  6106. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6107. }
  6108. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,,,,] src, int len = 1, int wordOffset = 0)
  6109. {
  6110. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6111. }
  6112. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,,,,,] src, int len = 1, int wordOffset = 0)
  6113. {
  6114. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6115. }
  6116. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,,,,,,] src, int len = 1, int wordOffset = 0)
  6117. {
  6118. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6119. }
  6120. public static void _MC_COMMON_CMP_CODE_ToByte(ref byte[] dst, _MC_COMMON_CMP_CODE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6121. {
  6122. _MC_COMMON_CMP_CODE_ToByteBase(ref dst, src, len, wordOffset);
  6123. }
  6124. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL src, int len = 1, int wordOffset = 0)
  6125. {
  6126. IntToByte(ref dst, src.ExtRefCmdVal, 48, 0 + wordOffset);
  6127. }
  6128. private static void _MC_COMMON_CTRL_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6129. {
  6130. int[] indices = NewIndices(src);
  6131. int offset = wordOffset;
  6132. for ( int i = 0; i < len; i++ )
  6133. {
  6134. NextIndices(src, indices);
  6135. _MC_COMMON_CTRL_ToByte(ref dst, ( _MC_COMMON_CTRL ) src.GetValue(indices), len, wordOffset);
  6136. wordOffset += _MC_COMMON_CTRL_WSIZE;
  6137. }
  6138. }
  6139. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[] src, int len = 1, int wordOffset = 0)
  6140. {
  6141. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6142. }
  6143. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,] src, int len = 1, int wordOffset = 0)
  6144. {
  6145. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6146. }
  6147. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,,] src, int len = 1, int wordOffset = 0)
  6148. {
  6149. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6150. }
  6151. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,,,] src, int len = 1, int wordOffset = 0)
  6152. {
  6153. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6154. }
  6155. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,,,,] src, int len = 1, int wordOffset = 0)
  6156. {
  6157. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6158. }
  6159. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,,,,,] src, int len = 1, int wordOffset = 0)
  6160. {
  6161. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6162. }
  6163. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,,,,,,] src, int len = 1, int wordOffset = 0)
  6164. {
  6165. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6166. }
  6167. public static void _MC_COMMON_CTRL_ToByte(ref byte[] dst, _MC_COMMON_CTRL[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6168. {
  6169. _MC_COMMON_CTRL_ToByteBase(ref dst, src, len, wordOffset);
  6170. }
  6171. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE src, int len = 1, int wordOffset = 0)
  6172. {
  6173. UintToByte(ref dst, src.CurrentCycleTime, 1, 0 + wordOffset);
  6174. UintToByte(ref dst, src.MaxCycleTime, 1, 2 + wordOffset);
  6175. UshortToByte(ref dst, src.CurrentLoadFactor, 1, 4 + wordOffset);
  6176. UshortToByte(ref dst, src.MaxLoadFactor, 1, 5 + wordOffset);
  6177. UshortToByte(ref dst, src.Reserved, 6, 6 + wordOffset);
  6178. }
  6179. private static void _MC_COMMON_PERFORMANCE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6180. {
  6181. int[] indices = NewIndices(src);
  6182. int offset = wordOffset;
  6183. for ( int i = 0; i < len; i++ )
  6184. {
  6185. NextIndices(src, indices);
  6186. _MC_COMMON_PERFORMANCE_ToByte(ref dst, ( _MC_COMMON_PERFORMANCE ) src.GetValue(indices), len, wordOffset);
  6187. wordOffset += _MC_COMMON_PERFORMANCE_WSIZE;
  6188. }
  6189. }
  6190. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[] src, int len = 1, int wordOffset = 0)
  6191. {
  6192. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6193. }
  6194. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,] src, int len = 1, int wordOffset = 0)
  6195. {
  6196. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6197. }
  6198. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,,] src, int len = 1, int wordOffset = 0)
  6199. {
  6200. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6201. }
  6202. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,,,] src, int len = 1, int wordOffset = 0)
  6203. {
  6204. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6205. }
  6206. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,,,,] src, int len = 1, int wordOffset = 0)
  6207. {
  6208. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6209. }
  6210. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,,,,,] src, int len = 1, int wordOffset = 0)
  6211. {
  6212. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6213. }
  6214. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,,,,,,] src, int len = 1, int wordOffset = 0)
  6215. {
  6216. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6217. }
  6218. public static void _MC_COMMON_PERFORMANCE_ToByte(ref byte[] dst, _MC_COMMON_PERFORMANCE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6219. {
  6220. _MC_COMMON_PERFORMANCE_ToByteBase(ref dst, src, len, wordOffset);
  6221. }
  6222. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT src, int len = 1, int wordOffset = 0)
  6223. {
  6224. BoolToByte(ref dst, src.Enable, 1, 0 + wordOffset, 0);
  6225. BoolToByte(ref dst, src.EnableError, 1, 0 + wordOffset, 1);
  6226. BoolToByte(ref dst, src.UnitError, 1, 0 + wordOffset, 3);
  6227. BoolToByte(ref dst, src.AxisError, 1, 0 + wordOffset, 4);
  6228. BoolToByte(ref dst, src.AxisWarning, 1, 0 + wordOffset, 5);
  6229. BoolToByte(ref dst, src.TestRunning, 1, 0 + wordOffset, 6);
  6230. BoolToByte(ref dst, src.Reserved, 48, 1 + wordOffset, 0);
  6231. }
  6232. private static void _MC_COMMON_STATUS_BIT_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6233. {
  6234. int[] indices = NewIndices(src);
  6235. int offset = wordOffset;
  6236. for ( int i = 0; i < len; i++ )
  6237. {
  6238. NextIndices(src, indices);
  6239. _MC_COMMON_STATUS_BIT_ToByte(ref dst, ( _MC_COMMON_STATUS_BIT ) src.GetValue(indices), len, wordOffset);
  6240. wordOffset += _MC_COMMON_STATUS_BIT_WSIZE;
  6241. }
  6242. }
  6243. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[] src, int len = 1, int wordOffset = 0)
  6244. {
  6245. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6246. }
  6247. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,] src, int len = 1, int wordOffset = 0)
  6248. {
  6249. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6250. }
  6251. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,,] src, int len = 1, int wordOffset = 0)
  6252. {
  6253. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6254. }
  6255. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,,,] src, int len = 1, int wordOffset = 0)
  6256. {
  6257. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6258. }
  6259. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,,,,] src, int len = 1, int wordOffset = 0)
  6260. {
  6261. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6262. }
  6263. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,,,,,] src, int len = 1, int wordOffset = 0)
  6264. {
  6265. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6266. }
  6267. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,,,,,,] src, int len = 1, int wordOffset = 0)
  6268. {
  6269. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6270. }
  6271. public static void _MC_COMMON_STATUS_BIT_ToByte(ref byte[] dst, _MC_COMMON_STATUS_BIT[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6272. {
  6273. _MC_COMMON_STATUS_BIT_ToByteBase(ref dst, src, len, wordOffset);
  6274. }
  6275. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM src, int len = 1, int wordOffset = 0)
  6276. {
  6277. UshortToByte(ref dst, src.PositioningMode, 1, 0 + wordOffset);
  6278. UshortToByte(ref dst, src.ContinuousMode, 1, 1 + wordOffset);
  6279. UshortToByte(ref dst, src.NextPointNo, 1, 2 + wordOffset);
  6280. UshortToByte(ref dst, src.MCodeNo, 1, 3 + wordOffset);
  6281. DoubleToByte(ref dst, src.TargetPos, 1, 4 + wordOffset);
  6282. UshortToByte(ref dst, src.DwellTime, 1, 8 + wordOffset);
  6283. UshortToByte(ref dst, src.AxisGroupNo, 1, 9 + wordOffset);
  6284. DoubleToByte(ref dst, src.StopSensorMovement_ArcPos, 1, 12 + wordOffset);
  6285. DoubleToByte(ref dst, src.TargetVel, 1, 16 + wordOffset);
  6286. DoubleToByte(ref dst, src.Acceleration, 1, 20 + wordOffset);
  6287. DoubleToByte(ref dst, src.Deceleration, 1, 24 + wordOffset);
  6288. DoubleToByte(ref dst, src.AuxArcRadius, 1, 28 + wordOffset);
  6289. DoubleToByte(ref dst, src.TrqLimit, 1, 32 + wordOffset);
  6290. UshortToByte(ref dst, src.Revolution, 1, 36 + wordOffset);
  6291. UshortToByte(ref dst, src.Reserved, 3, 37 + wordOffset);
  6292. }
  6293. private static void _MC_POINT_PARAM_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6294. {
  6295. int[] indices = NewIndices(src);
  6296. int offset = wordOffset;
  6297. for ( int i = 0; i < len; i++ )
  6298. {
  6299. NextIndices(src, indices);
  6300. _MC_POINT_PARAM_ToByte(ref dst, ( _MC_POINT_PARAM ) src.GetValue(indices), len, wordOffset);
  6301. wordOffset += _MC_POINT_PARAM_WSIZE;
  6302. }
  6303. }
  6304. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[] src, int len = 1, int wordOffset = 0)
  6305. {
  6306. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6307. }
  6308. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,] src, int len = 1, int wordOffset = 0)
  6309. {
  6310. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6311. }
  6312. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,,] src, int len = 1, int wordOffset = 0)
  6313. {
  6314. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6315. }
  6316. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,,,] src, int len = 1, int wordOffset = 0)
  6317. {
  6318. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6319. }
  6320. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,,,,] src, int len = 1, int wordOffset = 0)
  6321. {
  6322. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6323. }
  6324. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,,,,,] src, int len = 1, int wordOffset = 0)
  6325. {
  6326. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6327. }
  6328. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,,,,,,] src, int len = 1, int wordOffset = 0)
  6329. {
  6330. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6331. }
  6332. public static void _MC_POINT_PARAM_ToByte(ref byte[] dst, _MC_POINT_PARAM[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6333. {
  6334. _MC_POINT_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6335. }
  6336. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS src, int len = 1, int wordOffset = 0)
  6337. {
  6338. _MC_POINT_PARAM_ToByte(ref dst, src.Point, 50, 0 + wordOffset);
  6339. }
  6340. private static void _MC_POINT_PARAM_AXIS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6341. {
  6342. int[] indices = NewIndices(src);
  6343. int offset = wordOffset;
  6344. for ( int i = 0; i < len; i++ )
  6345. {
  6346. NextIndices(src, indices);
  6347. _MC_POINT_PARAM_AXIS_ToByte(ref dst, ( _MC_POINT_PARAM_AXIS ) src.GetValue(indices), len, wordOffset);
  6348. wordOffset += _MC_POINT_PARAM_AXIS_WSIZE;
  6349. }
  6350. }
  6351. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[] src, int len = 1, int wordOffset = 0)
  6352. {
  6353. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6354. }
  6355. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,] src, int len = 1, int wordOffset = 0)
  6356. {
  6357. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6358. }
  6359. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,,] src, int len = 1, int wordOffset = 0)
  6360. {
  6361. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6362. }
  6363. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,,,] src, int len = 1, int wordOffset = 0)
  6364. {
  6365. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6366. }
  6367. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,,,,] src, int len = 1, int wordOffset = 0)
  6368. {
  6369. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6370. }
  6371. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,,,,,] src, int len = 1, int wordOffset = 0)
  6372. {
  6373. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6374. }
  6375. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,,,,,,] src, int len = 1, int wordOffset = 0)
  6376. {
  6377. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6378. }
  6379. public static void _MC_POINT_PARAM_AXIS_ToByte(ref byte[] dst, _MC_POINT_PARAM_AXIS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6380. {
  6381. _MC_POINT_PARAM_AXIS_ToByteBase(ref dst, src, len, wordOffset);
  6382. }
  6383. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG src, int len = 1, int wordOffset = 0)
  6384. {
  6385. UshortToByte(ref dst, src.CommonSetting1, 1, 0 + wordOffset);
  6386. UshortToByte(ref dst, src.CommonSetting2, 1, 1 + wordOffset);
  6387. DoubleToByte(ref dst, src.OperationStartVel, 1, 4 + wordOffset);
  6388. DoubleToByte(ref dst, src.OperationMaxVel, 1, 8 + wordOffset);
  6389. DoubleToByte(ref dst, src.OperationAcc, 1, 12 + wordOffset);
  6390. DoubleToByte(ref dst, src.OperationDec, 1, 16 + wordOffset);
  6391. UshortToByte(ref dst, src.OperationAccDecCurveRatio, 1, 20 + wordOffset);
  6392. UshortToByte(ref dst, src.OperationAccDecCurve, 1, 21 + wordOffset);
  6393. DoubleToByte(ref dst, src.JogAcc, 1, 24 + wordOffset);
  6394. DoubleToByte(ref dst, src.JogDec, 1, 28 + wordOffset);
  6395. DoubleToByte(ref dst, src.JogStartVel, 1, 32 + wordOffset);
  6396. DoubleToByte(ref dst, src.JogFastVel, 1, 36 + wordOffset);
  6397. DoubleToByte(ref dst, src.JogInchingMovement, 1, 40 + wordOffset);
  6398. UshortToByte(ref dst, src.JogAccDecCurveRatio, 1, 44 + wordOffset);
  6399. UshortToByte(ref dst, src.JogAccDecCurve, 1, 45 + wordOffset);
  6400. UshortToByte(ref dst, src.HomingSetting, 1, 46 + wordOffset);
  6401. UshortToByte(ref dst, src.HomingAccDecCurveRatio, 1, 47 + wordOffset);
  6402. DoubleToByte(ref dst, src.HomingStartVel, 1, 48 + wordOffset);
  6403. DoubleToByte(ref dst, src.HomingCreepVel, 1, 52 + wordOffset);
  6404. DoubleToByte(ref dst, src.HomingVel, 1, 56 + wordOffset);
  6405. DoubleToByte(ref dst, src.HomingAcc, 1, 60 + wordOffset);
  6406. DoubleToByte(ref dst, src.HomingDec, 1, 64 + wordOffset);
  6407. DoubleToByte(ref dst, src.HomingPos, 1, 68 + wordOffset);
  6408. DoubleToByte(ref dst, src.HomingBasePos, 1, 72 + wordOffset);
  6409. DoubleToByte(ref dst, src.HomingMovementAfterDogOn, 1, 76 + wordOffset);
  6410. UshortToByte(ref dst, src.HomingMethod, 1, 80 + wordOffset);
  6411. UshortToByte(ref dst, src.HomingDwellTime, 1, 81 + wordOffset);
  6412. UshortToByte(ref dst, src.HomingPressTrqTime, 1, 83 + wordOffset);
  6413. DoubleToByte(ref dst, src.HomingPressTrqThresh, 1, 84 + wordOffset);
  6414. DoubleToByte(ref dst, src.AbsPosFollowUpCtrlVel, 1, 88 + wordOffset);
  6415. DoubleToByte(ref dst, src.AbsPosFollowUpCtrlAcc, 1, 92 + wordOffset);
  6416. DoubleToByte(ref dst, src.AbsPosFollowUpCtrlDec, 1, 96 + wordOffset);
  6417. UintToByte(ref dst, src.SyncTypeFollowUpCtrlGearNumerator, 1, 100 + wordOffset);
  6418. UintToByte(ref dst, src.SyncTypeFollowUpCtrlGearDenominator, 1, 102 + wordOffset);
  6419. UshortToByte(ref dst, src.SyncTypeFollowUpCtrlOutputFilter, 1, 104 + wordOffset);
  6420. UshortToByte(ref dst, src.Reserved, 95, 105 + wordOffset);
  6421. }
  6422. private static void _MC_POS_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6423. {
  6424. int[] indices = NewIndices(src);
  6425. int offset = wordOffset;
  6426. for ( int i = 0; i < len; i++ )
  6427. {
  6428. NextIndices(src, indices);
  6429. _MC_POS_CFG_ToByte(ref dst, ( _MC_POS_CFG ) src.GetValue(indices), len, wordOffset);
  6430. wordOffset += _MC_POS_CFG_WSIZE;
  6431. }
  6432. }
  6433. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[] src, int len = 1, int wordOffset = 0)
  6434. {
  6435. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6436. }
  6437. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,] src, int len = 1, int wordOffset = 0)
  6438. {
  6439. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6440. }
  6441. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,,] src, int len = 1, int wordOffset = 0)
  6442. {
  6443. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6444. }
  6445. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,,,] src, int len = 1, int wordOffset = 0)
  6446. {
  6447. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6448. }
  6449. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  6450. {
  6451. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6452. }
  6453. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  6454. {
  6455. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6456. }
  6457. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  6458. {
  6459. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6460. }
  6461. public static void _MC_POS_CFG_ToByte(ref byte[] dst, _MC_POS_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6462. {
  6463. _MC_POS_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6464. }
  6465. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT src, int len = 1, int wordOffset = 0)
  6466. {
  6467. BoolToByte(ref dst, src.Output, 16, 0 + wordOffset, 0);
  6468. }
  6469. private static void _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6470. {
  6471. int[] indices = NewIndices(src);
  6472. int offset = wordOffset;
  6473. for ( int i = 0; i < len; i++ )
  6474. {
  6475. NextIndices(src, indices);
  6476. _MC_SYNC_CONTACT_OUTPUT_ToByte(ref dst, ( _MC_SYNC_CONTACT_OUTPUT ) src.GetValue(indices), len, wordOffset);
  6477. wordOffset += _MC_SYNC_CONTACT_OUTPUT_WSIZE;
  6478. }
  6479. }
  6480. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[] src, int len = 1, int wordOffset = 0)
  6481. {
  6482. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6483. }
  6484. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,] src, int len = 1, int wordOffset = 0)
  6485. {
  6486. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6487. }
  6488. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,,] src, int len = 1, int wordOffset = 0)
  6489. {
  6490. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6491. }
  6492. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,,,] src, int len = 1, int wordOffset = 0)
  6493. {
  6494. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6495. }
  6496. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,,,,] src, int len = 1, int wordOffset = 0)
  6497. {
  6498. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6499. }
  6500. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,,,,,] src, int len = 1, int wordOffset = 0)
  6501. {
  6502. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6503. }
  6504. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,,,,,,] src, int len = 1, int wordOffset = 0)
  6505. {
  6506. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6507. }
  6508. public static void _MC_SYNC_CONTACT_OUTPUT_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6509. {
  6510. _MC_SYNC_CONTACT_OUTPUT_ToByteBase(ref dst, src, len, wordOffset);
  6511. }
  6512. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG src, int len = 1, int wordOffset = 0)
  6513. {
  6514. DoubleToByte(ref dst, src.OnVal, 1, 0 + wordOffset);
  6515. DoubleToByte(ref dst, src.OffVal, 1, 4 + wordOffset);
  6516. UshortToByte(ref dst, src.OutputDst, 1, 8 + wordOffset);
  6517. UshortToByte(ref dst, src.Reserved, 3, 9 + wordOffset);
  6518. }
  6519. private static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6520. {
  6521. int[] indices = NewIndices(src);
  6522. int offset = wordOffset;
  6523. for ( int i = 0; i < len; i++ )
  6524. {
  6525. NextIndices(src, indices);
  6526. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref dst, ( _MC_SYNC_CONTACT_OUTPUT_SUB_CFG ) src.GetValue(indices), len, wordOffset);
  6527. wordOffset += _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_WSIZE;
  6528. }
  6529. }
  6530. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[] src, int len = 1, int wordOffset = 0)
  6531. {
  6532. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6533. }
  6534. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,] src, int len = 1, int wordOffset = 0)
  6535. {
  6536. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6537. }
  6538. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,] src, int len = 1, int wordOffset = 0)
  6539. {
  6540. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6541. }
  6542. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,] src, int len = 1, int wordOffset = 0)
  6543. {
  6544. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6545. }
  6546. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  6547. {
  6548. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6549. }
  6550. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  6551. {
  6552. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6553. }
  6554. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  6555. {
  6556. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6557. }
  6558. public static void _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_SUB_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6559. {
  6560. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6561. }
  6562. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG src, int len = 1, int wordOffset = 0)
  6563. {
  6564. UshortToByte(ref dst, src.BaseSetting, 1, 0 + wordOffset);
  6565. UintToByte(ref dst, src.DevNo, 1, 2 + wordOffset);
  6566. IntToByte(ref dst, src.RingCounterMin, 1, 4 + wordOffset);
  6567. IntToByte(ref dst, src.RingCounterMax, 1, 6 + wordOffset);
  6568. }
  6569. private static void _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6570. {
  6571. int[] indices = NewIndices(src);
  6572. int offset = wordOffset;
  6573. for ( int i = 0; i < len; i++ )
  6574. {
  6575. NextIndices(src, indices);
  6576. _MC_SYNC_EXT_INPUT_CFG_ToByte(ref dst, ( _MC_SYNC_EXT_INPUT_CFG ) src.GetValue(indices), len, wordOffset);
  6577. wordOffset += _MC_SYNC_EXT_INPUT_CFG_WSIZE;
  6578. }
  6579. }
  6580. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[] src, int len = 1, int wordOffset = 0)
  6581. {
  6582. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6583. }
  6584. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,] src, int len = 1, int wordOffset = 0)
  6585. {
  6586. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6587. }
  6588. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,,] src, int len = 1, int wordOffset = 0)
  6589. {
  6590. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6591. }
  6592. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,,,] src, int len = 1, int wordOffset = 0)
  6593. {
  6594. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6595. }
  6596. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  6597. {
  6598. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6599. }
  6600. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  6601. {
  6602. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6603. }
  6604. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  6605. {
  6606. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6607. }
  6608. public static void _MC_SYNC_EXT_INPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_EXT_INPUT_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6609. {
  6610. _MC_SYNC_EXT_INPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  6611. }
  6612. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM src, int len = 1, int wordOffset = 0)
  6613. {
  6614. DoubleToByte(ref dst, src.InputAxisCycle, 1, 0 + wordOffset);
  6615. UshortToByte(ref dst, src.UnitAndPrecision, 1, 4 + wordOffset);
  6616. UshortToByte(ref dst, src.ClutchOffSlippingTimeAtDecStop, 1, 5 + wordOffset);
  6617. UshortToByte(ref dst, src.InputAxisPhaseInitMethod, 1, 6 + wordOffset);
  6618. DoubleToByte(ref dst, src.MainAxisInitialPhase, 1, 8 + wordOffset);
  6619. DoubleToByte(ref dst, src.MainAxisInitialPhaseAfterCompensation, 1, 12 + wordOffset);
  6620. DoubleToByte(ref dst, src.MainClutchInputInitialPhase, 1, 16 + wordOffset);
  6621. DoubleToByte(ref dst, src.AuxClutchInputInitialPhase, 1, 20 + wordOffset);
  6622. UshortToByte(ref dst, src.CamInClutchOutPhaseInitMethod, 1, 24 + wordOffset);
  6623. DoubleToByte(ref dst, src.MainClutchOutputInitialPhase, 1, 28 + wordOffset);
  6624. DoubleToByte(ref dst, src.AuxClutchOutputInitialPhase, 1, 32 + wordOffset);
  6625. DoubleToByte(ref dst, src.TrqLimitClutchInputInitialPhase, 1, 36 + wordOffset);
  6626. DoubleToByte(ref dst, src.CamInputInitialPhase, 1, 40 + wordOffset);
  6627. DoubleToByte(ref dst, src.CamOutputBasePos, 1, 44 + wordOffset);
  6628. UshortToByte(ref dst, src.MainAxis1Input, 1, 48 + wordOffset);
  6629. UshortToByte(ref dst, src.MainAxis1CoordTrans, 1, 49 + wordOffset);
  6630. UintToByte(ref dst, src.MainAxis1CoordTransNumerator, 1, 50 + wordOffset);
  6631. UintToByte(ref dst, src.MainAxis1CoordTransDenominator, 1, 52 + wordOffset);
  6632. UshortToByte(ref dst, src.MainAxis2Input, 1, 54 + wordOffset);
  6633. UshortToByte(ref dst, src.MainAxis2CoordTrans, 1, 55 + wordOffset);
  6634. UintToByte(ref dst, src.MainAxis2CoordTransNumerator, 1, 56 + wordOffset);
  6635. UintToByte(ref dst, src.MainAxis2CoordTransDenominator, 1, 58 + wordOffset);
  6636. UshortToByte(ref dst, src.AuxAxisInput, 1, 60 + wordOffset);
  6637. UshortToByte(ref dst, src.AuxAxisCoordTrans, 1, 61 + wordOffset);
  6638. UintToByte(ref dst, src.AuxAxisCoordTransNumerator, 1, 62 + wordOffset);
  6639. UintToByte(ref dst, src.AuxAxisCoordTransDenominator, 1, 64 + wordOffset);
  6640. DoubleToByte(ref dst, src.MainAxisPhaseCompensationCmdVal, 1, 68 + wordOffset);
  6641. UshortToByte(ref dst, src.MainAxisPhaseCompensationChgMethod, 1, 72 + wordOffset);
  6642. UshortToByte(ref dst, src.MainAxisPhaseCompensationChgTime, 1, 73 + wordOffset);
  6643. DoubleToByte(ref dst, src.AuxAxisPhaseCompensationCmdVal, 1, 76 + wordOffset);
  6644. UshortToByte(ref dst, src.AuxAxisPhaseCompensationChgMethod, 1, 80 + wordOffset);
  6645. UshortToByte(ref dst, src.AuxAxisPhaseCompensationChgTime, 1, 81 + wordOffset);
  6646. DoubleToByte(ref dst, src.StepAngleCompensationBaseVel, 1, 84 + wordOffset);
  6647. DoubleToByte(ref dst, src.StepAngleCompensationBaseValue, 1, 88 + wordOffset);
  6648. UshortToByte(ref dst, src.StepAngleCompensationChgMethod, 1, 92 + wordOffset);
  6649. UshortToByte(ref dst, src.StepAngleCompensationChgTime, 1, 93 + wordOffset);
  6650. IntToByte(ref dst, src.VariableGearRatioNumerator, 1, 94 + wordOffset);
  6651. UintToByte(ref dst, src.VariableGearRatioDenominator, 1, 96 + wordOffset);
  6652. UshortToByte(ref dst, src.VariableGearRatioChgMethod, 1, 98 + wordOffset);
  6653. UshortToByte(ref dst, src.VariableGearRatioChgTime, 1, 99 + wordOffset);
  6654. UshortToByte(ref dst, src.MainClutchOnCondition, 1, 100 + wordOffset);
  6655. UshortToByte(ref dst, src.MainClutchOnEngagingMethod, 1, 101 + wordOffset);
  6656. UshortToByte(ref dst, src.MainClutchOnSlippingMode, 1, 102 + wordOffset);
  6657. UshortToByte(ref dst, src.MainClutchOnDisableMethod, 1, 103 + wordOffset);
  6658. DoubleToByte(ref dst, src.MainClutchOnSettingVal, 1, 104 + wordOffset);
  6659. DoubleToByte(ref dst, src.MainClutchOnDelay, 1, 108 + wordOffset);
  6660. DoubleToByte(ref dst, src.MainClutchOnSlippage, 1, 112 + wordOffset);
  6661. UshortToByte(ref dst, src.MainClutchOnSlippingCurve, 1, 116 + wordOffset);
  6662. UshortToByte(ref dst, src.MainClutchOnSlippingTime, 1, 117 + wordOffset);
  6663. UshortToByte(ref dst, src.MainClutchOnFollowingTime, 1, 119 + wordOffset);
  6664. DoubleToByte(ref dst, src.MainClutchOnFollowUpMovement, 1, 120 + wordOffset);
  6665. UshortToByte(ref dst, src.MainClutchOffCondition, 1, 124 + wordOffset);
  6666. UshortToByte(ref dst, src.MainClutchOffEngagingMethod, 1, 125 + wordOffset);
  6667. UshortToByte(ref dst, src.MainClutchOffSlippingMode, 1, 126 + wordOffset);
  6668. UshortToByte(ref dst, src.MainClutchOffDisableMethod, 1, 127 + wordOffset);
  6669. DoubleToByte(ref dst, src.MainClutchOffSettingVal, 1, 128 + wordOffset);
  6670. DoubleToByte(ref dst, src.MainClutchOffDelay, 1, 132 + wordOffset);
  6671. DoubleToByte(ref dst, src.MainClutchOffSlippage, 1, 136 + wordOffset);
  6672. UshortToByte(ref dst, src.MainClutchOffSlippingCurve, 1, 140 + wordOffset);
  6673. UshortToByte(ref dst, src.MainClutchOffSlippingTime, 1, 141 + wordOffset);
  6674. UshortToByte(ref dst, src.AuxClutchOnCondition, 1, 144 + wordOffset);
  6675. UshortToByte(ref dst, src.AuxClutchOnEngagingMethod, 1, 145 + wordOffset);
  6676. UshortToByte(ref dst, src.AuxClutchOnSlippingMode, 1, 146 + wordOffset);
  6677. UshortToByte(ref dst, src.AuxClutchOnDisableMethod, 1, 147 + wordOffset);
  6678. DoubleToByte(ref dst, src.AuxClutchOnSettingVal, 1, 148 + wordOffset);
  6679. DoubleToByte(ref dst, src.AuxClutchOnDelay, 1, 152 + wordOffset);
  6680. DoubleToByte(ref dst, src.AuxClutchOnSlippage, 1, 156 + wordOffset);
  6681. UshortToByte(ref dst, src.AuxClutchOnSlippingCurve, 1, 160 + wordOffset);
  6682. UshortToByte(ref dst, src.AuxClutchOnSlippingTime, 1, 161 + wordOffset);
  6683. UshortToByte(ref dst, src.AuxClutchOffCondition, 1, 164 + wordOffset);
  6684. UshortToByte(ref dst, src.AuxClutchOffEngagingMethod, 1, 165 + wordOffset);
  6685. UshortToByte(ref dst, src.AuxClutchOffSlippingMode, 1, 166 + wordOffset);
  6686. UshortToByte(ref dst, src.AuxClutchOffDisableMethod, 1, 167 + wordOffset);
  6687. DoubleToByte(ref dst, src.AuxClutchOffSettingVal, 1, 168 + wordOffset);
  6688. DoubleToByte(ref dst, src.AuxClutchOffDelay, 1, 172 + wordOffset);
  6689. DoubleToByte(ref dst, src.AuxClutchOffSlippage, 1, 176 + wordOffset);
  6690. UshortToByte(ref dst, src.AuxClutchOffSlippingCurve, 1, 180 + wordOffset);
  6691. UshortToByte(ref dst, src.AuxClutchOffSlippingTime, 1, 181 + wordOffset);
  6692. UshortToByte(ref dst, src.CamDataNo, 1, 182 + wordOffset);
  6693. UshortToByte(ref dst, src.ContactOutputNo, 1, 183 + wordOffset);
  6694. DoubleToByte(ref dst, src.CamStroke, 1, 184 + wordOffset);
  6695. UshortToByte(ref dst, src.SimMechanicalSyncStopMethod, 1, 188 + wordOffset);
  6696. UshortToByte(ref dst, src.TrqLimitClutchEngagingMethod, 1, 189 + wordOffset);
  6697. UshortToByte(ref dst, src.OutputFilterTimeConst, 1, 190 + wordOffset);
  6698. DoubleToByte(ref dst, src.SimMechanicalSyncStopTrq, 1, 192 + wordOffset);
  6699. DoubleToByte(ref dst, src.TrqLimitClutchOutputJogVel, 1, 196 + wordOffset);
  6700. }
  6701. private static void _MC_SYNC_PARAM_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6702. {
  6703. int[] indices = NewIndices(src);
  6704. int offset = wordOffset;
  6705. for ( int i = 0; i < len; i++ )
  6706. {
  6707. NextIndices(src, indices);
  6708. _MC_SYNC_PARAM_ToByte(ref dst, ( _MC_SYNC_PARAM ) src.GetValue(indices), len, wordOffset);
  6709. wordOffset += _MC_SYNC_PARAM_WSIZE;
  6710. }
  6711. }
  6712. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[] src, int len = 1, int wordOffset = 0)
  6713. {
  6714. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6715. }
  6716. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,] src, int len = 1, int wordOffset = 0)
  6717. {
  6718. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6719. }
  6720. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,,] src, int len = 1, int wordOffset = 0)
  6721. {
  6722. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6723. }
  6724. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,,,] src, int len = 1, int wordOffset = 0)
  6725. {
  6726. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6727. }
  6728. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,,,,] src, int len = 1, int wordOffset = 0)
  6729. {
  6730. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6731. }
  6732. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,,,,,] src, int len = 1, int wordOffset = 0)
  6733. {
  6734. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6735. }
  6736. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,,,,,,] src, int len = 1, int wordOffset = 0)
  6737. {
  6738. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6739. }
  6740. public static void _MC_SYNC_PARAM_ToByte(ref byte[] dst, _MC_SYNC_PARAM[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6741. {
  6742. _MC_SYNC_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  6743. }
  6744. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER src, int len = 1, int wordOffset = 0)
  6745. {
  6746. BoolToByte(ref dst, src.SaveRequest, 1, 0 + wordOffset, 0);
  6747. BoolToByte(ref dst, src.InAction, 1, 0 + wordOffset, 1);
  6748. BoolToByte(ref dst, src.SaveTriggerMonitor, 1, 0 + wordOffset, 2);
  6749. BoolToByte(ref dst, src.SaveBusy, 1, 0 + wordOffset, 3);
  6750. BoolToByte(ref dst, src.Collecting, 1, 0 + wordOffset, 4);
  6751. BoolToByte(ref dst, src.SettingError, 1, 0 + wordOffset, 5);
  6752. BoolToByte(ref dst, src.SaveComplete, 1, 0 + wordOffset, 7);
  6753. BoolToByte(ref dst, src.SaveError, 1, 0 + wordOffset, 8);
  6754. BoolToByte(ref dst, src.BufferShortage, 1, 0 + wordOffset, 9);
  6755. BoolToByte(ref dst, src.BufferAllSaveMode, 1, 0 + wordOffset, 14);
  6756. IntToByte(ref dst, src.AverageSamplingPeriod, 1, 2 + wordOffset);
  6757. IntToByte(ref dst, src.AverageChangedDeviceNum, 1, 4 + wordOffset);
  6758. IntToByte(ref dst, src.MaxCollectingPeriod, 1, 6 + wordOffset);
  6759. UshortToByte(ref dst, src.SaveFinCode, 1, 20 + wordOffset);
  6760. UshortToByte(ref dst, src.SaveCounter, 1, 22 + wordOffset);
  6761. UshortToByte(ref dst, src.SaveProgressInfo1, 1, 24 + wordOffset);
  6762. UshortToByte(ref dst, src.SaveProgressInfo2, 1, 25 + wordOffset);
  6763. UshortToByte(ref dst, src.SaveProgress, 1, 26 + wordOffset);
  6764. StringToByte(ref dst, src.SavePath, 1, 30 + wordOffset, 321);
  6765. UshortToByte(ref dst, src.Reserved, 9, 191 + wordOffset);
  6766. }
  6767. private static void _OPERATION_RECORDER_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6768. {
  6769. int[] indices = NewIndices(src);
  6770. int offset = wordOffset;
  6771. for ( int i = 0; i < len; i++ )
  6772. {
  6773. NextIndices(src, indices);
  6774. _OPERATION_RECORDER_ToByte(ref dst, ( _OPERATION_RECORDER ) src.GetValue(indices), len, wordOffset);
  6775. wordOffset += _OPERATION_RECORDER_WSIZE;
  6776. }
  6777. }
  6778. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[] src, int len = 1, int wordOffset = 0)
  6779. {
  6780. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6781. }
  6782. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,] src, int len = 1, int wordOffset = 0)
  6783. {
  6784. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6785. }
  6786. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,,] src, int len = 1, int wordOffset = 0)
  6787. {
  6788. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6789. }
  6790. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,,,] src, int len = 1, int wordOffset = 0)
  6791. {
  6792. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6793. }
  6794. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,,,,] src, int len = 1, int wordOffset = 0)
  6795. {
  6796. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6797. }
  6798. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,,,,,] src, int len = 1, int wordOffset = 0)
  6799. {
  6800. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6801. }
  6802. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,,,,,,] src, int len = 1, int wordOffset = 0)
  6803. {
  6804. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6805. }
  6806. public static void _OPERATION_RECORDER_ToByte(ref byte[] dst, _OPERATION_RECORDER[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6807. {
  6808. _OPERATION_RECORDER_ToByteBase(ref dst, src, len, wordOffset);
  6809. }
  6810. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO src, int len = 1, int wordOffset = 0)
  6811. {
  6812. UintToByte(ref dst, src.ScanTime, 1, 0 + wordOffset);
  6813. UintToByte(ref dst, src.EndProcTime, 1, 2 + wordOffset);
  6814. UintToByte(ref dst, src.MinScanTime, 1, 4 + wordOffset);
  6815. UintToByte(ref dst, src.MaxScanTime, 1, 6 + wordOffset);
  6816. UintToByte(ref dst, src.FixScanTimeSet, 1, 8 + wordOffset);
  6817. UintToByte(ref dst, src.EndProcTimeSet, 1, 10 + wordOffset);
  6818. UintToByte(ref dst, src.ExcessConstantScanTime, 1, 12 + wordOffset);
  6819. UintToByte(ref dst, src.ExcessEndProcTime, 1, 14 + wordOffset);
  6820. UshortToByte(ref dst, src.ProgramErrorDetail, 1, 23 + wordOffset);
  6821. BoolToByte(ref dst, src.FixScanTimeEnable, 1, 24 + wordOffset, 3);
  6822. BoolToByte(ref dst, src.FixTimeExcess, 1, 24 + wordOffset, 4);
  6823. BoolToByte(ref dst, src.OCPDisabled, 1, 24 + wordOffset, 5);
  6824. BoolToByte(ref dst, src.BackupBattError, 1, 24 + wordOffset, 6);
  6825. BoolToByte(ref dst, src.ScanTimeMaxMinClear, 1, 24 + wordOffset, 7);
  6826. BoolToByte(ref dst, src.FixEndProcTimeEnable, 1, 24 + wordOffset, 8);
  6827. BoolToByte(ref dst, src.TimeError, 1, 24 + wordOffset, 11);
  6828. BoolToByte(ref dst, src.ProjectPasswordAuthDisabled, 1, 24 + wordOffset, 14);
  6829. UshortToByte(ref dst, src.Reserved, 1, 25 + wordOffset);
  6830. }
  6831. private static void _PROGRAM_INFO_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6832. {
  6833. int[] indices = NewIndices(src);
  6834. int offset = wordOffset;
  6835. for ( int i = 0; i < len; i++ )
  6836. {
  6837. NextIndices(src, indices);
  6838. _PROGRAM_INFO_ToByte(ref dst, ( _PROGRAM_INFO ) src.GetValue(indices), len, wordOffset);
  6839. wordOffset += _PROGRAM_INFO_WSIZE;
  6840. }
  6841. }
  6842. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[] src, int len = 1, int wordOffset = 0)
  6843. {
  6844. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6845. }
  6846. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,] src, int len = 1, int wordOffset = 0)
  6847. {
  6848. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6849. }
  6850. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,,] src, int len = 1, int wordOffset = 0)
  6851. {
  6852. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6853. }
  6854. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,,,] src, int len = 1, int wordOffset = 0)
  6855. {
  6856. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6857. }
  6858. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,,,,] src, int len = 1, int wordOffset = 0)
  6859. {
  6860. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6861. }
  6862. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,,,,,] src, int len = 1, int wordOffset = 0)
  6863. {
  6864. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6865. }
  6866. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,,,,,,] src, int len = 1, int wordOffset = 0)
  6867. {
  6868. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6869. }
  6870. public static void _PROGRAM_INFO_ToByte(ref byte[] dst, _PROGRAM_INFO[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6871. {
  6872. _PROGRAM_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6873. }
  6874. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO src, int len = 1, int wordOffset = 0)
  6875. {
  6876. StringToByte(ref dst, src.ProjectName, 1, 0 + wordOffset, 65);
  6877. UshortToByte(ref dst, src.SensorInstExecCount, 1, 34 + wordOffset);
  6878. UshortToByte(ref dst, src.PrjPasswordCertFailCount, 1, 35 + wordOffset);
  6879. UshortToByte(ref dst, src.PrjPasswordCertFailTotal, 1, 36 + wordOffset);
  6880. UshortToByte(ref dst, src.CpuFuncVersion, 1, 38 + wordOffset);
  6881. UshortToByte(ref dst, src.ProjectVersion, 1, 45 + wordOffset);
  6882. }
  6883. private static void _PROJECT_INFO_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6884. {
  6885. int[] indices = NewIndices(src);
  6886. int offset = wordOffset;
  6887. for ( int i = 0; i < len; i++ )
  6888. {
  6889. NextIndices(src, indices);
  6890. _PROJECT_INFO_ToByte(ref dst, ( _PROJECT_INFO ) src.GetValue(indices), len, wordOffset);
  6891. wordOffset += _PROJECT_INFO_WSIZE;
  6892. }
  6893. }
  6894. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[] src, int len = 1, int wordOffset = 0)
  6895. {
  6896. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6897. }
  6898. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,] src, int len = 1, int wordOffset = 0)
  6899. {
  6900. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6901. }
  6902. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,,] src, int len = 1, int wordOffset = 0)
  6903. {
  6904. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6905. }
  6906. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,,,] src, int len = 1, int wordOffset = 0)
  6907. {
  6908. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6909. }
  6910. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,,,,] src, int len = 1, int wordOffset = 0)
  6911. {
  6912. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6913. }
  6914. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,,,,,] src, int len = 1, int wordOffset = 0)
  6915. {
  6916. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6917. }
  6918. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,,,,,,] src, int len = 1, int wordOffset = 0)
  6919. {
  6920. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6921. }
  6922. public static void _PROJECT_INFO_ToByte(ref byte[] dst, _PROJECT_INFO[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6923. {
  6924. _PROJECT_INFO_ToByteBase(ref dst, src, len, wordOffset);
  6925. }
  6926. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD src, int len = 1, int wordOffset = 0)
  6927. {
  6928. BoolToByte(ref dst, src.Request, 1, 0 + wordOffset, 0);
  6929. BoolToByte(ref dst, src.Busy, 1, 0 + wordOffset, 1);
  6930. BoolToByte(ref dst, src.Complete, 1, 0 + wordOffset, 2);
  6931. BoolToByte(ref dst, src.Error, 1, 0 + wordOffset, 3);
  6932. UshortToByte(ref dst, src.DriveNumber, 1, 1 + wordOffset);
  6933. UshortToByte(ref dst, src.FolderNumber, 1, 2 + wordOffset);
  6934. UshortToByte(ref dst, src.CompleteDriveNumber, 1, 3 + wordOffset);
  6935. UshortToByte(ref dst, src.CompleteFolderNumber, 1, 4 + wordOffset);
  6936. UshortToByte(ref dst, src.FinCode, 1, 5 + wordOffset);
  6937. }
  6938. private static void _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6939. {
  6940. int[] indices = NewIndices(src);
  6941. int offset = wordOffset;
  6942. for ( int i = 0; i < len; i++ )
  6943. {
  6944. NextIndices(src, indices);
  6945. _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref dst, ( _PROJECT_RECIPE_SAVE_LOAD ) src.GetValue(indices), len, wordOffset);
  6946. wordOffset += _PROJECT_RECIPE_SAVE_LOAD_WSIZE;
  6947. }
  6948. }
  6949. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[] src, int len = 1, int wordOffset = 0)
  6950. {
  6951. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6952. }
  6953. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,] src, int len = 1, int wordOffset = 0)
  6954. {
  6955. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6956. }
  6957. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,,] src, int len = 1, int wordOffset = 0)
  6958. {
  6959. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6960. }
  6961. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,,,] src, int len = 1, int wordOffset = 0)
  6962. {
  6963. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6964. }
  6965. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,,,,] src, int len = 1, int wordOffset = 0)
  6966. {
  6967. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6968. }
  6969. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,,,,,] src, int len = 1, int wordOffset = 0)
  6970. {
  6971. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6972. }
  6973. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,,,,,,] src, int len = 1, int wordOffset = 0)
  6974. {
  6975. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6976. }
  6977. public static void _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref byte[] dst, _PROJECT_RECIPE_SAVE_LOAD[,,,,,,,] src, int len = 1, int wordOffset = 0)
  6978. {
  6979. _PROJECT_RECIPE_SAVE_LOAD_ToByteBase(ref dst, src, len, wordOffset);
  6980. }
  6981. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE src, int len = 1, int wordOffset = 0)
  6982. {
  6983. BoolToByte(ref dst, src.Request, 1, 0 + wordOffset, 0);
  6984. BoolToByte(ref dst, src.Busy, 1, 0 + wordOffset, 1);
  6985. BoolToByte(ref dst, src.Complete, 1, 0 + wordOffset, 2);
  6986. BoolToByte(ref dst, src.Error, 1, 0 + wordOffset, 3);
  6987. UshortToByte(ref dst, src.DriveNumber, 1, 1 + wordOffset);
  6988. UshortToByte(ref dst, src.InputFolderNumber, 1, 2 + wordOffset);
  6989. UshortToByte(ref dst, src.OutputFolderNumber, 1, 4 + wordOffset);
  6990. UshortToByte(ref dst, src.FinCode, 1, 5 + wordOffset);
  6991. }
  6992. private static void _RECIPE_SAVE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  6993. {
  6994. int[] indices = NewIndices(src);
  6995. int offset = wordOffset;
  6996. for ( int i = 0; i < len; i++ )
  6997. {
  6998. NextIndices(src, indices);
  6999. _RECIPE_SAVE_ToByte(ref dst, ( _RECIPE_SAVE ) src.GetValue(indices), len, wordOffset);
  7000. wordOffset += _RECIPE_SAVE_WSIZE;
  7001. }
  7002. }
  7003. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[] src, int len = 1, int wordOffset = 0)
  7004. {
  7005. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7006. }
  7007. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,] src, int len = 1, int wordOffset = 0)
  7008. {
  7009. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7010. }
  7011. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,,] src, int len = 1, int wordOffset = 0)
  7012. {
  7013. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7014. }
  7015. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,,,] src, int len = 1, int wordOffset = 0)
  7016. {
  7017. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7018. }
  7019. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,,,,] src, int len = 1, int wordOffset = 0)
  7020. {
  7021. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7022. }
  7023. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,,,,,] src, int len = 1, int wordOffset = 0)
  7024. {
  7025. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7026. }
  7027. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,,,,,,] src, int len = 1, int wordOffset = 0)
  7028. {
  7029. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7030. }
  7031. public static void _RECIPE_SAVE_ToByte(ref byte[] dst, _RECIPE_SAVE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7032. {
  7033. _RECIPE_SAVE_ToByteBase(ref dst, src, len, wordOffset);
  7034. }
  7035. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS src, int len = 1, int wordOffset = 0)
  7036. {
  7037. UshortToByte(ref dst, src.SocketStatus, 1, 0 + wordOffset);
  7038. UshortToByte(ref dst, src.TCPConnStatus, 1, 1 + wordOffset);
  7039. UshortToByte(ref dst, src.MyPortNo, 1, 2 + wordOffset);
  7040. StringToByte(ref dst, src.ConnAddress, 1, 3 + wordOffset, 16);
  7041. UshortToByte(ref dst, src.ConnPortNo, 1, 11 + wordOffset);
  7042. }
  7043. private static void _SOCKET_STATUS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7044. {
  7045. int[] indices = NewIndices(src);
  7046. int offset = wordOffset;
  7047. for ( int i = 0; i < len; i++ )
  7048. {
  7049. NextIndices(src, indices);
  7050. _SOCKET_STATUS_ToByte(ref dst, ( _SOCKET_STATUS ) src.GetValue(indices), len, wordOffset);
  7051. wordOffset += _SOCKET_STATUS_WSIZE;
  7052. }
  7053. }
  7054. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[] src, int len = 1, int wordOffset = 0)
  7055. {
  7056. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7057. }
  7058. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,] src, int len = 1, int wordOffset = 0)
  7059. {
  7060. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7061. }
  7062. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,,] src, int len = 1, int wordOffset = 0)
  7063. {
  7064. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7065. }
  7066. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,,,] src, int len = 1, int wordOffset = 0)
  7067. {
  7068. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7069. }
  7070. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,,,,] src, int len = 1, int wordOffset = 0)
  7071. {
  7072. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7073. }
  7074. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,,,,,] src, int len = 1, int wordOffset = 0)
  7075. {
  7076. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7077. }
  7078. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,,,,,,] src, int len = 1, int wordOffset = 0)
  7079. {
  7080. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7081. }
  7082. public static void _SOCKET_STATUS_ToByte(ref byte[] dst, _SOCKET_STATUS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7083. {
  7084. _SOCKET_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7085. }
  7086. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE src, int len = 1, int wordOffset = 0)
  7087. {
  7088. BoolToByte(ref dst, src.MemCardMountReq, 1, 0 + wordOffset, 0);
  7089. BoolToByte(ref dst, src.MemCardUnmountReq, 1, 0 + wordOffset, 1);
  7090. BoolToByte(ref dst, src.MemCardInUse, 1, 0 + wordOffset, 2);
  7091. BoolToByte(ref dst, src.MemCardRecognized, 1, 0 + wordOffset, 3);
  7092. BoolToByte(ref dst, src.MemCardExist, 1, 0 + wordOffset, 4);
  7093. BoolToByte(ref dst, src.CpuMemoryMountReq, 1, 0 + wordOffset, 8);
  7094. BoolToByte(ref dst, src.CpuMemoryUnmountReq, 1, 0 + wordOffset, 9);
  7095. BoolToByte(ref dst, src.CpuMemoryInUse, 1, 0 + wordOffset, 10);
  7096. BoolToByte(ref dst, src.CpuMemoryRecognized, 1, 0 + wordOffset, 11);
  7097. _AUTOLOAD_CTRL_ToByte(ref dst, src.AutoLoad, 1, 3 + wordOffset);
  7098. _AUTOLOAD_CTRL_ToByte(ref dst, src.RunLoad, 1, 10 + wordOffset);
  7099. _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref dst, src.ProjectSave, 1, 20 + wordOffset);
  7100. _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref dst, src.ProjectLoad, 1, 30 + wordOffset);
  7101. _RECIPE_SAVE_ToByte(ref dst, src.RecipeSave, 1, 40 + wordOffset);
  7102. _PROJECT_RECIPE_SAVE_LOAD_ToByte(ref dst, src.RecipeLoad, 1, 50 + wordOffset);
  7103. _CPU_MEMORY_SAVE_ToByte(ref dst, src.CpuMemorySave, 1, 60 + wordOffset);
  7104. BoolToByte(ref dst, src.StorageFBIsRAMMode, 1, 61 + wordOffset, 7);
  7105. BoolToByte(ref dst, src.ProjectBackupBusy, 1, 61 + wordOffset, 8);
  7106. BoolToByte(ref dst, src.LoggingTraceBusy, 1, 61 + wordOffset, 10);
  7107. BoolToByte(ref dst, src.LoggingInternalBufferOverflow, 1, 61 + wordOffset, 11);
  7108. UshortToByte(ref dst, src.PowerOffDuringStorageAccess, 1, 70 + wordOffset);
  7109. UshortToByte(ref dst, src.MemoryCardRetryCount, 1, 71 + wordOffset);
  7110. UshortToByte(ref dst, src.MemoryCardErrorCount, 1, 72 + wordOffset);
  7111. UshortToByte(ref dst, src.MemoryCardResetDelay, 1, 74 + wordOffset);
  7112. UintToByte(ref dst, src.UsageCpuMemory, 1, 80 + wordOffset);
  7113. }
  7114. private static void _STORAGE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7115. {
  7116. int[] indices = NewIndices(src);
  7117. int offset = wordOffset;
  7118. for ( int i = 0; i < len; i++ )
  7119. {
  7120. NextIndices(src, indices);
  7121. _STORAGE_ToByte(ref dst, ( _STORAGE ) src.GetValue(indices), len, wordOffset);
  7122. wordOffset += _STORAGE_WSIZE;
  7123. }
  7124. }
  7125. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[] src, int len = 1, int wordOffset = 0)
  7126. {
  7127. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7128. }
  7129. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,] src, int len = 1, int wordOffset = 0)
  7130. {
  7131. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7132. }
  7133. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,,] src, int len = 1, int wordOffset = 0)
  7134. {
  7135. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7136. }
  7137. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,,,] src, int len = 1, int wordOffset = 0)
  7138. {
  7139. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7140. }
  7141. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,,,,] src, int len = 1, int wordOffset = 0)
  7142. {
  7143. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7144. }
  7145. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,,,,,] src, int len = 1, int wordOffset = 0)
  7146. {
  7147. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7148. }
  7149. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,,,,,,] src, int len = 1, int wordOffset = 0)
  7150. {
  7151. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7152. }
  7153. public static void _STORAGE_ToByte(ref byte[] dst, _STORAGE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7154. {
  7155. _STORAGE_ToByteBase(ref dst, src, len, wordOffset);
  7156. }
  7157. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM src, int len = 1, int wordOffset = 0)
  7158. {
  7159. UshortToByte(ref dst, src.Delimiter, 1, 0 + wordOffset);
  7160. BoolToByte(ref dst, src.Hex, 1, 1 + wordOffset, 0);
  7161. }
  7162. private static void _STRING_TO_VARIABLE_PARAM_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7163. {
  7164. int[] indices = NewIndices(src);
  7165. int offset = wordOffset;
  7166. for ( int i = 0; i < len; i++ )
  7167. {
  7168. NextIndices(src, indices);
  7169. _STRING_TO_VARIABLE_PARAM_ToByte(ref dst, ( _STRING_TO_VARIABLE_PARAM ) src.GetValue(indices), len, wordOffset);
  7170. wordOffset += _STRING_TO_VARIABLE_PARAM_WSIZE;
  7171. }
  7172. }
  7173. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[] src, int len = 1, int wordOffset = 0)
  7174. {
  7175. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7176. }
  7177. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,] src, int len = 1, int wordOffset = 0)
  7178. {
  7179. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7180. }
  7181. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,,] src, int len = 1, int wordOffset = 0)
  7182. {
  7183. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7184. }
  7185. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,,,] src, int len = 1, int wordOffset = 0)
  7186. {
  7187. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7188. }
  7189. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,,,,] src, int len = 1, int wordOffset = 0)
  7190. {
  7191. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7192. }
  7193. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,,,,,] src, int len = 1, int wordOffset = 0)
  7194. {
  7195. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7196. }
  7197. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,,,,,,] src, int len = 1, int wordOffset = 0)
  7198. {
  7199. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7200. }
  7201. public static void _STRING_TO_VARIABLE_PARAM_ToByte(ref byte[] dst, _STRING_TO_VARIABLE_PARAM[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7202. {
  7203. _STRING_TO_VARIABLE_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7204. }
  7205. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR src, int len = 1, int wordOffset = 0)
  7206. {
  7207. UshortToByte(ref dst, src.UnitNo, 1, 0 + wordOffset);
  7208. UintToByte(ref dst, src.RelayAdr, 1, 2 + wordOffset);
  7209. UintToByte(ref dst, src.DmAdr, 1, 4 + wordOffset);
  7210. }
  7211. private static void _UNIT_ID_ADR_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7212. {
  7213. int[] indices = NewIndices(src);
  7214. int offset = wordOffset;
  7215. for ( int i = 0; i < len; i++ )
  7216. {
  7217. NextIndices(src, indices);
  7218. _UNIT_ID_ADR_ToByte(ref dst, ( _UNIT_ID_ADR ) src.GetValue(indices), len, wordOffset);
  7219. wordOffset += _UNIT_ID_ADR_WSIZE;
  7220. }
  7221. }
  7222. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[] src, int len = 1, int wordOffset = 0)
  7223. {
  7224. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7225. }
  7226. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,] src, int len = 1, int wordOffset = 0)
  7227. {
  7228. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7229. }
  7230. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,,] src, int len = 1, int wordOffset = 0)
  7231. {
  7232. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7233. }
  7234. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,,,] src, int len = 1, int wordOffset = 0)
  7235. {
  7236. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7237. }
  7238. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,,,,] src, int len = 1, int wordOffset = 0)
  7239. {
  7240. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7241. }
  7242. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,,,,,] src, int len = 1, int wordOffset = 0)
  7243. {
  7244. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7245. }
  7246. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,,,,,,] src, int len = 1, int wordOffset = 0)
  7247. {
  7248. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7249. }
  7250. public static void _UNIT_ID_ADR_ToByte(ref byte[] dst, _UNIT_ID_ADR[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7251. {
  7252. _UNIT_ID_ADR_ToByteBase(ref dst, src, len, wordOffset);
  7253. }
  7254. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE src, int len = 1, int wordOffset = 0)
  7255. {
  7256. UintToByte(ref dst, src.RefreshStartTimeDelay, 1, 0 + wordOffset);
  7257. UintToByte(ref dst, src.RefreshFinishTimeDelay, 1, 2 + wordOffset);
  7258. UintToByte(ref dst, src.RefreshStartTimeMaxDelay, 1, 4 + wordOffset);
  7259. UintToByte(ref dst, src.RefreshFinishTimeMaxDelay, 1, 6 + wordOffset);
  7260. UintToByte(ref dst, src.RefreshExecutionTime, 1, 8 + wordOffset);
  7261. BoolToByte(ref dst, src.RefreshIntervalOver, 1, 10 + wordOffset, 0);
  7262. UshortToByte(ref dst, src.Reserved, 1, 11 + wordOffset);
  7263. }
  7264. private static void _UNIT_SYNCHRONIZE_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7265. {
  7266. int[] indices = NewIndices(src);
  7267. int offset = wordOffset;
  7268. for ( int i = 0; i < len; i++ )
  7269. {
  7270. NextIndices(src, indices);
  7271. _UNIT_SYNCHRONIZE_ToByte(ref dst, ( _UNIT_SYNCHRONIZE ) src.GetValue(indices), len, wordOffset);
  7272. wordOffset += _UNIT_SYNCHRONIZE_WSIZE;
  7273. }
  7274. }
  7275. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[] src, int len = 1, int wordOffset = 0)
  7276. {
  7277. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7278. }
  7279. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,] src, int len = 1, int wordOffset = 0)
  7280. {
  7281. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7282. }
  7283. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,,] src, int len = 1, int wordOffset = 0)
  7284. {
  7285. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7286. }
  7287. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,,,] src, int len = 1, int wordOffset = 0)
  7288. {
  7289. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7290. }
  7291. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,,,,] src, int len = 1, int wordOffset = 0)
  7292. {
  7293. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7294. }
  7295. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,,,,,] src, int len = 1, int wordOffset = 0)
  7296. {
  7297. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7298. }
  7299. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,,,,,,] src, int len = 1, int wordOffset = 0)
  7300. {
  7301. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7302. }
  7303. public static void _UNIT_SYNCHRONIZE_ToByte(ref byte[] dst, _UNIT_SYNCHRONIZE[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7304. {
  7305. _UNIT_SYNCHRONIZE_ToByteBase(ref dst, src, len, wordOffset);
  7306. }
  7307. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM src, int len = 1, int wordOffset = 0)
  7308. {
  7309. UshortToByte(ref dst, src.Delimiter, 1, 0 + wordOffset);
  7310. UshortToByte(ref dst, src.CrLfCount, 1, 1 + wordOffset);
  7311. UshortToByte(ref dst, src.EndStr, 1, 2 + wordOffset);
  7312. BoolToByte(ref dst, src.FixedDigit, 1, 3 + wordOffset, 0);
  7313. BoolToByte(ref dst, src.Hex, 1, 3 + wordOffset, 1);
  7314. }
  7315. private static void _VARIABLE_TO_STRING_PARAM_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7316. {
  7317. int[] indices = NewIndices(src);
  7318. int offset = wordOffset;
  7319. for ( int i = 0; i < len; i++ )
  7320. {
  7321. NextIndices(src, indices);
  7322. _VARIABLE_TO_STRING_PARAM_ToByte(ref dst, ( _VARIABLE_TO_STRING_PARAM ) src.GetValue(indices), len, wordOffset);
  7323. wordOffset += _VARIABLE_TO_STRING_PARAM_WSIZE;
  7324. }
  7325. }
  7326. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[] src, int len = 1, int wordOffset = 0)
  7327. {
  7328. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7329. }
  7330. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,] src, int len = 1, int wordOffset = 0)
  7331. {
  7332. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7333. }
  7334. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,,] src, int len = 1, int wordOffset = 0)
  7335. {
  7336. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7337. }
  7338. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,,,] src, int len = 1, int wordOffset = 0)
  7339. {
  7340. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7341. }
  7342. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,,,,] src, int len = 1, int wordOffset = 0)
  7343. {
  7344. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7345. }
  7346. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,,,,,] src, int len = 1, int wordOffset = 0)
  7347. {
  7348. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7349. }
  7350. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,,,,,,] src, int len = 1, int wordOffset = 0)
  7351. {
  7352. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7353. }
  7354. public static void _VARIABLE_TO_STRING_PARAM_ToByte(ref byte[] dst, _VARIABLE_TO_STRING_PARAM[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7355. {
  7356. _VARIABLE_TO_STRING_PARAM_ToByteBase(ref dst, src, len, wordOffset);
  7357. }
  7358. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO src, int len = 1, int wordOffset = 0)
  7359. {
  7360. StringToByte(ref dst, src.FileName, 1, 0 + wordOffset, 129);
  7361. _FILE_STATUS_ToByte(ref dst, src.FileStatus, 1, 66 + wordOffset);
  7362. }
  7363. private static void _FILE_INFO_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7364. {
  7365. int[] indices = NewIndices(src);
  7366. int offset = wordOffset;
  7367. for ( int i = 0; i < len; i++ )
  7368. {
  7369. NextIndices(src, indices);
  7370. _FILE_INFO_ToByte(ref dst, ( _FILE_INFO ) src.GetValue(indices), len, wordOffset);
  7371. wordOffset += _FILE_INFO_WSIZE;
  7372. }
  7373. }
  7374. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[] src, int len = 1, int wordOffset = 0)
  7375. {
  7376. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7377. }
  7378. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,] src, int len = 1, int wordOffset = 0)
  7379. {
  7380. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7381. }
  7382. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,,] src, int len = 1, int wordOffset = 0)
  7383. {
  7384. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7385. }
  7386. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,,,] src, int len = 1, int wordOffset = 0)
  7387. {
  7388. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7389. }
  7390. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,,,,] src, int len = 1, int wordOffset = 0)
  7391. {
  7392. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7393. }
  7394. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,,,,,] src, int len = 1, int wordOffset = 0)
  7395. {
  7396. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7397. }
  7398. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,,,,,,] src, int len = 1, int wordOffset = 0)
  7399. {
  7400. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7401. }
  7402. public static void _FILE_INFO_ToByte(ref byte[] dst, _FILE_INFO[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7403. {
  7404. _FILE_INFO_ToByteBase(ref dst, src, len, wordOffset);
  7405. }
  7406. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF src, int len = 1, int wordOffset = 0)
  7407. {
  7408. UshortToByte(ref dst, src.AxisNo, 1, 0 + wordOffset);
  7409. _MC_AXIS_STATUS_ToByte(ref dst, src.Status, 1, 2 + wordOffset);
  7410. _MC_AXIS_CMP_CODE_ToByte(ref dst, src.CmpCode, 1, 114 + wordOffset);
  7411. _MC_AXIS_SYNC_STATUS_ToByte(ref dst, src.SyncStatus, 1, 138 + wordOffset);
  7412. _MC_AXIS_STATUS_BIT_ToByte(ref dst, src.StatusBit, 1, 218 + wordOffset);
  7413. }
  7414. private static void _MC_AXIS_REF_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7415. {
  7416. int[] indices = NewIndices(src);
  7417. int offset = wordOffset;
  7418. for ( int i = 0; i < len; i++ )
  7419. {
  7420. NextIndices(src, indices);
  7421. _MC_AXIS_REF_ToByte(ref dst, ( _MC_AXIS_REF ) src.GetValue(indices), len, wordOffset);
  7422. wordOffset += _MC_AXIS_REF_WSIZE;
  7423. }
  7424. }
  7425. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[] src, int len = 1, int wordOffset = 0)
  7426. {
  7427. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7428. }
  7429. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,] src, int len = 1, int wordOffset = 0)
  7430. {
  7431. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7432. }
  7433. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,,] src, int len = 1, int wordOffset = 0)
  7434. {
  7435. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7436. }
  7437. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,,,] src, int len = 1, int wordOffset = 0)
  7438. {
  7439. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7440. }
  7441. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,,,,] src, int len = 1, int wordOffset = 0)
  7442. {
  7443. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7444. }
  7445. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,,,,,] src, int len = 1, int wordOffset = 0)
  7446. {
  7447. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7448. }
  7449. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,,,,,,] src, int len = 1, int wordOffset = 0)
  7450. {
  7451. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7452. }
  7453. public static void _MC_AXIS_REF_ToByte(ref byte[] dst, _MC_AXIS_REF[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7454. {
  7455. _MC_AXIS_REF_ToByteBase(ref dst, src, len, wordOffset);
  7456. }
  7457. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG src, int len = 1, int wordOffset = 0)
  7458. {
  7459. UshortToByte(ref dst, src.UnitCfg, 1, 0 + wordOffset);
  7460. _MC_SYNC_EXT_INPUT_CFG_ToByte(ref dst, src.SyncExtInputCfg, 48, 2 + wordOffset);
  7461. }
  7462. private static void _MC_COMMON_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7463. {
  7464. int[] indices = NewIndices(src);
  7465. int offset = wordOffset;
  7466. for ( int i = 0; i < len; i++ )
  7467. {
  7468. NextIndices(src, indices);
  7469. _MC_COMMON_CFG_ToByte(ref dst, ( _MC_COMMON_CFG ) src.GetValue(indices), len, wordOffset);
  7470. wordOffset += _MC_COMMON_CFG_WSIZE;
  7471. }
  7472. }
  7473. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[] src, int len = 1, int wordOffset = 0)
  7474. {
  7475. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7476. }
  7477. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,] src, int len = 1, int wordOffset = 0)
  7478. {
  7479. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7480. }
  7481. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,,] src, int len = 1, int wordOffset = 0)
  7482. {
  7483. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7484. }
  7485. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,,,] src, int len = 1, int wordOffset = 0)
  7486. {
  7487. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7488. }
  7489. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  7490. {
  7491. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7492. }
  7493. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  7494. {
  7495. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7496. }
  7497. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  7498. {
  7499. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7500. }
  7501. public static void _MC_COMMON_CFG_ToByte(ref byte[] dst, _MC_COMMON_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7502. {
  7503. _MC_COMMON_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7504. }
  7505. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS src, int len = 1, int wordOffset = 0)
  7506. {
  7507. UshortToByte(ref dst, src.UnitErrorCode, 1, 0 + wordOffset);
  7508. UshortToByte(ref dst, src.UnitErrorDetail, 5, 1 + wordOffset);
  7509. _MC_SYNC_CONTACT_OUTPUT_ToByte(ref dst, src.SyncContactOutput, 32, 6 + wordOffset);
  7510. UshortToByte(ref dst, src.Reserved, 2, 38 + wordOffset);
  7511. }
  7512. private static void _MC_COMMON_STATUS_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7513. {
  7514. int[] indices = NewIndices(src);
  7515. int offset = wordOffset;
  7516. for ( int i = 0; i < len; i++ )
  7517. {
  7518. NextIndices(src, indices);
  7519. _MC_COMMON_STATUS_ToByte(ref dst, ( _MC_COMMON_STATUS ) src.GetValue(indices), len, wordOffset);
  7520. wordOffset += _MC_COMMON_STATUS_WSIZE;
  7521. }
  7522. }
  7523. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[] src, int len = 1, int wordOffset = 0)
  7524. {
  7525. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7526. }
  7527. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,] src, int len = 1, int wordOffset = 0)
  7528. {
  7529. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7530. }
  7531. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,,] src, int len = 1, int wordOffset = 0)
  7532. {
  7533. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7534. }
  7535. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,,,] src, int len = 1, int wordOffset = 0)
  7536. {
  7537. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7538. }
  7539. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,,,,] src, int len = 1, int wordOffset = 0)
  7540. {
  7541. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7542. }
  7543. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,,,,,] src, int len = 1, int wordOffset = 0)
  7544. {
  7545. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7546. }
  7547. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,,,,,,] src, int len = 1, int wordOffset = 0)
  7548. {
  7549. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7550. }
  7551. public static void _MC_COMMON_STATUS_ToByte(ref byte[] dst, _MC_COMMON_STATUS[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7552. {
  7553. _MC_COMMON_STATUS_ToByteBase(ref dst, src, len, wordOffset);
  7554. }
  7555. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG src, int len = 1, int wordOffset = 0)
  7556. {
  7557. _MC_SYNC_CONTACT_OUTPUT_SUB_CFG_ToByte(ref dst, src.ConfigNo, 32, 0 + wordOffset);
  7558. }
  7559. private static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7560. {
  7561. int[] indices = NewIndices(src);
  7562. int offset = wordOffset;
  7563. for ( int i = 0; i < len; i++ )
  7564. {
  7565. NextIndices(src, indices);
  7566. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref dst, ( _MC_SYNC_CONTACT_OUTPUT_CFG ) src.GetValue(indices), len, wordOffset);
  7567. wordOffset += _MC_SYNC_CONTACT_OUTPUT_CFG_WSIZE;
  7568. }
  7569. }
  7570. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[] src, int len = 1, int wordOffset = 0)
  7571. {
  7572. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7573. }
  7574. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,] src, int len = 1, int wordOffset = 0)
  7575. {
  7576. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7577. }
  7578. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,,] src, int len = 1, int wordOffset = 0)
  7579. {
  7580. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7581. }
  7582. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,,,] src, int len = 1, int wordOffset = 0)
  7583. {
  7584. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7585. }
  7586. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,] src, int len = 1, int wordOffset = 0)
  7587. {
  7588. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7589. }
  7590. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,,] src, int len = 1, int wordOffset = 0)
  7591. {
  7592. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7593. }
  7594. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,,,] src, int len = 1, int wordOffset = 0)
  7595. {
  7596. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7597. }
  7598. public static void _MC_SYNC_CONTACT_OUTPUT_CFG_ToByte(ref byte[] dst, _MC_SYNC_CONTACT_OUTPUT_CFG[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7599. {
  7600. _MC_SYNC_CONTACT_OUTPUT_CFG_ToByteBase(ref dst, src, len, wordOffset);
  7601. }
  7602. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON src, int len = 1, int wordOffset = 0)
  7603. {
  7604. _MC_COMMON_STATUS_ToByte(ref dst, src.Status, 1, 0 + wordOffset);
  7605. _MC_COMMON_CMP_CODE_ToByte(ref dst, src.CmpCode, 1, 40 + wordOffset);
  7606. _MC_COMMON_PERFORMANCE_ToByte(ref dst, src.Performance, 1, 48 + wordOffset);
  7607. _MC_COMMON_STATUS_BIT_ToByte(ref dst, src.StatusBit, 1, 60 + wordOffset);
  7608. }
  7609. private static void _MC_COMMON_ToByteBase(ref byte[] dst, Array src, int len = 1, int wordOffset = 0)
  7610. {
  7611. int[] indices = NewIndices(src);
  7612. int offset = wordOffset;
  7613. for ( int i = 0; i < len; i++ )
  7614. {
  7615. NextIndices(src, indices);
  7616. _MC_COMMON_ToByte(ref dst, ( _MC_COMMON ) src.GetValue(indices), len, wordOffset);
  7617. wordOffset += _MC_COMMON_WSIZE;
  7618. }
  7619. }
  7620. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[] src, int len = 1, int wordOffset = 0)
  7621. {
  7622. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7623. }
  7624. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,] src, int len = 1, int wordOffset = 0)
  7625. {
  7626. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7627. }
  7628. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,,] src, int len = 1, int wordOffset = 0)
  7629. {
  7630. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7631. }
  7632. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,,,] src, int len = 1, int wordOffset = 0)
  7633. {
  7634. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7635. }
  7636. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,,,,] src, int len = 1, int wordOffset = 0)
  7637. {
  7638. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7639. }
  7640. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,,,,,] src, int len = 1, int wordOffset = 0)
  7641. {
  7642. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7643. }
  7644. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,,,,,,] src, int len = 1, int wordOffset = 0)
  7645. {
  7646. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7647. }
  7648. public static void _MC_COMMON_ToByte(ref byte[] dst, _MC_COMMON[,,,,,,,] src, int len = 1, int wordOffset = 0)
  7649. {
  7650. _MC_COMMON_ToByteBase(ref dst, src, len, wordOffset);
  7651. }
  7652. }
  7653. }