HESG447043R1工控自动化卡件
2.在PME中配置和存储AUP文件。PME软件可用于启用SNTP功能。在ETM001 Kxxx的设置选项卡下,将SNTP参数设置为启用。此操作将添加SNTP选项卡,其中包含CPU TOD Clock参数。将CPU TOD Clock参数设置为Enabled。到每个配置的模块。应用程序逻辑必须检查每个以太网模块的层号,以确定要选择哪个以太网模块。当应用程序确定使用哪个模块作为时间主机时,必须向该模块发送启用PLC时间更新COMMREQ(5002)。当CPU TOD用于EGD时间戳时,它将继续,直到发生STOP转换。在RUN到STOP转换时,CPU禁用CPU TOD时钟同步。PLC应用逻辑必须通过在每次STOP到RUN转换时发送enable PLC Time Update COMMREQ(5002)来启用CPU TOD时钟同步。有关此操作更新中断的概述过程中断-更新CPU TOD时钟1 4 3 2更新共享内存中的ENET TOD更新时间™ RX3i和RSTi EP TCP/IP以太网通信用户手册第7节GFK-2224Y 2019年8月SNTP操作135 7.4.2.3 SNTP支持PACSystems的RX3i模型比较RX3i以太网接口能够通过修改AUP来同步时钟,这可以通过以下两种方式之一进行:▪ 使用存储在PME中的AUP文件更新参数。▪ 更新PME中接口设置面板下的参数。下表程序选择用于CPU时间同步的最低SNTP层值的以太网接口。2.应用逻辑程序通过启用PLC时间更新COMMREQ(5002)启用所选以太网接口的CPU时间更新。如果以太网接口已经锁定到网络上的SNTP时间服务器,CPU会立即更新其TOD时钟。3.在来自锁定的SNTP时间服务器的每个后续周期性网络时间消息处,CPU接收网络时间并立即更新其TOD时钟。注:在仅指定一个以太网接口的PLC中,逻辑程序可以跳过步骤1。无需在多个以太网接口之间进行选择。22 ET001 Kxxx仅在配置为ETM001 Jx时(例如当用作插入式替换时)支持使用AUP文件。PACSystems™ RX3i和RSTi EP TCP/IP以太网通信用户手册第7节GFK-2224Y 2019年8月SNTP操作136 7.4.2.3.2将CPU TOD时钟同步到SNTP服务器的步骤(使用PME)要使用PME将CPU TOD时钟同步到SNATP服务器,用户在模块的“设置”选项卡中的“网络时间同步”参数中启用SNTP。当存储包含AUP文件或ETM001 Jx或ETM001-Kxxx的ETM001 Jx HWC时,此同步方法可用。不再支持AUP文件的配置。首先,选择要用于同步到SNTP服务器的ETM模块:图50 PME中的硬件配置模块当网络时间同步设置为SNTP时,新的SNTP选项卡变为可用。新可用的SNTP选项卡将允许用户配置以下参数:SNTP参数在PME值中可用CPU TOD时钟同步启用或禁用。SNTP模式多播/广播:一对多连接,定期发送本地地址请求。单播:一对一连接,定期向专用SNTP服务器发送请求。主地址(仅在单播模式下可用。)主地址标识单个网络链路上的主机。主地址应指定主服务器。对于IP地址0.0.0.0辅助地址(仅在单播模式下可用),BOOTP的使用必须设置为True。如果主服务器关闭,则可以轮询辅助地址。轮询间隔23轮询间隔(单播的间隔,以秒为单位,向服务器发送新的时间请求):下限=16,上限=1024,模数2轮询计数轮询计数(当没有从服务器接收到及时响应时将发送的重传次数):下限=1,上限=100轮询超时轮询超时(等待服务器响应的时间,以秒为单位):下限=2,上限=100有关这些SNTP参数的更多信息,请参阅第7节:SNTP操作。
2. Configuring and storing an AUP File in PME. The PME software can be used to enable SNTP functionality. Under the ETM001-Kxxx’s Settings tab, set the SNTP parameter to Enabled. This action will add the SNTP tab, which will include the CPU TOD Clock parameter. Set the CPU TOD Clock parameter to Enabled. to each configured module. The application logic must examine the stratum number at each Ethernet module to determine which Ethernet module to select. When the application has determined which module to use as the time master, it must send an Enable PLC Time Update COMMREQ (5002) to that module. When the CPU TOD is used for EGD time stamps, it continues until a STOP transition occurs. On a RUN to STOP transition, the CPU disables CPU TOD clock synchronization. The PLC application logic must enable CPU TOD clock synchronization by sending an Enable PLC Time Update COMMREQ (5002) on every STOP to RUN transition. For an overview of this operating pdate interrupt Process interrupt - Update CPU TOD clock 1 4 3 2 Update ENET TOD Update time in shared memory (CPU Time Update interrupt is enabled) Send CPU Time Update interrupt Process interrupt - Update CPU TOD clock Send COMMREQ Status Figure 49: Operating Sequence for CPU Clock Synchronization PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 7 GFK-2224Y August 2019 SNTP Operation 135 7.4.2.3 RX3i Model Comparison for SNTP Support PACSystems RX3i Ethernet interfaces are able to synchronize their clocks by modifying their AUPs, which can be conducted one of two ways: ▪ Updating the parameters using an AUP File that is stored to PME. ▪ Updating the parameters under the interface’s settings panel in PME The table below program selects the Ethernet interface advertising the lowest SNTP stratum value to use for CPU time synchronization. 2. The application logic program enables CPU time update for the selected Ethernet interface via the Enable PLC Time Update COMMREQ (5002). If the Ethernet interface is already locked to an SNTP timeserver on the network, the CPU immediately updates its TOD clock. 3. At every subsequent periodic network time message from the locked SNTP timeserver, the CPU receives the network time and immediately updates its TOD clock. Note: In a PLC with only one Ethernet interface specified, the logic program may skip step 1. There is no need to select between multiple Ethernet interfaces. 22 The ET001-Kxxx only supports the use of AUP files when configured as a ETM001-Jx (such as when used as a drop-in replacement.) PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 7 GFK-2224Y August 2019 SNTP Operation 136 7.4.2.3.2 Steps to Synchronize the CPU TOD Clock to an SNTP Server (using PME) To synchronize the CPU TOD Clock to an SNTP Server using PME, the user enables SNTP in the Network Time Sync parameter in the Settings tab of the module. This synchronization method is available when storing an ETM001-Jx HWC that includes an AUP file or either an ETM001-Jx or ETM001-Kxxx. Configuration with an AUP file will no longer be supported. To begin, select the ETM module you would like to use to synchronize to the SNTP server: Figure 50 Hardware Configuration Module in PME When Network Time Sync is set to SNTP, a new SNTP tab becomes available. The newly available SNTP tab will allow the user to configure the following parameters: SNTP Parameters Available in PME Values CPU TOD Clock Sync Enabled or Disabled. SNTP Mode Multicast/Broadcast: one-to-many connection which periodically sends a request (a) local address(es). Unicast: one-to-one connection which periodically sends a request to a dedicated SNTP server. Primary Address (Only available in unicast mode.) The primary address identifies hosts on a single network link. The primary address should specific the primary server. Use of BOOTP must be set to True for IP address of 0.0.0.0 Secondary Address (Only available in unicast mode.) If the primary server is down, the secondary address can be polled. Poll Interval23 Poll Interval (Interval for unicast, in seconds, at which new time requests are sent to the server): Low Limit =16, High Limit=1024, modulus 2 Poll Count Poll Count (Number of retransmissions that will be sent when no timely response is received from the server): Low Limit =1, High Limit=100 Poll Timeout Poll Timeout (The time, in seconds, to wait for a response from the server): Low Limit =2, High Limit=100 For more information on these SNTP parameters, please refer to Section 7: SNTP Operation.