Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.8 KB

README.md

File metadata and controls

58 lines (34 loc) · 1.8 KB

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!!