5. CONFIGURATION FOR USING OPC
5-1
CHAPTER 5 CONFIGURATION FOR USING OPC
5.1 Overview
CODESYS supports the OPC server and allows you to use OPC Classic (OPC DA/AE) and
OPC UA. For information about an overview of the OPC server and how to use OPC server
tools, refer to the CODESYS original manuals in the following locations.
Folder location
C:\Program Files (x86)\3S CODESYS \CODESYS OPC Server 3
List of manuals
File name
Description
CoDeSys_OPC_Server_V3_User_Guide.pdf Instructions for using OPC Config, which is a
configuration tool for the OPC server and for the
communication interface between the CODESYS
development environment and the PLC.
AeConfigurator_UserGuide.pdf
Instructions for using AeConfigurator, which is a
tool for adding and setting up alarm events when
you use OPC AE.
This chapter describes the setup procedure necessary for using OPC.
(1) Using OPC Classic (OPC DA/AE)
In addition to adding OPC objects, you must configure DCOM. See “5.2 Adding OPC
Objects” and “5.3 DCOM Settings”.
Moreover, configure the following items according to your needs.
OPC server setting
CODESYS offers OPC Config, a tool for setting up the OPC server and the
communication interface between the CODESYS development environment and the
PLC. (Note that you can use OPC with the default settings.)
For details about OPC Config, refer to CoDeSys_OPC_Server_V3_User_Guide.pdf.
Alarm event setting
To use OPC AE, you must use AE Configurator to configure alarm events notified from
CODESYS to OPC AE. For details about AE Configurator, refer to
AeConfigurator_UserGuide.pdf.
(2) Using OPC UA
You can use OPC UA simply by adding OPC objects. For information about how to add
OPC objects, see “5.2 Adding OPC Objects”.