Selasa, 06 Juni 2017

Tutorial Software ETIMS for ETR300



TUTORIAL ENTEC ETR300S
By : Fuad Hasan






Material yang dibutuhkan:

  1.  Kabel serial to serial cross (female to female)
  2.  Laptop
  3.  Usb to serial

Software yang dibutuhkan:

  1. Etims

Cara install etims:

  1.   Instal sampai selesai
  2.  Jika windows 7, klik kanan etims pilih properties, compatibility, sentang Run the program windows xp3.
  3. Minta lisensi ke korea untuk registrasi, nanti dapat ENTEC.lic
  4.   Saat run select device : ETR 300
  5. M asukkan password: entecene
  6. Pilih connect - > pilih comport sesuaikan usb nancap to PC



Selasa, 09 Mei 2017

tahap selanjutnya uji modbus

jika sudah selesai upload dan merangkai silahkan di uji

download dulu software modscan

tancapkan usb to rs485 to pc or laptop

run modscan

connection -> connect

pilih connect using : sesuaikan port usb nancap dimana

baudrate 9600
worklenghr 8
parity none
stopbit 1
klik ok

lenght ganti 3
coil status ganti holding register


jika valid response sudah ada angkanya berarti anda sudah berhasil

rangkaian dari upload file modbus


upload sketch modbus RTU RS485

/*
Author  : Fuad Hasan
Created : 9 Mei  2017
        
*/

#include <ModbusSlave.h>

ModbusSlave mbs;

/*register addres modbus*/
enum { 
        MB_40000,            
        MB_40001,          
        MB_40002,       
      
        MB_REGS     //jumlah addres yang dipolling sebanyak 3   
};

int regs[MB_REGS];
unsigned long wdog = 0;         /* watchdog */
unsigned long tprev = 0;         /* previous time*/

void setup()
{
       
/* the Modbus slave configuration parameters */

  const unsigned char SLAVE = 10;      /* slaveId */
  const long BAUD = 9600;             /* baud rate */
  const char PARITY = 'n';             /* n=none; e=even; o=odd */
  const char TXENPIN = 2;              /* output driver enable pin */

  /* Second step MBS: configure */
  mbs.configure(SLAVE, BAUD, PARITY, TXENPIN);
  mbs.update(regs, MB_REGS);
  pinMode(13, OUTPUT);// digital output
  pinMode(12, INPUT);//digital input
 
}
void loop()
{
        /* Third and las step MBS: update in loop*/
        if(mbs.update(regs, MB_REGS))
                wdog = millis();
        if ((millis() - wdog) > 1500); 


 //   DIGITAL INPUT
   regs[MB_40000] = digitalRead(12);
  
  
//   DIGITAL OUTPUT  
   digitalWrite(13, regs[MB_40001]);
   
    //ANALOG INPUT
    regs[MB_40002] = analogRead(A0);
   
        
            
  }
       
  

cara blok value di Node red

 ambil node filter dan edit seperti di bawah ini