Вы находитесь на странице: 1из 50

FinsGateway Version 2 Embedded User’s Manual

OMRON

FinsGateway
Version 2

Runtime Edition

FinsGateway Runtime Edition


Version2 August/05/1998
OMRON Corporation

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Embedded User’s Manual

© Copyright OMRON Corporation 1995-1998 All Rights Reserved.


FinsGateway was developed using Microsoft Visual C++ Version 5.0 and Version 4.1, Borland
Delphi Version 2.0, and Microsoft FrontPage98.
Copyrights of the FinsGateway manual and software are owned by OMRON Corporation, except
the following items.
FinsGateway is released containing the following items copyrighted by Microsoft Corporation.
These are: ATL.DLL; MFC42.DLL; MSVCRT.DLL; MSVCP50.dll; and OLEAUT32.dll. These
modules included in FinsGateway are redistributed based on a license agreement between
Microsoft Corporation and OMRON Corporation. Under this license agreement, these modules
cannot be distributed by the customer.
FINS and FinsGateway are trademarks of OMRON Corporation.
Microsoft, Windows, WindowsNT, and Visual C++ are registered trademarks of Microsoft
Corporation.
Pentium and Intel are registered trademarks of Intel Corporation.
IBM is a registered trademark of International Business Machines Corporation.
All corporate names and product names mentioned in this manual are trademarks or registered
trademarks of each company.
The symbols  and  are omitted in this document.

Revision History
Revision Date Revised content
code
2.10 August Original production
1998

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Embedded User’s Manual

Contents

1 Introduction .................................................................................................. 1
1.1 FinsGateway and the Network ..........................................................................................1
1.2 FINS Message Communications.......................................................................................2
1.3 EventMemory ....................................................................................................................3
1.4 FINS Services and the CPU_UNIT ...................................................................................3
1.5 Data Link ...........................................................................................................................4
1.6 The Routing Table and the Gateway .................................................................................5
2 Installation .................................................................................................... 7
2.1 Environment and Conditions .............................................................................................7
2.2 Precautions Before Use.....................................................................................................8
2.3 Installing ............................................................................................................................8
2.4 Uninstalling ........................................................................................................................9
3 FinsGateway Configuration and Operation.............................................. 11
3.1 Service Control Manager.................................................................................................11
3.2 Startup .............................................................................................................................11
3.3 FinsGateway Network Navigator.....................................................................................13
3.4 Communications Check ..................................................................................................13
3.5 EventMemory Check .......................................................................................................14
4 Controller Link Settings............................................................................. 15
4.1 Controller Link Functions.................................................................................................15
4.2 Controller Link Driver Settings.........................................................................................15
4.3 Controller Link Network Configuration.............................................................................16
4.4 Controller Link Data Link Settings ...................................................................................16
4.5 Communications Check ..................................................................................................17
4.6 Troubleshooting ...............................................................................................................19
5 ETN_UNIT Settings..................................................................................... 21
5.1 ETN_UNIT Functions ......................................................................................................21
5.2 ETN_UNIT Network Configuration ..................................................................................21
5.3 Communications Check ..................................................................................................22
5.4 Troubleshooting ...............................................................................................................24
6 SYSMAC LINK Settings.............................................................................. 25
6.1 SYSMAC LINK Functions................................................................................................25
6.2 SYSMAC LINK Driver Settings........................................................................................25
6.3 SYSMAC LINK Network Configuration............................................................................26
6.4 SYSMAC LINK Data Link Settings ..................................................................................26
6.5 Communications Check ..................................................................................................27
6.6 Troubleshooting ...............................................................................................................29
7 Serial Unit Settings .................................................................................... 31
7.1 SerialUnit Functions ........................................................................................................31
7.2 SerialUnit Network Configuration ....................................................................................31
7.3 Serial Communications and the Network ........................................................................32
7.4 FINS Commands Supported by the SYSWAY Protocol ..................................................34
7.5 Communications Check ..................................................................................................35
7.6 Troubleshooting ...............................................................................................................37
8 SYSMAC Board Settings............................................................................ 39
8.1 SYSMAC Board Functions ..............................................................................................39
8.2 SYSMAC Board Settings.................................................................................................39
8.3 SYSMAC Board Unit and FINS Network.........................................................................39
8.4 SYSMAC Board Settings.................................................................................................40

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Embedded User’s Manual

8.5 SYSMAC Board Data Link ..............................................................................................41


8.6 Communications Check ..................................................................................................44
8.7 Troubleshooting ...............................................................................................................46

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 1

1 Introduction

1.1 FinsGateway and the Network


FinsGateway provides an FA network environment for a 32-bit OS on a computer: WindowsNT
or Windows95. FinsGateway adds advanced functions, providing applications with FINS
message communications, independent of the network, and an EventMemory that allows shared
data including data link. For applications developed on FinsGateway, it is thus possible to create
a communication program unrelated to the network type, thereby allowing easy adaptation to
future additions and modifications in the network.
The FinsGateway Runtime Edition provides applications using FinsGateway with an operating
environment for an FA network.

Windows NT
Windows 95 Application

FinsGateway

EventMemory FINS Message


Communication

CPU_UNIT

SysmacLink Controller Link SYSMAC


Board

Serial Unit Sysnet CompoBus/D

Network
Some applications that use FinsGateway need an additional FinsGateway operating
environment. Use the FinsGateway Runtime Edition for those applications.
Omron FA networks allow multi-level configuration. This provides many advantages, such as
data transfer time being shortened. By using FinsGateway, the application developer can ignore
the various levels. Thus, the convenience of a multi-level configuration is retained, without the
additional consideration normally required in application development. The FinsGateway
CPU_UNIT allows the computer to operate as a virtual PLC. This allows equal access to the PLC
and computer data by other nodes on the network. FinsGateway also supports the data link
feature that many Omron networks provide.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 2

The following is a simplified, but typical example of an Omron network:

Ethernet Network
Computer-1

PLC_1 PLC_2 (CV only)

SYSMAC LINK
Network
Computer-2
PLC_3 (CV only) PLC_4

Controller Link
Network
Computer-3
PLC_5 PLC_6

As shown in the above example, up to three network levels can be configured with free access
between any two nodes in the system. Operators at each computer can use FinsGateway to
develop applications for the entire network. You can also check the FinsGateway functions with a
program prepared in advance.

1.2 FINS Message Communications


For FINS message communications, first specify the command to execute and the destination
address, then send the data. This is called the FINS command. The Unit that received the FINS
command executes the command and sends back the execution results as a response to the
source. This is called the FINS response.
Applications generally execute this paired communication of a FINS command and a FINS
response.
For example, on computers with FinsGateway installed, if the unit number of the destination is 0,
the FINS command Read Data Area (command code 0101) is used. Therefore, when the
application sends the command Read Data Area to unit 0, unit 0 sends back the data in its data
area as the response. This enables the application to read the data in the data area of the
destination unit.
The FINS commands that the destination unit supports (called FINS services) are described in
the FINS command/response manual of the destination unit.
FINS command
Example: read data 0101
Unit Unit

FINS response
Example: data

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 3

1.3 EventMemory
FinsGateway has a shared memory called the EventMemory. The EventMemory has names
similar to those of the PLC data areas (such as DM or CIO), and can be used as a shared data
area by the applications. There is also a function for automatically detecting status changes in
the memory value. In communications systems, the EventMemory is used for the following
purposes:
• As the data area for FINS services
• As the data link area for data link functions
• As a storage area for system data such as network status data
The EventMemory also has a function for detecting changes in data and notifying the application
when specified conditions are met. This function is described in the FinsGateway SDK.

1.4 FINS Services and the CPU_UNIT


Unit 0, called the CPU_UNIT, mainly provides read/write services of the data area. Using this
service, you can read/write the FinsGateway EventMemory from other applications or nodes.
When the CPU_UNIT receives a FINS command to read/write the data area, read/write is
executed for the EventMemory (as the data area), and a FINS response is returned. This gives
computers running FinsGateway a function for automatic execution of the data area read/write
through the CPU_UNIT.
FinsGateway
EventMemory

CPU_UNIT
FINS command
Read variable
Unit number 0 Write variable

Node

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 4

1.5 Data Link


In networks with the data link function, FinsGateway can use the data link function in the same
way as a PLC. The data link function is for automatic sharing of the data area among selected
nodes on a network. FinsGateway data link function is supported by using the EventMemory as
a shared data area. By setting the data link function of each network, the data areas of the nodes
on the network can be automatically written to the EventMemory.
FinsGateway
EventMemory

Data link

Node

Data area

The following networks provide the data link function:


• SYSMAC LINK
• Controller Link
• SYSMAC Board

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 5

1.6 The Routing Table and the Gateway


FINS message communications transmit data according to a table which defines the
communications route, called the routing table. This routing table needs to be set for all nodes on
the network. Refer to the manual for each node for details on setting the routing tables.
For example, if a computer has two local networks, and one remote network through a gateway
node, the system configuration is as follows:
FinsGateway

Unit 18 Unit 17

Local network: 2 Local network: 1

Node 1 Gateway node

Remote network: 10

In this example, setting the correct routing table allows applications on FinsGateway to execute
message communications with nodes on local networks 1 and 2, as well as remote network 10.
Setting the routing table using FinsGateway is done with the Routing Table button in the Route
Viewer. In this example, the routing table is displayed as follows:

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 6

FinsGateway also provides a gateway function for FINS message communications between
several networks. In other words, FinsGateway can perform the function of transmitting
messages between multiple networks.
As an example of this function, a computer with FinsGateway can be used for expanding an
existing system, or as a gateway to an OA network.
FinsGateway

Gateway
Unit 18 Unit 17

Network 2 Network 1

With SYSMAC LINK, the gateway function cannot be used because of board restrictions.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 7

2 Installation

2.1 Environment and Conditions


FinsGateway operates in the following environments:
• Environments which run Microsoft WindowsNT 4.0 (Hereafter referred to as WindowsNT),
or Microsoft Windows95 (Hereafter referred to as Windows95). Which OS to use will
depend on the FinsGateway product.
• PC/AT-compatibles, or above
• FinsGateway requires approximately 20Mb of disk space.
The following configurations are recommended. These are not requirements for FinsGateway,
but recommended for effective use of WindowsNT and Windows95.
• CPU: Intel Pentium 133MHz or faster
• Memory: 32Mb or more

Conditions for Each Network


The conditions and environments necessary for each network are as follows:

SYSMAC LINK
• Requires an OMRON SYSMAC LINK Support Board (i.e., 3G8F5-SLK21)
• Only one SYSMAC LINK Support Board can be installed in one computer.
• The software included with the Board cannot be used with FinsGateway.
• The network gateway function cannot run.

Controller Link
• Requires an OMRON Controller Link Support Board (i.e., 3G8F5-CLK21)
• Only one Controller Link Support Board can be installed in one computer.
• The software included with the Board cannot be used with FinsGateway.

ETN_UNIT
• Requires an Ethernet board which can be used with WindowsNT or Windows95.
• TCP/IP must be installed. FINS communications on the Ethernet use UDP/IP. TCP/IP is
included in WindowsNT.
• Has a fixed IP address allocated.
• Cannot be used on a system with DHCP configuration, because the Ethernet unit requires a
static IP address.

Serial Unit
• A PC 95-compliant COM port which can be used with WindowsNT or Windows95.
• The above COM port must be used exclusively by FinsGateway. Other applications not
using FinsGateway cannot use the COM port simultaneously.
• COM ports that can be specified by the serial communications of FinsGateway are COM1 to
COM4.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 8

SYSMAC Board
• OMRON SYSMAC Board (C200PC-ISA-01-DRM)
• The software included with the board cannot be used with FinsGateway.

SYSMAC NET
• Requires an OMRON SYSMAC NET Support Board (i.e., 3G8F5-SNT31)
• Only for WindowsNT. Windows95 edition is unavailable.
• The software included with the board cannot be used with FinsGateway.
• Data link is not supported.
• Either binary code or ASCII code can be selected as the send/receive code.
• Either FINS mode or C-mode can be selected as the datagram format. If C-mode is
selected, some FINS commands are automatically changed to those of the C-mode.

2.2 Precautions Before Use


Read the following precautions carefully before using FinsGateway:
• The Omron computer boards used by FinsGateway (SYSMAC LINK, CONTROLLER LINK,
SYSMAC NET, SYSMAC Board) are not plug and play. The IRQ number, shared memory
address, and I/O port must therefore be assigned in the BIOS.
• Use a value other than 0 when setting the network numbers and node numbers. In Omron
networks, 0 is reserved a specific purpose.

2.3 Installing
The CD-ROM includes a ReadMe file and Release Notes. Read them before installing
FinsGateway.
FinsGateway is installed from the CD-ROM.
1. Determine the installation directories on the hard disk. Approximately 20Mb of files are
created when installing FinsGateway onto the hard disk. These files are stored in the
following folders by default. Be sure that there is enough space on the hard disk drive to
install the program before beginning.
Product Install folder (default)
WindowsNT C:\Program Files\OMRON\FinsServerNT
Windows95 C:\Program Files\OMRON\FinsServer95
2. The FinsGateway setup changes the registry. To save the registry information, take a
backup beforehand using the registry editor.
3. If any of the following programs are running, close them.
• Event Viewer
• Registry Editor
• All applications that use FinsGateway (from any previous installation)
• FinsGateway services such as CPU_UNIT (from any previous installation)
4. For WindowsNT, log on as a user with administrator access authority.
5. Insert the FinsGateway CD-ROM into the CD-ROM drive.
6. Execute the Add/Remove Programs applet on the control panel. Select the Install/Uninstall
tab in the Add/Remove Programs property dialog, and click the Install… button.
7. When Windows finds the setup file, setup.exe on the CD-ROM, click Finish.
©Copyright OMRON Corporation 1998 All Rights Reserved.
FinsGateway Version 2 Runtime User’s Manual 9

8. The setup program will guide you through installation.


9. When the setup is complete, the system must be restarted.

Environment Variable
When FinsGateway is installed, the FinsServer environment variable is set in the system.

2.4 Uninstalling
Uninstall FinsGateway using the Add/Remove Programs applet in the control panel.
1. If any of the following programs are running, close them.
• All applications using FinsGateway
• System services such as CPU_UNIT
• FinsGateway Service Control Manager
2. Execute the Add/Remove Programs applet in the control panel.
3. Select FinsGateway Runtime Edition in the List Box, and click the Add/ Remove… button.
4. Follow the instructions of the program.
5. Restart the computer after uninstalling FinsGateway.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 10

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 11

3 FinsGateway Configuration and Operation

3.1 Service Control Manager


FinsGateway provides utilities that perform network communication in a service format. A service
is a program that normally does not appear on the screen, providing functions only when
necessary.
When using a network through FinsGateway, you must first start the service which provides the
communication function with the network. The followings are the main services using
FinsGateway:
Target Product Service Name Function
Entire FinsGateway CPU_UNIT Configurations related to the entire
system and read/write for the
EventMemory
SYSMAC LINK SYSMAC LINK Unit SYSMAC LINK network communication
Controller Link CLK_UNIT0 Controller Link network communication
ETN_UNIT ETN_UNIT Ethernet network communication
Serial Unit SerialUnit Serial line communication
SYSMAC Board SYSMAC Board Unit SYSMAC Board communication
SYSMAC NET SYSMAC NET Unit SYSMAC NET network communication

3.2 Startup
To start/stop a FinsGateway service, use the FinsGateway Service Control Manager (SCM).
Select Service Control Manager in Start | Programs | FinsGateway.

When the Service Control Manager is running, the icon (shown below) is displayed in the task
tray.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 12

The following screen is the setup screen for the Service Control Manager. To display the setup
screen, right click on the icon and select Setup. Service start/stop and properties can be set in
this dialog box:

When the service starts normally, the status changes to Running.


If the service does not start normally, or an error dialog appears, start the Event Viewer to
determine the cause of the error. For WindowsNT this can be started from the menu in Start |
Programs | Control Tools. For Windows95, start from the menu in Start | Programs |
FinsGateway.
FinsGateway services can be set so that they start automatically when the system is started. To
do this, select Automatic Startup in the property sheet of the service. First confirm that the
service will start manually and operate without problem before setting it to start automatically. If
there is a problem starting the service, and it is set to start automatically, it can prevent the
system from booting properly.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 13

3.3 FinsGateway Network Navigator


FinsGateway must have the network configuration registered for communicating. This is set in
the FinsGateway Network Navigator. Network configuration includes settings for the computer
addresses on the network, each type of network, and destination addresses.
The following screen is the initial dialog box of the FinsGateway Network Navigator:

Select the network to set, and click Property.

3.4 Communications Check


This explanation assumes some knowledge of the networks. For more details, refer to Chapter 1
Outline, in the FINS Commands Reference Manual (Doc. No. W227)
Start the FINS Network Tester utility.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 14

Confirm operation as follows:


With network number n(use the local network number), node number 0(local node) and unit
number 0(CPU_UNIT), confirm that communication is possible within the local node using
the FINS command 0501: read controller data. If not, the unit is not started, or not installed.

3.5 EventMemory Check


Start the EventMemory Utility program and read/write the EventMemory area.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 15

4 Controller Link Settings

4.1 Controller Link Functions


The Controller Link service provides Controller Link communication with SYSMAC PLCs, using
the Controller Link Support Board on the computer.

4.2 Controller Link Driver Settings


To use Controller Link with FinsGateway, the driver settings must be made. Before setting the
network, record the following information:
• The interrupt level (IRQ) of the installed Controller Link Support Board, the shared RAM
address, transmission speed, and whether or not to start as an administrator. If uncertain,
refer to the manual for the board.
• Node number and unit number
Select CLK Network Settings in Start | Programs | FinsGateway. Set the shared RAM address,
and the interrupt level (IRQ) in the Driver tab.

(This screen is displayed on Windows95. The screen is different for WindowsNT.)

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 16

4.3 Controller Link Network Configuration


To set a Controller Link that is in operation, use the FINS Network Settings utility. The following
information is displayed in the Controller Link Network Properties.

4.4 Controller Link Data Link Settings


To set the data link, start the Data Link Table Settings in the Data Link tab of the Controller Link
Network Properties. Follow the instructions in the Controller Link Data Link Utility window. For
the Controller Link Data Link, refer to the section marked Data Link Function, in the Controller
Link Support Board Operation Manual (Doc. No. W307).
Here is a simple example of a data link setting.
Node 1 Transfer Node 2
(FinsGateway EventMemory) direction (C-series PLC)
Area 1 CIO0000 to 0010 à Area 1 CIO0000 to 0010
CIO0010 to 0050 ß CIO0010 to 0050

Area 2 DM0000 to 0099 à Area 2 DM0000 to 0099


DM0100 to 0149 ß DM0100 to 0149

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 17

In this example, the data link table for node 1 and node 2 is the same. After creating a data link
table as shown below, transfer the data link table to node 1 and node 2 by clicking Transfer.

4.5 Communications Check


Confirm operation as follows:
Start the FINS Network Tester utility.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 18

Confirm that the local node Communication Unit is operating properly.


• Enter the unit number of the local node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

Note: The FINS unit number 254 has a specific meaning. It refers to the Communication Unit (of the
specified node number) which is connected directly to the specified network (i.e., not any
communication units on the same node which are connected to other networks).
Confirm communication with a different destination node.
• Enter the unit number of the destination node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 19

4.6 Troubleshooting
The following describes common causes for some problems:

Communication Unit Will Not Start


Check the cause listed in the Event Log.
Controller Link Support Board shared RAM address, IRQ setting mistakes are common causes.
Duplicated unit numbers are another common cause. Multiple communication units with the
same unit number cannot be run simultaneously.

EventMemory Is Not Updated


Duplicated data addresses is a common cause. FinsGateway setting utilities do not check for
duplicate settings of data link, status data, etc. Be sure these areas do not overlap. If an area
written by an application is not updated, it is commonly because the data link or status data is
also using the same area.

Cannot Communicate with Another Node


Check the Support Board LEDs, and refer to the manual for countermeasure details.
If communication is possible with another node, but not with the PLC, the other node is probably
not set properly. Network number setting mistakes are common causes.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 20

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 21

5 ETN_UNIT Settings

5.1 ETN_UNIT Functions


The ETN_UNIT service provides Ethernet communication with SYSMAC PLCs, using an
Ethernet board installed in the computer. Multiple Ethernet boards can be installed in the same
computer, to connect directly to more than one network.

5.2 ETN_UNIT Network Configuration


Before setting the network, record the following information:
• Node numbers and IP addresses of each node in the Ethernet network. If uncertain, refer to
the manual for the Ethernet Unit.
Set the Ethernet with the FINS Network Settings program. In this program, the following
information is displayed in the Ethernet Network Properties.
When creating an IP address table in the Ethernet Network, select either IP address table or IP
table + auto generation from the Ethernet Network Properties. Add a node with Transfer Nodes

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 22

5.3 Communications Check


Confirm operation as follows:
Start the FINS Network Tester utility.

Confirm that the local node Communication Unit is operating properly.


• Enter the unit number of the local node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

Note: The FINS unit number 254 has a specific meaning. It refers to the Communication Unit (of the
specified node number) which is connected directly to the specified network (i.e., not any
communication units on the same node which are connected to other networks).

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 23

Confirm communication with a different destination node.


• Enter the unit number of the destination node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

Confirm communication with the CPU_UNIT of a different destination node.


• Enter the address of the destination node CPU_UNIT in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 24

5.4 Troubleshooting
The following describes common causes for some problems:

Cannot Communicate
Confirm communication with the command Ping.
Check the PLC Ethernet Unit LED to confirm data reception.

The Communication Unit Responds, but the PLC Does Not


The transmitting node may not be registered in the IP table.
The PLC Ethernet Unit uses the IP address to return local commands. However, commands to
the PLC use the IP table conversion, so it cannot respond to transmitting nodes not registered in
the table.
Another possible cause is that the UDP port is not the same. Check the UDP port setting.

Responses are Not Consistently Received


YDP port packets may be getting lost due to network traffic, collisions, etc. Check the network
with an analyzer, and implement countermeasures against noise.

The Computer Board Returns Busy


The computer boards do not have receive buffers, so they cannot receive more than one
message at a time. Be sure the system configuration takes this into consideration.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 25

6 SYSMAC LINK Settings

6.1 SYSMAC LINK Functions


The SYSMAC LINK service provides SYSMAC LINK communication with SYSMAC PLCs, using
the SYSMAC LINK support board on computers.

6.2 SYSMAC LINK Driver Settings


To use SYSMAC LINK with FinsGateway, the driver settings must be made. Before setting the
network, record the following information:
• The interrupt number (IRQ) of the installed SYSMAC LINK support board, and the shared
RAM address. If uncertain, refer to the manual for the board.
Select SLK Driver Settings in Start | Programs | FinsGateway. Set the shared RAM address, and
the interrupt level (IRQ) in the Driver tab.

(This screen is displayed on Windows95. The screen is different for WindowsNT.)

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 26

6.3 SYSMAC LINK Network Configuration


To set a SYSMAC LINK that is in operation, use the FINS Network Settings Program. The
following information is displayed in the SYSMAC LINK Properties.

6.4 SYSMAC LINK Data Link Settings


To set the data link, start the Data Link Table Settings in the Data Link tab of the SYSMAC LINK
Network Properties. Follow the instructions in the SYSMAC LINK Data Link Utility window. For
the SYSMAC LINK Data Link, refer to the section marked Data Link Function, in the SYSMAC
LINK Unit Operation Manual (Doc. No. W220).
Here is a simple example of a data link setting.
Node 1 Transfer Node 2
(FinsGateway EventMemory) direction (SYSMAC C-series)
CIO1000 to 1010 à LR0000 to 0010
CIO1010 to 1050 ß LR0010 to 0050

DM0000 to 0099 à DM0000 to 0099


DM0100 to 0149 ß DM0100 to 0149

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 27

In this example, the data link table for node 1 and node 2 is the same. For C-series PLCs, word
LR n corresponds to CIO (n+100). After creating a data link table as shown below, transfer the
data link table to node 1 and node 2 by clicking Transfer.

6.5 Communications Check


Confirm operation as follows:
Start the FINS Network Tester utility.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 28

Confirm that the local node Communication Unit is operating properly.


• Enter the unit number of the local node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

Note: The FINS unit number 254 has a specific meaning. It refers to the Communication Unit (of the
specified node number) which is connected directly to the specified network (i.e., not any
communication units on the same node which are connected to other networks).
Confirm communication with a different destination node.
• Enter the unit number of the destination node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 29

6.6 Troubleshooting
The following describes common causes for some problems:

Communication Unit Wil Not Start


Check the cause listed in the Event Log. SYSMAC LINK Support Board shared RAM address,
IRQ setting mistakes are common causes.
Duplicated unit numbers are another common cause. Multiple communication units with the
same unit number cannot be run simultaneously.

EventMemory Is Not Updated


Duplicated data addresses is a common cause. FinsGateway setting utilities do not check for
duplicate settings of data link, status data, etc. Be sure these areas do not overlap. If an area
written by an application is not updated, it is commonly because the data link or status data is
also using the same area.

Cannot Communicate with Another Node


Check the Support Board LEDs, and refer to the manual for countermeasure details.
If communication is possible with another node, but not with the PLC, the other node is probably
not set properly. Network number setting mistakes are common causes.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 30

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 31

7 Serial Unit Settings

7.1 SerialUnit Functions


The SerialUnit service provides serial communication between control devices and the computer.
The SerialUnit supports both SYSWAY and SYSWAY-CV communication protocols. SYSWAY is
supported by both C-series and CV-series (i.e., send command string of @00RD). It is often
called host link (C-mode) protocol. SYSWAY-CV is supported by the CV-series (i.e., send
command string of @00FA). It is often called Host Link FINS protocol.
The SerialUnit supports CompoWay/F. This is the protocol implemented on OMRON control
devices.

7.2 SerialUnit Network Configuration


Before setting the network, record the following information:
• A COM Port name that can be used on the system (i.e.COM1).
• Conditions for communication with other devices -transmission speed, data length, stop bit
length, parity, etc.
• Transmission protocol for communication with other device and unit number.
Select Serial Communication Settings in Start | Program | FinsGateway, and set the following
items.
Confirm that SerialUnit-COMx (i.e., SerialUnit-COM1) exists in the network information. The
current network configuration (network number, node number, unit number) can also be found in
the network data.
Set the configuration of the SerialUnit. Select Network, and click the Properties button.
The following information is displayed in the SerialUnit Network Properties:

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 32

Define the device for performing serial communication by clicking Transfer.

7.3 Serial Communications and the Network


The communication function provided by FinsGateway is based on a network model defined by
FINS. How FinsGateway handles serial communication as a FINS network model is explained
below.

7.3.1 Unit Number and the FINS Address


For host link (SYSWAY and SYSWAY-CV) and CompoWay/F, the unit number allocated to each
device is used to distinguish them in the serial cable. However, in FINS communications the
address on the network is decided using a combination of network number, node number, and
unit number.
In FinsGateway, one serial cable is regarded as a network, and a FINS network address is
allocated to it. In other words, one COM port on a computer is handled as one network.
Consequently, a device that is identified by only the unit number in host link and CompoWay/F, is
handled as a network node. The Host link and CompoWay/F unit numbers and FINS node
number are not necessarily the same. The Host link and CompoWay/F unit numbers and FINS
node number can correspond, if preferred. Unit number 0 for Host link and CompoWay/F cannot
have the same node number, and is allocated a node number of 240 in FinsGateway in advance.
For FinsGateway serial communication, the unit number in the FINS address has no meaning.
However, it is recommended that 0 be specified for the FINS unit number in serial
communication for compatibility with other networks.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 33

For the relationship between the host link and CompoWay/F unit numbers and the FINS node
number, start the FINS Network Settings. Specify these in the properties of each node in Serial
Communication Properties | Set Node.

If the Protocol in this dialog is SYSWAY, SYSWAY-CV, or CompoWay/F, specify the host link and
CompoWay/F unit number in Unit number/data. Specify 1 in Data size. The FINS node number
can be set here to equal the node number, and the Host link unit number.

7.3.2 Nodes and Protocols


At present there is no unified protocol for performing serial communication with a device. The
protocol depends on the device. FinsGateway is designed so that multiple protocols can be used
simultaneously. For this reason it is necessary to specify the protocol used for each node
(device) when setting FinsGateway communications.

7.3.3 Message Transmission


In serial communication, data cannot be sent by several devices at the same time through one
physical cable. The communication protocol for host link and CompoWay/F is that a device
called a Master sends a command to a specific device called a Slave. Then the Slave sends a
response back to the Master.
FinsGateway can only be the Master with this protocol. For serial communication therefore,
communication begins when a command is sent from an application using FinsGateway, and
ends when the response is received from the device. During the period from when the command
is sent to when the response is received, no other communication can be performed with that
serial cable.
Applications which use FinsGateway can perform multiple communications at the same time
using serial communication. However, internally, until one command-response is complete, other
communication requests are held. For this reason, note that with serial communication, a
relatively long command-response can affect the communication of other applications using the
same serial communication.

7.3.4 Transmission Speed


The transmission speed with serial communication is extremely slow compared to SYSMAC
LINK, or other networks. The following effects can result from a slow transmission speed.
• FinsGateway receive timeout occurs easily.
• The transmission time differs greatly depending on the amount of data to send.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 34

7.3.5 FINS Message Length for Each Protocol


Each protocol provided by the SerialUnit, (SYSWAY, SYSWAY-CV, CompoWay/F) converts the
FINS messages from the application to the appropriate protocol. The maximum message length
is less than 100 bytes.

7.4 FINS Commands Supported by the SYSWAY Protocol


The SYSWAY protocol provided by the SerialUnit automatically converts the FINS commands
form the application into C-mode Host Link commands. It also automatically converts the C-
mode Host Link responses from the device into FINS responses.
The commands supported (that can be converted) by the SerialUnit are as follows:
FINS Meaning Comment
Command
0x0101 Data Area Read Host Link frame division/integration performed
automatically.
0x0102 Data Area Write Host Link frame division/integration performed
automatically.
0x0306 Program Area Read Do not use. Will not function.
0x0307 Program Area Write Do not use. Will not function.
0x0401 Start Execution
0x0402 Stop Execution
0x0501 Controller Data Read The SerialUnit will determine the model number,
and convert it. However, it differs from the
standard FINS response (i.e., such as on
SYSMAC LINK).
0x0601 Controller Status Read
0x0801 Echo-back Test
0x2301 Forced Set/Reset
0x2302 Forced Set/Reset Clear

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 35

7.5 Communications Check


Confirm operation as follows:
Start the FINS Network Tester utility.

Confirm that the local node Communication Unit is operating properly.


• Enter the unit number of the local node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 36

Note: The FINS unit number 254 has a specific meaning. It refers to the Communication Unit (of the
specified node number) which is connected directly to the specified network (i.e., not any
communication units on the same node which are connected to other networks).
Confirm communication with the CPU_UNIT of a different destination node.
• Enter the address of the destination node CPU_UNIT in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 37

7.6 Troubleshooting
The following table describes common causes for some problems:
Problem Possible cause Countermeasure
Serial The SerialUnit is not Start the SerialUnit using the Service Control
communications running. Manager.
network (Serial- Confirm that the COM port used by the SerialUnit is
COMx) is not not being used by another application, especially a
displayed in the modem, a serial mouse, or HyperTerminal.
FinsGateway For PC AT devices, do not set the stop bit to 1.5. Use
Network the Serial Communications Settings program to
Navigator. change the settings.
If the unit number used by the SerialUnit is not
unique, the SerialUnit will not start. Set a unique
unit number. The unit number used by the
SerialUnit is set using the Serial Communications
Settings.
Confirm that the FinsGateway setup was completed
properly.
A routing error In an environment Specify the network number set in the routing table
occurred when where several for the destination network. The network number
sending with the networks can be can be read and set in the network list of
FINS Network used, 0 is specified FinsGateway Network Navigator. If the network
Tester. as the destination number displayed in the network list is 0, set the
network number. network properties, and then execute the System
Configuration.
The destination There is a broken Always confirm that the connection between the
device does not cable or an improper devices is correct, and the communication conditions
respond. The connection. match. For details of the connections and
communication (Transmission speed, communication conditions (transmission speed, data
LED of the device data bit length, stop bit length, stop bit, and parity), refer to the manual
does not light. bit, or parity are of the device.
different from that of
the device.)
The message was Confirm the FINS node number.
sent to the wrong
unit number.
The wrong network Confirm that the destination network number is a
number was serial communications network.
specified.
Another method of testing is to exit the SerialUnit. Then, using general terminal software such as
HyperTerminal, send a host link command directly, and confirm that a response is returned from
the device. Refer to the device manual regarding the command to send and expected response.
If a response is not returned, there is a possible fault with the connection, communication
conditions, or unit number.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 38

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 39

8 SYSMAC Board Settings

8.1 SYSMAC Board Functions


SysmacBoard provides communication with the SYSMAC Board.

8.2 SYSMAC Board Settings


Prepare the following items before installing FinsGateway:
• The I/O port of the installed SYSMAC Board, and the shared RAM address. If uncertain,
refer to the manual for the board.

8.3 SYSMAC Board Unit and FINS Network


The computer software communicates with the SYSMAC Board through the Communication Unit
following the FINS network model. In FinsGateway therefore, the ISA bus is handled as a
network, and a FINS network number is allocated to it.
The SYSMAC Board unit consists of a SYSMAC ISA unit corresponding to the Communication
Unit, and a SYSMAC CPU corresponding to the CPU of the PLC. For applications, the SYSMAC
CPU can be regarded as a PLC exclusively for the SYSMAC ISA network (composed only of the
CPU).
In FINS, addresses on the network are set by a combination of network number, node number
and unit number. Zero is allocated as the unit number of the CPU of the PLC.
As with any other Communication Unit, the SYSMAC ISA unit has a network number, node
number, and unit number. The FINS address of the SYSMAC CPU has the same network
number as the SYSMAC ISA unit, any node number within range, and a unit number fixed to 0
(zero). 230 is already allocated as the node number.

8.3.1 SYSMAC ISA Unit and the SYSMAC CPU Unit


The SYSMAC ISA unit provides a FINS network number so that FinsGateway can handle the
ISA bus in the same way as other networks.
The SYSMAC CPU performs an equivalent FINS service to that of the PLC CPU. By using the
FINS service of the SYSMAC CPU, applications can access the data area of the SYSMAC
Board.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 40

8.4 SYSMAC Board Settings


The following page is displayed when you click the Network tab of the Property dialog. In this
page you can confirm or set the FINS network number. Changes to the FINS network number
are effective after the SYSMAC Board Unit is restarted.

If you click the Node tab, the following page is displayed. From here you can set the node
number of the SYSMAC CPU Unit or refer to the Unit type. Changes to the SYSMAC CPU Unit
node number are effective after the SYSMAC Board Unit is restarted.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 41

The following page is displayed when you click the Unit tab. In this page you can start the Data
Link Table Editing Utility, and reset the SYSMAC Board.

The following page is displayed when you click the Driver tab.

Always set to the same value as the IO Port set with the SYSMAC Board switch and address of
the shared RAM area. If an incorrect value is entered, problems or malfunction in the operation
of the SYSMAC Board or SYSMAC Board Unit may occur.

8.5 SYSMAC Board Data Link


The main difference between the data link of the SYSMAC Board and that of other networks is
the priority groups.
The following items must be determined for the setting the data link.
• Transfer direction. You must decide whether to read data from the SYSMAC Board, or write
to it.
• Priority Groups. You can set the refresh interval for the data of each group, in units of
milliseconds.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 42

• Transfer Size. The size to transfer can be set in bytes. If a value larger than the specified
area of the PLC is set, an error occurs at execution.
• The data area and address of the SYSMAC Board. This specifies the beginning address
and offset of the PLC that is the transfer source (destination).
• Name and offset of the EventMemory. This specifies the name and first word of the
EventMemory that is the transfer source (destination).
• Whether or not to execute the transfer. It is possible to register the data link, but not actually
execute it yet.

8.5.1 Setting the Data Link


To set the data link, select SYSMAC Board Data Link Settings in Start | Program | FinsGateway.
When you click this a list of the data links registered on the current system is displayed.

• Data Link Edit Area


Area for editing a new data link, or a data link selected from the list.
• Data Link List
Shows a list of data links that have been added or updated. The leftmost No. is displayed in
reverse video when a data link is selected. Note that the information displayed can be
different from that registered on the system.
• Register Button
Registers the settings displayed in the data link list on the system. They become effective
after restarting the SYSMAC Board service.
• Add Button
Adds the new data link set in the edit area to the data link list.
• Update button
Updates the data link selected (reversed) in the data link list to the settings in the edit area.
• Refresh Interval button
Displays a dialog for setting the data link refresh interval.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 43

• Delete button
Deletes the data link selected in the data link list. This will not directly delete settings
registered on the system.
• Delete All button
Deletes all data links displayed in the list. This will not directly delete settings registered on
the system.
• Import button
Imports the settings from an existing file.
• Export button
Saves the information in the data link list. If a file already exists, it is overwritten. Do not edit
exported files.
When the Refresh Interval button is clicked, a dialog box is displayed for setting the data link
refresh interval of each group.

8.5.2 Setting the Refresh Interval


The refresh interval is the waiting time from when a data link set for each group is executed to
when it is executed again. Set this value to 0 or above in units of milliseconds.

8.5.3 Important Points


Synchronism of the SYSMAC Board data can only be guaranteed to a maximum of 128 words
(256 bytes). There is no limit to the size of a data link. A data link can be set for 1000 words from
DM0000. Note however, the following limits and cautions:
• Expanded fixed DM area and timer/counter status area cannot be specified in a data link.
• The expanded CIO (in the setting utility) refers to CIO 256 and higher in the actual I/O area
of the SYSMAC Board. In other words, CIO 0 of the expanded CIO is CIO 256 of the actual
I/O. As a result, you cannot set, for example, a 100 word data link on the actual I/O from
CIO 200. In this case, you would set 56 words from CIO 200, and 44 words from CIO 0 on
the expanded CIO.
• When using the setting utility, no maximum value check is done for the input data.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 44

• The more data links there are, the more system resources are required by the Board. This
will affect other applications running on the same system. The exact effects of an increase
in load will differ depending on the system environment.

8.6 Communications Check


Confirm operation as follows:
Start the FINS Network Tester utility.

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 45

Confirm that the local node Communication Unit is operating properly.


• Enter the unit number of the local node Communication Unit in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

Note: The FINS unit number 254 has a specific meaning. It refers to the Communication Unit (of the
specified node number) which is connected directly to the specified network (i.e., not any
communication units on the same node which are connected to other networks).

©Copyright OMRON Corporation 1998 All Rights Reserved.


FinsGateway Version 2 Runtime User’s Manual 46

Confirm communication with the CPU_UNIT of a different destination node.


• Enter the address of the destination node CPU_UNIT in the Peer field.
• Set 0501 (PLC Data Read) as the Send message, and click Start.

8.7 Troubleshooting
The following describes common causes for some problems:

Communication Unit Will Not Start


Check the cause listed in the Event Log.
Controller Link Support Board shared RAM address, IRQ setting mistakes are common causes.
Duplicated unit numbers are another common cause. Multiple communication units with the
same unit number cannot be run simultaneously.

EventMemory Is Not Updated


Duplicated data addresses is a common cause. FinsGateway setting utilities do not check for
duplicate settings of data link, status data, etc. Be sure these areas do not overlap. If an area
written by an application is not updated, it is commonly because the data link or status data is
also using the same area.

©Copyright OMRON Corporation 1998 All Rights Reserved.

Вам также может понравиться