Citect Fins Gateway
Citect Fins Gateway
20 via an
Ethernet connection for FINS protocol
Whitepaper
Summary:
This article describes the configuration of an Ethernet connection using FinsGateway and
Citect’s FINS driver. Communication is acheived using an Ethernet card in the PC and an
Ethernet module in the PLC. The FINS protocol is used to communicate through the
FinsGateway API to the Omron PLC.
2. Configuration example
Required Software / Hardware
Software
- Complimentary Software CD – FinsGateway 3.20
- CitectSCADA V5.x or higher (CitectSCADA V6.0 recommended)
- FINS CitectSCADA driver driver version 1.03.01.054 or higher
- CX-Programmer V3.20
Hardware
- Standard PC with Network Interface Card (NIC)
- Omron PLC (in this case a CJ1M CPU22)
- ETN21 Ethernet Module
- Standard Ethernet cross-over cable
Information:
The ETN21 Ethernet Module supports both 100BaseTX and 10BaseT.
The CX-Programmer is required to configure an IP Address for the module.
3. Enter your name and company in the user registration window; to continue
click OK.
8. The next step is to install the FinsGateway update. The update version used
in this instance is V3.20. Once the update is complete you must again restart
your computer.
2. Once the upload of the configuration has completed, Change the PLC to
Program Mode:
5. Expand the Main Rack, and right click on the Ethernet Unit (ET) (1), and
select “Unit Setup”:
Enter the IP address you would like to assign to the module, as well as the
Sub-net Mask for your LAN. Select the “Conversion” option as “Table used”.
Click on insert and enter the Node and IP address for both the PC and PLC
Ethernet modules. For simplicity, the last number for the IP address is used
as the Node number, i.e. 192.168.0.33 would have node number 33.
8. The last most important configuration to make is to set the Node no. on the
front of the ETN21 module itself. This is done by setting a rotary dial to the
appropriate value. There are two dials each with a Hexadecimal number to
set. The top dial sets the upper significant value, while the lower dial sets the
lowest significant value. In this example, the Node Address 100 (0x64) was
used. This means the Top dial will be set to 6, and the bottom dial to 4.
This will load the Service Manager (yellow icon) in your system tray:
12. Expand the Driver section in the Menu Structure. Select the ETN_UNIT and
click properties. This will open the following window for ETN_UNIT Properties:
14. Now click on the “Communications Unit” tab. This will allow us to view the
UDP Port number settings:
Information:
The default UDP port number configured on Omron PLC’s is 9600.
Click on Add to insert an entry for the Omron PLC’s Ethernet module:
Enter a unique Node number. This is important for the FinsGateway software
to identify the ETN_UNIT Ethernet connection to the PLC, and becomes
important later in CitectSCADA communication settings.
Note: In an aim to keep things simple, the last digit in the IP address is used
as the Node number. Although these do not necessarily need to be the same!!
Click OK to continue.
Note: If you were configuring Citect redundancy, you would also need to add
the Standby’s Node and IP address in this table.
17. The configuration can be confirmed by using the Explore feature to browse
the network for devices:
The status of the ETN_UNIT should change to “Running”. You can also
change the Startup to “Auto” so that when you start the FinsGateway Service
Manager, it will automatically start the ETN_UNIT service.
As you can see, it has detected that the ETN_UNIT is running on a Windows
2000/NT/9x machine (local), and the Ethernet module the PLC is running is a
CJ1W-ETN21 (remote).
From here it is possible to test your communications path to the PLC. Enter
the Peer Address (net.node.unit). In this particular case, Ethernet uses Local
Network 0. The Node is the number that was configured earlier, which is 100.
And the Unit number is 0 for the CPU. That will make the Peer Address
0.100.0.
23. The FinsGateway Service Manager can now be closed. The FinsGateway
Ethernet configuration is now complete!!!
The protcol used is FINS3. The FINS protocol should be used with
C/CV-Series PLCs and the FINS3 protocol should be used with the
CS1/CJ1-Series PLCs. If in doubt, compare the data types
available for your PLC, and the data types supported with each
protocol.
Information:
For more detail about the different data types and the Citect variable
addressing format, look for the Help Topic “OMRON PLC Ethernet -
Data Types” or “Variable Tag Dialog Properties”.
1. From the Citect Project Editor, pack and compile your project.
2. Now run the computer setup wizard to configure the role of the PC. In this case it
will need to run as an I/O Server.
3. Use TagDebug from the Kernel to verify your communications with the PLC.
Solution:
The most common reason why this error occurs is a configuration error.
Another reason may be that the PLC is powered down, or there is a
communication failure, or broken link.
• Check that the Address specified in the I/O Device form matches the
configuration of FinsGateway (net.node.unit).
2. Question:
I have successful communications, but when I try to write to a specific
address, I get Generic Error 25, Driver Error 32 (0x20). What am I doing
wrong?
Solution:
The description given in the help states “Wait_mutex_failed” which means
the driver failed in standby process of exclusive control of shared memory.
The driver is trying to write to an address that the PLC has exclusive
access over. The solution is to write to a different address space, and map
the value using PLC code. This error will usually occur when the PLC is in
RUN mode. It will not happen if the PLC is in MONITOR mode.