Upgrade to Pro — share decks privately, control downloads, hide ads and more …

工場でStep FunctionsでStep Functions

工場でStep FunctionsでStep Functions

2022.6.24のJAWS-UG浜松 AWS勉強会 2022#6でLT予定の資料を登録します

Saito5656

June 17, 2022
Tweet

More Decks by Saito5656

Other Decks in Programming

Transcript

  1. 去年4月紹介の工場の仕組みに問題提起 AWS Cloud User AWS IoT Core IoT hing /

    gateway IoT MQTT protocol Factory Machine Tools Amazon S3 Bucket for summary Bucket for Time line Lambda function to extract Event 0 23 * * * AWS Step Functions workflow Lambda function to summarize Bucket for summarized Bucket for queried IoT rule Bucket for archive IoT topic for Time line IoT topic for summary Life Cycle 2ds RPAで 電子日報に入力 Lambda function to archive TL Event 0 23 * * * AWS Step Functions workflow Lambda function to archive sum CloudFormation Stack CloudFormation Stack sfnで自動集計 生産開始と終了の時刻 設備の稼働時間と停止時間
  2. Lambdaの処理範囲を拡張 AWS Cloud Life Cycle 2ds User AWS IoT Core

    factory Line ExtFunc ConvFunc Event 0 23 * * * CalcFunc SumFunc IoT thing / gateway MQTT Factory Machine Tools Machine raw sum sig SigExtFunc SigConvArcFunc SumExtFunc SumConvArcFunc summary daily_sum tmp conv daily_sum_nonop daily_sum op_rate archive daily_sig daily_sum total_sum total_sum_nonop SumDrawFunc OpSumDrawFunc SumNonopDrawFunc html sum op_rate nonop_sum Prev_Chart_Root (Rewrite object) IP filter All excusion State machine CloudFront Error Error message Error message Error message
  3. コストと時間の大幅圧縮の可能性を示唆 Raw data 08:00 08:05 Processed data 現状 プロトタイプ All

    execution state machine Ext_Conv_Calc_Sum Event 0 23 * * * Log_Arc Html_Gen IndexGenFunc
  4. All execution state machine Ext_Conv_Calc_Sum Event 0 23 * *

    * Log_Arc Html_Gen IndexGenFunc 1.稼働/不稼働集計と稼働率計算するsfn 前日生産分の生jsonを収集し一時出力 タワーライト生信号6パターンを 実際の組合せ18パターンに変換 開始/終了時刻/生産数/不稼働の集計と ラズパイ稼働率を計算してcsv出力