![background image](http://html1.mh-extra.com/html/aim/api-fdx-2-v2/api-fdx-2-v2_getting-started-manual_2871728038.webp)
30
API-FDX Linux Getting Started Manual
GmbH
Section 8 – Programming the API-FDX Module
//---IP Source Address 10.129.33.1
Dt[26]=0x0a;Dt[27]=0x81;Dt[28]=0x21;Dt[29]=0x01;
//---IP Destination Address 224.224.0.60 (VL 60)
Dt[30]=0xe0;Dt[31]=0xe0;Dt[32]=0x00;Dt[33]=0x3c;
//---UDP Source Port = 34
Dt[34]=0x00;Dt[35]=0x22;
//---UDP Dest Port = 33
Dt[36]=0x00;Dt[37]=0x21;
//---UDP Length = 25
Dt[38]=0x00;Dt[39]=0x19;
//---UDP Checksum
Dt[40]=0x00;Dt[41]=0x00;
//---Payload
Dt[42]=0x41;Dt[43]=0x42;Dt[44]=0x43;Dt[45]=0x44;Dt[46]=0x45;
Dt[47]=0x46;Dt[48]=0x47;Dt[49]=0x48;Dt[50]=0x49;Dt[51]=0x4a;
Dt[52]=0x4b;Dt[53]=0x4c;Dt[54]=0x4d;Dt[55]=0x4e;Dt[56]=0x4f;
Dt[57]=0x50;Dt[58]=0x51;
for ( i = 0 ; i<58; i++)
My_Frame.uc_Data[i] = (unsigned char) Dt[i];
//---Write Frame to Queue
FdxCmdTxQueueWrite(g_ulPort1Handle,FDX_TX_FRAME_HEADER_GENERIC,1,
sizeof(My_Frame),&My_Frame);
}