Back

Topic

[KB7]How to add a protocol to your project

Tags: Cimway, Protocol

15 years ago
By RM
Options
Print
Applies to:

PcVue all versions.


Summary:

This article explains how to declare a communication protocol so that a project can use it.


Details:

You can define a communication protocol in a project using the dialog Network Board and Protocol Selection from the menu Configure.Communication.Equipment.Select Communication Objects, CREATE. To connect other PLCs (e.g. SIEMENS S7-IP), you must add a protocol to the existing configuration. When the configuration dialog is next opened, it shows Network Board as invalid. 

In the standard configuration, you can add a SCHNEIDER protocol but not choose for example the SIEMENS manufacturer.

To avoid this problem, you must edit the communication configuration file, COMM.DAT, which is created when you first configure a protocol.

1. Open the project’s C folder and open the configuration file COMM.DAT in a text editor. (Note: from “NETWORK” to “1,0,3” is all one line of code.)
VERSION,1,0
BOARD,0,1,1,0,0,0,0,,,0,0,””
NETWORK,0,0,Network1,232,COM1,9600,8,EVEN,1,0,0,0,800,1,0,0,,,0#0#0#0#0,,,0,0,””,1,0,3
EQT,0,0,0,PLC1,0,BROADCAST,0,0,0,0,0,0,800,1,0,,0,,0#0#0#0#0,0,,,0,0,””

2. In the BOARD line, the fourth field identifies the manufacturer: (For example it’s 13 for Schneider)
BOARD, 0, 1, 13, 0, 0, 0, 0,, 0, 0,” “

3. Replace that value with 1 (for Multi-protocol)
BOARD, 0, 1, 1, 0, 0, 0, 0,

The configuration dialog now gives access to all the protocols in the Protocol column

KB_Network_Board_and_Protocol_dialog

Warn

You must stop PcVue before you modify the COMM.DAT file.

Note

Always save your project before you change it.

Note

Always select Multi-protocol when you start to develop a project.


Created on: 16 Feb 2010 Last update: 13 May 2024