WriteDeviceNetBuffer

Writes data from a referenced Buffer structure created bythe FormatOutputBuffer function tobe read by a DeviceNetInterface 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 thespecified Value. This parameter must be a reference to one of the following:

  • TheImage data structurein cell A0, containing the AcquireImagefunction.For more information, see AcquireImage.
  • Acell containing an Event function.For more information, see Event.
  • Acell 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 1for an In-Sight emulators.

Buffer

Specifies a referenced Buffer structurecreated by the FormatOutputBufferfunction, which contains automatically formatted data.

Note: The lengthof 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.