我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
Setting a controllers TOD (time of day clock) with Concept IEC logic.

Goals and Symptoms

The attached code shows an example of how to set the controllers TOD with IEC FBD logic.

Causes and Fixes

Step
Action
Description
1
Write a value of 0000H to the TOD control registerThis stops the clock.
2
Write the new TOD data to the clock registersThese are the values the clock will start from when the final command is processed.
3
Write a value of 8000H to the TOD control registerThis commands the TOD to read in the new values. Once the PLC is finished reading in the new data, the register will return a value of 2000H.
4
Write a value of 4000H to the TOD command registerThis starts the clock. Once running, the TOD registers will be updating and the TOD command register will return a value of 6000H.

The steps above must be done one per scan so the solve order in the example code is important for this function.

sddfg
sdfhj

The controllers TOD clock is set to start at register 400001.
dfg

Step #1:
dsfg
The operation is initiate by setting Boolean Stop_Clock to rising edge 1.
The variable Stop_Code (0000Hex) is sent to the TOD control register thus stopping the clock.
Setting rising edge Boolean Set_Time to 1.

Step#2

From the previous step Set_Time is a logical one, thus enabling all of the MOVE blocks which contain the desired replacement time values.
dfgh
The last MOVE block triggers a rising edge READ_CLOCK sending READ_CODE 8000Hex to the TOD control register.

Step#3
The next scan Start_Code 4000Hex is sent to the TOD control register starting the clock with the previously loaded replacement time values.

Legacy KB System (APS) Data: RESL169004 V1.0, Originally authored by on , Last Edited by on
Related ranges: Concept

施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings