Demo applications: Communication between ICCP Server and Client.

Introduction

This article shows how communication with ICCP protocol works. It presents two demo applications that communicate with each other:  while one of them was developed with ICCP Server, the other one was consequently developed with ICCP client. Furthermore, these applications comply with the Client/Server architecture principle; not only were developed in different domains but must also run in distinct environments.

 

Setting up ICCP Server and Client

Generally speaking, the first thing you must do is to access the Client driver settings. To do so, go to Ethernet tab, and set up:

  • firstly, the IP ou hostname where the Server driver is, and
  • secondly, the connection port set up in the Server.

conexão ao ICCP Server

Before running the applications, choose a destination folder for each driver; this folder is consequently were you will save the BLT files. Then, you can find these files at the end of this article. To do so, access the drivers settings, on  ICCP General tab and BLT File Path field.

 

Syntax examples

This is an example of a Direct Operate type commmand, declared at the Client driver’s BLT file:

1; COMMAND_NAME; C ;0 ;0 ;0 ;50 ; 0

For the IOTag at Item field of Direct Operate command, use the following syntax:

COMMAND_NAME:Operate

 

This is an example of a Select Before Operate type commmand, declared at the Client driver’s BLT file:

1; COMMAND_NAME; C ;0 ;0 ;1 ;50 ; 0

For the IOTag at Select command, which you must fire before Operate command (Item field), use the following syntax:

COMMAND_NAME:Select

For the IOTag at Item field of Operate command, use the following syntax:

COMMAND_NAME:Operate

 

This is an example of a DataSet (declared only at BLT Client) that reports data immediatly via  “ObjectChange” flag:

DATASET_NAME;0;0;0;0;60;96;0;0;1;1

 

This is an example of a discrete point, with Quality and TimeStamp; declared at BLT Client file:

1;DATAVALUE_NAME;DiscreteQTimeTagExtended;0;0;0;

 

This is an example of a real type point (for analog variables), with Quality and TimeStamp; declared at BLT Client file:

1;DATAVALUE_NAME;RealQTimeTagExtended;0;0;0;

 

Example of a point that indicates the equipment’s status (usually switches and breakers), with Quality and TimeStamp; declared at BLT Client file:

1;DATAVALUE_NAME;STATE;StateQTimeTagExtended;0;0;0;

 

In conclusion: these are the steps to follow to make your ICCP demo applications work. For further information on how to set up the drivers, go to our article Setting up Elipse’s ICCP Driver.

Attachments:

ICCP_Client.zip
ICCP_Server.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *