Anybus CompactCom 40 - Socket Interface Object (07h) DNS_Lookup


#1

It seems the starter kit is missing implementation for the Anybus-CC Socket Interface Object(07h). It only contains the CompactCom-host\abcc-abp\abp_soc.h definitions. I’m missing soc_obj.c or soc_obj.h.

Based on the manual I implemented the binding for DNS_Lookup as in appl_abcc_handler.c but it seems I need the Host application object-number for the Socket Interface Object as all are defined in abp.h. What is the number for this? ABP_OBJ_NUM_SOC?

/* abp.h /
/
Host application objects /
#define ABP_OBJ_NUM_MQTT 226 /
MQ Telemetry Transport /

#define ABP_OBJ_NUM_APP 255 /
Application */

Kind regards,
Kris


#2

Hi Kris,

Unfortunately we don’t have the Socket Interface part of the Host Application implemented into the starter kit. This is typically something that customers will implement by using the abcc_obj folder as a reference to see how Host Application Objects are implemented. But if you’d like us to help with the development of this we could offer help as a paid service.

Thanks,
-Tim


#4

Hello Tim,

Do you mean it’s not implemented on the Anybus NP40 side? Or just the starterkit host application side?

For the few extended functions we need, we would be able to implement it ourselves using the ref. manual. Given you supply us with the unique number for the Socket Interface Object. There are other extended objects that are missing ref. in abp.h.

Regards,
Kris


#5

Hi Kris, is this what you were looking for?

image


#6

Hello Chris,

There is no example application for the socket object in the starter kit SDK. The socket object is fully implemented on the NP40 side so you will just need to write your own soc_obj.c and soc_obj.h to implement the functionality.

ABP_OBJ_NUM_SOC is defined as 7. This define is in abp.h.

Tom


#7

If you do not see

#define ABP_OBJ_NUM_SOC 7 /* Socket Interface */ 

in your abp.h file you may have an out of date ABP Version. If this is the case you should consider updating to the latest version available.

https://www.anybus.com/products/embedded-index/anybus-compactcom-starterkit


#8

Ok thanks


#9

So the Anybus module objects and Host application objects are one and the same?


#10

Kris,

No the module objects are different from the host application objects. Module objects are implemented by the compact com and accessed by your host (By the SDK and/or your adaptations to it). Host application objects are implemented by your host (By the SDK and/or your adaptations to it) and accessed by the compact com. The host application objects are covered in section 13 of the software design guide and the module objects are covered in section 12.

Here is the definition of the module objects and the host objects.

/*------------------------------------------------------------------------------
** Anybus module objects
**------------------------------------------------------------------------------
*/

#define ABP_OBJ_NUM_ANB               1   /* Anybus                           */
#define ABP_OBJ_NUM_DI                2   /* Diagnostic                       */
#define ABP_OBJ_NUM_NW                3   /* Network                          */
#define ABP_OBJ_NUM_NC                4   /* Network Configuration            */
#define ABP_OBJ_NUM_ADD               5   /* PROFIBUS DP-V1 Additional Diag   */
#define ABP_OBJ_NUM_RSV1              6   /* Reserved                         */
#define ABP_OBJ_NUM_SOC               7   /* Socket Interface                 */
#define ABP_OBJ_NUM_NWCCL             8   /* Network CC-Link                  */
#define ABP_OBJ_NUM_SMTP              9   /* SMTP Client                      */
#define ABP_OBJ_NUM_FSI              10   /* File System Interface            */
#define ABP_OBJ_NUM_NWDPV1           11   /* Network PROFIBUS DP-V1           */
#define ABP_OBJ_NUM_NWETN            12   /* Network Ethernet                 */
#define ABP_OBJ_NUM_CPC              13   /* CIP Port Configuration           */
#define ABP_OBJ_NUM_NWPNIO           14   /* Network PROFINET IO              */
#define ABP_OBJ_NUM_PNIOADD          15   /* PROFINET IO Additional Diag      */
#define ABP_OBJ_NUM_DPV0DI           16   /* PROFIBUS DP-V0 Diagnostic        */
#define ABP_OBJ_NUM_FUSM             17   /* Functional Safety Module         */
#define ABP_OBJ_NUM_NWCFN            18   /* Network CC-Link IE Field Network */


/*------------------------------------------------------------------------------
** Host application objects
**------------------------------------------------------------------------------
*/

#define ABP_OBJ_NUM_MQTT            226   /* MQ Telemetry Transport           */
#define ABP_OBJ_NUM_OPCUA           227   /* OPC Unified Architecture         */
#define ABP_OBJ_NUM_EME             228   /* Energy Measurement               */
#define ABP_OBJ_NUM_PNAM            229   /* PROFINET Asset Management        */
#define ABP_OBJ_NUM_CFN             230   /* CC-Link IE Field Network         */
#define ABP_OBJ_NUM_ER              231   /* Energy Reporting                 */
#define ABP_OBJ_NUM_SAFE            232   /* Functional Safety                */
#define ABP_OBJ_NUM_EPL             233   /* POWERLINK                        */
#define ABP_OBJ_NUM_AFSI            234   /* Application File System Interface*/
#define ABP_OBJ_NUM_ASM             235   /* Assembly mapping object          */
#define ABP_OBJ_NUM_MDD             236   /* Modular device                   */
#define ABP_OBJ_NUM_CIPID           237   /* CIP Identity                     */
#define ABP_OBJ_NUM_SYNC            238   /* Sync                             */
#define ABP_OBJ_NUM_BAC             239   /* BACnet                           */
#define ABP_OBJ_NUM_ECO             240   /* Energy Control                   */
#define ABP_OBJ_NUM_SRC3            241   /* SERCOS III                       */
#define ABP_OBJ_NUM_PRD             242   /* PROFIdrive                       */
#define ABP_OBJ_NUM_CNT             243   /* ControlNet                       */
#define ABP_OBJ_NUM_CPN             244   /* CompoNet                         */
#define ABP_OBJ_NUM_ECT             245   /* EtherCAT                         */
#define ABP_OBJ_NUM_PNIO            246   /* PROFINET IO                      */
#define ABP_OBJ_NUM_CCL             247   /* CC-Link                          */
#define ABP_OBJ_NUM_EIP             248   /* EtherNet/IP                      */
#define ABP_OBJ_NUM_ETN             249   /* Ethernet                         */
#define ABP_OBJ_NUM_MOD             250   /* Modbus                           */
#define ABP_OBJ_NUM_COP             251   /* CANopen                          */
#define ABP_OBJ_NUM_DEV             252   /* DeviceNet                        */
#define ABP_OBJ_NUM_DPV1            253   /* PROFIBUS DP-V1                   */
#define ABP_OBJ_NUM_APPD            254   /* Application Data                 */
#define ABP_OBJ_NUM_APP             255   /* Application                      */