DeviceNet
®
Interface Module Installation & Reference
Figure 7: ReadDeviceNetBuffer Property Sheet
9. Configure the ReadDeviceNetBuffer function parameters. Select the port number attached to the
module for the
Port
parameter and for the
Buffer
parameter, reference the cell containing the
FormatInputBuffer function created in Step 3, then press the
OK
button to accept.
NOTE
: Refer to the
In-Sight® Explorer Help & Reference
for more detailed information on the
ReadDeviceNetBuffer function parameters.
ReadDeviceNetBuffer example
In this example, assume that the incoming data in the FormatInputBuffer function is as follows: An integer
is expected at byte 0 (integers take up 8 bits or 1 byte), to be used for an acquisition trigger (anything but
a 0 will cause an acquisition trigger); a float is expected at byte 1-4 (floats take up 32 bits or 4 bytes); a
string is expected at bytes 5 through 10 (characters take up 8 bits or 1 byte each); and an integer is
expected at byte 11. In this case, the correct function is:
ReadDeviceNetBuffer($A$0,1,$B$10)
where B10 contains a FormatInputBuffer function (see Figure 8).
10