AliBahar

MrPLC Member
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About AliBahar

  • Rank
    Newbie

Profile Information

  • Country Iran
  1. Hi every body, I have performed a non standard protocol for communications between RTU and MTU. It does the duties properly. but I want to transfer the MTU duties to computer and perform the monitoring using software like winCC or Citect SCADA . so I need to present the arbitrary protocol for monitoring software I wonder if there is a way to do this task.
  2. com port handling with Citect Scada

    because the master must be able to handle link arbitrarily even if it does not want to communicate with slave
  3. DNPR driver problem

    I use Citect Scada 7.10 with windows 7 . I want to perform communication based on DNP3 so I have employed DNPR 3.4.1.0 driver. but the error occurs due to Incompatibility between dnpr driver and running OS. I don't know what version of this driver is compatible with windows.7?
  4. two computers communicate with each other using DNP3 protocol based on rs232. the PC#1 acts as master and it handles data transmission/reception with citect scada. PC#2 acts as slave and it performs data communication and analysis using C++ console which is created using visual studio. problem:I want to do opening and closing COM port of PC#1 using citect scada software. but I don't know how it can be done?
  5. DNP3 Protocol using LabView Vi

    Hi every body I want to perform DNP3 protocol using LabView Vi functions. but i cant find any useful tutorial. please help.
  6. CRC generation problem

    yes. reference: G. Clarke and D. Reynders, "Practical Modern SCADA Protocols: DNP3, 60870.5 and Related Systems", page:97
  7. software for DNP3 protocol

    Thanks for reply please name some of these software? is citect scada one of them?
  8. CRC generation problem

    Hi friends for DNP3 protocol , crc code is generated by the following algorithm: • Start with user data block M of k bits • Multiply by 65536 (ie append 16 zeros to end to form k + 16-bit number) • Divide by generator polynomial P to obtain quotient Q and remainder R modulo-2 division is used) • Discard Q, keep R • Invert R to obtain R′ • Append R′ to M forming message T′ to be transmitted Where generator polynomial: P = x16 + x13 + x12 + x10 + x8 + x5 + x2 + 1 This forms a 17-bit number which is 13D65 (in hex) I have created the following c code for crc calculation using modulo-2 division method: #include "stdio.h"typedef unsigned int uint;typedef unsigned char uchar;typedef unsigned long int UL;#define WIDTH (8 * sizeof(UL))#define TOPBIT (1 << (WIDTH - 1))UL POLYNOMIAL=0x3D650000;uint remainder = 0;uint crcGener(uint *message, uchar nSize){ uchar ff, bit; UL Rem; for (ff = 0; ff < nSize; ff++){ Rem ^=(message[ff]<<16); //printf("%x\n",Rem); for (bit = 0; bit <16; ++bit) { if (Rem & TOPBIT) { Rem = (Rem << 1) ^ POLYNOMIAL; } else { Rem = (Rem << 1); } } } /* * The final remainder is the CRC result. */ return (Rem);} void main(void){ uint Msg[5]={0x0564,0x0500,0x0C00,0x0100,0x0000}; remainder=crcGener(Msg, 5); printf("%x\n",remainder); getchar();}but the result is different from expected value
  9. software for DNP3 protocol

    Hi everybody what is the commonly used software which supports DNP3 Protocol?