IPlc.readBytes

Reads a sequence of bytes from PLC memory.

interface IPlc
void
readBytes
(
in int DB
,
in int start
,
in int length
)

Parameters

DB
Type: int

The number of a data block

start
Type: int

The address of the first byte in the block.

length
Type: int

The number of bytes to read.

Return Value

Type: void

The function returns 0 on success. Nonzero return codes may be passed to daveStrerror() to get a textual explanation of what happened. Generally, positive error codes represent errors reported by the PLC, while negative ones represent errors detected by LIBNODAVE, e.g. no response from the PLC.

Meta