Problem
Solution with CX-Compolet
Note: When combined with the CJ2 with EtherNet/IP functionality.
Main CX-Compolet Functions
Interface
Function
Description
Properties
Communications with SYSMAC PLCs
Specifies the PLC to communicate with, and reads network information.
Reading and writing I/O memory
Operating status
Reads and changes the operating mode.
Area information
Reads information such as the program area size and number of DM Area words.
Error information
Reads the value and error message when an error occurs.
Other SYSMAC PLC information
Reads the model and reads and changes the clock.
Methods
Reading and writing I/O memory
Creating I/O tables
Creates the I/O tables for the present configuration.
Force-setting, force-resetting and clearing bits
Force-sets, force-resets, and clears bits.
Communications with SYSMAC PLCs
Specifies the PLC to communicate with.
FINS service execution
Sends FINS commands and gets the responses that are received.
Events
Scheduled events
Events occur at regular intervals.
Environment for CX-Compolet
Item
Description
Languages
English or Japanese
Supported OS
Windows 2000, XP, or Vista
and 2003 Server
. N E T F r a m e w o r k
( 1 . 1 , 2 . 0 , 3 . 0 , o r 3 . 5 )
Development
environment
Creating and Modifying VB/VC# Communications Programming Is Too Much Work
Situation
CX-Compolet is a package of software components that make it easy to program reading and writing OMRON PLC data.
Easily Create Programming to Read and Write PLC Data using VB or VC#.
.NET Control Objects
∗
ActiveX Control Objects are also included.
SYSMAC Gateway
SYSMAC PLC
NEW
NEW
NEW
CX-Compolet
User-created Applications
VB.NET or VC#.NET
CX-Compolet
.NET Controls
Example:
Reading I/O Memory
D0
1234
Simply Paste to a Form and Enter a Line of Code.
3
2
1
4
5
Text1=SYSMAC CJ2.ReadVariable “PV”)
■
Software Configuration
■
System Configuration Examples
■
Application Example
■
Procedure
SYSMAC Gateway
SYSMAC PLC
Easily Program Device Alarm Monitoring.
VB.NET/VC#.NET
CX-Compolet
Controller Link
Controller Link
CX-Compolet can access the PLCs in all of the following configurations.
USB
RS-232C
Special Cable
CJ2/CP1
CJ2/CJ1/CS1
USB
CJ2
CJ2/
CJ1/
CS1
EtherNet/IP
CX-Compolet
CX-Compolet
CX-Compolet
RS-232C
CJ2/
CJ1/
CS1
CX-Compolet
CJ2/
CJ1/
CS1
Ethernet
CJ2/
CJ1/
CS1
EtherNet/IP
CX-Compolet
CJ2/
CJ1/
CS1
CJ2/
CJ1/
CS1
CX-Compolet
CJ2/
CJ1/
CS1
EtherNet/IP
Alarm A
Alarm B
6
7
CX-Compolet
CX-Compolet
●
Read and write I/O memory in the PLC, change the
operating mode, read error logs, and perform other
operations.
●
Supports Microsoft Visual Studio.NET 2008.
●
Can be used from Visual Basic.NET and
Visual C#.NET.
●
For the CJ2 with EtherNet/IP functionality, I/O
memory in the PLC can be accessed by using
tag names rather than addresses.
●
Array variable access is possible.
Simply paste to the form and
specify the tags (addresses).
Example
Press the button to read the
value (D0 in this example).
Customers who are
developing VB/VC# programs
including communications
with PLCs
Having to program communications
frame assembly, reception response
interpretation, and monitoring is too
much work.
Having to change communications
processing, e.g., for Ethernet and serial
communications, is too much work.
Handling PLC address changes is
particularly time consuming.
For a block of data of the same data
type, it is too much work to have to
specify the addresses one by one rather
than being able to view them as one
group and access that data as an
element.
Processing such as communications frame assembly is prepared
in advance!
Data is accessed by using tag names rather than by using
addresses, so programming does not have to be changed even if
PLC addresses are changed.
Array variables are supported, so data can be easily specified by
simply changing the element subscript with the same tag name.
After installation, the
OMRON SYSMAC CJ2
Icon will be displayed in
the controls.
Position the SYSMAC
CJ2 Icon in the form.
Arrange the command buttons,
text boxes, etc., in the form.
Set the remote PLC in
the properties.
In the Command Button Code
Dialog Box, enter the PLC tag
name on one line. (The tag
name below is “PV.”)
Commercially
available USB cable
Data links
Data links
Controller Link
Support Board
Note:
The above configurations are only examples. Communications are also possible with PLCs
other than those shown here. For details, refer to page 8.
●
Using the control components provided by CX-Compolet frees the application designers from having to program the communications portions of the
application.
●
Data for device alarms and other data are sent to the applications using non-solicited EtherNet/IP communications events.
●
Standardization is made easy by specifying data using tag names (such as “Alarm A” and “Alarm B”) in the applications.
Read and writes data in memory areas, such as the DM Area or CIO
Area. For example, DM word 100 can be specified by using “D100”
or by using a tag name.
Reads and writes memory, such as consecutive words in the DM
Area or CIO Area. For example, it is possible to specify the data type
(integer, single, etc.) or change the data type (BCD, BIN, SBIN).
Supported
execution
environment
Microsoft Visual Studio
.NET (See note.), .NET
2003, .NET 2005, or
.NET2008
Development languages:
Visual Basic.NET and Visual
C#.NET
Visual Basic version 5 or 6
(Only the functions
compatible with Compolet
V2 can be used.)
Note:
Only the components compatible with
SYSMAC Compolet version 2003 are
supported. A development environment of
.NET 2003 or higher is required for CIP
communications.