omron hostlink

53
UMHMIOm1EA 1 st Edition, 08/2010 User Manual OPC Server Omron HostLink Serial Configuration Manual

Upload: tedyscorpio5891

Post on 20-Feb-2016

310 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: Omron Hostlink

UMHMIOm1EA 1st Edition, 08/2010

User Manual

OPC Server Omron HostLink Serial Configuration Manual

Page 2: Omron Hostlink

Omron HostLink OPC Server Table of Contents

2

Table of Contents Chapter 1 Hardware Settings............................................................................................4

1-1 Support PLC Models ..............................................................................................5 1-2 Data Type Description ............................................................................................6 1-3 Signal Type of Omron PLC.....................................................................................6 1-4 Cable Diagram........................................................................................................7

1-4-1 RS232/422 Modules and Figure...................................................................8 1-5 Communication Parameter Settings of Omron PLC ...............................................9

Chapter 2 Editing Configuration.....................................................................................15 2-1 Communication Setting of Omron PLC ............................................................16

2-1-1 Port Define .................................................................................................17 2-1-2 Device Define.............................................................................................20 2-1-3 Folder Define..............................................................................................23 2-1-4 Data Item Define ........................................................................................25

Appendix A Cable of wiring ..........................................................................................28 ALL Series (CPU Port)/(RS232) .................................................................................29 C Series (RS232)........................................................................................................30 C Series (RS422)........................................................................................................31 CJ Series (RS232)......................................................................................................32 CJ Series (RS485)......................................................................................................33 CJ Series (RS422)......................................................................................................34 CPM1/2A Series (CPM1-CIF01)/(RS232)...................................................................35 CPM1/2A Series (CQM1-CIF02)/(RS232) ..................................................................36 CPM1/2A Series (CPM1-CIF11)/(RS422) ...................................................................37 CPM1L/H/E Series (CP1W-CIF01)/(RS232)...............................................................38 CPM1L/H/E Series (CP1W-CIF11/12)/(RS485) ..........................................................39 CPM1L/H/E Series (CP1W-CIF11/12)/(RS422) ..........................................................40 CPM2C Series (CPM2C-CIF11)/(RS422) ...................................................................41 CQM1H Series (CQM1H-CIF12)/(RS422) ..................................................................42 CS1 Series (RS232) ...................................................................................................43 CS1 Series (RS485) ...................................................................................................44 CS1 Series (RS422) ...................................................................................................45 CV Series (CPU Host Link Port)/ (RS232)..................................................................46 CV Series (CPU Host Link Port)/ (RS422)..................................................................47 CV Series (CV500-LK201/Port1)/(RS232)..................................................................48 CV Series (CV500-LK201/Port2)/ (RS232).................................................................49 CV Series (CV500-LK201/Port2)/ (RS422).................................................................50 Alpha Series (RS232) .................................................................................................51

Page 3: Omron Hostlink

Alpha Series (RS485) .................................................................................................52 Alpha Series (RS422) .................................................................................................53

Page 4: Omron Hostlink

Omron HostLink OPC Server Table of Contents

4

Chapter 1 Hardware Settings

Page 5: Omron Hostlink

Hardware Settings Omron HostLink OPC Server

5

1-1 Support PLC Models

PLC CPU PLC CPU CPU11 CPU65

C200H CPU31 CPU66 CPU32

CJ1H-H CPU67

C200HE CPU42 CPU11 CPU32 CPU12

C200HE-Z CPU42 CPU13 CPU33 CPU21 CPU43 CPU22 CPU53

CJ1M

CPU23 C200HG

CPU63 CPU42 CPU33 CPU43 CPU43 CPU44 CPU53

CJ1G

CPU45 C200HG-Z

CPU63 CQM1H CPU51 CPU31 CPU42

C200HS CPU33 CPU43 CPU34 CPU44 CPU44

CS1G

CPU45 CPU54 CPU63

C200HX

CPU64 CPU64 CPU34 CPU65 CPU44 CPU66 CPU54

CS1H

CPU67 CPU64 CV500 CPU01 CPU65 CV1000 CPU01

C200HX-Z

CPU85 CV2000 CPU01 C500 CPU01 CPU01

C1000H CPU01 CVM1

CPU11 C2000H CPU01 CPU01

CPU42 CPU11 CPU43

CVM1-V2 CPU21

CPU44 CJ1G-H

CPU45

Page 6: Omron Hostlink

Omron HostLink OPC Server Hardware Settings

6

1-2 Data Type Description

OPC Server Data Type Description Bool Single bit Int Signed 16 bit value Dint Signed 32 bit value UINT Unsigned 16 bit value UDINT Unsigned 32 bit value Real 32 bit floating point value String String type with “Null” character

at the end

1-3 Signal Type of Omron PLC

Signal Type Range Data Type Access IO Area (I) CIO0000-CIO06143 Read / Write Int / Word Work Area (Q) W000-W511 Read / Write Int / Word Holding Area (M) H000-H511 Read / Write Int / Word Auxiliary Area (T) A000-A959

A000-A447 is read only

Read / Write Int / Word

Task Flag (S) TK00-TK31 Read Only Int / Word t Timer Flag(G) TS0000-TS4095 Read / Write Int / Word Counter Falg (R) CS0000-CS4095 Read / Write Int / Word Timer PV(G) T0000- T4096 Read / Write Int / Word Counter PV (R) C0000- C4095 Read / Write Int / Word DM Area D00000-D32767 Read / Write Int / Word EM Area E00000-E32767 Read / Write Int / Word Index Register IR00-IR15 Read / Write Int / Word Data Register DR00-DR15 Read / Write Int / Word

The address will be different from each PLC. Please look it up in the configuration

manual.

Page 7: Omron Hostlink

Hardware Settings Omron HostLink OPC Server

7

1-4 Cable Diagram

Omron HostLink PLC can transmit the data through RS 232 or RS422 serial communication. It is suitable for the small amount data transmission. If some devices need high transmission speed and the bulk data transmission, users can use Ethernet for data transmission. To connect OPC Server to Omron C Series PLC, CJ1M-SCU41/ CJ1M-SCU21 (RS232/RS422 serial module) communication module should be installed. The cable diagram is shown as below. Please refer to the Appendix A.

Usually, RS232 serial port is used for short distance communication; on the contrary, RS422 or modem is the better choice for the long distance communication.

RS 485 is only used for the communication between PLCs.

Page 8: Omron Hostlink

Omron HostLink OPC Server Hardware Settings

8

1-4-1 RS232/422 Modules and Figure

Hardware Figure

CJ1M-SCU41 CQM1H-SCB41

Page 9: Omron Hostlink

Hardware Settings Omron HostLink OPC Server

9

1-5 Communication Parameter Settings of Omron PLC Connect Omron communication module with PLC CPU Port and start CX-Program. Process: PLC Auto Online Auto Online Start CX-Programmer

Click PLC Operating Mode Program

Page 10: Omron Hostlink

Omron HostLink OPC Server Hardware Settings

10

Click [IO Table and Unit Setup] to show up PLC IO Table

Click [Inner Board] to show the communication module settings. Users can modify the communication settings here. (Defaults: Host Link station number 0 ,9600,E,7,2)

Page 11: Omron Hostlink

Hardware Settings Omron HostLink OPC Server

11

Select the Port

Set up the Baud rate

The setting for the above figure are as follows: Parameter Value Port1:Serial communications mode Host Link Port1:Baud rate 9600 bps Port1:Parity Even Port1:Data length 7 bits Port1:Stop bits 2 bits Port1:Host Link unit number 0 Click [OK] after finishing setting.

Page 12: Omron Hostlink

Omron HostLink OPC Server Hardware Settings

12

Options Transfer to PLC means to download the new setting parameters into PLC.

Run Reset [PLC Mode] into [Run].

Page 13: Omron Hostlink

Hardware Settings Omron HostLink OPC Server

13

Page 14: Omron Hostlink
Page 15: Omron Hostlink

Chapter 2 Editing Configuration

Page 16: Omron Hostlink

16

2-1 Communication Setting of Omron PLC

Sample PLC Type Omron CQM1H-cpu21 Communication Module The Port2 of Omron CQM1H cpu

The Address Space tree control in the Configurator, shown in the figure below, sets the properties and connection parameters for the following items: • Ports • Devices • Folders • Data Items

Data items can be organized hierarchically. It is similar to organizing directories and files on your computer's hard disk. The OPC Server offers several levels of hierarchy. The Configurator module uses the terms “Folder” and “Data Item”. A folder can contain additional folders and also data items. The data items are always the branches in the tree control hierarchy.

The hierarchical structure of the folders and data items helps to organize the devices and tags, as shown below.

Page 17: Omron Hostlink

17

2-1-1 Port Define

A port is equivalent to a physical serial port in the computer. To correctly configure a port means to set up a serial port as a File name (COM 1, COM2), communication speed (Baud rate), and protocol characteristics: RTS flow control, Stop bits and Parity scheme. When the Parity checking enabled check box is not checked, it will force the server to ignore the parity bits in the message. 1 Select Address Space Edit New Port

You can also use [Ctrl+T] as the shortcut to create a Port.

Page 18: Omron Hostlink

18

Port Define Operation platform

Item Description

Specify a name of the new device. The special symbols such as `+'、/、*、- are not allowed.

Define the Port number.

The value must match the Baud rate value of Omron PLC.

The value must match the Data length value of Omron PLC.

The value must match the Stop bit value of Omron PLC.

The value must match the Parity scheme value of Omron PLC.

Also, check ”Parity checking enabled”

Page 19: Omron Hostlink

19

Particular setting will be required if the device works under RTS flow control. If not, please choose” Disable”

Select this item if the device works under CTS for output flow control. If not, just skip this item.

All of the devices under this port will in the simulation mode. Simulation function will simulate the real communication situation between devices and OPC Server.

Apply: Saves all changes specified in the properties dialog box.

Reset: Undo the setting configuration Add New: Add the new Port

Page 20: Omron Hostlink

20

2-1-2 Device Define

Every device is connected to particular port, so it logically creates the second level in the Address Space tree. Each device is represented by its symbolic name, and is uniquely identified by the Address value. It is impossible to have two devices with the same address connected to one port. Setting up a device requires configuration of its unique address, type, timeouts and optimization parameters, as shown in the figure below. 1. Select Port Edit New Device 2. You can also press [Ctrl+D] as the shortcut to create a Device.

Page 21: Omron Hostlink

21

Device define Operation Platform

Item Description

Specify a name of the new device. The special symbols such as `+'、/、*、- are not allowed.

The value must match the Host Link unit number.

Device Type: “Host Link”

Timeout parameters (separately for reading and writing data) specify the period of time (in milliseconds) the server will wait for a response from the device:

Read/Write: Amount of time (in milliseconds) the OPC server will wait for a response (read/write) from the device.

Page 22: Omron Hostlink

22

Timeouts to Suspend: The number of consecutive read/write attempts that timeout before the OPC server will suspend communication with the device.

Suspend Period: Amount of time the OPC server will wait before attempting to reconnect to the device. Note: The Suspend Period setting can be decreased to reconnect faster with a device that has been restarted, but this will cause the OPC server to generate more network traffic while a device is down.

The server tries to optimize the communication with the devices by requesting as much data as possible in one message. Consecutive registers are merged together into one request for efficiency.

Define the Parameters. You could do it in detail in the [ Device Parameters ] on the Tree View

All of the groups and data items under this device are in the simulation mode. Simulation function will simulate the real communication situation between devices and OPC Server.

Please see “UMHMIOPCEA.pdf”.

Apply: Saves all changes specified in the properties dialog box.

Reset: Undo the setting configuration Add New: Add the new Device

Page 23: Omron Hostlink

23

2-1-3 Folder Define

Folders can be used to group items logically. You can configure as many folders as required. Each folder can even have subfolders. The OPC Server supports up to three folder levels. The use of folders is not required. If desirable, the configuration could just contain data items without any folders. But most likely this will only be useful if the application does not demand too many persistent tags. Select [Device] or [Folder] on the Tree View. Press the right key of the mouse and select [New] [Fold]

Page 24: Omron Hostlink

24

Folder define Operation Platform

Item Description

Specify a name of the new folder. The special symbols such as ‘+’、/、*、- are not allowed.

All of the data items under this group are in the simulation mode. Simulation function will simulate the real communication situation between devices and OPC Server.

Please see “UMHMIOPCEA.pdf”.

Apply: Saves all changes specified in the properties dialog box.

Reset: Undo the setting configuration Add New: Add the new Folder

Page 25: Omron Hostlink

25

2-1-4 Data Item Define

A Data Item represents a register in the device or a range of registers. A symbolic name and description is associated with the data item. An OPC client can obtain the data item description. The actual OPC item name (tag) is compounded from the Address Space root, the names of the folder and its subfolders, and the name of the data item. Data items can be located in any folder, even in the root of the address space. The steps to create the data item (tag) are as below. Select [Device] or [Folder], Press the right button of the mouse, it will show you the Popup menu. Then select New Data Item

Page 26: Omron Hostlink

26

Then define the data Items, the picture is as below:

Item Description

Specify a name of the new data item. The special symbols such as ‘+’、/、*、- are not allowed.

Description of Data Item

Register/ Replay Type: IO Relay, DM Area, Holding Relay, etc

Look for more information in Chapter 1.

Data Type: IO Relay   Bool DM Area   Int、UINT String   When selecting String type, you must specify the data length

From the starting address to access the data by block, not point to point to access the data. It could speed up the communication speed. You do not have to define a lot of items to get the values. Using [Vector] function will let OPC server put the values into the arrays.

This value specifies the data item address (register number) in the device data space.。The gray column shows the decimal value.

Page 27: Omron Hostlink

27

“Read Only” does not allow you to save new value into OPC Client.

If the data type is UINT, you can choose the number of bits and analyze the value and put into this item. Bit# means the starting Bit No. Count means the constant Bits number.

To get the data value converted according to a prescribed form, choose one of the predefined or user-defined conversions.

Simulation function will simulate the real communication situation between devices and OPC Server. Executing “Monitor View” or press F12 as the shortcut, the “Tag Value” will keep changing for testing the connecting situation.

To test the client functionality, choose a Simulation Signal from the Signal drop-down list and check the Simulate check box. All levels in the Address Space (port, device, folder, data item) support the process of simulation (Simulate check box). The parent list in the tree is superior; it has a higher priority when deciding to simulate the data item or not. In other words, a data item is simulated, if it itself has a simulation selected, or if any of its parents has the Simulate check box checked. (It may be simulated even if its Simulate check box stays unchecked)

If checked, the data item will offer constant parameter value, because Manual setting is of the highest priority. The changes in the configuration take effect only when the server reloads the configuration (on startup).

Apply: Saves all changes specified in the properties dialog box.

Reset: Undo the setting configuration Add New: Add the new Data Item

Page 28: Omron Hostlink

28

Appendix A Cable of wiring

Page 29: Omron Hostlink

29

ALL Series (CPU Port)/(RS232)

Page 30: Omron Hostlink

30

C Series (RS232)

Page 31: Omron Hostlink

31

C Series (RS422)

Page 32: Omron Hostlink

32

CJ Series (RS232)

Page 33: Omron Hostlink

33

CJ Series (RS485)

Page 34: Omron Hostlink

34

CJ Series (RS422)

Page 35: Omron Hostlink

35

CPM1/2A Series (CPM1-CIF01)/(RS232)

Page 36: Omron Hostlink

36

CPM1/2A Series (CQM1-CIF02)/(RS232)

Page 37: Omron Hostlink

37

CPM1/2A Series (CPM1-CIF11)/(RS422)

Page 38: Omron Hostlink

38

CPM1L/H/E Series (CP1W-CIF01)/(RS232)

Page 39: Omron Hostlink

39

CPM1L/H/E Series (CP1W-CIF11/12)/(RS485)

Page 40: Omron Hostlink

40

CPM1L/H/E Series (CP1W-CIF11/12)/(RS422)

Page 41: Omron Hostlink

41

CPM2C Series (CPM2C-CIF11)/(RS422)

Page 42: Omron Hostlink

42

CQM1H Series (CQM1H-CIF12)/(RS422)

Page 43: Omron Hostlink

43

CS1 Series (RS232)

Page 44: Omron Hostlink

44

CS1 Series (RS485)

Page 45: Omron Hostlink

45

CS1 Series (RS422)

Page 46: Omron Hostlink

46

CV Series (CPU Host Link Port)/ (RS232)

Page 47: Omron Hostlink

47

CV Series (CPU Host Link Port)/ (RS422)

Page 48: Omron Hostlink

48

CV Series (CV500-LK201/Port1)/(RS232)

Page 49: Omron Hostlink

49

CV Series (CV500-LK201/Port2)/ (RS232)

Page 50: Omron Hostlink

50

CV Series (CV500-LK201/Port2)/ (RS422)

Page 51: Omron Hostlink

51

Alpha Series (RS232)

Page 52: Omron Hostlink

52

Alpha Series (RS485)

Page 53: Omron Hostlink

53

Alpha Series (RS422)