ReadBytes (FUN)ΒΆ
FUNCTION ReadBytes : DINT
- Reads size bytes at offset from the devices pi into data. 
- @param deviceId Id of the device 
- @param offset Offset at which the data will be read. 
- @param size Size of the data to read. 
- @param data Pointer to the buffer. 
- @return Returns 0 on success, -1 otherwise. 
 
- InOut:
- Scope - Name - Type - Return - ReadBytes- DINT- Input - deviceId- DINT- taskId- UDINT- offset- UDINT- size- UDINT- data- POINTER TO BYTE 
