OPC Server User Manual
OPC Server User Manual
User Manual
IM50S15-E
Table of Contents
Table of Contents
OPC Server....................................................................................................................................1
Section 1 Overview.......................................................................................................................1
1
Table of Contents
Section 7 Revision......................................................................................................................19
2
OPC Server
OPC Server
Section 1 Overview
OPC(OLE for Process Control) is the standard server/client protocol to transfer data and I/O
information between programs in windows system.
By creating OPC, application programs of automatic system can be communicated. By this way,
automatic system becomes more flexible and more reliable. For manufacturer supported OPC
applications, OPC simplifies the development process, and the development completed only by
creating an I/O interface. For user supported OPC applications, OPC improve the adoption of the
automatic process, and the users have no limit of communicate to the specified devices required
by manufacturer.
OPC Server includes standard OPC DA server software and standard OPC AE server software.
By OPC DA server software, real-time data can be transferred to OPC DA client. By OPC AE
server, alarm information and operation log can be transferred to OPC AE client.
OPC AE server is used to share alarm and event, and OPC AE server is based on OPC
alarm and event protocol, which is the extended of OPC protocol.
OPC DA server software and OPC AE server software can connect to multiple OPC
clients, and the maximum of OPC AE client connected to OPC AE server is 15.
OPC DA server can provide diagnose status of controller, communicate modules and IO
modules by the realtime value of diagnose tags.
OPC AE server software can collect process alarm of field tags, and support confirm
operation by OPC AE client. The maximum alarms simulate received by OPC AE server
is 1000.
1.2.3 Introduction of Software Authority
Special encrypting lock (that is the dongle) should be installed when running OPC server software,
1
OPC Server
and if not, it can only run for two hours in the mode of demonstration.
OPC AE Client
SCNetA
SCNetB
OPC DA Client
ECS-100 Controller JX-300XP Controller
OPC server installed with OPC server software, and OPC server can get data
information of ECS-100 system and JX-300XP system by the OPC DA server software,
and OPC AE server software calculate the alarm information of system tags.
OPC server transfers the collected data to the format of OPC DA data and OPC AE data,
and transmits the data to OPC AE client and OPC DA client.
2
OPC Server
Refer to JX-300 system and ECS-100 system to get the hardware requirements.
1. Open the disk of OPC server software, and popup the dialog box of “Choose Setup
Language”.
2. Select “Chinese” and click “Next” to popup the dialog box of “Choose Destination
Location”.
3. Select the default path “C:\JXServer” or click “Browse” to select the new path, and click
“Next” to popup the dialog box of “Select Program Folder”.
4. After confirmed program folder, click “Next” to start to install OPC server software.
5. After installation, popup the prompt box of installation complete. Click “Finish” to end the
OPC server installation.
After installed OPC server, program folder of OPC server will include the following items:
3
OPC Server
OPC Server
The comprehensive version of OPC Server is able to link with many programs of OPC customer
terminal at the same time, and each link can exchange much dynamic data (tags) at the same time.
The data types distributed by OPC Server are shown in the following table.
Read/Write Authority
Tag
Data Type Tag Suffix Reference Single Batch Value Range
Example Rewriting Rewriting
Mode Mode
Analog Input / AI-401 Read only Read Only SFloat
Analog Not Not
Input Manual Setting AM AI-401.AM ON/OFF
Reading Reading
Accumulation Value SM AI-401.SM Read-Write Read-Write /
Digital Input / DI-221 Read Only Read Only ON/OFF
Digital Output / DO-221 Read-Write Read-Write ON/OFF
Manual/Automatic AM LOOP.AM Read-Write Read-Write Manual/Automatic
Set Value SV LOOP.SV Read-Write Read-Write SFloat
Process Value PV LOOP.PV Read Only Read Only SFloat
Manipulation Value MV LOOP.MV Read-Write Read-Write 0%~100%
Loop Positive/Negative Function PN LOOP.PN Read-Write Read-Write ON/OFF
Proportion P LOOP.P Read-Write Read-Write 6.25%~204700%
Calculation I LOOP.I Read-Write Read-Write 0.0166~54.61min
ALGLOOP
Derivative D Read-Write Read-Write 0~3276s
201.D
One Bit
Digital / ALGDO-1 Read-Write Read-Write ON/OFF
Variable
SFloat / ALG-101 Read-Write Read-Write SFloat
Description / ALG-102 Read-Write Read-Write Integer
Two Bits
Unsigned
Variable / ALG-103 Read-Write Read-Write 0~65535
Integer
Custom
ized Signed
/ ALG-104 Read-Write Read-Write -32768 ~ +32767
Analog Integer
Value Unsigned
/ ULONG-1 Read-Write Read-Write 0~4294967293
Long Integer
Four Bits
Variable Signed Long -2147483648 ~
/ LONG-1 Read-Write Read-Write
Integer 2147483647
Real Float / FLOAT-1 Read-Write Read-Write -1e+020~1e+020
Eight Bits Accumulatio SM8BYTE-
/ Read-Write Read-Write /
Variable n Value 1
Custom Manual/Automatic AM LOOP.AM Read-Write Read-Write Manual/Automatic
4
OPC Server
Read/Write Authority
ized Set Value SV LOOP.SV Read-Write Read-Write SFloat
Loop Process Value PV LOOP.PV Read Only Read Only SFloat
Manipulation Value MV LOOP.MV Read-Write Read-Write 0%~100%
Positive/Negative Function PN LOOP.PN Read-Write Read-Write ON/OFF
Proportion P LOOP.P Read-Write Read-Write 6.25%~204700%
Calculation I LOOP.I Read-Write Read-Write 0.0166~54.61min
ALGLOOP
Derivative D Read-Write Read-Write 0~3276s
201.D
OPC DA Server opens the fault diagnosis information of system status tag, and can provide
diagnosis data of controller, communication module and IO module. Diagnosis data details are
shown below:
Tag Type Diagnosis Item Tag Reference Format Tag Reference Example Diagnosis Value
Refer to controller CS_001_station OFF: Normal
CS_001_004.HDW
hardware error address.HDW ON: Fault
Refer to controller CS_001_station OFF: Normal
CS_001_002.CFG
configuration error address.CFG ON: Fault
Refer to controller
SCNet A-net CS_001_station OFF: Normal
CS_001_002.SCNETA
Controller communication address.SCNETA ON: Fault
fault
Refer to controller
SCNet B-net CS_001_station OFF: Normal
CS_001_002.SCNETB
communication address.SCNETB ON: Fault
fault
Refer to controller CS_001_station OFF: Standby
CS_001_002.WORK
work/ standby mark address.WORK ON: Work
Refer to _CM_001_station
communication address_communicatio _CM_001_000_004.WOR OFF: Standby
module work/ n module K ON: Work
standby mark address.WORK
Communi _CM_001_station
Refer to
cation address_communicatio OFF: Normal
communication _CM_001_002_004.HDW
Module n module ON: Fault
module fault
address.HDW
Refer to _CM_001_station
communication address_communicatio _CM_001_002_004.IOCO OFF: Normal
module I/O Commu n module MMU ON: Fault
fault address.IOCOMMU
Refer to
_CM_001_station
communication
IO Module address_communicatio _CM_001_002_004.SBU OFF: Normal
module SBUS
n module S ON: Fault
(JX300XP,
address.SBUS
ECS100) fault
_ IO_001_station
Refer to IO module address_communicatio _IO_001_002_004_001.H OFF: Normal
fault n module address _IO DW ON: Fault
module address.HDW
5
OPC Server
Tag Type Diagnosis Item Tag Reference Format Tag Reference Example Diagnosis Value
_IO_001_station
Refer to IO module address_communicatio
_IO_001_002_004_001. OFF: Normal
work/ standby n module address _IO
WORK ON: Fault
status module
address.WORK
Attentions:
OPC AE server software can deal with and transmit process of field tags. Field tags supported by
OPC AE server software include analogy tags and digital tags, and not include extend variables.
6
OPC Server
Alarm of change rate, include positive rate-change alarm “RATE_U” and negative
rate-change alarm “RATE_D”.
OPC AE server software supports the alarm information including source, generate time, tag
description, and so on, Main segments of alarm information is shown in the following table.
Segment Instruction
Alarm source, which is in the format of “Control Station/Tag”, for example “Control_0_2/
Source
AI00020015”
The segment is the timeat which the alarm generated, and segment is in the format of “Data
Time”. “Date” is the date at which the alarm generated, and “Time” is the time at which the
Data and Time alarm generated. For example, the time can be shown as “02/09/15 15:21:19.514” that
means the alarm is generated at the date “20150209” and the alarm is generate at the time
“15:21:19.514”.
Message This segment is used to show the description of the tag generated the alarm.
This segment is used to show the alarm level. Alarm level of Advantrol-Pro software is in the
range of 0 to 10, and alarm level of VisualField software is in the range of 0 to 31(31 is the
Severity highest level),
For the compatibility of Advantrol-Pro and VisualField, OPC AE server software transfer the
levels according to “Table 3-4”
Condition and
This segment is used to display the alarm type, which may be HH, LL, L and H in normal.
SubContdition
Actor ID This segment is used to display the operator who confirms the alarm in OPC client.
This segment is used to display the information of alarm confirm, and it is got from the AE
Comment
client.
This segment is used to display the tag type of the event, which may be AI, DI, DO, ALGD,
TagType ALG2FLOAT, ALG2INT, ALG2UNIT, ALG4FLOAT, ALG4INT, ALG4UNIT, ALG8ACC,
ALGSLOOP, SLOOP.
OPC AE server software supports collecting alarms generated in AdvanTrol-Pro software, and
transfers the alarm levels by following table.
Alarm Level in AdvanTrol-Pro Alarm Level in OPC AE Server Alarm Level in OPC Client
0 990
1 960 HIGH
2 800
3 640
MEDIUM HIGH
4 510
5 390
MEDIUM
6 270
7 180 LOW
8 90
7
OPC Server
Alarm Level in AdvanTrol-Pro Alarm Level in OPC AE Server Alarm Level in OPC Client
9 1
10 1
OPC AE server software supports collecting operation records of AdvanTrol-Pro, and transmits the
collected operation record to OPC AE client.
Operation record collected by OPC AE server software are describes in the following table.
Caution:
If the local computer donot start AdvanTrol-Pro supervision software, OPC AE can not get
the operation record.
Select “Programs > OPC Server > OPC DA Server” in start menu to start OPC DA server software.
When the OPC DA server is starting up for the first time, there will appear the prompt dialog box as
shown in Figure 4-1. Click “Yes” and open the correct SCO configuration file, then the server can
be operated. Moreover, when it starts up next time, it will automatically load the configuration file
selected last time; click “No”, it will indicate that the OPC DA server start up failed (as shown in
Figure 4-2) and exit from the server.
8
OPC Server
Figure 4-1 Prompt dialog box when start up the OPC DA server for the first time
OPC DA server can be started up by the calling of customer terminal, and when there is no active
client, the server will exit automatically. After the server has been started up, it will be displayed in
the form of small icon in the taskbar of the computer, and the icons will show the two states with
green or red .
: Indicate that OPC DA server has not been started up or been stopped.
By modified the configuration files of OPC DA server, you can modify the related configuration,
tag’s read-write property, auto-read period.
Shut down the running OPC DA server, find the file JXServer.ini which is in the installation
directory and open it (would be opend by notepad) and delete the whole route behind “Operation
File=”. When the OPC DA server starts up next time, there will appear the prompt dialog box
“Please select config file!”, and after the configuration is selected over again, the server will be
started up successfully. Or input the whole route of the chosen configuration behind the “Operation
File =”, as shown in Figure 4-3, and then save and close this file. Next time when the server is
started up, the operation file of the current configuration will be acquired automatically from the file
JXServer.ini and start up the server.
9
OPC Server
The comprehensive version of OPC DA Server supports to set read-only tag. Refer to Table 3-1 for
the read/write authority of the tags of OPC DA server by default. If it is needed to set the OPC tags
read-only, that can be achieved by the following procedures:
Shut down the running OPC DA server, find the file JXServer.ini which is in the installation
directory and open it (would be opend by notepad) and modify the number behind tag “read-only
=” to ‘1’, as shown in Figure 4-4, and then save and close this file. Next time when the server is
started up, all OPC tags will become read-only tags.
Generally, OPC DA Server obtains the tag data by monitoring the broadcast data of control station
and does not execute point-to-point communication with the control station. While it needs to read
the parameters from control station automatically if the client uses loop parameters P, I, D and PN.
The auto-read period in the figure below shows the period of OPC DA Server reading loop
parameter from control station. It is set as 3 seconds in default and can be adjusted in application.
For a better network environment, users should set the auto-read period in the range of 3~10
seconds.
10
OPC Server
The operations on the OPC server are mainly completed by the right-click menu, it can achieve
switching of the simulation and communication states of OPC data server, switching of running
and stop of OPC server and functions of viewing the information of OPC server system and exiting
from the server.
Select “Stop” or “Run” in the right-click menu as shown in Figure 4-6, then the server will stop or
run:
Select “Stop” to stop the OPC DA server, and at the same time, the icon changes to be
and “Stop” become to “Run” in the right-click menu.
select “Run”, the server will start up and at the same time the icon changes to be .
In the simulation state, OPC DA server doesn’t read data from the control station, but simulates
real-time data by internal algorithm and supplies the data to the OPC customer terminal for off-line
debugging; only when it is switched to be in the state of communication, OPC DA server will
communicate with the control station normally. When operating on site, please do check whether
11
OPC Server
Select “Simulate Data” in the right-click menu as shown in Figure 4-6, and then the OPC
DA server will change to be in the simulation state.
Select “Communicate Data” in the right-click menu, and then the OPC DA server will
change to be in the communication state.
By default, OPC DA server do not provide diagnostic information of system tag. By the right menu
of OPC DA Server, this function can be started or stop. And the right menu shown as Figure 4-7,
which can be popup by right clicking the icon of OPC DA server in the system tray, .
Select "Providing Diagnostic Info. > Start", and the "Start" will be selected, and the
function of providing diagnostic information of system tag will be started, shown as
following figure.
Select "Providing Diagnostic Info. > Stop", and the "Stop" will be selected, and the
function of providing diagnostic information of system tag will be stop.
After configured, the dialog box shown as following figure will pop up. Click "OK" and restart the
OPC server, the new configuration will be valid.
Select the “Option” in the right-click menu as shown in Figure 4-6, and there will pop up the dialog
box as shown in Figure 4-9. AI type, data rewriting and control station version could be set in this
dialog box,
12
OPC Server
AI type
When the AdvanTrol series, AdvanTrol-Pro series, SupView 3.0 and newer are used as
system software, please select analog input of 12 bits; when SupView used is older than
version 3.0, please select the analog input of 14 bits.
Data rewriting
Single rewriting
Rewrite data to the control station no more than 5 points per second, and moreover
in this case, and control station version setting is not needed.
Batch rewriting
Rewrite data in batches to the control station. It rewrite data to the control station no
more than 50 points per second when the control station version is older than 9.5;
no more than 500 points per second when the control station version is equal to or
newer than 9.5. Control station version should be set correctly to implement batch
rewriting.
Control station version setting is just needed when rewriting data in batches, and it is
according to the model of control station.
13
OPC Server
Control station with version older than 9.5: FW243L, FW243S, FW243M, XP243,
SP243X, FW244, XP244, XP243C, OS-GCS2-1/ER, OS-GCS2-1/E,
OS-GCS2-2/ER, FW243D, FW245.
Control station with version equal to or newer than 9.5: FW247, FW243X, XP243X,
FW248, XP248, OS-GCS2-3/ER.
When complete the settings, click “OK”. If some option has been modified, there will pop up the
dialog box show in Figure 4-10.
After confirmation the dialog box shown in Figure 4-11 will pop up if the setting of control station
version is modified. Then OPC server needs to be restarted.
Select “About” in the right-click menu, and it will display the dialog box of software version
information.
Click “System Info.” in the popup dialog box, more system information will be displayed, such as
the name of the computer, the name of the server, configuration information, the current data
source is in the simulation or communication status, the current running status, the startup time of
the server, the continuous running time and the status of dongle.
14
OPC Server
4.3.6 Dongle
Special encrypting lock (that is the dongle) should be installed when running OPC server software,
and if not, it can only run for two hours in the mode of demonstration.
15
OPC Server
This section describes the OPC AE server’s configuration and connection to the client.
1. Select “Programs > OPC Server > OPC AE Server” in start menu to start the OPC AE
server.
After running RUN OPC AE server, icon will be shown in system tray.
2. Right-click the icon in system tray and select "Configuration" to pop up the
"Configuration" dialog box.
3. Click “Select Configuration”, and popup the dialog box to select “.sco” configuration file.
.sco file supports saved in the computer running OPC AE server by copying the “Run”
folder which is .sco file located in.
Caution:
If the OPC AE server is started for the first time, the “Configure” dialog box shown as
above will popup auto.
If the OPC AE server is not started for the first time (normally run before), the
configuration run before exit will be reloaded by default.
Other Configuration
Reload Configuration
Select "Reload Configuration" in the right-click menu, and server will reload the current
configuration.
Server Status
16
OPC Server
Here takes AlarmClient (OPC AE standard client of FactorySoft) connecting OPC AE server an
example.
1. Run AlarmClient, and select [OPC/ Connect] in menu bar to pop up the "Select OPC
Alarm Server" dialog.
Tip:
3. After connect successfully, alarm information provided by OPC AE server will be shown
in main interface of AlarmClient, as shown below.
17
OPC Server
Figure 5-2 Information list of AlarmClient (after connect OPC AE Server successfully)
The list includes the generation information, operation record and SOE record of alarm.
Right-click an alarm, you can view its properties. The right-click menu commands include
"Freeze", "Acknowledge", "Properties", "Clear Alarms", etc.
Alarm acknowledge in AdvanTrol-Pro software can be synchronized to OPC AE server
software. Modification of Alarm in OPC AE client will be synchronized to AdvanTrol-Pro
software.
4. After succeeded to connect to OPC AE server, AlarmClient will display the alarms
provided by OPC AE server.
In order to guarantee the correctness of data display, it must make sure that the
configuration used in the OPC server should be consistent with the configuration in the
DCS control station, and the SCO configuration file used in the OPC server should be
synchronized with that used at operation nodes. When updating the configuration of DCS
control station, the configuration of the OPC server must be updated at the same time
(load the configuration once again). The method of synchronizing the configuration:
close the running OPC server, and use the new SCO configuration file to update and
cover the original SCO configuration file and start up the OPC server once again.
18
OPC Server
Section 7 Revision
Table 7-1 Retrofit list of the version
V1.3 OPC Server V4.00.00.00-CE Supports Windows 7 and Windows Server 2008.
V1.4 OPC Server V5.00.00.00-M Add the instruction of OPC AE server software.
19