tes

Dependencies:   NetServices mbed C027_Supports mbed-rpcx

Committer:
aldoao
Date:
Wed Sep 11 06:32:20 2019 +0000
Revision:
1:f7d9b0530b73
Parent:
0:64967b7043c2
tipe,1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
irsanjul 0:64967b7043c2 1 #ifndef MODELDATA_H
irsanjul 0:64967b7043c2 2 #define MODELDATA_H
irsanjul 0:64967b7043c2 3
irsanjul 0:64967b7043c2 4 //------------------------------------------------------------------------------
irsanjul 0:64967b7043c2 5 // Model Data
irsanjul 0:64967b7043c2 6 //------------------------------------------------------------------------------
irsanjul 0:64967b7043c2 7 // Alur Step
irsanjul 0:64967b7043c2 8 // order state => interlock => meterstate => meter_info
irsanjul 0:64967b7043c2 9 // ****************************************************
irsanjul 0:64967b7043c2 10 // Order State
irsanjul 0:64967b7043c2 11 // - 0 saat "No Order Present"
irsanjul 0:64967b7043c2 12 // - 4 saat Order di proses
irsanjul 0:64967b7043c2 13 // ****************************************************
irsanjul 0:64967b7043c2 14 // interlock
irsanjul 0:64967b7043c2 15 // - dapet langsung kirim
irsanjul 0:64967b7043c2 16 // ****************************************************
irsanjul 0:64967b7043c2 17 // meter state
irsanjul 0:64967b7043c2 18 // - ambil state untuk nentuin step
irsanjul 0:64967b7043c2 19 // - pas sampe 4 baru lanjut
irsanjul 0:64967b7043c2 20 // ****************************************************
irsanjul 0:64967b7043c2 21 // meter info
irsanjul 0:64967b7043c2 22 // - langsung kirim
irsanjul 0:64967b7043c2 23 //------------------------------------------------------------------------------
irsanjul 0:64967b7043c2 24 string MeterStateTelegram = "ENQ,FTL,OPERATION,Meter_State";
irsanjul 0:64967b7043c2 25 string OrderStateTelegram = "ENQ,FTL,ORDER,State";
irsanjul 0:64967b7043c2 26 string InterlockTelegram = "ENQ,FTL,OPERATION,Interlock";
irsanjul 0:64967b7043c2 27 string MeterInfoTelegram = "ENQ,FTL,OPERATION,Meter_Info";
irsanjul 0:64967b7043c2 28 string LFileTelegram = "ENQ,FTL,LOG,L_File";
irsanjul 0:64967b7043c2 29 string AckTelegram = "A";
irsanjul 0:64967b7043c2 30 string ErrorTelegram = "ENQ,HAAR,Warnings";
irsanjul 0:64967b7043c2 31
irsanjul 0:64967b7043c2 32 string TelegramState[7] = { OrderStateTelegram, InterlockTelegram,
irsanjul 0:64967b7043c2 33 MeterStateTelegram, MeterInfoTelegram,
irsanjul 0:64967b7043c2 34 LFileTelegram, AckTelegram, ErrorTelegram};
irsanjul 0:64967b7043c2 35
irsanjul 0:64967b7043c2 36 #endif