Git Product home page Git Product logo

s71200_tcpip's Introduction

S71200_TCP/IP Communication

PLC S71200 time counter with TCP/IP communication TIA14 between PLC and 1 computer

PLC S7 1200 CPU 1215C

TIA Potal 14 => If you have a TIA Portal 15/15.1/16 you can update for your version

In this software its possible send 2 bytes and receive 8 bytes in ASCII

To config

STEP 1

In device configuration/General/PROFINET Interface [X1]/Ethernet address you can can config the PLC IP Address

image

STEP 2

In Program block/TCP_COMMS[FB1]/Configuration/Connection parameter config the second machine IP

image

STEP 3

If you change the bytes quantity to send and/or receive alter the DATA[DB6] Array size

image

STEP 4

Compile -> Hardware(compile all) Compile -> Software (Software All) Download to device Hardware configuration Download to device Software(all)

TIP => Always you change some IP configuration, make a Download "Hardware configuration" and "Software configuration"

Step 5

Use Hercules SETUP utility by HW-group.com to test communication

image

Step 6

When DATA.Receive[0]->%DB6.DBB0 = 1 counter enable
When DATA.Receive[0]->%DB6.DBB0 = 0 counter disable
When DATA.Receive[0]->%DB6.DBB0 = R reset counter

InverterAssy = 0 Counter is start
InverterAssy = 1 Counter stop

image

ENJOY!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.