Configuration Options According to the Interface
Configuration Options According to the Interface
The following interfaces are available for OPC communication:
Interface designation |
Description |
---|---|
ARTI |
The CoDeSys V2.3 ARTI interface is used to establish connections via SymARTI. It is not supported by PacDrive M controllers. |
GATEWAY |
The GATEWAY interface is used to configure PacDrive M controllers – CoDeSys V2.3. |
SIMULATION |
The SIMULATION interface is used to configure PacDrive M projects – CoDeSys V2.3 – for the simulation mode. |
GATEWAY3 |
The GATEWAY3 interface is used to configure EcoStruxure Machine Expert controllers – CoDeSys V3. |
SIMULATION3 |
The SIMULATION3 interface is used to configure EcoStruxure Machine Expert projects – CoDeSys V3 – for the simulation mode. |
GATEWAY (PacDrive M Controllers – CoDeSys V2.3)
First, configure the symbol file in Logic Builder, as described under Configuring Symbol File (PacDrive M).
Step |
Action |
---|---|
1 |
Mark the root node Server in the OPC configurator. |
2 |
Select the menu command Edit > Append PLC. Result: Another controller with the file name PLC1 is inserted. |
3 |
Replace the default name PLC1 by a meaningful name (for example, cartoner). |
4 |
Configure the parameters as follows: Interface: GATEWAY Project name: Timeout (ms): 10000 (default) Number of tries: 3 (default) Buffer Size (Byte): 1500 (If a new Cx00 object is created the value of Buffer Size must be changed to 5000) Wait time (s): 10 (default) Reconnect time (s): 15 (default) Active: Activated (standard) Motorola byte order: inactive (default) No login service: Activated Logging: > Enable logging (default events) activated (standard) Logging: > Log additional events disabled (default) Logging: > Add debug events (slow) disabled (default) |
5 |
Select the subnode Connection. |
6 |
Click the Edit button. Result: The Communication parameters dialog box is displayed. |
7 |
Select the desired controller or add further controllers via New.... |
8 |
Click the OK button. |
9 |
Save the OPCServer.ini file, for example, via the menu command File > Save. |
SIMULATION (PacDrive M Projects – CoDeSys V2.3 – Simulation Mode)
Create a project in Logic Builder with symbol configuration. In contrast to the configuration with the GATEWAY interface, a new project file is required. For the Project name parameter, specify a path and use the file extension .pro when you enter a name. No further communication settings are required.
GATEWAY3 (EcoStruxure Machine Expert Controllers – CoDeSys V3)
Configure the connections to EcoStruxure Machine Expert controllers as described in chapter EcoStruxure Machine Expert Configuration and following in this manual.
SIMULATION3 (EcoStruxure Machine Expert Projects – CoDeSys V2.3 – Simulation Mode)
The symbol file generated by the CoDeSys V3 project is required for the simulation with the V3 interface.
This file can be saved to any directory, however, the OPC server directory is recommended. The following must be entered under Project name: <File path>\<Name of the symbol file>.xml.
If the XML symbol file is located in the OPC server directory, you do not have to specify the path.