A tutorial on how to install the C/C++ Tools for SCADAPack and a demo on how to read and write to Modbus address.

Below is the snippet of the program that is demonstrated on the vlog.

#include <ctools.h>
#include "nvMemory.h"
extern "C"
   // add prototypes here

int main(void)
   //fprintf(com2, "hello, world\r\n");     // Output to serial port COM2

   BOOLEAN status1, status2;
   INT16 dintTest01 = 0;

   while (TRUE)
      status1 = databaseRead(MODBUS, 41992, &dintTest01);
      status2 = databaseWrite(MODBUS, 41994, dintTest01);