HMI WEINTEK Connect Arduino Menggunakan protokol Modbus RTU
HMI WEINTEK Connect Arduino Menggunakan protokol Modbus RTU Download Software EasybuilderPro Klik DIsini Untuk mendownload software Easybuilder pro Download Program HMI Klik Disini untuk Download Program HMI Weintek Download Program Arduino /****Arduino MODBUS RTU*** * * Source Code By : Lukman Amirul F ( dengan Bantuan Kopas Kono kene :v) * * MODBUS library written by Jason Vreeland [CodeRage] * Released 3/7/2010 under GNU license * https://code.google.com/archive/p/arduino-modbus-slave/downloads */ #include <modbus.h> #include <modbusDevice.h> #include <modbusRegBank.h> #include <modbusSlave.h> modbusDevice regBank; modbusSlave slave; #define GREEN_LED 3 #define RED_LED 5 #define BUTTON 2 #define POTENTIOMETER A0 void setup() { pinMode(GREEN_LED, OUTPUT); pinMode(RED_LED, OUTPUT); pinMode(BUTTON, INPUT_PULLUP); //Assign the Modbus Slave ID. regBank.setId(1); //Add Digital Output registers regBank.add(1); //A
kman jwsnya
BalasHapus