 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
ibric70 Junior

Joined: 28 Apr 2018 Posts: 1
|
Posted: 16/09/2018 15:51 Post subject: please help me with solving this problem |
|
|
Hello experts,
I have 3 cpu's 315 pn/dp with their hmi`s, i want to have a cpu 400 as master, it means the 3 hmi's must be connected to cpu 400 and not to cpu 315.
i made transfer with bsend/brecv (DB100-DB200) in cpu 315 and put/get in cpu 400 (db100,db200) and hmi tags comes from db100, and there are also merkers, inputs,outputs. after connecting with cpu 400 by clicking e.g on start on panel, how this merker can be send to cpu 315.
i tested the communication with plcsim, fromcpu 315 i give a value from db100.dbw0 and it will be sent to db200.dbw0 in cpu400 and vice versa.
but is not not enough , iam thinking about the values of hmi panel how can be sent to cpu 315.[url=http://www.99poze.ro/p/ccc7354a129e4dfe3d24391ecdca9d93.jpg] [/url]+
Last edited by ibric70 on 18/09/2018 20:08; edited 1 time in total |
|
| Back to top |
|
 |
RBS4MKV Junior

Joined: 24 Aug 2018 Posts: 8
|
Posted: 16/09/2018 21:20 Post subject: |
|
|
use NTP server to syncronise all PLCs
http://plc.myforum.ro/library-for-sntp-server-functionality-in-s7-cpus-vt4396.html
http://plc.myforum.ro/how-do-you-configure-your-pc-as-ntp-server-vt9864.html
Time functions library for HMI-PLC
http://plc.myforum.ro/toolbox-for-hmi-projects-vt6911.html
https://www.meinbergglobal.com/english/sw/ntp.htm
Last edited by RBS4MKV on 16/09/2018 21:30; edited 1 time in total |
|
| Back to top |
|
 |
RBS4MKV Junior

Joined: 24 Aug 2018 Posts: 8
|
Posted: 16/09/2018 21:29 Post subject: local time S7-300/400 CPU panel as system time |
|
|
How can you calculate the actual local time (summer time or winter time) in the S7-300/400 CPU and then use it on the panel as system time?
https://support.industry.siemens.com/cs/document/19324378/how-can-you-calculate-the-actual-local-time- (summer-time-or-winter-time)-in-the-s7-300-400-cpu-and-then-use-it-on-the-panel-as-system-time
you can use block FC61 "BT_LT" of the standard library "Miscellaneous Blocks". The Online Help for "BT_LT" contains a list of the blocks required in addition. Based on a default basic time, "BT_LT" calculates the current local time by means of data stored in a data block The calculated local time can for instance serve as system time for operation and monitoring devices (e.g. SIMATIC HMI panels) by means of time synchronization.
Fig. 01
Example of a conversion of the CPU basic time in local time and transfer of the local time to the panel
Conversion of the CPU basic time into local time
Configure a data block according to structure UDT60 of the Standard Library "Miscellaneous Blocks" with the calculation parameters for the local time and the conversion data for summertime and wintertime. This DB must be specified as input parameter "WS_DAT" at the "BT_LT".
Fig. 02
Read out the basic time of the CPU using SFC1 "READ_CLK".
Specify the read out basic time as input parameter "BT" at the "BT_LT".
At the parameter "LT" the local time calculated is issued in the DATE_AND_TIME format.
Transfer of the local time to the panel
The transfer of the local time determined "LT" to the panel can be carried out via the time-of-day synchronization between panel and CPU. With time-of-day synchronization, the local time determined can be transferred to the panel using controller jobs (14 "Set time" and 15 "Set date"). After executing job 14 or 15, the system time of panel is automatically set with the delivered data.
For more information and sample programs on time-of-day synchronization, see the following entries
https://support.industry.siemens.com/cs/document/24088798/how-do-you-synchronize-date-time-between-a-line-graphics-operator-panel- (td17-op5-op15-op17-tp27-op27-tp37-op37)-and-an-s7-300-400-controller-with-protool
https://support.industry.siemens.com/cs/document/23972743/how-do-you-synchronize-the-date-and-time-between-an-s7-300-400-and-op3- (c7-621)-with-protool
https://support.industry.siemens.com/cs/document/23972509/how-do-you-synchronize-date-and-time-between-a-tp170a-and-an-s7-300-400-controller-with-protool
https://support.industry.siemens.com/cs/document/24079457/how-do-you-synchronize-the-date-and-time-between-a-windows-based-operator-panel-and-the-s7-300-s7-400-controller-with-protool |
|
| Back to top |
|
 |
RBS4MKV Junior

Joined: 24 Aug 2018 Posts: 8
|
Posted: 16/09/2018 21:40 Post subject: SIMATIC S7-400 as time master |
|
|
How do you configure the SIMATIC S7-400 as time master or time slave for time-of-day synchronization via Industrial Ethernet in SIMATIC mode?
https://support.industry.siemens.com/cs/document/18130164/how-do-you-configure-the-simatic-s7-400-as-time-master-or-time-slave-for-time-of-day-synchronization-via-industrial-ethernet-in-simatic-mode
Time-of-day synchronization is supported by all three major product families in the SIMATIC range: SIMATIC S7, SIMATIC S5 and PC. This synchronization can be done both via Industrial Ethernet and via PROFIBUS and MPI. There are two modes available for time-of-day synchronization via Industrial Ethernet:
SIMATIC mode
NTP mode
https://support.industry.siemens.com/cs/document/17990844/which-simatic-s7-300-s7-400-modules-support-the-ntp-time-of-day-message-and-how-do-you-activate-this-kind-of-time-synchronization
Time-of-day synchronization via Industrial Ethernet with the SIMATIC mode
This mode is usually used in process automation in conjunction with ISO transport services and is precise to +/- 10ms between the communications processor (CP) and the synchronized CPU with a resolution of +/- 1ms.
Since SIMATIC mode is based on SNAP services (i.e. ISO Layer 2 service) and works with MAC addresses, it can only be used with local Ethernet networks. This mode does not work with IP networks via IP routers, i.e. with configured IP subnets.
Fig. 01
Time-of-day synchronization for the S7-400 station is configured in the Hardware Configuration. In the Properties dialog of the CPU, you select the "Diagnostics/Clock" tab and then select the synchronization mode. You can configure the S7-400 CPUs as time master (time-of-day transmitter) or time slave (time-of-day receiver).
Set whether synchronization is to be in the CPU (synchronization in the PLC) or via MPI (synchronization on MPI). Synchronization in the PLC includes the CPs.
You can select a time interval of between 1 second and 24 hours for the synchronization.
Configuring the S7-400 station as time master (transmitter)
Proceed as follows to configure the S7-400 station as time master.
No. Procedure
1. In the hardware configuration of the S7-400 station, you open the Properties dialog of the CPU and select the "Diagnostics/Clock" tab.
Set "As master" for the synchronization mode in the PLC and select the time interval for the synchronization, 1 minute, for example.
Click "OK" to close the dialog.
Fig. 02
2 The time-of-day messages of the CPU are forwarded via the Industrial Ethernet CP to the time slaves in the Industrial Ethernet subnetwork.
In the hardware configuration of the S7-400 station, you open the Properties dialog of the Industrial Ethernet CP and select the "Time-of-Day Synchronization" tab.
Enable the "Forward time of day" function.
Click "OK" to close the dialog.
Fig. 03
Configuring the S7-400 station as time slave (receiver)
Proceed as follows to configure the S7-400 station as time slave.
No. Procedure
1. In the hardware configuration of the S7-400 station, you open the Properties dialog of the CPU and select the "Diagnostics/Clock" tab.
Set "As slave" for the synchronization mode in the PLC and select the time interval for the synchronization, 1 minute, for example.
Click "OK" to close the dialog.
Fig. 04
2 The time-of-day messages of the time master are forwarded via the Industrial Ethernet CP to the CPU.
In the hardware configuration of the S7-400 station, you open the Properties dialog of the Industrial Ethernet CP and select the "Time-of-Day Synchronization" tab.
Enable the "Forward time of day" function.
Click "OK" to close the dialog.
More information on time-of-day synchronization via Industrial Ethernet
https://support.industry.siemens.com/cs/document/44049612/how-do-you-configure-the-simatic-s7-300-as-time-master-or-time-slave-for-time-of-day-synchronization-via-industrial-ethernet-in-simatic-mode
https://support.industry.siemens.com/cs/document/44045424/how-do-you-configure-a-pc-station-as-time-master-or-time-slave-for-time-of-day-synchronization-via-industrial-ethernet-in-simatic-mode
https://support.industry.siemens.com/cs/document/12586144/sinec-cp-1430-tf-with-ncm-com-1430-tf-volume-1-of-2 |
|
| Back to top |
|
 |
RBS4MKV Junior

Joined: 24 Aug 2018 Posts: 8
|
Posted: 16/09/2018 21:49 Post subject: SIMATIC S7-300 as time master SIMATIC mode |
|
|
How do you configure the SIMATIC S7-300 as time master or time slave for time-of-day synchronization via Industrial Ethernet in SIMATIC mode?
https://support.industry.siemens.com/cs/document/44049612/how-do-you-configure-the-simatic-s7-300-as-time-master-or-time-slave-for-time-of-day-synchronization-via-industrial-ethernet-in-simatic-mode
Time-of-day synchronization via Industrial Ethernet with the SIMATIC mode
This mode is usually used in process automation in conjunction with ISO transport services and is precise to +/- 10ms between the communications processor (CP) and the synchronized CPU with a resolution of +/- 1ms.
Since SIMATIC mode is based on SNAP services (i.e. ISO Layer 2 service) and works with MAC addresses, it can only be used with local Ethernet networks. This mode does not work with IP networks via IP routers, i.e. with configured IP subnets.
Important
CP 343-1 IT with article number 6GK7343-1GX20-0XE0:
When using the "Set CPU time", you must select the MPI address 2 for the CPU. This has been cleared with firmware update V1.1.
Fig. 01
Time-of-day synchronization for the S7-300 station is configured in the Hardware Configuration. In the Properties dialog of the CPU, you select the "Diagnostics/Clock" tab and then select the synchronization mode. You can configure the S7-300 CPUs as time master (time-of-day transmitter) or time slave (time-of-day receiver). Set whether synchronization is to be in the CPU (synchronization in the PLC) or via MPI (synchronization on MPI). Synchronization in the PLC includes the CPs. You can select a time interval of between 1 second and 24 hours for the synchronization.
Configuring time-of-day synchronization for the S7-300 CPU
There is only need to configure time-of-day synchronization for the S7-300 CPU if you are using one of the following Industrial Ethernet CPs:
CP 343-1 Standard with article number 6GK7343-1EX30-0XE0, firmware V2.2 onwards
CP 343-1 Advanced with article number 6GK7343-1GX30-0XE0, firmware V1.0 onwards
CP 343-1 Lean with article number 6GK7343-1CX10-0XE0, firmware V2.2 onwards
If you are using one of the above-mentioned Industrial Ethernet CPs, then you must make settings in the Properties dialog of the CPU. The settings depend on the configuration of the communication bus in the backplane bus of the CPU.
The communication bus is physically "wired through" to the MPI interface on the CPU. This setup is found in "small" CPUs, i.e. from the CPU 312 up to and including the CPU 315-2 DP and the C7 devices. In this case, in the Properties dialog of the CPU you select the "Diagnostics/Clock" tab and set "As slave" or "As master" for the synchronization mode on the MPI.
Fig. 03
The communication bus is not physically "wired through" to the MPI interface on the CPU, i.e. the MPI interface and the communication bus are separate. This bus setup is found in "large" CPUs, i.e. from the CPU 315-2 PN/DP up to and including the CPU319-3 PN/DP. In this case, in the Properties dialog of the CPU you select the "Diagnostics/Clock" tab and set "As slave" or "As master" for the synchronization mode in the PLC.
Fig. 05
Precise to +/- 10ms.
If the S7-300 is configured as time master, then the time-of-day messages of the CPU are forwarded via the Industrial Ethernet CP to the time slaves in the Industrial Ethernet subnetwork.
If the S7-300 is configured as time slave, then the time-of-day messages of the time master are forwarded via the Industrial Ethernet CP to the CPU.
You configure forwarding of time-of-day messages via the Industrial Ethernet CP in the Hardware Configuration of the S7-300 station. In the Hardware Configuration of the S7-300 station, you open the Properties dialog of the Industrial Ethernet CP and select the "Time-of-Day Synchronization" tab. Enable the "Forward time of day" function. Click "OK" to close the dialog.
 |
|
| Back to top |
|
 |
cekkalla Junior

Joined: 04 Aug 2018 Posts: 1
|
Posted: 17/09/2018 14:32 Post subject: Re: please help me with solving this problem |
|
|
| ibric70 wrote: | Hello experts,
I have 3 cpu's 315 pn/dp with their hmi`s, i want to have a cpu 400 as master, it means the 3 hmi's must be connected to cpu 400 and not to cpu 315.
i made transfer with bsend/brecv (DB100-DB200) in cpu 315 and put/get in cpu 400 (db100,db200) and hmi tags comes from db100, and there are also merkers, inputs,outputs. after connecting with cpu 400 by clicking e.g on start on panel, how this merker can be send to cpu 315.
i tested the communication with plcsim, fromcpu 315 i give a value from db100.dbw0 and it will be sent to db200.dbw0 in cpu400 and vice versa.
but is not not enough , iam thinking about the values of hmi panel how can be sent to cpu 315. |
could you put a schematic of your network..
Not clear... |
|
| Back to top |
|
 |
|
|
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
|