beautypg.com

B&B Electronics MODSCAN32 - Manual User Manual

Page 85

background image

85

If EnableBlockWrites is TRUE



Setting a data value will change the contents of the

control's data. Status will be set to UNINITIALIZED

indicating that the data within the control does not

match the data in the slave. No messages are issued

to the modbus.


If an Update request is made, new data received from

the slave device will overwrite any data which may

have been written by the program. The application

must insure that Updates are suspended during block

write operations.


If BlockWrite() returns TRUE

Guaranteed to get WriteFinished Event.

Status will reflect success of failure.

An Update() request is automatically issued

by the control after receiving a response from

the slave.


If BlockWrite() returns FALSE

WriteFinished is NOT fired.


BlockWrite may return FALSE under the following conditions:

DEMO_TIME_EXPIRED

OUT_OF_BUFFERS

OCX_HELPER_FAILURE (MbOCXsvr Not Running)