Versions Compared

Key

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

...

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

...

7. Application Source Code Changes

Change in the file NpxUserObjects.h the structure of the Actuartor and and 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 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;
	...
	}

7. Terminal