mohjj mo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    **==已排軋後軋序生產資料流程說明==** ###### tags: `說明` > [name=mohjj][time=2021 ,02 ,03][color=blue] > :::info 筆記內容: * **ID,WD,IB 系統串接流程** * **邏輯與資料庫** * **補充IB新舊主檔對照表** * **WDI6資料來源** * **改善建議** 著重於以下項目 :::warning 1. 小鋼胚耗用流程(ID->IB->WD) 2. 如何產生WDI6 軋壞支數資料(ID->WD) ::: --- [TOC] --- 以 2021年 B4265 01 軋序為例說明,該軋序預留 35 支小鋼胚 --- > [name=mohjj][time=2021 ,02 ,03][color=blue] > # 小鋼胚耗用簡易流程 ## 生產入帳 **業務流程:** :::info 已下 PDI 到程控的軋序將由現場安排進行軋延,原則上1支小鋼胚會軋出1捆成品,並透過程控上拋ID系統入帳,ID會呼叫IB系統耗用1支小鋼胚(變成進料外售),並扣除1支預留根數 ::: **系統流程:** ### Y6P5拋生產帳PDO到ID 程控上拋生產帳,透過 ==『程控代號』I2 +『交易代號』WD3L== 拋給 DL 系統,再由 DL呼叫ID03接收生產帳 (設定在DL系統) ![](https://i.imgur.com/oursqiK.png) 2021.01.19 程控上拋34捆生產帳,可用以下 SQL 查得 ```sql= SELECT * FROM DL.TBDLDF WHERE PCID_DLD = 'I2' AND TRANSID_DLD = 'WD3L' AND DATA_DLD LIKE '%4265 1%' ``` ![](https://i.imgur.com/MOLNBGL.png) 本次的案例為 B4265 01預留35支小鋼胚,只回拋34捆成品,其中第0013捆軋壞沒有回拋ID系統,且於第0035捆拋送 **==『完軋碼=Y』==** ,表示該軋序已全部軋完 :::danger **注意:** 中鋼廠內生產的完軋碼已無耗用所有鋼胚的功能,於 IBOU51L 中已移除 ![](https://i.imgur.com/knfe5tD.png) ::: ## 小鋼胚耗用 ### ID LINK IB 耗用,IB 紀錄耗用支數到 WD 每一個DL交易都會個別啟動ID03接收做入帳 ```flow st=>start: DL(I2,WD3L) e=>end: 結束 op1=>operation: ID03(生產入帳) op2=>operation: IBOU51L(扣除預留變成進料外售) op3=>operation: IBOU40A(更新軋序檔TBWDR2N CHG支數) cond=>condition: 是或否? st->op1->op2->op3 ``` ## IBOU51L邏輯與異動資料庫 [IBOU51L](https://docs.google.com/drawings/d/1FFUyMEI8i5MlaOR4m_Sogv3E2YSs44VtbzEeD2TbQBw/edit?usp=sharing) {%pdf https://docs.google.com/drawings/d/1FFUyMEI8i5MlaOR4m_Sogv3E2YSs44VtbzEeD2TbQBw/edit?usp=sharing %} # 補充IB新舊主檔對照表 [IB新舊主檔對照表](https://docs.google.com/spreadsheets/d/1NbCAZ5PLjP4l3-3XBmlLUSiAxWs_HsrdiznmJbO5NBU/edit#gid=458198719) :::info ### 大鋼胚新主檔 ==TBIBAF== = TBIB1F(生產)+TBIB4F(儲位)+TBIB5F(預留) ### 小鋼胚新主檔 ==TBIBBF== = TBIB3F(生產)+TBIB6F(儲位)+TBIB7F(預留) ::: {%pdf https://docs.google.com/spreadsheets/d/1NbCAZ5PLjP4l3-3XBmlLUSiAxWs_HsrdiznmJbO5NBU/edit#gid=458198719 %} # 後續改善建議: 小鋼胚軋壞系統但無法自動耗用小鋼胚一案,現況是由W4現場人工補耗用,後續改善建議如下 ### **1.要求程控如實拋送軋壞資訊 , 並由 ID -> IB 做耗用** :::info 目前有自動耗用機制,請看 [自動寫入的案例](###提供1個由程控上拋自動寫入的案例) ::: ### **2.相關單位與IB討論一下完軋碼耗用所有鋼胚邏輯是否復原(請謹慎評估並考慮相關影響性)** ### **3.就算軋壞 PDO 如實拋送,也會有無法自動耗用的時候** :::danger 主因為小鋼胚目前異儲並未即時更新,皆為手抄後再一次異儲,故可能到壓延完畢時儲位都還沒異儲到待入料儲位(X99),但是耗用當下會用X99去耗用,就會導致無法耗用,以下就是案例 ::: ```sql= SELECT * FROM DL.TBDLDF WHERE PCID_DLD = 'I1' AND TRANSID_DLD IN('WD1L','WD2L') AND DATA_DLD LIKE '%T005%' ``` 軋序 CT005 01 軋壞 9 根 ![](https://i.imgur.com/t2WT94L.png) 但是耗用時系統只有耗用1根,其餘8根為人工於 IB51 補耗用 ![](https://i.imgur.com/ZHuz3fv.png) 查看 JOURNAL_DJJN 可看到入帳當時 IB51 有拋異常 LOG,這些都是沒耗用成功的 LOG ![](https://i.imgur.com/KlwSMmJ.png) 很可能未異儲導致 檢查 TBIB6F 時儲位X99是條件之一 ![](https://i.imgur.com/qkio6C1.png) ![](https://i.imgur.com/m8kx88S.png) ![](https://i.imgur.com/IvnAmBz.png) 相對應報表:(IB51RC) ![](https://i.imgur.com/gzR3rRk.png) ![](https://i.imgur.com/MCJMYg7.png) # WDI6 資料來源 ## **1.程控上拋**,透過 ID -> WD 依條一場為例,程控可透過 ==『程控代號』I2 +『交易代號』WD4L== 上拋壓壞資訊到 TBWDR2N ![](https://i.imgur.com/9QdCvxa.png) ```sql= SELECT * FROM DL.TBDLDF WHERE PCID_DLD = 'I2' AND TRANSID_DLD = 'WD4L' AND DATA_DLD LIKE '%B4265 01%' ``` :::danger 本次的案例軋壞成品 B4265 010013 並無拋送(SQL查無資料) ==> 會導致該軋壞成品無法透過系統耗用小鋼胚 ::: 如有拋送並符合 STUS = 'S',則會寫入 TBWDR2N 並可於 WDI6 查詢的到 ![](https://i.imgur.com/UaiBK4y.png) ![](https://i.imgur.com/SQRWlsC.png) ### 提供1個由程控上拋自動寫入的案例 軋序 CT068 010001軋壞,程控上拋的資料如下 ```sql= SELECT * FROM DL.TBDLDF WHERE PCID_DLD = 'I1' AND TRANSID_DLD IN('WD1L','WD2L') AND DATA_DLD LIKE '%T068%' ``` ![](https://i.imgur.com/VOp8Bbl.png) :::success SEQ_DLD = 5386 這筆內容為捆號 CT068 010001,重量 2150,==狀態S==,缺陷代號 215,推定原因 W , **會自動寫入 WDI6** ![](https://i.imgur.com/iXaZRhJ.png) :::info **==軋壞也會拋耗用帳務->就會自動耗用小鋼胚==** * 拋IP耗用帳 ![](https://i.imgur.com/46GVDmv.png) * JOURNAL_DJJN 紀錄如下 ![](https://i.imgur.com/m0FnpKC.png) ::: :::info SEQ_DLD = 5387 這筆內容為捆號 CT068 010002,重量 2217,狀態R,不會寫入 WDI6 ::: ## **2. WDI6 手動輸入** 功能:I/N/U 剔退資料第1~7筆存在TBWDR2N, 第8~10筆存在TBWDTR ![](https://i.imgur.com/bUErHK1.png) ---

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully