Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Download this configuration files to the netX90 like in the getting started guide described.

6. UA Expert

Give the PC a an IP adress address like 192.168.0.40. Set with Ethernet Device Configuration Tool

...

Start UAexpert project and configurate the device IP adreesaddress.

netXStudio_PNSV5_NetProxy_simple_V3.0.0.0\Components\cifXApplicationDemoNpx\OPCUA_CONFIG_PORT2\UAexpertProject\NetProxy_simple_UAexpert_config.uap

...

move variable with drag and drop in the data acess access view window

7. Application Source Code Changes

Change in the file NpxUserObjects.h the structure of the Actuartor and and add the HelloWorld

Code Block
languagecpp
typedef struct ACTUATOR_Ttag
{
    uint8_t bMode;     /*!< Mode[uint8] */
    uint8_t bState;    /*!< State[uint8] */
    int16_t iValue;    /*!< Value[int16] */
    int16_t iHelloWorld;    /*!< Value[int16] */
} ACTUATOR_T;

Change the file AppNpx_TerminaHandler.c and add HelloWorld handling.

Code Block
languagecpp
case APP_TERMINAL_HANDLER_COMMAND_OPC_WRITE:
    {
      ACTUATOR_T tActuatorObj;
      tActuatorObj.bMode=0x55;
      tActuatorObj.bState=0xAA;
      tActuatorObj.iValue=0x1234;
      tActuatorObj.iHelloWorld=4321;
	...
	}

...

choose "opcwr" will activate the function APP_TERMINAL_HANDLER_COMMAND_OPC_WRITE wtich . This means, that the netX90 application will write the netPROXY objects. The netPROXY objects are connected with the OPC UA objects. The UA expert read cyclic the OPC UA object. Here the change can be seen the change: