Belajar PLC dan SCADA

Just another Blog about Programmable Logic Controller & SCADA.

How can you set the time of an S7-300 via Industrial Ethernet?

Written by Kang Abu on 12:44 PM

Instructions:Generally you have two options for this. You can do this either with a CP343-1 IT or a different CP (e.g.: CP343-1) and use S7 communication or UDP communication. 

  1. Here you should always use a CP343-1 IT (6GK7343-1GX20-0XE0) as communications processor, because it sets the time of the CPU via the SIMATIC procedure or via the NTP (Network Time Protocol).  
  2. If you don't have a CP343-1 IT (6GK7343-1GX20-0XE0), then proceed as described below:
    You need an S7-400 (time synchronized, e.g. via SICLOCK) which as time master provides the time to S7-300 via relevant block calls, e.g. PUT (S7 communication PUT, see point A) or AG_LSEND/AG_LRECV (UDP communication, see point B).

Configuration with SICLOCK as time master.

Fig. 01

  1. Example for setting the time in an S7-300 with S7 communication
No. Procedure
1 First configure a data block with the structure "DATE_TIME" for reading the CPU basic time in the S7-400.

Fig. 02

2 Read out the basic time of the CPU using SFC1 ("READ_CLK"). Fig. 03 shows the function call with SFC1 "READ_CLK"

Fig. 03

3 Transfer the time into a target area of the S7-300 using the S7 function call "PUT".
A sample program for S7 communication is available in Entry ID: 1819293.
4 Set the time in the S7-300 with the values transferred. Fig. 04 shows the function call SFC0 "SET_CLK".

Fig. 04

  1. Example for setting the time in an S7-300 with UDP communication
No. Procedure
1 Read out the CPU basic time in the S7-300 (as described under A).
2 Configure a connection for the UDP communication. Configuration instructions for UDP connections are available in Entry ID: 19065614.
3 In the S7-300 you program the block AG-LRECV (FC60). For S7-400 the block AG_LSEND (FC50).
A detailed sample program is available in Entry ID: 18513371.
4 Set the time in the S7-300 with the values transferred (as described under A).

The NTP procedure (network time protocol)  is also supported by the CPU's integrated interfaces and the distribution for Send/Receive can be implemented with the integrated interfaces and also with every other Industrial Ethernet CP.

Related Posts by Categories

Widget by Hoctro | Jack Book
Related Posts with Thumbnails

Our Advertising

Bantuan Pencarian

Jika anda seorang pemula dan tertarik untuk belajar PLC silahkan cek artikel di arsip artikel atau gunakan bantuan pencarian artikel di bawah ini. TQ Bro..

Email Subscribe

Dapatkan informasi dan artikel yang update dari situs ini. Jika anda barminat silahkan masukan email address anda di bawah ini. Terimakasih! (Please write email to subscribe our news).

Enter your email address:

Delivered by FeedBurner

Disclaimer (Privacy Policy)

No PDF Files stored in this site. are not responsible if you download and distribute files or links. Noted that not related in any way with upload files with a copyright material that available for download. Just we collects the information using google search and other search engines links hosted or posted by other website. The link Free Book Download available here are for EDUCATIONAL PURPOSES ONLY... and its recommended to buy the products from the original Owner or Publisher.

For Detail Please Click Here!

Jika anda mempunyai artikel sepurtar dunia automation (PLC dan SCADA) dan ingin sharing buat teman-teman blogger silahkan kirim ke

Jika anda menginginkan semua berita yang ada disitus dan links yang ada di situs ini menjadi bagian dari situs yang anda punyai silahkan masukan address ini (copy & paste): di fungsi RSS Feeder situs anda.