Using the Workbench to define an Omron CJ or CS or CP device

The Workbench provides the view into a node's installation, configuration and resource definition. The Workbench also provides access and control over those resources.

A device is a resource that can represent a physical device, such as a programmable logic controller (PLC), an RF tag reader or a sensor. A device can also be defined in one node to represent a device that is defined and supported in another node. This allows your application solution to have access to devices and their data independent of their location or connectivity details.

This section describes defining the following devices supported by the Omron driver:

  • Omron CJ1
  • Omron CJ2
  • Omron CS1
  • Omron CP1

To define a device that represents an Omron device, follow these steps:

  1. From the Workbench left pane, expand the node where you want to define the device.
  2. Select the Devices icon.
    The Devices window appears as the right pane.

    The Devices window provides a table format that lists the previously defined devices.
  3. To define a new device, select New at the bottom of the pane.
    The Device window appears. The available device types are determined by the device support that is installed in the node.
  4. Use the Type down-arrow, to select CJ1 CPU or CJ2 CPU or CS1 CPU or CP1 CPU under the Omron group.
    The Device window changes to accommodate the selected device type.

  5. To define a device that represents a CJ1, CJ2, CS1 or CP1 PLC, set this new device’s parameters as follows:
    ParameterDescription
    NameEnter a name for the Omron PLC device.
    TypeSelect CJ1 or CJ2 or CS1 or CP1.
    ProtocolSelect TCP or UDP protocols.
    IP AddressEnter the IP Address of the device.
    PortEnter the port number used by the device. The default is 9600, but may be changed.
    Timeout(msec)Enter the timeout value to use when communicating with this device. This is entered in milliseconds.
    Source NodeIf using TCP, then this field should be set to 0. Refer to your CX-Programmer manual and device configuration for this parameter.
    Destination NodeIf using TCP, then this field should be set to 0,. Refer to your CX-Programmer manual and device configuration for this parameter.

    You can also specify advanced settings for the Omron CJ1 or or CJ2 or CS1 or CP1 device. Select the Advanced Properties checkbox.

    ParameterDescription
    Source NetworkRefer to your CX-Programmer manual and device configuration for this parameter.
    Source UnitRefer to your CX-Programmer manual and device configuration for this parameter.
    Destination NetworkRefer to your CX-Programmer manual and device configuration for this parameter.
    Destination UnitRefer to your CX-Programmer manual and device configuration for this parameter.
    Per Variable SecuritySelect False to disable the allocation of additional memory to track User to Variable access for all Variables in this Device. Select True to enable this feature if required. For more information, see Setting up Read Write per device variable.
  6. Select Validate to have the parameters validated and to connect to the Omron device. If there is a problem connecting to the Omron device, an error code will be displayed.
  7. Select Save to save the device definition. The device will appear in the Devices window list of devices.
  8. You can now control the device (Start, Stop), access the device’s variables by using the Variables window, and build solutions that use the device’s resources.