WriteDeviceNetBuffer

Writes data from a referenced Buffer structure created by the FormatOutputBuffer function to be read by a DeviceNet Interface Module attached to the serial port of an In-Sight sensor. For more information, see FormatOutputBuffer.

Note:
  • The selected serial port must be configured for DeviceNet communications, and the In-Sight vision system must be Online. For more information, see Serial Port Settings Dialog.
  • Jobs containing this function that are saved in In-Sight Explorer 3.3.0 or higher are only compatible with In-Sight Explorer 3.3.0 and higher.
  • DeviceNet is only available on In-Sight vision systems using In-Sight firmware 4.x.x, and is not available on In-Sight vision systems running In-Sight firmware 5.1.0 and later. For a complete list of models and supported firmware versions, see Firmware Versions .
  • The WriteDeviceNet function requires a third-party RS-232-to-DeviceNet Gateway adapter.This function is available for legacy installations and should not be used in new applications, unless the RS-232-to-DeviceNet Gateway converter has been thoroughly tested to verify it is suitable for the application.

WriteDeviceNetBufferInputs

Syntax: WriteDeviceNetBuffer(Event,Port,Buffer)

Parameter Description

Event

Specifies the event on which to read the specified Value. This parameter must be a reference to one of the following:

  • The Image data structure in cell A0, containing the AcquireImage function. For more information, see AcquireImage.
  • A cell containing an Event function. For more information, see Event.
  • A cell containing a Button function. For more information, see Button.
  • A cell containing a numeric value (any non-zero numeric value will force the update).

Port

Specifies the serial port to be written. Must be 1 for In-Sight sensors. Can be 0 or 1 for an In-Sight emulators.

Buffer

Specifies a referenced Buffer structure created by the FormatOutputBuffer function, which contains automatically formatted data.

Note: The length of the data must match the DeviceNet block size specified in the DeviceNetdetails. For more information, see Serial Port Settings Dialog.

WriteDeviceNetBufferOutputs

Returns

#ERR on invalid input parameter.