ReadCCLinkWordBuffer

Reads data from a referenced Buffer data structure, created by a FormatInputBuffer function, from the CC-Link network using the CC-Link protocol upon on an Event trigger. For more information, see FormatInputBuffer and Communicate with a Mitsubishi Automation Controller on a CC-Link Network via an In-Sight CIO-MICRO-CC I/O Module.

Note:
  • This function is only available on In-Sight vision systems running 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.
  • CC-Link 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 In-Sight vision system must be connected to an In-Sight CIO-MICRO-CC I/O module to enable this functionality. For more information, see I/O Module Configuration.
  • When an In-Sight vision system is configured to communicate with a Mitsubishi Automation Controller over CC-Link, the protocol only supports the transfer of data between the vision system and the automation controller.

ReadCCLinkWordBuffer Inputs

Syntax: ReadCCLinkWordBuffer(Event,Buffer)

Parameter Description

Event

Specifies the event on which to read the specified Buffer structure. 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.

Buffer

Specifies a reference to a Buffer data structure created by the FormatInputBuffer function, which contains automatically formatted data.

Note: The maximum length for output data is 256 bytes.

ReadCCLinkWordBuffer Outputs

Returns

A Buffer data structure which contains the data read and its format; or #ERR:

  • If an input parameter is invalid.
  • If the In-Sight vision system is not connected to an In-Sight CIO-MICRO-CC I/O module.
Results Data in the Buffer data structure is accessed using the GetBufferData function. For more information, see Input/Output.