beckhoff TF6281 — 5.11.2 Forward Message to AMS Port via Explicit Messaging

Configuration | Acyclic communication via Explicit Messaging TxData[0]:=49; //1 TxData[1]:=50; //2 TxData[2]:=51; //3 TxData[3]:=66; //B TxData[4]:=101; //e TxData[5]:=99; //c TxData[6]:=107; //k TxData[7]:=104; //h TxData[8]:=111; //o TxData[9]:=102; //f TxData[10]:=102; //f TxData[11]:=52; //4 TxData[12]:=53; //5 TxData[13]:=54; //6 iCase:=10; 10: //SetAttribute msg(SetMsg); IF SetMsg.DN OR SetMsg.ER THEN FOR iLoop:=0 TO 80 DO TxData[iLoop]:=0; end_FOR; iCase:=0; END_IF; 20: //TestReadOnlyAttribute1 GetMsg.Class:=16#1000; GetMsg.Instance:=16#01; GetMsg.Attribute:=16#01; iCase:=30; 21:

//TestReadOnlyAttribute2 GetMsg.Class:=16#1000; GetMsg.Instance:=16#01; GetMsg.Attribute:=16#02; iCase:=30; 22: //TestReadOnlyAttribute3 GetMsg.Class:=16#1000; GetMsg.Instance:=16#01; GetMsg.Attribute:=16#03; iCase:=30; 30: //GetAttribue msg(GetMsg); IF GetMsg.DN OR GetMsg.ER then iGet:=iGet+1; IF iGet >= 3 THEN iGet:=0; END_IF; iCase:=0; END_IF; END_CASE; You can find the documented example as a TwinCAT project here: https://infosys.beckhoff.com/content/ 1033/TF6281_Tc3_EtherNetIPScanner/Resources/14758092427.zip . TF6281 50 Version: 1.9.0