plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SIMATIC IOT2000 Eclipse Plugin

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems
View previous topic :: View next topic  
Author Message
gaty
Member
Member
gaty

Joined: 01 Mar 2017
Posts: 188

PostPosted: 13/04/2018 18:54    Post subject: SIMATIC IOT2000 Eclipse Plugin Reply with quote

SIMATIC IOT2000 Eclipse Plugin
https://support.industry.siemens.com/cs/document/109744106/
To realize your first automation tasks with the SIMATIC IOT2000, you can download the SIMATIOC IOT2000 Plugin for Eclipse IDE for C/C++ Developers to develop first applications.
You can find a description about the integration of the SIMATIC IOT2000 Plugin into Eclipse in the document “SIMATIC IOT2000 Getting Started”.
Documentation
https://support.industry.siemens.com/cs/attachments/109744106/109744106_SIMATIC_IOT2000_Getting_Started.pdf
Download
https://support.industry.siemens.com/cs/attachments/109744106/IOT2000_SDK_Windows_V2.2.0.zip
https://support.industry.siemens.com/cs/attachments/109744106/109744106_IOT2000_Eclipse_Plugin_V1.2.0.zip
Installation requirements
Eclipse IDE for C/C++ Developers
Java Runtime Environment Version 8
7-Zip Version 16.04
Read Getting Started for links to what you need.
if you are using the Example Image V2.2 and the SDK V2.2 you will run into some compiler errors.
The compiler erros are caused by not matching c++ versions of the SDK V2.2 and the Eclipse Plugin V1.2 (which suits to SDK V2.1.3).
To avoid these errors:
Code:
   right click on the project folder in Eclispe
    Properties
    C/C++ General --> Paths and Symbols
    change ${POKY_HOME}/usr/include/c++/5.3.0 to ${POKY_HOME}/usr/include/c++/6.2.0
    change ${POKY_HOME}/usr/include/c++/5.3.0/i586-poky-linux to ${POKY_HOME}/usr/include/c++/6.2.0/i586-poky-linux


After that the compiler errors are gone.
[url=https://www91.zippyshare.com/v/oAi48N12/file.html]Compiler_Errors_V2.2.pdf[/url]


Last edited by gaty on 13/04/2018 19:06; edited 1 time in total
Back to top
View user's profile Send private message
gaty
Member
Member
gaty

Joined: 01 Mar 2017
Posts: 188

PostPosted: 13/04/2018 19:02    Post subject: SIMATIC IOT2000 SD-Card example image Reply with quote

SIMATIC IOT2000 SD-Card example image
https://support.industry.siemens.com/cs/document/109741799/
To realize your first automation tasks with the SIMATIC IOT2000, you can use this SD-Card example image for commissioning.
Download
https://support.industry.siemens.com/cs/attachments/109741799/Example_Image_V2.2.0.zip
https://support.industry.siemens.com/cs/attachments/109741799/Open_Source_Software_V2.2.0.zip
https://support.industry.siemens.com/cs/attachments/109741799/ReadMe_OSS_Multilanguage_V2.2.0.zip

Tools you will need to operate with the SIMATIC IOT2000:
Win32DiskImager (to burn the image to a µSD Card)
https://sourceforge.net/projects/win32diskimager/
putty (to open a remote console)
http://www.putty.org/
WinSCP (to copy files from Engineering System to IOT2000 and backwards easily)
https://winscp.net/eng/download.php
https://winscp.net/eng/docs/start

https://github.com/siemens/meta-iot2000
https://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#cross-development-toolchain
https://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html

Application examples
[url=https://www91.zippyshare.com/v/oAi48N12/file.html]Compiler_Errors_V2.2.pdf[/url]
[url=https://www53.zippyshare.com/v/Yk62hWD7/file.html]S7_Comunication_node-red_V1.0.pdf[/url]
[url=https://www53.zippyshare.com/v/0TzyqNEa/file.html]OPC_UA_Client_node-red_V1.0.pdf[/url]
[url=https://www53.zippyshare.com/v/wSdHyVtN/file.html]IBM_Watson_node-red_V1.0.pdf[/url]
[url=https://www53.zippyshare.com/v/Xew1A0Za/file.html]node-red-contrib-iot2000-time.zip[/url]

Starting with Node-RED as graphical programming language
https://github.com/dyolcubal/node-red-contrib-iot2000-display
https://github.com/dyolcubal/node-red-contrib-iot2000
https://nodered.org/docs/creating-nodes/
https://flows.nodered.org/?num_pages=1

Starting with Arduino programming on IOT2000
Code:
    #include <SPI>
    #include <Wire>
    #include <LiquidCrystal_I2C_8574>
    #include <SeeedOLED>
    #include <avr>

    LiquidCrystal_I2C_8574 lcd(0x20, 20, 4); // set the LCD address to 0x20 for a 16 chars and 2 line display

    //const byte SS = 10;  // omit this line for Arduino 1.0 onwards
    const byte MAX7219_REG_NOOP        = 0x0;
    // codes 1 to 8 are digit positions 1 to 8
    const byte MAX7219_REG_DECODEMODE  = 0x9;
    const byte MAX7219_REG_INTENSITY   = 0xA;
    const byte MAX7219_REG_SCANLIMIT   = 0xB;
    const byte MAX7219_REG_SHUTDOWN    = 0xC;
    const byte MAX7219_REG_DISPLAYTEST = 0xF;

    const int AnalogPin = 9;
    void sendByte (const byte reg, const byte data)
    {
    digitalWrite (SS, LOW);
    SPI.transfer (reg);
    SPI.transfer (data);
    digitalWrite (SS, HIGH);
    }  // end of sendByte

    void setup ()
    {
    SPI.begin ();
    sendByte (MAX7219_REG_SCANLIMIT, 7);      // show 4 digits
    sendByte (MAX7219_REG_DECODEMODE, 0xFF);  // use digits (not bit patterns)
    sendByte (MAX7219_REG_DISPLAYTEST, 0);    // no display test
    sendByte (MAX7219_REG_INTENSITY, 3);      // character intensity: range: 0 to 15
    sendByte (MAX7219_REG_SHUTDOWN, 1);       // not in shutdown mode (ie. start it up)

    // init 16x2 LCD display on I2C 0x20
    lcd.init();                      // initialize the lcd
    // Print a message to the LCD.
    lcd.backlight();
    lcd.setCursor(0, 0);
    lcd.print("Hello from!");
    lcd.setCursor(0, 1);
    lcd.print("The Breadboard");
    delay(2000);
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("Counter:-");

    // init OLED 128x64 display
    SeeedOled.init();                   //initialze SEEED OLED display
    SeeedOled.clearDisplay();          //clear the screen and set start position to top left corner
    SeeedOled.setNormalDisplay();      //Set display to natural mode (i.e non-inverse mode)
    SeeedOled.setPageMode();           //Set addressing mode to Page Mode
    SeeedOled.setTextXY(0,0);          //Set the cursor to Xth Page, Yth Column
    SeeedOled.putString("Hello viewers"); //Print the String
    SeeedOled.setTextXY(3,0);          //Set the cursor to Xth Page, Yth Column
    SeeedOled.putString("youtube");
    SeeedOled.setTextXY(4,0);          //Set the cursor to Xth Page, Yth Column
    SeeedOled.putString("thebreadboardca"); //Print the String

    pinMode(AnalogPin, OUTPUT);
    }   // end of setup


    void number (const int num)
    {

    char buf [8];
    sprintf (buf, "%8i", min (max (num, 0), 99999999));
    lcd.setCursor(0, 1);
    lcd.print(buf);

    SeeedOled.setTextXY(6,0);          //Set the cursor to Xth Page, Yth Column
    SeeedOled.putString(buf); //Print the String

    analogWrite(AnalogPin, num & 0XFF);
    // send all 8 digits
    for (byte digit = 8; digit > 0; digit--)
    {
    byte c = buf [8 - digit];
    if (c == ' ' )
    c = 0xF;  // code for a blank
    else
    c -= '0';
    sendByte (digit , c);
    }
    }  // end of number

    unsigned int i=99990000;

    void loop ()
    {
    number (i++);
    if (i > 99999999) i = 0;
    delay (1);
    }  // end of loop


https://www.youtube.com/watch?v=qfXpyQ1rSdM
IOT2000 boards support and libraries for Arduino IDE
https://github.com/sblyolcubal/arduino-iot2000

Application examples
Control IOT2000 USER LED
Library for rotary encoder
Library for display controller HD44780
Library for display controller HD44780 via I2C PCF8574
Library for Nokia graphic display LCD4884 LCD - SPI
Library for MAX7219 LED Display
[url=https://www38.zippyshare.com/v/7zr8clJN/file.html]DisplayMAX7219.zip[/url]
[url=https://www38.zippyshare.com/v/QH8y5aLh/file.html]NokiaDisplay_SPI_LCD4884.zip[/url]
[url=https://www38.zippyshare.com/v/m7VAXZbE/file.html]DisplayHD44780_I2C.zip[/url]
[url=https://www38.zippyshare.com/v/vdnoWYwP/file.html]DisplayHD44780.zip[/url]
[url=https://www38.zippyshare.com/v/8YHKWgN8/file.html]encoder.zip[/url]
[url=https://www38.zippyshare.com/v/EcIITi1G/file.html]colored_blink_code.txt[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro