The plcstdrv.c file

Assume that you chose MYDRIVER as the driver name and that you added this name to the onpload database with ipload. The plcstdrv.c file is as follows:
#include "plcstdrv.h"

int DrConfig();

(*pl_get_user_method(driver, method)) ()
char*driver;
int method;
{
if (strcmp(driver, "customdrv") == 0)
{
if (method == PL_MTH_CONFIGURE)
return (DrConfig);
}

return (0);
}

Copyright© 2018 HCL Technologies Limited