This is the main function to write data into a PLC. Itís the complementary function of ReadArea(), the parameters and their meanings are the same.

The only difference is that the data is transferred from the buffer pointed by pUsrData into PLC.


int WriteArea(int Area, uint16_t DBNumber, uint16_t Start,
int Amount, void *pUsrData);


See ReadArea() for parameters and remarks.