日本語 English

CX-Compolet

What Is CX-Compolet?

CX-Compolet is a .NET communication library from OMRON. It lets you access PLCs from Visual Basic or C# and read/write variables and memory areas.

ItemSYSMAC GatewayFins Gateway
Communication methodCIPFINS
Access targetVariablesDM/CIO etc.
Main target PLCsNJ/NX/NYCJ/CS/CV (NX/NJ)

Configuration

Components provided by CX-Compolet are built into an application written in Visual Basic or C#, which accesses the PLC via FinsGateway or SYSMAC Gateway
The gateway used depends on the component

FinsGateway for accessing physical addresses
SYSMAC Gateway for accessing variables

CX-Compolet software configuration diagram

Preparing the Communication Middleware

Setup

CX-Compolet requires the communication middleware SYSMAC Gateway or FinsGateway
The communication middleware is bundled with CX-Compolet and installed together with it

SYSMAC Gateway

SYSMAC Gateway is required to connect with the CIP protocol (EtherNet/IP)
With the CIP protocol, values are read and written by specifying variables
The PC connects to an EIP unit or the CPU's built-in EIP port
Start SYSMAC Gateway Console and open the network port
SYSMAC Gateway Console settings screen

NOTE

Communication sometimes failed when IPv6 was checked in the Ethernet adapter properties
If you cannot connect, try unchecking it
Ethernet properties

FinsGateway

FinsGateway is required to connect with the FINS protocol
With the FINS protocol, values are read and written by specifying physical addresses (such as DM0000)
The PC connects to an ETN unit, an EIP unit or the CPU's built-in EIP port

Start the FinsGateway settings and start ETN_UNIT
FinsGateway ETN_UNIT settings screen


Next, open the properties of local network 0 (Ethernet) and, on the Communication Unit tab, select the network card the PLC is connected to
ETN_UNIT settings

Preparing Visual Studio

Choose items

Open [Tools] - [Choose Toolbox Items] from the menu bar
CompoletItem

SYSMAC Compolet

Can read/write PLC memory areas, read the PLC status and more

SYSMAC Compolet
ComponentOverviewGateway used
CJ2CompoletCIP communication with CJ2SysmacGateway
NE1SCompoletCIP communication with NE1S
NJCompoletCIP communication with NJ
NXCompoletCIP communication with NX
NYCompoletCIP communication with NY series
CommonCompoletReading/writing ODVA standard tags
DataAccessCompoletAll CIP communication
SysmacCFINS communication with C seriesFinsGateway
SysmacCVFINS communication with CV series
SysmacCSFINS communication with CS series
SysmacCJFINS communication with CJ series

SYSMAC Gateway Compolet

Accesses SYSMAC Gateway to get information about and operate CIP communication services

SYSMAC Gateway Compolet
ComponentOverview
VariableCompoletReading/writing variables registered in SYSMAC Gateway
PortCompoletOpening/closing Ethernet ports
SYSMAC Gateway Service CompoletOperating and getting information on CIP communication services
DataLinkCompoletConfiguring and getting the status of CIP data links

Fins Gateway Compolet

Accesses FinsGateway to read/write FinsGateway event memory and more

Fins Gateway Compolet
ComponentOverview
VariableCompoletReading/writing variables registered in SYSMAC Gateway
PortCompoletOpening/closing Ethernet ports
SYSMAC Gateway Service CompoletOperating and getting information on CIP communication services
DataLinkCompoletConfiguring and getting the status of CIP data links

Help and Samples

Help

The help files are in [Start] - [OMRON] - [CX-Compolet]

  • FinsGateway Compolet help
  • SYSMAC Compolet help
  • SYSMAC Gateway Compolet help

Samples

The CX-Compolet samples are in [Start] - [OMRON] - [CX-Compolet] - [samples]

  • DataAccess Compolet
  • FinsGateway Compolet
  • Port Conpolet
  • SysmacC C-CV-CS-CJ Compolet
  • SYSMAC CJ2-CIP Compolet
  • SysmacGateway Compolet
  • Variable Conpolet

Simple samples

The links below explain samples kept as simple as possible, focusing on message communication

CIP Communication

A sample that connects to the PLC and reads/writes variable values, and
a sample that writes the PC time to the PLC

FINS Communication

A sample that connects to the PLC and reads/writes DM values

Event Notification

A sample that notifies the application with an event when a PLC variable changes

Read Communication Time

The communication time for reading memory values depends mainly on the number of packets
For example, in the table below, reading 492 bytes (286 words) with CIP UCMM communication takes one packet and about 5 ms, but reading 494 bytes (287 words), just 2 bytes more, takes two packets and about 10 ms
Adding just 2 bytes can increase the read time like this, so keep it in mind if you want faster reads

CIP communication

Read time when reading variable values with NXCompolet.ReadVarible



Read time
Number of packetsUCMMClass3
Byte countCommunication time (ms)Byte countCommunication time (ms)
14925.47319845.753
298410.305396810.294
3147615.517595215.417
5246027.289992025.046
10492052.2351984055.068
209840108.01939680107.269

FINS communication

Read time
Number of packetsByte countCommunication time (ms)
119988.579

FAQ

What is CX-Compolet?

CX-Compolet is a .NET communication library from OMRON that lets you access PLCs from Visual Basic or C# and read/write variables and memory areas.

What is the difference between SYSMAC Gateway and FinsGateway?

SYSMAC Gateway uses CIP communication to access the variables of NJ/NX/NY series controllers. FinsGateway uses FINS communication to access memory areas such as DM and CIO.

What software is required to use CX-Compolet?

CX-Compolet requires SYSMAC Gateway or FinsGateway as communication middleware. These are bundled with CX-Compolet.

Which Compolet should I use to access NJ/NX series variables?

Use the NJCompolet class for the NJ series and the NXCompolet class for the NX series to access variables via CIP communication.

Do CIP and FINS communication access different things?

CIP communication targets PLC variables; FINS communication targets physical addresses such as DM and CIO.

Comments